Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] ADB Push and internal storage

OP thenighthawk

3rd September 2014, 02:53 PM   |  #1  
OP Junior Member
Thanks Meter: 2
 
14 posts
Join Date:Joined: Sep 2014
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.
3rd September 2014, 02:56 PM   |  #2  
Recognized Contributor
Thanks Meter: 1,290
 
3,206 posts
Join Date:Joined: Aug 2012
More
/data/media
3rd September 2014, 05:23 PM   |  #3  
OP Junior Member
Thanks Meter: 2
 
14 posts
Join Date:Joined: Sep 2014
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
3rd September 2014, 05:33 PM   |  #4  
jd1639's Avatar
Recognized Contributor
Minnetonka, MN
Thanks Meter: 3,990
 
11,382 posts
Join Date:Joined: Sep 2012
Quote:
Originally Posted by thenighthawk

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
3rd September 2014, 06:17 PM   |  #5  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,896
 
25,121 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by thenighthawk

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
3rd September 2014, 10:40 PM   |  #6  
OP Junior Member
Thanks Meter: 2
 
14 posts
Join Date:Joined: Sep 2014
Quote:
Originally Posted by rootSU

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.
3rd September 2014, 10:43 PM   |  #7  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,896
 
25,121 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by thenighthawk

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
3rd September 2014, 10:46 PM   |  #8  
OP Junior Member
Thanks Meter: 2
 
14 posts
Join Date:Joined: Sep 2014
You're right. There are no permissions to configure in TWRP file explorer.

Should I switch to CWM?
3rd September 2014, 10:51 PM   |  #9  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 13,896
 
25,121 posts
Join Date:Joined: Aug 2010
More
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes