Advertisement
metalx1000

Android Start Termux shell from ADB

Mar 30th, 2017
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/system/bin/sh
  2.  
  3. if [ `whoami` != 'root' ]
  4. then
  5.   echo "You need to be root"
  6.   exit 1
  7. fi
  8.  
  9. export PREFIX='/data/data/com.termux/files/usr'
  10. export HOME='/data/data/com.termux/files/home'
  11. export LD_LIBRARY_PATH='/data/data/com.termux/files/usr/lib'
  12. export PATH="/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH"
  13. export LANG='en_US.UTF-8'
  14. export SHELL='/data/data/com.termux/files/usr/bin/bash'
  15. cd "$HOME"
  16. exec "$SHELL" -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement