mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
disable unused fct
This commit is contained in:
@@ -4,7 +4,6 @@ import os
|
||||
import traceback
|
||||
from sys import argv
|
||||
import sys
|
||||
import re
|
||||
from getpass import getpass
|
||||
|
||||
from androguard.core.bytecodes.apk import APK
|
||||
@@ -25,33 +24,6 @@ BRAND = {"com.psa.mym.myopel": {"realm": "clientsB2COpel", "brand_code": "OP", "
|
||||
}
|
||||
|
||||
|
||||
def getxmlvalue(root, name):
|
||||
for child in root.findall("*[@name='" + name + "']"):
|
||||
return child.text
|
||||
|
||||
|
||||
def find_app_path():
|
||||
base_dir = 'apps/'
|
||||
paths = os.listdir(base_dir)
|
||||
if len(paths) > 0:
|
||||
for path in paths:
|
||||
pattern = re.compile('com.psa.mym.\\w*')
|
||||
print(pattern.match(path))
|
||||
if pattern.match(path) is not None:
|
||||
return base_dir + path
|
||||
return None
|
||||
|
||||
|
||||
def find_preferences_xml():
|
||||
paths = os.listdir()
|
||||
if len(paths) > 0:
|
||||
for path in paths:
|
||||
pattern = re.compile('com.psa.mym.\\w*_preferences.xml')
|
||||
if pattern.match(path) is not None:
|
||||
return path
|
||||
return None
|
||||
|
||||
|
||||
def save_key_to_pem(pfx_data, pfx_password):
|
||||
private_key, certificate = pkcs12.load_key_and_certificates(pfx_data,
|
||||
bytes.fromhex(pfx_password), default_backend())[:2]
|
||||
|
||||
Reference in New Issue
Block a user