Running an executable jar in android

后端 未结 5 1262
北海茫月
北海茫月 2021-02-05 18:26

is it possible to run an executable jar file (command line based) in android? one of my friend told me that it is possible to run executables written in C. Is it possible for ja

5条回答
  •  梦如初夏
    2021-02-05 18:52

    is it possible to run an executable jar file (command line based) in android?

    possible, check "adb shell input" shellscript -> "exec app_process"

    shell@flo:/ $ ls -l /system/bin/input                                          
    -rwxr-xr-x root     shell         203 2015-11-10 01:44 input
    

    https://android.googlesource.com/platform/frameworks/base/+/oreo-release/cmds/input/input

    # Script to start "input" on the device, which has a very rudimentary
    # shell.
    #
    base=/system
    export CLASSPATH=$base/framework/input.jar
    exec app_process $base/bin com.android.commands.input.Input "$@"
    

提交回复
热议问题