Skip to content

About

Use Fastboot, ADB, and Shell without root.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

48 stars

Watchers

1 watching

Forks

Version

System Support

  • Android 17 - Android 7.0
  • Android TV

Mode

  • ROOT
  • Shell
  • adb
    • pair
    • connect
    • disconnect
    • shell
    • --shell-exit
    • root
    • unroot
    • install
    • uninstall
    • push
    • pull
    • reboot
    • usb
    • mdns
    • abb
    • sideload
  • fastboot
    • fastbootd
      • flash
      • boot
      • getvar
      • oem
      • reboot
      • erase
      • format
      • set active
  • 900e
    • usb
      • maxPower
      • isSelfPowered
  • 9008
  • MTK Preloader
  • MTK BROM

su

  • KernelSU、SukiSU
# 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

DocumentsProvider

  • You don't need to use MT Manager to inject a file provider for your APK to create the corresponding local storage directory

Signature

  • 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

Verify signature

  • 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
  • Verify Debug APK
$ ./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

Acknowledgements

About

Use Fastboot, ADB, and Shell without root.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

48 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages