Update android note
This commit is contained in:
parent
ec46e78628
commit
6730b1e54e
|
@ -8,7 +8,7 @@ https://archive.ph/zDaV6
|
|||
- used during Lutron hacking
|
||||
|
||||
Tools:
|
||||
$ sudo apt install adb apktool openjdk-11-jdk-headless zipalign
|
||||
$ sudo apt install adb apktool openjdk-11-jdk-headless zipalign apksigner
|
||||
$ locate apktool
|
||||
- replace apktool with new version:
|
||||
- https://github.com/iBotPeaches/Apktool/releases
|
||||
|
@ -29,16 +29,23 @@ $ apktool d application.apk -o output/
|
|||
|
||||
Compile:
|
||||
$ apktool b output/ --use-aapt2 -o patched.apk
|
||||
$ zipalign 4 patched.apk patched2.apk
|
||||
|
||||
Sign:
|
||||
- disable verification over USB in developer settings?
|
||||
- the following just once:
|
||||
$ keytool -genkey -v -keystore release.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
|
||||
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release.keystore patched.apk alias_name
|
||||
$ apksigner sign --ks release.keystore patched2.apk
|
||||
|
||||
Install:
|
||||
$ adb install patched.apk
|
||||
$ adb install patched2.apk
|
||||
|
||||
|
||||
Read logs:
|
||||
$ adb logcat -c
|
||||
|
||||
|
||||
Old instructions
|
||||
----------------
|
||||
|
||||
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release.keystore patched.apk alias_name
|
||||
|
|
Loading…
Reference in New Issue
Block a user