i have just android terminal
i dont have adb to install apk.
i dont have double click on apk
and install that application.
so is there any command available using that i can install application on android shell?
Yes, try this:
pm install apk.apk
Related
My native settings app crushing when I start it, how to install the different settings application or from another shell/environment?
You mean same package name but not same app currently installed device?
I think you should install using adb with some option.
Please try,
adb install -r -d [your app].apk
How can I install react-native app on my android device locally, without publishing anything to Play Store. The app was created with create-react-native-app command?
For installing your app locally on mobile, follow these steps
Enable developer mode in mobile.For android refer here
Connect your android phone to your system.
Follow these steps in CMD to enable platform-tools. Note: path may differ cd
C:\Users\YourFolderName\AppData\Local\Android\Sdk\platform-tools
adb devices adb reverse tcp:8081 tcp:8081
4.Once your run adb devices you can see your device in the list.
5.run your app in CMD anf App will get installed in your Mobile and check it out.
Let me know does it worked
use
npm run android
For more information, see this:-
https://github.com/react-community/create-react-native-app#npm-run-android
Is there any way to install htop and atop in my android device? ie for installing atop in my linux pc I can use apt install atop in a terminal. Similarly is there any way to install atop in my adb device?
Install Termux from the play store. Termux brings a complete linux environment and allows you to install linux tools using the "pkg" package manager.
Getting HTOP is as easy as this:
1) Install Termux from Playstore
2) Open Termux
3) type "pkg install htop"
4) type "htop"
Enjoy
Termux works, but it shows only apps rub by the termux session.
You need to chroot in the root of the system:
Run Termux
pkg install tsu
tsudo chroot /
htop
The following has worked for me:
pkg install tsu
tsu chroot /
pkg install htop
htop
Executing "HTop" whenever Termux is started works for me.
alternative to htop to show all system processes you can use top command
from an adb shell as you mentioned
This way of htop helpful in finding actual system performance, Since its running on termux again a Java app will emulate a terminal like prompt there it will install htop. hence its not useful.
I created an android project with the eclipse ADT from the android-bundle, and generated the apk. I downloaded and installed Genymotion with the integrated Oracle Virtualbox on my computer running Windows XP. How to run my application with Genymotion ?
If you have a genymotion emulator running ADB will detect it and give you the option to install it directly on it from eclipse. Another option is to install it through terminal by doing:
adb install myapk.apk
Before using adb from terminal remember to set up ANDROID_HOME, and add ANDROID_HOME/platform-tools to the path. Hope this helps
if you have APK than just Drag and Drop to Genymotion emulator by default it store in
/sdcard/download(its toast location where store file) go to there and manually install your APK
you can also put any file not only APK :)
This is online plugin for eclipse http://plugins.genymotion.com/eclipse
after install it you can use as native emulator.You can find icon in eclipse menu start emulator from it and run project
To deploy an application to a virtual device, use either of the following methods:
Drag and drop the application APK file into the virtual device window.
Run the following command: adb install .apk.
Download and install the application directly from the virtual device
using a web link.
I'm using Eclipse to develop a bunch of Android apps and I need to batch install them, either on the emulator or on an attached device. I'd like to be able to push them all to the device without running them individually in Eclipse.
How can I do that?
try using adb.
adb install -r your/path/to/file.apk
-r is forced install.
You can also create a batch file with number of adb install commands.
You could just push them to the emulator using "adb install fileN.apk" from the command line.