Skip to content

skirsten/proot-portable-android-binaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable PRoot Android Binaries

CI

Based on the Termux proot package. By default it uses /tmp as temp directory (which is not available on Android). You need to define the PROOT_TMP_DIR environment variable.

Examples

  • NativeExecutor.java

    • Downloads proot for the correct arch from the links above.

    • Downloads and extracts the latest Alpine Linux rootfs (could be improved).

    • Sets name servers.

    • After that you can run any normal Alpine commands in the chroot.

    • Use like this:

      NativeExecutor executor = new NativeExecutor(context);
      
      if (executor.needLoadProot()) {
          executor.loadProot();
      }
      
      if (executor.needExtractRootfs()) {
          if (executor.needLoadRootfs()) {
              executor.loadRootfs();
          }
          executor.extractRootfs();
      }
      
      if (executor.needSetNameServers()) {
          executor.setNameServers();
      }
      
      // Install some alpine packages...
      executor.exec("apk", "add", "youtube-dl", "ffmpeg");
      // Do other stuff

About

Portable PRoot Android Binaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published