How to run BASH script in my Android?

后端 未结 5 1552

My same BASH script is working in Fedora/CentOS.

But I am testing one Android eee pad transformer. \"e

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 11:09

    You can install Busybox, which provides you with many utilities such as awk, file, etc... and Terminal Emulator.

    1. Create a shell file with #!/system/bin/sh as the first line (shebang)
    2. Now place the completed script under /system/xbin or /system/bin and run it from the Terminal Emulator

    The information is an excerpt from this article : HOW TO RUN SHELL SCRIPTS ON ANDROID DEVICES

提交回复
热议问题