Commit 54f9d20a by Ruslan Baratov Committed by Tianqi Chen

Android RPC README improvements (#3500)

- Fix APK path
- Add ADB install/uninstall instructions
parent f35f2276
...@@ -52,9 +52,25 @@ cd apps/android_rpc ...@@ -52,9 +52,25 @@ cd apps/android_rpc
gradle clean build gradle clean build
``` ```
In `app/build/outputs/apk` you'll find `app-release-unsigned.apk`, use `dev_tools/gen_keystore.sh` to generate a signature and use `dev_tools/sign_apk.sh` to get the signed apk file `app/build/outputs/apk/tvmrpc-release.apk`. In `app/build/outputs/apk` you'll find `app-release-unsigned.apk`, use `dev_tools/gen_keystore.sh` to generate a signature and use `dev_tools/sign_apk.sh` to get the signed apk file `app/build/outputs/apk/release/tvmrpc-release.apk`.
Upload `tvmrpc-release.apk` to your Android device and install it. Upload `tvmrpc-release.apk` to your Android device and install it:
```bash
$ANDROID_HOME/platform-tools/adb install app/build/outputs/apk/release/tvmrpc-release.apk
```
If you see error:
adb: failed to install app/build/outputs/apk/release/tvmrpc-release.apk:
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE:
Package ml.dmlc.tvm.tvmrpc signatures do not match the previously installed version; ignoring!]
Run uninstall first:
```bash
$ANDROID_HOME/platform-tools/adb uninstall ml.dmlc.tvm.tvmrpc
```
### Build with OpenCL ### Build with OpenCL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment