This guide is based on this guide by Danila Romanov
Decompiling framework.jar
- Install JADX
- Get a copy of
/system/framework/framework.jarfrom the target device - Unzip the jar file
- Run the JADX CLI on
classes.dex, or open the file in the JADX GUI - Navigate to
android/content/pm/IPackageManager.java - Find the value of
TRANSACTION_setSystemAppInstallState- It should look something like this:
static final int TRANSACTION_setSystemAppInstallState = 136;
- It should look something like this:
Removing the app
Run the ADB command:
adb shell service call package <value> s16 <package> i32 0 i32 0
You should get the result:
Parcel(00000000 00000001 '........')
highghlow