Advertisement
metalx1000

Android Custom Binaries with Magisk

Dec 6th, 2022
1,927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. su
  2. mkdir -p /data/adb/modules/mybin/system/bin
  3. cd /data/adb/modules/mybin/system/bin
  4.  
  5. echo $0
  6. cat >
  7. #!/system/bin/sh
  8. echo Hello World
  9.  
  10. #on desktop
  11. wget "https://busybox.net/downloads/binaries/1.21.1/busybox-armv7l" -O busybox
  12. adb push busybox /sdcard/
  13. adb shell
  14.  
  15. #back on device
  16. su
  17. cd /data/adb/modules/mybin/system/bin
  18. mv /sdcard/busybox .
  19. chmod +x busybox
  20. busybox wget
  21. busybox sh
  22.  
  23. #don't link all with busybox - system won't boot :)
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement