Skip to content

Commit 8acbebc

Browse files
authored
Merge pull request HackTricks-wiki#866 from itachi-cracker/master
Added how to merge splited APKs
2 parents d7c8eaf + b57b2f4 commit 8acbebc

File tree

1 file changed

+10
-1
lines changed
  • mobile-pentesting/android-app-pentesting

1 file changed

+10
-1
lines changed

mobile-pentesting/android-app-pentesting/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,16 @@ com.android.insecurebankv2
6262
adb shell pm path com.android.insecurebankv2
6363
package:/data/app/com.android.insecurebankv2-Jnf8pNgwy3QA_U5f-n_4jQ==/base.apk
6464

65-
adb pull /data/app/com.android.insecurebankv2- Jnf8pNgwy3QA_U5f-n_4jQ==/base.apk
65+
adb pull /data/app/com.android.insecurebankv2-Jnf8pNgwy3QA_U5f-n_4jQ==/base.apk
66+
```
67+
* Merge all splits and base apks with [APKEditor](https://github.com/REAndroid/APKEditor):
68+
```bash
69+
mkdir splits
70+
adb shell pm path com.android.insecurebankv2 | cut -d ':' -f 1 | xargs -n1 -i adb pull {} splits
71+
java -jar ../APKEditor.jar m -i splits/ -o merged.apk
72+
73+
# after merging, you will need to align and sign the apk, personally, I like to use the uberapksigner
74+
java -jar uber-apk-signer.jar -a merged.apk --allowResign -o merged_signed
6675
```
6776

6877
## Static Analysis

0 commit comments

Comments
 (0)