this is a question about ADB - General Questions and Answers

when you upload a file to a device ( adb push) where does it go? I cannot see any of my zip files in any subdirectory via recovery filemanager. So I can't install them obviously.

It should go where you tell adb where to put it... i.e. adb push whatever.zip /storage/emulated/0 should put it in your internal storage (not in a subfolder). With my old Archos tablet I used adb push update.zip /data/media/0 (which is a symlink to internal storage).

Related

Possible to copy .zip file to SD Card's root in Fastboot

Hi all,
I am just going to cut to the chase, I only have HBoot and Fastboot USB modes availalbe on my phone. I need to delete the only file that is on the Fat32 partition of my SD card and then copy another onto it.
I don't have an adapter for the SD card that I can plug into my computer so I'm hoping to accomplish this with Android SDK.
ADB is out of the question because my Magic won't boot up to normal mode.
Any help is appreciated.
Doesn't your hboot allow you to mount the sdcard to your computer? If not you may be able to use fastboot to install an hboot that supports this.
RA's recovery ROM (or I think any new one) will allow you to mount the sdcard. Just use fastboot to load it.
If you can't do that for somereason, and solely want to rely on the sdk, use adb like this:
adb shell
adb mount sdcard
cd sdcard
rm <filename>
exit
adb push <filename> /sdcard/

[Q] Unable to use adb with android SDK under windows (Mount SD Card in Recovery)

I'm trying to run: adb shell, but I keep getting error msg: "adb" is not recognized as file or program.
I have Adnroid SDK r08, lattest from the site, installed on my Windwos XP.
I'm doing this, because I cant mount my SD Card on Clockwork, so I can't proceed Flashing with a new ROM, the phone it self under Android, is recognizing the memory.
It is formated under FAT32 and was re-formated with the phone as a couple of posts suggests.
Could someone help me? Thanks
Before running adb, you should change your working directory to the directory where it is located.
For example, if you've installed android sdk in C:\andsdk, then you should use the following command to use it:
Code:
cd C:\andsdk\tools
adb shell
Done, I can already access to adb shell, but when Im trying to mount the sdcard, it says that its unable to mount.
So when I'm trying to Install ROM from SD Card, at Recovery Menu - Clockwork, it says that its unable to mount the SDCard.
Are you sure that your SD card is inserted properly?
Well the card works perfectly when I'm running Android. No problems at all.
Then, they came up (problems) as soon as I went into Recovery menu (Clockwork) and the phone was rooted perfectly with unrevoked 3.31
Things that I've already tried:
- Format SDCard under Fat32 and re format it with the phone => The SD Card works perfectly under Android but cannot mount on Recovery Menu.
- Format SDCard under Ext3 and 4, same as previous.
Any suggestion are welcome, and thank you so much.
When you ask ADB to list devices ('adb devices'), is yours recognised?
As soon as I got into Recovery Menu:
Ran: adb devices
This is what I got:
List of devices attached:
XXXXXXXXXXX - recovery
Click to expand...
Click to collapse
xxx - corresponds to my phone code
Then I do:
adb shell
mount /sdcard
And I get:
mount: mounting /dev/block/mmcblk0p1 on /sdcard failed: No such file or directory
Any suggestions?
Thank you!
Have you tried mounting the SD card in ADB while booted into Android?
This thread sounds like a similar thing, and might be worth reading.

Help backup data in a semi-brick Samsung kzoom

Hi,
my Samsung Hang up in Boot, recovery & bootloader works fine. I want to save data from internal sd.
Copy the files with twrp file manager or CP to external_sd fails (permission denied) deleting of files succes.
Connection via ADB is not possible only ADB sideload connects.
Infernal SD couldnt mounted AS mtp. Via menue.
Can i Start mtp for sdcard or adb via terminal ?
Other possibillitys? Why is permission denied?
Same errors with original,twrp,cwm and philz recovery.
I don't know why, but after many trys I was able to usw ADB push

How can I push files to internal storage using adb?

how can I push Rom files to internal storage in my Tf300T?
adb push ROM.zip /data/media/0/ ?¿?¿?¿?
adb push ROM.zip /data/local ¿?¿??¿
adb push ROM.zip /sdcard0/ Ç?¿?¿??¿
adb push ROM.zip /sdcard/ ?¿?¿?¿

Question Trying to backup phone with adb, where is sdcard?

Right now I am backing up my files with adb and I have tried the following commands
adb pull /sdcard D:\[backupfolder]
adb pull /sdcard
But they just copy the internal storage folders, while what I want is to copy the stuff in the sdcard. I have tried
/storage/sdcard0
/storage/sdcard
/storage/0
/disk (it is how the folder is called in my phone)
but none of them exist.
Can anyone who has backed up their sd card on a Poco X3 tell me the actual storage path to use in adb? Thanks!
You can't.
Cuz SD card is always some strange digit number.
Try to enter ADB shell and then use the ls command to list all folders.
It should be in Mount or mnt
/sdcard is usually a chain of links that is not followed by ADB.
You need to:
Code:
$ stat /sdcard
And it will tell you where it points to. Then you stat that and keep on going until you stat something that is a real directory.

Categories

Resources