- Android 17 - Android 7.0
- Android TV
# Flashing non-vab devices
$ su -c cat /sdcard/boot.img > /dev/block/by-name/boot
$ su -c cat /sdcard/init_boot.img > /dev/block/by-name/init_boot
# Adding the -M parameter and using global root permissions to flash can solve the problem of insufficient permissions on most devices.
$ su -M -c cat /sdcard/boot.img > /dev/block/by-name/boot
$ su -M -c cat /sdcard/init_boot.img > /dev/block/by-name/init_boot
# Query the currently active slot before flashing the vab device
$ getprop ro.boot.slot_suffix
# Flash vab device partition _a
$ su -c cat /sdcard/boot.img > /dev/block/by-name/boot_a
$ su -c cat /sdcard/init_boot.img > /dev/block/by-name/init_boot_a
# Flash vab device partition _b
$ su -c cat /sdcard/boot.img > /dev/block/by-name/boot_b
$ su -c cat /sdcard/init_boot.img > /dev/block/by-name/init_boot_b
- You don't need to use MT Manager to inject a file provider for your APK to create the corresponding local storage directory
- Now there are not only sample scripts in the project, but also built APKs, which use signature schemes v2, v3, v3.1, and v3.2 respectively.
- Hope this sample script can help you
- V3.2 signature is only supported by JDK25
- Verify Release APK
$ ./apksigner verify -v --verbose app-release-sign.apk
Verifies
Verified using v1 scheme (JAR signing): false
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): true
Verified using v3.1 scheme (APK Signature Scheme v3.1): true
Verified using v3.2 scheme (APK Signature Scheme v3.2): true
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1
$ ./apksigner verify -v --verbose app-debug-sign.apk
Verifies
Verified using v1 scheme (JAR signing): false
Verified using v2 scheme (APK Signature Scheme v2): true
Verified using v3 scheme (APK Signature Scheme v3): true
Verified using v3.1 scheme (APK Signature Scheme v3.1): true
Verified using v3.2 scheme (APK Signature Scheme v3.2): true
Verified using v4 scheme (APK Signature Scheme v4): false
Verified for SourceStamp: false
Number of signers: 1