Small update on Android hacking:
- I've pasted cxfile explorer to /system/app (mounted file 85515572 as EXT4 in linux with R/W). Operation was successful but installation failed due to error:
"The following update file is invalid 58815568.mnf". Mentioned file seems to be Manifest, and there is an encoded part in the header, probably checksum :/
Moreover file 85515569.smd contains filehash and filehash with RSA:
-----BEGIN SHA256 SW PN 85515572-----
4BiRdiww9bzgOm1gBVNzZZGE687h5MKYLb1X241//T0=
-----END SHA256 SW PN 85515572-----
-----BEGIN sha256WithRSAEncryption SW PN 85515572-----
HMF+hjh4fKaaFvCArzlOareaVKxPkQLFrlAPC2aiYGlvRpp7IhYkQWcs4SzseUA/Qfdm96n7LAMC
NtryzIyRjqmm5jtnO3gqCI+XtkxpCKH2n1zr1lU6iEegZNeBE2ObFJMW7C/GW1e3tJdQj6E/nB7I
8ZMGsEywPhCFeFeB1UBaxoUngsHfNwkpsqSjBr9XK61o7ctFHhWPKtOHcgnEYRgxro0J2UhL5xiQ
Wx3V1+XwOF4PMN14sW0NJiNydtSCLvtX70ZoCJcKFSPDAxOYtkWN8xXskklPur2w3+6Rq1jxbO6C
SCCpyqCXhEE8DDIlTXmtJyrO7CGGe5lYEacCjQ==
-----END sha256WithRSAEncryption SW PN 85515572-----
I've tried to calculate SHA256 for original file, but received different sum, so I'm doing something wrong or this SHA is already salted. Still, considering that sha256 with RSA is checked during the installation, it's a dead end as we don't have private key to sign the hash.
🙁
I've looked around this locked ADB - it's not only a flag in config - there is separate service running - "gm_security". I've also seen in one file that there is whitelist for approved APKs, unfortunately located in /DATA, so I don't have image of this partition and can't confirm it.
Going with "official" way is also useless - we can get GMTool for dev, but we need to register car's
VIN and will be able to ADB only via GM server, car needs to be connected to WiFi and when connections is closed our changes will be reverted (that's what I've understood from GM Dev page).
Now I'll look for some CVEs that could be executed on our headunits, same way Honda Civic was hacked (autohack[.]org) but Honda OS is based on Android 4.1 while we use 5.1.1 so fingers crossed! If I remember correctly our security updates were from 2016 so we have a chance to find something that will work
😉
One more interesting finding:
Boot animations are located in:
84529440\resource\ro\anim\
8 - Vauxhall black
7 - Opel
6 - Vauxhall red
5 - Buick
3 -
GMC
0 -
Cadillac
so swapping folder names should allow us to change the boot animation and there is a chance, that we will pass verification as no new files will be added.