Introduction
The purpose of this article is to guide the user on how to install apps in the H200 using the "adb" command line.
If you do not have the Android SDK platform-tools installed yet please follow this article.
Install the apk file on H200
- Copy your apk file to the platform-tools folder
- Identify the H200 IP address
- Inside the platform-tools folder run the following command in step 4
-
adb connect <H200 IP>
adb -e install <app.apk>
The app is now installed successfully in your H200.
Here are some other useful commands related to this topic including install, uninstall, and update:
== App install == adb -e install path/to/app.apk -d - directs command to the only connected USB device... -e - directs command to the only running emulator... -s <serial number> ... -p <product name or path> ... The flag you decide to use has to come before the actual adb command: adb devices | tail -n +2 | cut -sf 1 | xargs -IX adb -s X install -r com.myAppPackage // Install the given app on all connected devices. == Uninstalling app from device == adb uninstall com.myAppPackage adb uninstall <app .apk name> adb uninstall -k <app .apk name> -> "Uninstall .apk withour deleting data" adb shell pm uninstall com.example.MyApp adb shell pm clear [package] // Deletes all data associated with a package. adb devices | tail -n +2 | cut -sf 1 | xargs -IX adb -s X uninstall com.myAppPackage //Uninstall the given app from all connected devices == Update app == adb install -r yourApp.apk // -r means re-install the app and keep its data on the device. adb install –k <.apk file path on computer>
Comments
0 comments
Please sign in to leave a comment.