From e28709bd8c027c101392701325389f25cddf2fe5 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sun, 15 Nov 2020 23:44:55 +0100 Subject: [PATCH] add more info --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 27a3910..cc45cf0 100644 --- a/README.md +++ b/README.md @@ -10,21 +10,29 @@ With this app you will be able to : - control air conditioning - control lights and horn if your vehicle is compatible (mine isn't) -## I. Get all credendtials +## I. Get all credentials +We need to get all credentials from the MyPeugeot app data. To do that we will backup the app. +We will retrieve those information: + - client-id and client-secret for the api + - remote refresh token for the control of the vehicle + 1. Backup MyPeugeot app 1.1 MyPeugeot app doesn't allow backup by default so you need to modify it. 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. 1.2 Uninstall the original app 1.3 Install the modified app - 1.4 Enable developer mode on your android phone + 1.4 Login on the app and start a remote request (start preconditioning for example) to generate remote refresh token - 1.5 enable password for backup in developer option of your android phone (for some smartphone it is mandatory to sucessfuly backup app) + 1.5 Enable developer mode on your android phone - 1.6 backup MyPeugeot app : + 1.6 enable password for backup in developer option of your android phone (for some smartphone it is mandatory to successfully backup app) + + 1.7 backup MyPeugeot app : ``` adb backup -f backup.ab -noapk com.psa.mym.mypeugeot ```