2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

update deodexing instructions

This commit is contained in:
Christopher Roy Bratusek 2018-08-27 19:06:25 +02:00
parent e9a818dbc6
commit e92edea733

View File

@ -68,7 +68,7 @@ adb pull /system/framework framework
cp framework/services.jar services.jar-backup
```
check if `framework/services.jar` contains a `classes.dex` (open as zip file), if not, I can't help you right now, I have **not yet** looked into how to deodexed VDEX files. If it does contain `classes.dex`, continue as follows:
check if `framework/services.jar` contains a `classes.dex` (open as zip file), if so:
```
mkdir services-old
@ -77,7 +77,14 @@ java -jar baksmali.jar x services-old/classes.dex -b framework/core-oj.jar -o se
java -jar smali.jar a services-new -o classes.dex
```
if a new classes.dex was successfully created in the services-new directory, re-package it into the services.jar we previously pulled:
if ***not***
```
java -jar baksmali.jar x framework/oat/[arch]/services.odex -b framework/core-oj.jar -o services-new
java -jar smali.jar a services-new -o classes.dex
```
in any case, if a new classes.dex was successfully created in the services-new directory, re-package it into the services.jar we previously pulled:
```
zip -d framework/services.jar classes.dex