Featured image of post Auto.js APK Installation Command

Auto.js APK Installation Command

For lower versions of Android (pre-Android P), you can use the following command. For higher versions of Android, you need to use the cat command:

For lower versions of Android (pre-Android P), you can directly use the following commands:

1
2
3
|  | shell("pm install /data/local/tmp/test.apk", true)       //   # Install |
| --- | --- |
|  | shell("pm install -r /data/local/tmp/test.apk", true)    //   # Reinstall |

For higher versions of Android, you need to use the cat command:

1
2
3
|  | shell("cat filepath | pm install -S connLength") |
| --- | --- |
|  | 'filepath' refers to the path of the APK file, such as /data/local/tmp/test.apk. 'connLength' represents the size of the file. |
Licensed under CC BY-NC-SA 4.0