ADB install not working - Android Q&A, Help & Troubleshooting

Hello,
I own a phone(Model Number ZTE BLADE L5 PLUS) with Android 5.1 lollipop. I am trying to push install a normal apk file which doesn't need any special access. Also, my phone has way more storage space than the size of the apk. When I am trying to install the apk, it looks like it works at first with the message
"1 file pushed" with the speed of pushing the apk.
The real problem happens after a split second. It suddenly says "Error: Unknown command 'install'" and a huge list of commands which all starts with "pm" comes out. I have tried multiple times, from rebooting adb and typing in the path of the apk instead of inserting the name, but it all failed, with exactly the same issue every time. I also searched about the "adb install" command missing, but ended up wasting time only(only solutions for "adb" command not found came out)
I installed adb via Android Studio(Android SDK Platform-Tools), along with the platform suitable for Android 5.1. I didn't download the android emulator though. I hope I could get some help.
Thank You

Related

[Q] Sideload Script says no device found?

My Nook Tablet just updated to the dreaded 1.4.1 version which makes sideloading pretty difficult.
I was reading this article which has steps to sideload apps onto the 1.4.1 NT without rooting it, and pointed to downloading this script on the XDA forums which will push the apk onto the plugged in tablet, as long as the apk is in the same folder as the Sideload script files.
So, steps 1 to 5 weren't a real problem but its Step 6 that I'm stuck on.
There is a Sideload BAT script which seemed to run (its disclaimer is that it will only run if it finds an Android device -- which is a clear indication that it could find and recognize that my Nook Tablet is plugged in). It even says C:\Sideload>adb wait-for-device. However, when I try to tell it to install the apk via Command Prompt (I type in: adb install Amazon_Appstore-release.apk ), it returns "error: device not found" .
Just for good measure, I also type in C:\Sideload\adb devices and it returns: List of devices attached .
I'd greatly appreciate if somebody could help me with this--I really have it up a wall and would just like to put this problem to bed. Thanks!
i'm having the same exact problems here! are there any specific drivers to install?
Yep, I was still fairly a noob at this when I first posted but have learned a lot ever since. Here's what you want to do:
(btw, I factory resetted to 1.4.0--you may need to as well):
When it says "no device found", it's corresponding to this command line : adb install whatevernameofapp.apk . I interpreted "no device found" to mean that it does not know what "adb" means in the command.
For it to recognize all "adb" related commands, you have to have the USB drivers installed. Look for tgps_launcher.apk on this link: http://forum.xda-developers.com/showthread.php?t=1354487. That will set you up with having you Nook to accept third party applications + having it on UBS debug mode.
Then, install the drivers (I saw this YouTube walkthrough because it is NOT intuitive and you want to be sure you're doing it right , it's not the way you would traditionally update drivers for a mouse or keyboard; here: http://www.youtube.com/watch?v=ZtGveN7jbzs )
After that, I followed the instructions on this article, made a folder in C:, called it sideload, and also pasted an .apk. Now, when I do the Commant Prompt, it says this: http://img23.imageshack.us/img23/2914/cmdnookadb.jpg . While, the transfer was successful, I haven't been able to see the app on my tablet. Does anyone know where I can find this (data/local wasn't found when I connected the tablet to my PC either, and it wasn't on my SD or so). Is it because I'm still on 1.4.0?
Let me know if you get it working all the way!
I followed all those directions exactly. I had received the No Device Found error. I followed the Youtube directions to add drivers and it seems like I did it correctly. I am seeing the android device on the device manager.
I tried running the script again and got the same error! I'm now stuck!
I had the amazon marketplace already installed and was using it successfully until my nook updated to 1.4.2. I thought I had ES File Explorer downloaded but for some reason I can't find it! So I now I am trying to sideload ES File Explorer this way but it wont work!
0x2080
^ put that in %userprofile%\.android\adb_usb.ini
Can you give me more specific instructions on how to do that?
FYI - I have ver 1.4.2 and I am NOT rooted. I have already enabled unknown sources and downloaded the amazon market. I was installing 3rd party apps fine before the update.
[HOW-TO] Use ADB tool | Android Debug Bridge
You need to revert to stock 1.4.0, there are easier and faster ways to do that now > check development section. Basically you need to have CWM booting from sdcard then flash stock ROMS posted >> Albert and I have posted 1.4.0 stock ROMs.
~ Veronica
Moved To Q&A​

Kindle HDX 7''. Pushing system update files - Android ADB Interface - Bootloop -

Hi guys,
EDIT: See the last posts - I have figured this out, and tried to include helpful information, if you are having this problem too.
Firstly please accept my apologies if this has been answered already. I have searched the forum, and the Internet, and cant find specific instructions, or a guide that I can follow with any success.
I stupidly deleted system files from my Kindle, but now I have purchased a fastboot cable, and I'am able to get it into fastboot mode.
I have correctly installed the ADB Drivers, and the device is now recognized by my Windows 7 Device Manager. It shows 'Android ADB Interface'.
I would guess that I need to flash the entire Kindle, but I'm unsure of how to do this, as I cannot seem to access the device at all. It currently loops when booting, giving me no time to see it as external storage via My Computer.
Please would someone more versed in this, guide me specifically through how to get myself back up and running again? I would be forever greatful.
I have SDK and JDK installed, but do not have the knowledge I need to learn how to use them properly.
Thanks so much in advance.
urbainmenace said:
Hi guys,
Firstly please accept my apologies if this has been answered already. I have searched the forum, and the Internet, and cant find specific instructions, or a guide that I can follow with any success.
I stupidly deleted system files from my Kindle, but now I have purchased a fastboot cable, and I'am able to get it into fastboot mode.
I have correctly installed the ADB Drivers, and the device is now recognized by my Windows 7 Device Manager. It shows 'Android ADB Interface'.
I would guess that I need to flash the entire Kindle, but I'm unsure of how to do this, as I cannot seem to access the device at all. It currently loops when booting, giving me no time to see it as external storage via My Computer.
Please would someone more versed in this, guide me specifically through how to get myself back up and running again? I would be forever greatful.
I have SDK and JDK installed, but do not have the knowledge I need to learn how to use them properly.
Thanks so much in advance.
Click to expand...
Click to collapse
what is the fastboot cable? where can I get it? can a normal usb cable do the job?
goodayoo said:
what is the fastboot cable? where can I get it? can a normal usb cable do the job?
Click to expand...
Click to collapse
You definitely need the fastboot cable to push files through the ADB Interface dude. You can buy one for dirt cheap on EBay. Then all you do is simply plug it into your PC and Kindle, and it should put the Kindle straight into Fastboot mode.
Then you need to install the ADB Drivers for the Kindle.
From there, I'm stuck I'm afraid.
urbainmenace said:
You definitely need the fastboot cable to push files through the ADB Interface dude. You can buy one for dirt cheap on EBay. Then all you do is simply plug it into your PC and Kindle, and it should put the Kindle straight into Fastboot mode.
Then you need to install the ADB Drivers for the Kindle.
From there, I'm stuck I'm afraid.
Click to expand...
Click to collapse
OK,I think I'm gonna get one and give it a try. the only way to fix this brick is in the ADB Interface I'm sure. though I also don't know How to do.
I've finally figured out how to get ADB up and running, and how to start command prompt. I found this link helpful:
developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/05-setting-up-your-kindle-fire-tablet-for-testing
If anyone needs help pushing files through ADB, I recommend that link!
Do the following to detect your Kindle Fire tablet through ADB:
Open a command prompt window.
Change directory to your Android SDK platform-tools directory. - To do this, find out where SDK is installed on your PC. Copy the path.
Type cd in command prompt, then space, then paste the directory path. EG, C:\Users\Administrator\sdk\platform-tools
Hit enter, and the command line will change to read C:\Users\Administrator\sdk\platform-tools.
Run the following commands and confirm that the serial number for your Kindle Fire tablet appears in the list of devices.
adb kill-server
adb start-server
adb devices
Then follow the rest of the guide. I think all you need to to do, is push a system update through, by putting the file in the tools folder of SDK. This should make the device update, and put back any critical system files that you had previously deleted.
Now I'm just having issues with it finding the device, so I'm going to charge the Kindle for a few hours, and then try it again.
:good:
urbainmenace said:
I've finally figured out how to get ADB up and running, and how to start command prompt. I found this link helpful:
developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/05-setting-up-your-kindle-fire-tablet-for-testing
If anyone needs help pushing files through ADB, I recommend that link!
Do the following to detect your Kindle Fire tablet through ADB:
Open a command prompt window.
Change directory to your Android SDK platform-tools directory. - To do this, find out where SDK is installed on your PC. Copy the path.
Type cd in command prompt, then space, then paste the directory path. EG, C:\Users\Administrator\sdk\platform-tools
Hit enter, and the command line will change to read C:\Users\Administrator\sdk\platform-tools.
Run the following commands and confirm that the serial number for your Kindle Fire tablet appears in the list of devices.
adb kill-server
adb start-server
adb devices
Then follow the rest of the guide. I think all you need to to do, is push a system update through, by putting the file in the tools folder of SDK. This should make the device update, and put back any critical system files that you had previously deleted.
Now I'm just having issues with it finding the device, so I'm going to charge the Kindle for a few hours, and then try it again.
:good:
Click to expand...
Click to collapse
good to hear that! I hope you can tell me how to push the system folder into the fire hdx via ADB ,I got a thor-amazon-os-13.3.1.0.zip file.
goodayoo said:
good to hear that! I hope you can tell me how to push the system folder into the fire hdx via ADB ,I got a thor-amazon-os-13.3.1.0.zip file.
Click to expand...
Click to collapse
In command prompt, there is an ADB push command, so I think all you do is type that, then the path of the file.
To list all the commands you can use, change command prompt to your platform-tools folder within SDK, type ADB in command prompt, and it will give you all the options.
You'll need to unzip the update file first I think.
:good:
bootlooped, adb runs some commands
urbainmenace said:
In command prompt, there is an ADB push command, so I think all you do is type that, then the path of the file.
To list all the commands you can use, change command prompt to your platform-tools folder within SDK, type ADB in command prompt, and it will give you all the options.
You'll need to unzip the update file first I think.
:good:
Click to expand...
Click to collapse
Working with the HDX 8.9.
I think I have deleted some of the system files also. I was reloading a safestrap backup and rebooted but the backup had failed to complete. I don't know what may be missing from the system files and would like to push the system files onto the device.
Right now I get a gray kindlefire screen for about 90 seconds, during which I have adb access, then it goes to the color kindlefire screen and asks if I want to Restore to Factory Defaults or reboot. I finally subjected it to the Restore to Factory Defaults, but that just wiped the cache and data partitions, I don't see where it did anything to the system files. It did not change my adb access.
In adb I can push files to some locations but others say: failed to copy ....: Read-only file system.
I cannot run shell commands
# adb shell
soinfo_link_image(linker.cpp:1617): could not load library "/vendor/lib/libNimsWrap.so" needed by "/system/bin/sh"; caused by load_library(linker.cpp:745): library "/vendor/lib/libNimsWrap.so" not foundCANNOT LINK EXECUTABLE
I was working in Windows 8.1 but have switched to Suse Linux but the results are the same so far.
I have the stock system files but I am not sure how to push them to the device, if it can be done, while the device is trying to reboot.
fastboot
I can put the HDX in Fastboot mode with the adb command. But when I try to pass commands to the HDX I get:
< waiting for device >
and I have to Ctrl-c to stop the process.
Do the fastboot commands only work if you have a fastboot cable???
Since you guys are using adb checkout these threads:
http://forum.xda-developers.com/showthread.php?t=2530623 Factory Reset
http://forum.xda-developers.com/showthread.php?t=2636817 [Video Tutorial] GAPPS + Amazon from Cpasjuste
http://forum.xda-developers.com/showthread.php?t=2638241 How to un-boot-loop (another way)
http://forum.xda-developers.com/showthread.php?t=2598577 [TUT/FIX] Fix the Boot Loop on Kindle Fire HDX 7"
This guy may also be able to help, forum member: GSLEON3 Post #16
http://forum.xda-developers.com/showthread.php?t=2580989&page=2

[Q] ADB shell for recording Android 4.4.3 device screen not working

Okay so I was planning on making some YouTube videos of games and apps I like, and that in mind I got a Nexus 5. So I downloaded Android SDK and extracted all the files, installed the right driver for my Nexus 5 etc. At
At first it was hard to get it to work and I had to do lots of stuff I never knew I could, but then I finally got it to work. I manged to get it to work. Then I decided to try it on another account on my computer (not admin). That didn't work, so I went back to the admin account and now that doesnt work either.
When I try "adb shell" in command prompt it will display a message such like this: "error: device not found". Yet I get a usb debugging conformation on my phone.
What should I do?

Motorola Mini

Hello...
I am currently trying to root my sons Moto Mini Android Version 4.4. I have rooted many other devices in the past (Motorola and Samsung) , but this one is kicking my butt here is what I have done. I have downloaded and ran the latest Motorola driver software, I have downloaded and expanded Fastboot+ADB20926.zip, I have downloaded PwnMyMoto-1.4.3-Droid.apk (for Verizon). I have placed the .apk file in the win32 folder in Fastboot+ADB20926. I click on and open Fastboot+ADB20926 and then shift-right click on the win 32 folder, I select "open command window here", within the command window I type adb install -r pwnmymoto-1.4.3-droid.apk. I do get a response saying dameon running then error: device offline, waiting for device... I have the USB debugging checked and made sure it is running... I have rebooted many times my PC and the cell, I have even tried a different pc and I get the same message.
Any help is appreciated
Thanks
raxhunter said:
Hello...
I am currently trying to root my sons Moto Mini Android Version 4.4. I have rooted many other devices in the past (Motorola and Samsung) , but this one is kicking my butt here is what I have done. I have downloaded and ran the latest Motorola driver software, I have downloaded and expanded Fastboot+ADB20926.zip, I have downloaded PwnMyMoto-1.4.3-Droid.apk (for Verizon). I have placed the .apk file in the win32 folder in Fastboot+ADB20926. I click on and open Fastboot+ADB20926 and then shift-right click on the win 32 folder, I select "open command window here", within the command window I type adb install -r pwnmymoto-1.4.3-droid.apk. I do get a response saying dameon running then error: device offline, waiting for device... I have the USB debugging checked and made sure it is running... I have rebooted many times my PC and the cell, I have even tried a different pc and I get the same message.
Any help is appreciated
Thanks
Click to expand...
Click to collapse
Try Towelroot.
www.towelroot.com
Click the Lambda, and install the app. Ignore the warnings, and bypass any AV software. Make it Ra1n. Install SuperSU and RootChecker. If it works, the Superuser binaries should update, and RootChecker will verify root.

Root for HAOQIN H7 PRO

Hi everyone, I recently purchased a tablet on Amazon, which is slowly gaining a lot of fame for its really affordable price .Unfortunately I was unable to find information on the specific rooting procedure for this device. I hope someone knows how to recommend a way to solve the problem, thanks to everyone anyway
PS: I have already tried several OneClickRoot applications like Kingo Root, KingRoot, Framaroot and 360 Root.
Tablet information:
Tablet name : H7 pro
Brand name : Haoqin
Device model : H7_EEA
Android version : 9
Android security patch level : August 5, 2019
Kernel version : 4.4.189
Build number : Winnovo_H7_V1.7_20200406
nubrox99 said:
Hi everyone, I recently purchased a tablet on Amazon, which is slowly gaining a lot
...
Kernel version : 4.4.189
Build number : Winnovo_H7_V1.7_20200406
Click to expand...
Click to collapse
Hi,
Unfortunately I didn't even found the firmware file for your tablet so I doubt someone will be able to root it successfully without those files.
Have a good day
nubrox99 said:
PS: I have already tried several OneClickRoot applications like Kingo Root, KingRoot, Framaroot and 360 Root.
Click to expand...
Click to collapse
My POV: Those so-called One-Click-Rooters all are crap. Most of them are heavily outdated, not applicable on devices with newer versions of Android as with Android 9 GO what is installed on your device. For example KingRoot you tried only may work on devices with Android versions up to version 5 & Framaroot you also tried only may work on device's with Android version less then Pie.
And worst: They may even inject trackers as it's reported in WEB.
In short: You have to root your device's Android manually by yourself, of course only if supported by OEM/Carrier. To verify this boot into device's Recovery and look for option "apply update from adb".
If NOT present then simply stop further reading.
How-To:
In Android's Settings->Developer options enable "USB debugging"
Install ADB-driver on your computer and make it systemwide accessible, means add its location to PATH environment variable and re-boot computer
Download SuperSU Pro
Rename the downloaded ZIP-file to update.zip and move it to folder where ADB-driver is housed
Make sure your Android is charged over 60%
Connect your Android device with computer via USB-cable
On computer open command prompt: [Win]+[R], input cmd and press Enter-key
Run commands - one by one
Code:
adb devices
adb reboot recovery
Don't close command prompt window!
In Android's Recovery menu select option " apply update from adb" and confirm by pressing power button
On computer run command
Code:
adb sideload update.zip
The zip.file will be sideloaded and written in your Android. The process will take quite a long time, so please enjoy yourself with something during the period. When it completes, you can see something like "Install from ADB complete" on the screen.
As last step on computer run command
Code:
adb reboot
Close command prompt window
You also may delete file update.zip: it's no longer needed
I hope I've made it clear to you.
jwoegerbauer said:
Code:
adb sideload update.zip
Click to expand...
Click to collapse
Hi jwoegerbauer , thank you very much for your timely and detailed reply, sorry if I did not answer immediately.I tried with your suggestions, but when I do this step, it gives me an unrecognized device error (in fact the adb devices command give me an empty list) .Checking on google, I noticed that it is a driver problem and then the phone is not recognized in recovery mode but, always on google I was unable to find a guide to solve the problem. On the android developer site I downloaded a file zip called "usb-driver", but when I update the drivers and set this folder as a directory it gives me this error: "The specified folder does not contain a software driver compatible with the device. if there is a driver in the folder, make sure it is designed to work with windows for x64 systems "
I hope it is not my mistake or that it is something resolvable anyway, I wait and trust in your further clarification if possible
@nubrox99
The driver package usb_driver_r12_windows.zip you downloaded isn't the expected one, it's only meant to be explicitely used with Google devices. Typically the USB-driver gets downloaded from OEM's/Carrier's website. If not provided by them, then the Universal ADB Driver should get installed.

Categories

Resources