Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,458 Members 47,041 Now Online
XDA Developers Android and Mobile Development Forum

ADB issue

Tip us?
 
blackuse
Old
#11  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: May 2014
the adb push works fine in normal run. but none of the command seems to work during recovery.adb commands works fine even in fastboot mode
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	44
Size:	90.8 KB
ID:	2804593  
 
rootSU
Old
#12  
rootSU's Avatar
Senior Member
Thanks Meter 11,377
Posts: 22,403
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by blackuse View Post
the adb push works fine in normal run. but none of the command seems to work during recovery.adb commands works fine even in fastboot mode
What recovery are you using? If you're using cwm, it mounts /sdcard incorrectly as /data/media instead of /data/media/0

Mount data and ls /data/media

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.
 
blackuse
Old
#13  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: May 2014
Quote:
Originally Posted by rootSU View Post
What recovery are you using? If you're using cwm, it mounts /sdcard incorrectly as /data/media instead of /data/media/0

Mount data and ls /data/media

Sent from my Nexus 5 using Tapatalk
YES i'm using CWM . "Mount data and ls /data/media" how do I do that
 
rootSU
Old
#14  
rootSU's Avatar
Senior Member
Thanks Meter 11,377
Posts: 22,403
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by blackuse View Post
YES i'm using CWM . "Mount data and ls /data/media" how do I do that
in recovery, go to "mounts and storage" and press "mount data".

Then in command prompt type
Code:
adb shell
to get into adb shell

Then type

Code:
ls /data/media
Thats LS in lower case and yes, it is case sensitive.

This will list the contents of /data/media - which is the location cwm uses as /sdcard. This hasn't been /sdcard since android 4.1.2 though.... I bet ls lists all those missing files you've been pushing.

This is one reason you should use either Philz or TWRP. Antiquated settings in CWM
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.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
jd1639
Old
#15  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3,342
Posts: 9,803
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by blackuse View Post
YES i'm using CWM . "Mount data and ls /data/media" how do I do that
Instead of push /sdcard use push /data/media

Sent from my Nexus 5 using XDA Free mobile app
The Following User Says Thank You to jd1639 For This Useful Post: [ Click to Expand ]
 
rootSU
Old
#16  
rootSU's Avatar
Senior Member
Thanks Meter 11,377
Posts: 22,403
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by jd1639 View Post
Instead of push /sdcard use push /data/media

Sent from my Nexus 5 using XDA Free mobile app
Thats the same.. push /data/media/0

Although just change recovery from cwm and continue to use /sdcard

Otherwise Nandroid backups will go missing too

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.
The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
 
blackuse
Old
#17  
Junior Member - OP
Thanks Meter 0
Posts: 25
Join Date: May 2014
Quote:
Originally Posted by rootSU View Post
Thats the same.. push /data/media/0

Although just change recovery from cwm and continue to use /sdcard

Otherwise Nandroid backups will go missing too

Sent from my Nexus 5 using Tapatalk
i tried out lots of adb push commands and finally understood "/sdcard/" which is supposed to be "/data/media/0/" is still "/data/media/ in CWM and yes all my CWM nanodroid backups are located in "data/media/CWM". how do i permanently make CWM to use "/data/media/0/" for sdcard

and i assume adb reboot does not work in recovery mode
 
rootSU
Old
#18  
rootSU's Avatar
Senior Member
Thanks Meter 11,377
Posts: 22,403
Join Date: Aug 2010
Location: Oxenhope, West Yorkshire, UK
Quote:
Originally Posted by blackuse View Post
i tried out lots of adb push commands and finally understood "/sdcard/" which is supposed to be "/data/media/0/" is still "/data/media/ in CWM and yes all my CWM nanodroid backups are located in "data/media/CWM". how do i permanently make CWM to use "/data/media/0/" for sdcard

and i assume adb reboot does not work in recovery mode
You can't with cwm. Use philz or twrp though twrp won't be compatible with your existing backups.

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.

The Following User Says Thank You to rootSU For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes