mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
add info
This commit is contained in:
@@ -31,6 +31,7 @@ We need to get credentials from the MyPeugeot app. You have two solutions :
|
||||
|
||||
To do that you can follow this guide: https://forum.xda-developers.com/android/software-hacking/guide-how-to-enable-adb-backup-app-t3495117
|
||||
The original app can be downloaded [here](https://apkpure.com/fr/mypeugeot-app/com.psa.mym.mypeugeot) for example.
|
||||
You should download Mypeugeot 1.25.2, higher versions doesn't seems to work
|
||||
|
||||
1.2 Uninstall the original app
|
||||
|
||||
|
||||
+3
-6
@@ -41,26 +41,23 @@ else:
|
||||
os.system(f"java -jar {script_dir}/abe-all.jar unpack {argv[1]} backup.tar {password}")
|
||||
my_tar = tarfile.open('backup.tar')
|
||||
my_tar.extractall()
|
||||
|
||||
dir = "apps/com.psa.mym.mypeugeot"
|
||||
os.chdir(dir + "/sp")
|
||||
|
||||
# get client id/secret
|
||||
psa_pref = "com.psa.mym.mypeugeot_preferences.xml"
|
||||
root = ET.parse(psa_pref).getroot()
|
||||
client_secret = getxmlvalue(root, "CEA_CLIENT_SECRET")
|
||||
client_id = getxmlvalue(root, "CEA_CLIENT_ID")
|
||||
|
||||
#get customer id
|
||||
remote_info_file = "BASIC_AUTH_CVS.xml"
|
||||
root = ET.parse(remote_info_file).getroot()
|
||||
customer_id_enc = getxmlvalue(root, "CRYPTED_CUSTOMER_ID")
|
||||
customer_id = base64.b64decode(customer_id_enc).decode('utf-8')
|
||||
|
||||
#get remote token
|
||||
root = ET.parse("HUTokenManager.xml").getroot()
|
||||
remote_enc = root[0].text
|
||||
remote_refresh_token = json.loads(base64.b64decode(remote_enc))["refresh_token"]
|
||||
|
||||
|
||||
|
||||
client_email = input("mypeugeot email: ")
|
||||
client_paswword = input("mypeugeot password: ")
|
||||
client_realm = input("What is the car api realm : clientsB2CPeugeot, clientsB2CDS, clientsB2COpel, clientsB2CVauxhall\n")
|
||||
|
||||
Reference in New Issue
Block a user