[Q] the command "adb pull " - Android Q&A, Help & Troubleshooting

Hi,
To retrieve a file from my tablet and put it in a folder in my PC
I used the command: adb pull in the command prompt in Windows but it returns the following error: Permission denied
I tried with su but the same
Please what should I do?
Thank you in advance

daed02 said:
Hi,
To retrieve a file from my tablet and put it in a folder in my PC
I used the command: adb pull in the command prompt in Windows but it returns the following error: Permission denied
I tried with su but the same
Please what should I do?
Thank you in advance
Click to expand...
Click to collapse
Try this..
http://forum.xda-developers.com/showthread.php?t=1526322

Related

Guidance on how to manually root - a few questions

I have a few questions on some of these steps:
On the checksum part below, it says to redownload the file if the checksum does not match, does that mean to re push the misc.img and run step three again.
Step 3
This step will gain temp root and flash the custom misc.img. Run:
adb shell
Now the shell should display "$".
Run:
/data/local/psneuter
You will now be kicked out of adb, and adb will restart as root. Let’s confirm the md5 of misc.img:
adb shell
At this point, the shell should display "#".
Run:
/data/local/busybox md5sum /data/local/misc.img
Output should be "c88dd947eb3b36eec90503a3525ae0de." If it’s anything else, re-download the file and try again.
On step 4 below how do I put the file on the phone? Can I just use windows and copy the file to the sd card?
Step 4
Here you will rename the downgrade RUU as PG05IMG.zip and place it on your SD card. Then, run the following command:
Ok in step 3 below, it says if the checksum does not match to delete and re-download. How do I delete the file? Is there a command to do this? I assume re-downloading refers to pushing the file again correct?
Step 6
Please pay attention – this is very important. This step involves a small chance of bricking if you mess up.
To push the eng bootloader:
adb push hbooteng.nb0 /data/local/
adb shell
/data/local/busybox md5sum /data/local/hbooteng.nb0
If the output does not match "6991368ee2deaf182048a3ed9d3c0fcb" exactly, stop, delete it, and re-download it. Otherwise, continue.
to delete in adb you need to use the command "adb shell" and the command in there is "rm /path/to/file" no quotes. This is where being a Linux user helped me out lol. As for moving the file, yes. Move it to SD any way at all that you'd like.
kdb424 said:
to delete in adb you need to use the command "adb shell" and the command in there is "rm /path/to/file" no quotes. This is where being a Linux user helped me out lol. As for moving the file, yes. Move it to SD any way at all that you'd like.
Click to expand...
Click to collapse
Is it "adb shell" one one line and then "rm /path/to/file" on next line or is it all one line like this "adb shell rm /path to file""
Strife21 said:
Is it "adb shell" one one line and then "rm /path/to/file" on next line or is it all one line like this "adb shell rm /path to file""
Click to expand...
Click to collapse
It's all on one line. FYI you only have to adb shell, once. In the tutorial for the root, he has you doing 'adb shell reboot bootloader'. However, you are already in adb shell, at that point. All you need to type is 'reboot bootloader'.

[Q] How to I split a boot.img on my Android phone using Terminal Emulator?

Anyone knows how to split a boot.img file using Terminal Emulator directly on the phone Android system without using a PC? Or is this possible?
There is a "split_bootimg.pl" script in the forums and wiki page but whenever I run this on Terminal Emulator it gives me either "permission denied" or "not found" error... Changing permissions for the files also does not help.
Here's what I did:
1) Copy boot.img and split_bootimg.pl into a temp folder
2) Enter su (Gives me Terminal Emulator has been granted super user permissions...)
3) cd /temp folder
4) enter "./split_bootimg.pl boot.img"
5) Gives error "split_bootimg.pl: permission denied"

Read Only File System

I'm trying to adb push a zip file onto my Prime so I can install the ROM, but adb push always fails, saying that the file system is read only.
What can I do to change this?
Please post full adb command which you are using.
Johnotronz said:
I'm trying to adb push a zip file onto my Prime so I can install the ROM, but adb push always fails, saying that the file system is read only.
What can I do to change this?
Click to expand...
Click to collapse
Send the file to a writable location?
adb push file.ext /sdcard/
or
adb push file.ext /data/local/
I had been using the "adb push file.ext /sdcard/" command, and it returned "Failed to copy....blah: Read-only file system."
This also happens when using "adb push file.ext /data/local"
Try adb push file.ext /mnt/sdcard/
Johnotronz said:
I had been using the "adb push file.ext /sdcard/" command, and it returned "Failed to copy....blah: Read-only file system."
This also happens when using "adb push file.ext /data/local"
Click to expand...
Click to collapse
?
what happens if you type:
Code:
adb remount
First?

Help rooting LG Lucid 4G

Hello,
I am trying to root my LG Lucid 4G with a one-click sort of method. However, it doesn't work. I am getting messages such as
Code:
failed to copy 'su' to 'system/bin/su': Read-only file system
I then opened up ADB, and tried to use the command
Code:
adb remount
, but that just responded with the message
Code:
remount failed: Operation not permitted
Does anyone know how to fix this, so I can root my phone?
Thanks in advance!
shotgunfacelift said:
Hello,
I am trying to root my LG Lucid 4G with a one-click sort of method. However, it doesn't work. I am getting messages such as
Code:
failed to copy 'su' to 'system/bin/su': Read-only file system
I then opened up ADB, and tried to use the command
Code:
adb remount
, but that just responded with the message
Code:
remount failed: Operation not permitted
Does anyone know how to fix this, so I can root my phone?
Thanks in advance!
Click to expand...
Click to collapse
try super su.
adithbalan said:
try super su.
Click to expand...
Click to collapse
By that, do you mean I should type
Code:
super su
into the ADB shell, or do you mean I should download the application for Android?
shotgunfacelift said:
By that, do you mean I should type
Code:
super su
into the ADB shell, or do you mean I should download the application for Android?
Click to expand...
Click to collapse
download the zip from their website and try flashing via system updater.
OR TRY THIS:
Code:
adb shell
su
mount -o remount rw /system
adithbalan said:
download the zip from their website and try flashing via system updater.
OR TRY THIS:
Code:
adb shell
su
mount -o remount rw /system
Click to expand...
Click to collapse
I can get to
Code:
adb shell
properly, but as soon as I type
Code:
su
, it says
Code:
/system/bin/sh: su: not found
shotgunfacelift said:
I can get to
Code:
adb shell
properly, but as soon as I type
Code:
su
, it says
Code:
/system/bin/sh: su: not found
Click to expand...
Click to collapse
try skipping it.
adithbalan said:
try skipping it.
Click to expand...
Click to collapse
It ends up saying
Code:
mount failed: Operation not permitted
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
adithbalan said:
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
Click to expand...
Click to collapse
Thanks, I'll try that.
adithbalan said:
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
Click to expand...
Click to collapse
So I tried it, and after the phone reboots a few times, the command prompt shows this message and then closes immediately:
Code:
Waiting for device to show up again....
Going to copy files to it's place
mount: permission denied (are you root?)
GOTO was unexpected at this time.

[Solved] How to adb pull to any other directory than platform-tools?

Hi there,
The device is rooted.
I tried
Code:
adb pull /dev/block/mmcblk0p43 > /users/wenyuan/desktop/android/43.img
(mmcblk0p43 is userdata partition).
But the command was just stuck there and did not produce any results.
Would it be possible to adb pull partition (ex. userdata) to any other location than under platform-tools directory?
Would it be possible to adb pull partition even to an external disk?
Thanks.
-- Solution for internal disk--
The right code:
Code:
adb pull /dev/block/mmcblk0p43 /users/wenyuan/desktop/android/43.img
Remove ">"
do not use ">" in the command
CXZa said:
do not use ">" in the command
Click to expand...
Click to collapse
Thanks. It worked.
But would it be possible to adb pull a partition to an external disk?
I tried
Code:
adb pull /dev/block/mmcblk0p43 /Untitled/wenyuan/43.img
Untitled being the name of the external hard disk.
It did not work.
it works like this. maybe the external hard disk is not ready. also take care of fat32 file system only accept files < 4gb
if "Untitled" contains whitespaces you must quote path
aIecxs said:
it works like this. maybe the external hard disk is not ready. also take care of fat32 file system only accept files < 4gb
if "Untitled" contains whitespaces you must quote path
Click to expand...
Click to collapse
Given that,
1. in
adb pull /dev/block/mmcblk0p43 /users/wenyuan/desktop/android/43.img,
/users is under Macintosh HD; and
2. "Untitled", as an external hard disk, has the same status as Macintosh HD,
there should be some code indicating the location to "Untitied" hard disk, (ex. cd).
I tried
Code:
adb pull /dev/block/mmcblk0p43 cd /untitled/android/43.img
and it did not work.
type 'adb help' for usage
Code:
device commands:
adb push <local>... <remote>
- copy files/dirs to device
adb pull [-a] <remote>... <local>
- copy files/dirs from device
(-a preserves file timestamp and mode)
cd is cmd to change dir (unrelated to adb), don't invent fantasy usage.
btw "it did not work" is no meaningful error message. I am pretty sure the shell replied with something you can google for...
CXZa said:
do not use ">" in the command
Click to expand...
Click to collapse
Am I right in saying that
">" can not be used in "adb pull" but should be used in "adb shell su" and "adb exec-out", in case of pulling partitions? Or in any other circumstances?
Oh no, adb help and google search were no help.
https://bash.cyberciti.biz/guide/Standard_output
https://www.cyberciti.biz/faq/redirecting-stderr-to-stdout
aIecxs said:
https://bash.cyberciti.biz/guide/Standard_output
https://www.cyberciti.biz/faq/redirecting-stderr-to-stdout
Click to expand...
Click to collapse
Thanks for the links.
But I meant adb help and Google search did not help on how to adb pull device partition directly to an external disk.
refer to post #6
there is only one exact usage for adb pull
Code:
adb pull [-a] <remote>... <local>
where <local> is valid path to any directory on PC (whatever it is)
in case the command failed it will output meaningful error message. search for that error message (or post here)
what else do you expect to know?

Categories

Resources