How do I install an APK without any internet connection? - android

My phone's antenna died so it can't connect to the internet by cellular or wi-fi but I still want to use the phone for portable entertainment. I need a way to install an app strictly through the USB connection.
Unfortunately, every article I've looked at for how to install APKs without Google Play tells me to start by getting a file manager from Google Play.

You have two way can do that:
Note: you have to connect phone with PC througth USB cable before.
Copy any apk to phone from your PC/latop and open file browser in phone to open apk which you want to install
Use can use ADB command line tool:
Type command: adb install [apk_name_with_full_path]
Ex: adb install C:\your_package.apk

You can download APKs on your PC and install it using following command:
adb install -r [apk path]
Note: make sure that you have adb utility in your PC and in your phone developer options is switched on with USB Debugging enabled.
Enable USB Debugging

Related

How to ADB USB Debugging Mode without USB Cable

The USB cable interface of my phone is slightly broken, only supporting charging now. I cannot connect it to the PC to share files over MTP or USB Dedubugging with ADB.
Because USB Dedebugging is not working, I cannot uninstall some system apps with PC-side command "adb pm uninstsall --user 0 package_names". Is there other ways to uninstall them without connecting to PC (not rooted device).
I also tried to install JuiceSSH in the phone, and suppose to run "pm uninstall ..", but the command failed for not authorized. I am not sure whether only ADB USB Debugging mode can allow users to execute that command correctly?
My main goal is just to uninstall those system apps on the un-rooted device. I am pretty sure that ADB mode should work if my USB cable was not broken. Are there alternative ways to archive this goal (e.g. to enable ADB shell bypass USB cable, or some command in JuiceSSH to allow me to execute "pm uninstall --user 0 ..")?
sadly, no, without root you can't execute this command. if you could then any app could uninstall any other, thats very insecure for user
you have to connect to your PC at least once for enabling ADB wireless connection (check out how)
starting Android 11 there is and ADB Wireless debug mode built-in, it doesn't need any cable connection, even initial. but still limited to currently newest OS version...

Android - Install apk to mobile through wifi network

I am new in android and working an android application now.
Here i am asking an option to install apk on my mobile while building the application.
I need to install apk to mobile through wifi, Is it possible, if yes the how?
Please see my scenario,
1-I need to build the project from the android studio
2-apk automatically need to install on mobile
3-mobile and system should be connected to a single wifi network
step 1:- go to the folder of your sdk/platform-tools and open cmd at this path
step 2:- type adb tcpip 5555
step 3:- find the IP address of your android device with adb shell netcfg
step 4:- type adb connect DEVICE_IP_ADDRESS:5555
Note:- Keep your device connected with your pc using datacable while
this process. After this you can disconnect your device.
After this process you can debug or run your app wirelessly via wifi.

Connection the Android device to adb without drivers

I have a device of local company. The support says that they have no imformation about drivers of my device. Windows 7 automatically found drivers and it can see sd-card of device. But ADB can't see the one. Is there any idea to solve my problem?
Yes if you have an adb supported device, you can first turn the USB debugging on and if windows wont recognize the device you need to install an ADB driver which is provided either by Google USB driver package which comes with android sdk or you can download the adb driver installer from http://adbdriver.com/downloads/
For connecting device in window 7 we require USB driver of your android device.
But If you are using Linux operating system in this case no need of USB driver.
install moborobo in your pc and connect the phone. moborobo will install a suitable driver to your phone. it Worked with my local phone.
try this way.
first kill adb server by below command on command prompt.
adb kill-server
Now again start adb server with following command on command prommpt.
adb start-server
Then try to see you device using below commnad
adb devices

MK802 - Android 4.0 Mini PC - not listed with 'adb devices' command - how to install my app

I recently purchased the MK802; Android 4.0 Mini PC. However, I am unable to install the apps I developed. I have tried using the 'adb devices' command but the device does not appear on the list. I have also downloaded the Andorid 4.0 SDK (the version used in th MK802) on my computer but still no luck. I also made sure to enable 'USB Debugging' and 'Unknown Sources' in the device settings.
I realize I can load my app from an SD card (but I would have to buy one); or that I can download my app onto the device by making it available on a server or the android marketplace but these options seem like too much effort just to install an app.
Any suggestions or recommendations would be greatly appreciated.
Simply adb over USB doesn't work (for now)
The only thing that you can do is: USE WIRELESS ADB!
This widget can help you on enabling it.
Once you got everything up and running do an
adb connect xxx.xxx.xxx.xxx
using as IP the ip address of the MK802. Once connected run an
adb shell
as usual to access the remote shell. Still the system is in heavy development (at least allwinner told so)
EDIT: Using a shorter USB cable could solve the issue!
I managed to connect mine to ADB, even using the included USB cable.
Connect you computer to the dongle's OTG port (it's marked on the dongle).
Go into settings and enabled ADB debugging.
And finally (here's the trick) enable the special Connect to PC setting.
Google for the drivers. Installing the Android SDK will not ensure that your device gets detected.
Connect device
Install drivers downloaded from internet
Disconnect & reconnect
ADB !
In all likelihood, this will solve things for you.

Install app without put it on Android Market

How can i install my application from eclipse to my mobile (Galaxy) without put it on Android Market?
Thank you!
I don't use eclipse, but once you build your app and sign it into an 'apk' you can simply connect the device via USB to your development machine and install it via a command line (terminal) window with the command: > adb install my_app.apk See the Android Docs for all the ADB options. It's worth your time to learn about ADB
you can connect your phone wuth usb cable and run it. http://developer.android.com/guide/developing/device.html
you can find your file.apk and install it on your device from your workspace > Solution name >bin
if you don't want to generate apk file manually,
Settings > Applications > Development > USB Debugging set it on.
Connect your phone via USB cable.
Run your app.

Categories

Resources