FORUMS

XDA Picks: Best Apps of the Week (Apr 17 – 24)

Apps are at the front and center of any smartphone experience, and with over a … more

Glimpse Notifications: Easier Lockscreen Notifications

Lollipop brought a revamp to the lockscreen, taking away custom widgets but … more

What Are the Best Looking Apps on Android?

As more developers are updating their apps with Material Design elements, we’re … more

Cyngn Explained: Who’s Cyanogen, What’s Cyanogen OS?

While Cyanogen, Inc has been the source of many headlines lately, there … more
Post Reply Subscribe to Thread Email Thread

[Q] ADB Push and internal storage

3rd September 2014, 01:53 PM |#1  
OP Junior Member
Thanks Meter: 2
 
More
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, 01:56 PM |#2  
Recognized Contributor
Thanks Meter: 1,311
 
More
/data/media
3rd September 2014, 04:23 PM |#3  
OP Junior Member
Thanks Meter: 2
 
More
Sorry
The media dir is blank. I used the command as ADB push ROM.zip /sdcard
3rd September 2014, 04:33 PM |#4  
jd1639's Avatar
XDA: ASSIST
Recognized Contributor
Minnetonka, MN
Thanks Meter: 4,547
 
Donate to Me
More
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, 05:17 PM |#5  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 16,951
 
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, 09:40 PM |#6  
OP Junior Member
Thanks Meter: 2
 
More
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, 09:43 PM |#7  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 16,951
 
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, 09:46 PM |#8  
OP Junior Member
Thanks Meter: 2
 
More
You're right. There are no permissions to configure in TWRP file explorer.

Should I switch to CWM?
3rd September 2014, 09:51 PM |#9  
rootSU's Avatar
Senior Member
Flag Oxenhope, West Yorkshire, UK
Thanks Meter: 16,951
 
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


Top Threads in Nexus 5 Q&A, Help & Troubleshooting by ThreadRank