From fecd28783f34d892e4648870a4bb4bc467fceb33 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Sat, 6 Jul 2019 00:41:52 +0300 Subject: [PATCH] Android RPC README improvements - Fix APK path - Add ADB install/uninstall instructions --- apps/android_rpc/README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/android_rpc/README.md b/apps/android_rpc/README.md index 38725917f424..1f2a46a8589c 100644 --- a/apps/android_rpc/README.md +++ b/apps/android_rpc/README.md @@ -52,9 +52,25 @@ cd apps/android_rpc 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