Appears adb is missing from the /system/bin directory. Does anyone have a way to get around this issue? I need to have adb working in Terminal Emulator. I have copied the file from my old Note 4 and placed it on my sdcard. I have navigated to that folder in the emulator but it won't run due to the $PATH variable.
Any insight is appreciated.
Related
Hello mates,
I am trying to Copy the BUSYBOX file to my /data/local/bin directory. But when i use the 'push' command it say adb: command not found. Hereby i have attached the image of my terminal.
Would you please help me in copying my files to the directory "/data/bin/local"
Also, where should i put the files which i need to copy. Eg. Since i need to copy 'busybox' to the /data/local/bin/, should i put the busybox in my Desktop, i.e. /home/android/platform-tools directory?
You should've not run the command from within the adb shell. Just go to the tools folder and type "adb push busybox data/local/bin" ofcourse without the ""
The busybox should be indeed be present in the folder from witch you run adb, in your case the "tool" folder.
Good luck!
Erwin
Sent from my HTC Wildfire using XDA App
@ErwinP.
Thanks for rectifying this mistake.
It worked.
You're welcome! I had to learn it the hard way myself, so I'm happy ik I can help someone! ;-)
ok well i've been using adb for a while now via windows on our desktop, my laptop however runs ubuntu. but i've run into a problem.....I CAN'T OPEN ADB IN LINUX! using terminal i navigate to the proper location then i initiate adb shell but i get an error saying the command doesn't exist...what am i doing wrong?
tried ./adb ?
if you haven't added ADB to path it won't be recognized as a command, then you'd have to execute it using ./adb
Hi, adb
is located in <android-sdk-folder>/platform-tools folder. You could add it into your $PATH variable in .bashrc . Than it's ready to use from anywhere
I'm running a script to modify settings.db (found in the application forum) so that I can wirelessly tether and use the GPS on my phone while running Google Maps on the KF.
The script starts like this:
adb shell rm /data/local/tmp/*
adb push zergRush /data/local/tmp
adb shell chmod 755 /data/local/tmp/zergRush
adb shell ./data/local/tmp/zergRush
Click to expand...
Click to collapse
and works fine.
But I'm having problems running the script that others are having no problem with at this point in the script.
adb pull /data/data/com.android.providers.settings/databases/settings.db
copy settings.db settings.bak
sqlite3 settings.db "update secure set value=1 where name='mock_location';"
adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
adb reboot
Click to expand...
Click to collapse
The script runs into permission errors. I have all the files in the same directory as adb in the platform-tools folder. adb is communicating with the device with the adb devices command. I run the .bat file from the folder while in a DOS command shell. And I get this error
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull /data/data/com.android.providers.settings/databases/settings.db
failed to copy '/data/data/com.android.providers.settings/databases/settings.db' to './settings.db': Permission denied
C:\Program Files (x86)\Android\android-sdk\platform-tools>copy settings.db settings.bak
The system cannot find the file specified.
C:\Program Files (x86)\Android\android-sdk\platform-tools>sqlite3 settings.db "update secure set value=1 where name='mock_location';"
Error: no such table: secure
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
failed to copy 'settings.db' to '/data/data/com.android.providers.settings/databases/settings.db': Permission denied
Click to expand...
Click to collapse
Any idea what's going on?
i assume you'r at the $ prompt - if you type in su the prompt should change to #
perhaps a hint in the right direction ...
zergrush does'nt work anymore since 6.2.1 and burritoroot
I am not at any command prompt when running the script. I'm at the Windows prompt, and I just execute the script name?
Confused.
when you type adb or adb shell your mostly at the $ prompt
when you type su the promt usually changes to # - thats root access
i think you have to integrate that in your script ...
I added
adb shell su
to the start of my script, but then it just hangs at the root prompt.
if you have rooted with burritoroot try "adb root"
It says:
adbd cannot run as root in production builds
ok then i think you will have to try it with the su method - maybe "adb su" could work - it's just a try
otherwise i think you will have to write a second unix stile script (ending .sh) to do the stuff and call it from your dos script or run it in the adn shell - but i'm not the unix expert - sorry
i'm running out of time now - wish you much luck with your script !!!
Anyone else please?
Resolved.….
Resolved how? Very curious
Please, how did you solved the problem ???
thanks
would be interested too !
Here's how.
I was so frustrated, didn't seem to be able to achieve root status and use ADB. So, I bought root explorer, went to directory where settings.db file was, and copied it to sdcard folder on the KF. Then brought it over to my PC just over the USB connection (KF was a Windows drive).
In Windows, ran the part of the script that replaces the "0" with a "1". Then copied it back to the sdcard folder on the device, and used root explorer to move it back to its proper directory.
Only one caution. Make sure that you don't change the permissions or ownerships of the file, that they are the same as when you first grabbed it.
Hi there,
I'm looking to put a boot animation on my Nexus 7 without rooting it, similar to this thread: http://forum.xda-developers.com/showthread.php?t=1580642
When I issue the adb command, it thinks for a while and appears to be doing something and then comes back with "failed to copy 'bootanimation.zip' to '/data/local/bootanimation.zip' : Permission denied" The command I'm using is adb push bootanimation.zip /data/local
I've added adb to environment variables and my paths are also correct (bootanimation.zip is in the folder I've navigated to in cmd). I've also tried just putting bootanimation.zip into platform-tools. Is there something that I am missing that will allow me to do this, or is /data/local off limits in the N7?
I probably would've spent less time just rooting the thing, but I am trying to avoid that for now.
Thanks in advance for any insight!
i dont have a non-rooted N7 to test, but u may issue the following commands to see if u can access /data/local
adb shell
cd /data/local
ls
Click to expand...
Click to collapse
see if u get any error msg..
ADB Push/Pull Simple GuideTo Push a single file from PC to Android, in this case a ROM.zip, you must place the ROM.zip inside the same folder as your ADB and Fastboot files. Right click anywhere inside that folder while holding the shift key down to open the cmd prompt and run these commands:
adb devices
adb push ROM.zip /sdcard
To Push multiple files at once using a single command do this:
In your SDK/Platform-tools folder, or whever you have your ADB files, create a folder called "tmp"
Place all the files you want to push into the tmp folder then run this command:
adb devices
adb push tmp /sdcard
--Simple eh?
To Pull a file (In this case a TWRP backup located on the sdcard in a Subfolder of TWRP called BACKUPS) from device to PC or HARDDRIVE.:
Create a folder inside SDKplatform tools or where ever you have your ADB located. I call mine TWRP_Pulls. Inside that folder create a subfolder and give it the name of the backup/File you are pulling. In my case I name the folder by the backups date and numbers.
FOLDER Inside the ADB folder-->TWRP_Pulls
FOLDER Inside TWRP_Pulls-->2016-05-03--17-54-24The full command would look like this:
adb pull /sdcard/TWRP/BACKUPS/ANDROIDSERIAL/2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24
(Where ANDROIDSERIAL is your devices serial number and can be found by entering "adb devices")
Make sure you place a space between the first pull and the /sdcard and another one after the ROM.zip and before the <path to location>
adb pull[Space]/sdcard/TWRP/BACKUPS/ANDROIDSERIAL/
2016-05-03--17-54-24_cm_surnia-userdebug_6.0.1_MHC19Q_bdf9ce04cf[SPACE]C:\Users\Name\Desktop\SDK\platform-tools\TWRP_Pulls\2016-05-03--17-54-24============================================================
CREATED BY: BillyMumphry for educational purposes only. I hope it will help some people as I know I sure fumbled with these Push Pull commands when I was learning.
------------------------------------------------------------------------------------------------------------
* If anyone has any questions or additions fell free to comment or PM or email me:[email protected]