Tool you need:
Open VirtualBox, go to Settings > Network. Under Adapter 1, click Advanced and then Port Forwarding. Create a new rule with Host Port: 5555 and Guest Port: 5555. Click OK to save.
Start Android VM, then open ADB. Enter the follow command:
1) Install .apk app on Android:
On ADB enter command line:
2) Uninstall .apk app on Android:
For example, I want to uninstall F-Droid. The F-Droid's package name is org.fdroid.fdroid So the command line will be adb uninstall org.fdroid.fdroid
Start Android VM, then open ADB. Enter the follow command:
adb connect localhostNow ADB has connected the Android VM. You may install/uninstall with the following commands.
1) Install .apk app on Android:
On ADB enter command line:
adb install <app name.apk>For example, I want to install F-Droid app which is located in my computer's folder path, D:\Downloads The command line will be adb install D:\Downloads\FDroid.apk
2) Uninstall .apk app on Android:
adb uninstall <package name>You can check all installed package name on Android VM in Dev Tools > Package Browser.
For example, I want to uninstall F-Droid. The F-Droid's package name is org.fdroid.fdroid So the command line will be adb uninstall org.fdroid.fdroid
i was quite helpess and confused with no idea how to get this done. i am so glad that this post exists so that i can get the right guidance
ReplyDeleteNow ADB has connected the Android VM. You may install/uninstall with the following commands.
ReplyDelete