LasterRooker

Android Studio On Android Phone

Jun 18th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.20 KB | None | 0 0
  1. This is a preinstalled debian-linux distro with android studio.You can really create your own applications and many projects from github and others.
  2. Before you install it , disable phantom process killer.Watch from here.
  3.  
  4. https://youtu.be/UxmQSETvAOc
  5.  
  6. echo "killall pulseaudio &>/dev/null" >>~/.zshrc
  7.  
  8. echo "pulseaudio --start --exit-idle-time=-1; pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" >>~/.zshrc
  9.  
  10.  
  11. pkg up -y && pkg i -y x11-repo && pkg i -y proot-distro pulseaudio termux-x11-nightly
  12.  
  13. termux-setup-storage
  14.  
  15. proot-distro restore /sdcard/download/debian.tar.xz
  16.  
  17. Before login to proot,start termux-x11 first.
  18.  
  19. termux-x11 :1
  20.  
  21. Then,open another session & login
  22.  
  23. proot-distro login debian --shared-tmp
  24.  
  25. Then
  26.  
  27. export PULSE_SERVER=127.0.0.1;env DISPLAY=:1 dbus-launch --exit-with-session xfce4-session
  28.  
  29. OR
  30.  
  31. tm-x11
  32.  
  33. If you want to install android-studio manually,use debian or kali.Then install desktop-gui and download android-studio.
  34.  
  35. apt update && apt install -y apt-utils;apt install -y nano dialog xfce4 xfce4-goodies default-jtk
  36.  
  37. #Download Android Studio
  38.  
  39. https://www.androiddevtools.cn/android-studio
  40.  
  41. Then unzip android-studio to ~/
  42.  
  43. Now you can start android-studio
  44.  
  45. bash ~/android-studio/bin/studio.sh
  46.  
  47. #Notic
  48.  
  49. To use Android Studio,You must set Gradle's home or you will get errors
  50.  
  51. Examples
  52.  
  53. export ANDROID_SDK_ROOT=$HOME/android-sdk
  54. export GRADLE_USER_HOME=$HOME/.gradle
  55.  
  56. export ANDROID_SDK_ROOT=/Users/android/android-sdk-linux export PATH=$PATH:$ANDROID_SDK_ROOT/tools
  57.  
  58. #Debian_Android_studio
  59.  
  60. https://www.mediafire.com/file/grzre0zxsrwmxkc/debian.tar.xz/file
  61.  
  62. #Android_SDK
  63.  
  64. https://github.com/AndroidIDEOfficial/androidide-tools/releases/download/sdk/android-sdk.tar.xz
  65.  
  66. #Android_Build_Tools(for_termux)
  67.  
  68. https://github.com/AndroidIDEOfficial/androidide-tools/releases/download/v33.0.3/build-tools-33.0.3-aarch64.tar.xz
  69.  
  70. #Android_Platform_Tools(for_termux)
  71.  
  72. https://github.com/AndroidIDEOfficial/androidide-tools/releases/download/v33.0.3/platform-tools-33.0.3-aarch64.tar.xz
  73.  
  74. #Android_Command_Line_Tools(for_termux)
  75.  
  76.  
  77. https://github.com/AndroidIDEOfficial/androidide-tools/releases/download/sdk/cmdline-tools.tar.xz
  78.  
Add Comment
Please, Sign In to add comment