Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,679 Members 40,214 Now Online
XDA Developers Android and Mobile Development Forum

[Q] ADB Push and internal storage

Tip us?
 
thenighthawk
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Sep 2014
Question [Q] ADB Push and internal storage

Hi all,

I accidentally deleted internal storage while I was trying to flash paranoid android on my Nexus 5. I then managed to push the ROM.zip back into my phone's internal storage using ADB Push. I installed the ROM but after the ROM installed, the zip file is no longer in the internal storage. What happened to the zip package? Where did it go?

Thanks for your help in advance.
 
Aerowinder
Old
#2  
Recognized Contributor
Thanks Meter 1,231
Posts: 3,106
Join Date: Aug 2012
/data/media
 

Google Firmware: Google
USB Drivers: Google | Mirror
ADB+ADB Drivers: 19.0.2 (4.4.4) + Koush Universal ADB Drivers

TWRP Official: hammerhead | flo
TWRP Holofied: hammerhead | flo

Gapps: jajb

Superuser: Chainfire | Mirror
 
thenighthawk
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Sep 2014
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
 
jd1639
Old
#4  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3,349
Posts: 9,842
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by thenighthawk View Post
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
Use

adb rom.zip /sdcard/

Sent from my Nexus 5 using XDA Free mobile app
 
rootSU
Old
#5  
rootSU's Avatar
Senior Member
Thanks Meter 11,415
Posts: 22,448
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by thenighthawk View Post
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
It isn't blank. You're just using a file explorer without permissions to view it.

If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
thenighthawk
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Sep 2014
Quote:
Originally Posted by rootSU View Post
It isn't blank. You're just using a file explorer without permissions to view it.

If you used CWM recovery when you adb pushed, its as already state by @Aerowinder... . In /data/media because CWM recovery still mounts /sdcard as /data/media instead of what android 4.2+ mounts it as which is /data/media/0

Sent from my Nexus 5 using Tapatalk
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.
 
rootSU
Old
#7  
rootSU's Avatar
Senior Member
Thanks Meter 11,415
Posts: 22,448
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by thenighthawk View Post
I used TWRP v2.6.3
I will look in TWRP Mount settings if I can configure the permissions.
What permissions?

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.
 
thenighthawk
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Sep 2014
You're right. There are no permissions to configure in TWRP file explorer.

Should I switch to CWM?
 
rootSU
Old
#9  
rootSU's Avatar
Senior Member
Thanks Meter 11,415
Posts: 22,448
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Just boot into android and use a proper file explorer with root access.

Or you can use adb and Linux command line to

mount /data
ls /data/media

To see if the file is there.

Also I know with Philz recovery when you formatted /sdcard, the 0 folder from /data/media/0 was gone leaving only /data/media (until a commit was made to recreate 0) so its possible TWRP does the same making /sdcard temporarily mount to /data/media

Anyway not sure where it is if its not there

No don't change to CWM

Sent from my Nexus 5 using Tapatalk
Want to root/unroot? All important guides and info threads are contained within the "Sticky Roll-up" thread in General. Click the link below to get there!

**Sticky Roll-up: All Guides snd Info Threads linked here**



Philz Touch Recovery with passkey secure lock

I do NOT reply to support queries over PM.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes