My OnePlus 9 Pro is rooted. I tried seeing the protected system files such as those in /data from my computer in the following ways and none of the work. (I can see these files with Root Explorer on the phone).
1) command line using "adb shell", "ls -l", "cd data", and then "ls -l". The first two commands work, but I get "Permission denied" on the last command.
2) The Google application "Android File Transfer" running on my Mac
3) The Mac application "MacDroid"
4) The open source application "OpenMTP"
Alls of these lead to only seeing the files in the simulated SD card. How can I did deep into the Android file system from my computer, while the phone is connected?
Thanks in advance
@tk_xda
Put su -c before the ls command, or open a root shell by running su. You also need to have superuser access for adb enabled to use this command.
tk_xda said:
My OnePlus 9 Pro is rooted. I tried seeing the protected system files such as those in /data from my computer in the following ways and none of the work. (I can see these files with Root Explorer on the phone).
1) command line using "adb shell", "ls -l", "cd data", and then "ls -l". The first two commands work, but I get "Permission denied" on the last command.
2) The Google application "Android File Transfer" running on my Mac
3) The Mac application "MacDroid"
4) The open source application "OpenMTP"
Alls of these lead to only seeing the files in the simulated SD card. How can I did deep into the Android file system from my computer, while the phone is connected?
Thanks in advance
Click to expand...
Click to collapse
Try adb shell then su and acknowledge it on phone.....
DavidxxxD said:
Put su -c before the ls command, or open a root shell by running su. You also need to have superuser access for adb enabled to use this command.
Click to expand...
Click to collapse
TheGhost1951 said:
Try adb shell then su and acknowledge it on phone.....
Click to expand...
Click to collapse
Thanks. Is there any way to get this level of access using the other utilities I named, or is the only way from the computer through adb commands?
@tk_xda
You can also use a terminal app to open a shell locally on the device. Be careful and don't run
Bash:
rm -rf /*
It will make a painful brick of it.
Have fun!
tk_xda said:
computer
Click to expand...
Click to collapse
Do a TWRP backup and open it on the computer with 7zip
(editing system files while the system is ON can lead to crash ...)
loopypalm said:
(editing system files while the system is ON can lead to crash ...)
Click to expand...
Click to collapse
Yes I can confirm.
tk_xda said:
Thanks. Is there any way to get this level of access using the other utilities I named, or is the only way from the computer through adb commands?
Click to expand...
Click to collapse
No, you could use Termux on phone, similar to adb
loopypalm said:
Do a TWRP backup and open it on the computer with 7zip
(editing system files while the system is ON can lead to crash ...)
Click to expand...
Click to collapse
I would want to access a small group of files on the computer. Copying an entire backup from the phone would be cumbersome. Typically, I might like to get nosy about the database tables an app uses to store its data and would want just the data for an app.
I would not be editing system files unless I have a specific informed purpose, but would like to be able to copy any of them to my computer that I choose to examine.
TheGhost1951 said:
No, you could use Termux on phone, similar to adb
Click to expand...
Click to collapse
I have Root Explorer app on the phone and can rummage with that when I desire to rummage into something on the phone. My current workaround when I want a few system protected or app data files is to copy them with the Root Explorer into the simulated SD card, and then get the data from there with the computer. By this post, I was hoping to navigate more directly just by connecting the phone to the computer and copying what I want.
tk_xda said:
I would want to access a small group of files on the computer. Copying an entire backup from the phone would be cumbersome. Typically, I might like to get nosy about the database tables an app uses to store its data and would want just the data for an app.
I would not be editing system files unless I have a specific informed purpose, but would like to be able to copy any of them to my computer that I choose to examine.
I have Root Explorer app on the phone and can rummage with that when I desire to rummage into something on the phone. My current workaround when I want a few system protected or app data files is to copy them with the Root Explorer into the simulated SD card, and then get the data from there with the computer. By this post, I was hoping to navigate more directly just by connecting the phone to the computer and copying what I want.
Click to expand...
Click to collapse
Some things are easy and some are not. It can't be about shortcuts all the time. Sometimes the reward takes some effort!
tk_xda said:
... database tables an app uses to store its data and would want just the data for an app.
Click to expand...
Click to collapse
Even if you found a way to mount "data" it will be encrypted (unless you running an old rom or flashed DFE before ...)
see also this
Related
Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
casual864 said:
Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
Click to expand...
Click to collapse
Well, if you're trying to delete system apps -- you won't be able to delete them from Estrong. I believe Root Explorer will allow you to delete those files, but its a paid app.
I would just advice you to delete whatever apks you don't want from terminal/shell.
Just plug your phone in and open terminal/command prompt and type:
Code:
adb remount
adb shell
cd /system/app
ls -- lists all the apps on your phone, find what you want to remove
rm AppName.apk
rm AppName.odex (not all apks will have odex files), so don't worry if you get an error message
Example:
rm Mail.apk
When you're done, type:
exit
Hope that helps.
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
casual864 said:
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
Click to expand...
Click to collapse
Sure no problem.
I must be an idiot. Everyone keeps saying just type adb shell in a command prompt window. I just get errors saying ADB is not a recognized command. What gives?
It is in the sdk/tools directory.
Got it, I'm in. But now I'm getting read-only file system as I attempt to delete APK's.
Alternately, you can delete apps in one-click with Titanium Backup (which every rooted phone should have, IMO).
adb remount. Got it. Removed a few things I wanted gone after fresh 0.5.3.
Hi,
i have recently bought an HTC desire Z (G2) device, and downloaded a 163MB .zip rom. what do i have to do to install it??
i searched every where and could not find an answer!!
thanks
Look here:
http://forum.xda-developers.com/showthread.php?t=801206
You shall find all answers to your questions there
Razorless said:
Look here:
http://forum.xda-developers.com/showthread.php?t=801206
You shall find all answers to your questions there
Click to expand...
Click to collapse
Flash the ROM via recovery. I realize that's vague but you need clockworkmod recovery and to do that you need to have s-off. And to get s-off is a whole new thing all together because you need perm root
To root it, s-off it and rom flash it, you have to be willing to accept the consequences if you don't read enough and if you make a mistake!
And, that's the key, read everything and keep reading until it makes sense to you. Then follow the instructions to the "T" make sure you know your builds and then it's a leap off faith.......if you don't understand something, ask a question or two. There is all the info that you need right in the threads. Good luck and don't be in a hurry . Happy New Year.
thanks all, i really appreciate your fast response.
actually i just want to enable arabic support on my htc desire z, and i downloaded the arabic files from
http://ardoid.com/?p=189
and installed visionary and done the perm root with su permissions and get a # after typing su in terminal
i copied the zip files to the sd, rebooted and selected recovery, then applied update.zip, the phone rebooted but without any success of arabizing.
my kernel is 2.6.32.21-gd2764ed older according to wiki
http://forum.xda-developers.com/wik...Subsidy_Unlock.2C_SuperCID.2C_and_Radio_S-OFF
my question is, do i need to s off to get the files installed? do i have to remove visionary as a second step with removing rooting?
the status is that my phone has permaroot, and what i understood is that i am a step away from s off using gfree, i downloaded the file to my mac, and copied to the sd card.
i have super user
su
#
i have understood adb, and terminal, and copied the script but resulted with errors, script used
cd /data/local
chmod 777 gfree
./gfree
sync
error result on phone after chmod 777 gfree
unable to chmod gfree:no such file or directory
#
i have copied gfree.zip to sd card via mounting the phone via usb. and then changed the mode to charging mode automatically and enabled usb debugging.
again, i would appreciate your efforts, since this thread is closed;
http://forum.xda-developers.com/showthread.php?t=857390&page=15
Microzift said:
i have understood adb, and terminal, and copied the script but resulted with errors, script used
Click to expand...
Click to collapse
The error you are receiving means you don't actually have gfree on your phone (at least not in the right location). Did you receive any errors from ADB when you pushed the gfree file? Also, be sure you pushed the actual gfree file and not the zip (you need to extract it from the zip first).
Microzift said:
i have copied gfree.zip to sd card via mounting the phone via usb. and then changed the mode to charging mode automatically and enabled usb debugging.
Click to expand...
Click to collapse
Are you saying you tried this as well? Or did you not actually use ADB? If you are trying to accomplish this without ADB, you might want to take a look at this thread for instructions: http://forum.xda-developers.com/showthread.php?t=903152. And again, you will need to use the contents of the zip file, not the zip itself.
ianmcquinn said:
The error you are receiving means you don't actually have gfree on your phone (at least not in the right location). Did you receive any errors from ADB when you pushed the gfree file? Also, be sure you pushed the actual gfree file and not the zip (you need to extract it from the zip first).
Are you saying you tried this as well? Or did you not actually use ADB? If you are trying to accomplish this without ADB, you might want to take a look at this thread for instructions: http://forum.xda-developers.com/showthread.php?t=903152. And again, you will need to use the contents of the zip file, not the zip itself.
Click to expand...
Click to collapse
thanks for your reply, i checked the thread and more questions!
actually i am confused, i do the steps without getting the point of it, i installed astro, visionary 14, terminal emulator on phone, and adb on mac.
i dont know what adb is for, and i kind of understand that its for copying files from sd to phone internal memory? is that right? or does it have other functions,
its also not easy to understand astro, can it copy files from sd to internal memory?
do i have to drag adb to terminal every time for adb to run?
shall i use gfree or gfree_2 on my sd?
does terminal with su be enough or i have to use adb?or copying gfree to sd would be enough via usb mounting? where is data\local?
after my current understanding, i have decided to not use adb, and i have reached this step,after writing this script in the terminal,
got superuser for terminal emulator (ON PHONE)
su
cd /sdcard
chmod 777 the GFREE
./gfree
permission denied!
please let me know if i have misunderstood anything or if i am on the wrong track to s off.
i apologize for the long questions,
thanks again
Microzift said:
i dont know what adb is for, and i kind of understand that its for copying files from sd to phone internal memory? is that right? or does it have other functions,
Click to expand...
Click to collapse
ADB stands for Android Debug Bridge. It allows you to do a number of functions to your phone from your computer. The most common commands are push and pull (copies files on your computer to/from your phone) and shell (starts a shell terminal on your phone---basically the exact same as running the Terminal app on your phone, only you can type all of your commands on your computer instead). It also allows you to do things like install APKs stored on your computer directly to your phone and viewing log files.
Microzift said:
its also not easy to understand astro, can it copy files from sd to internal memory?
Click to expand...
Click to collapse
Astro is simply a file manager for your phone. It allows you to do basic file management (copy, move, delete, create new directories, etc.). Some directories are read-only by default however (rooting the phone will allow you to, among other things, mount these directories as read-write---once rooted, Root Explorer is a popular file manager like Astro that will allow you to manipulate these directories).
Microzift said:
do i have to drag adb to terminal every time for adb to run?
Click to expand...
Click to collapse
No, this is not ADB should be used (it is a command line tool). Check out the various guides on setting up/using ADB.
Microzift said:
shall i use gfree or gfree_2 on my sd?
does terminal with su be enough or i have to use adb?or copying gfree to sd would be enough via usb mounting? where is data\local?
after my current understanding, i have decided to not use adb, and i have reached this step,after writing this script in the terminal,
got superuser for terminal emulator (ON PHONE)
su
cd /sdcard
chmod 777 the GFREE
./gfree
permission denied!
Click to expand...
Click to collapse
See my next post for instructions on rooting without using ADB.
Permanent Root without using ADB
Extract the contents of gfree_temp-root.zip to your SD card (located on the Wiki). Also extract the gfree file from gfree_02.zip to your SD card. Note, you need to extract these files, not simply copy the entire zip to your SD card. Also, if you copied these files to your SD card by mounting your phone over USB, be sure to unmount it again prior to starting the remaining steps (i.e., turn off USB storage). Your SD card should now contain the following files: busybox, gfree, rage, root, su, and Superuser.apk.
Start Terminal on your phone (download from Market if you don't already have one) and type the following commands exactly as shown.
Code:
cp /sdcard/rage /data/local/tmp
cp /sdcard/busybox /data/local/tmp
cp /sdcard/root /data/local/tmp
chmod 755 /data/local/tmp/*
Then run the following command if you need temp root (so not needed if already temp rooted with Visionary). It is recommended that you uninstall or disable Visionary though and use this method however (some people have had problems when using Visionary). If you want to use Visionary for your temp root, skip this step and just right to the permanent root commands further below.
Code:
/data/local/tmp/rage
You should see a message similar to "Forked #### childs." Hit Menu and select Reset Term (the app will close). Launch Terminal again (it may force close). Launch it one more time (you now have temp root).
Now to achieve permanent root, run the following commands:
Code:
cp /sdcard/gfree /data/local
chmod 777 /data/local/gfree
/data/local/gfree -f
sync
Make sure there are no errors from the gfree output.
Lastly, run the following commands (the root script will install Busybox and set up the su apps for you):
Code:
/data/local/tmp/root
sync
If you have no errors, reboot your phone. You should now have permanent root.
ianmcquinn said:
Extract the contents of gfree_temp-root.zip to your SD card (located on the Wiki). Also extract the gfree file from gfree_02.zip to your SD card. Note, you need to extract these files, not simply copy the entire zip to your SD card. Also, if you copied these files to your SD card by mounting your phone over USB, be sure to unmount it again prior to starting the remaining steps (i.e., turn off USB storage). Your SD card should now contain the following files: busybox, gfree, rage, root, su, and Superuser.apk.
Start Terminal on your phone (download from Market if you don't already have one) and type the following commands exactly as shown.
Code:
cp /sdcard/rage /data/local/tmp
cp /sdcard/busybox /data/local/tmp
cp /sdcard/root /data/local/tmp
chmod 755 /data/local/tmp/*
Then run the following command if you need temp root (so not needed if already temp rooted with Visionary). It is recommended that you uninstall or disable Visionary though and use this method however (some people have had problems when using Visionary). If you want to use Visionary for your temp root, skip this step and just right to the permanent root commands further below.
Code:
/data/local/tmp/rage
You should see a message similar to "Forked #### childs." Hit Menu and select Reset Term (the app will close). Launch Terminal again (it may force close). Launch it one more time (you now have temp root).
Now to achieve permanent root, run the following commands:
Code:
cp /sdcard/gfree /data/local
chmod 777 /data/local/gfree
/data/local/gfree -f
sync
Make sure there are no errors from the gfree output.
Lastly, run the following commands (the root script will install Busybox and set up the su apps for you):
Code:
/data/local/tmp/root
sync
If you have no errors, reboot your phone. You should now have permanent root.
Click to expand...
Click to collapse
thanks, i could not find busybox, gfree, rage, root, su, and Superuser.apk on my sd after copying and extracting the zip files, the folders i unzipped did not also have the above files (gfree_temp-root.zip & gfree_02.zip from wiki, i do not have the above busybox etc files) i also kept them in separate folders on sd card; gfree and gfree_verify_v01
i think i have permanent root via visionary, i receive a # after typing su in terminal on phone. so i dont need rage i guess.
and after trying perm root as explained
cp /sdcard/gfree /data/local
i receive
cp: omitting directory '/sdcard/gfree'
where did i go wrong again!
Microzift said:
i think i have permanent root via visionary, i receive a # after typing su in terminal on phone. so i dont need rage i guess.
and after trying perm root as explained
cp /sdcard/gfree /data/local
i receive
cp: omitting directory '/sdcard/gfree'
where did i go wrong again!
Click to expand...
Click to collapse
If "su" is giving you a # prompt after a reboot then you have permanent root, yes.
Possibly a silly question, but you do have an SD card in the phone, right ? And it's mounted on the phone, not on the PC when you're trying these commands ?
steviewevie said:
If "su" is giving you a # prompt after a reboot then you have permanent root, yes.
Possibly a silly question, but you do have an SD card in the phone, right ? And it's mounted on the phone, not on the PC when you're trying these commands ?
Click to expand...
Click to collapse
thanks for asking, and thanks for clarifying the perm root.
regarding the sd, yes i am ok with mounting and charging mode, and i make sure that the phone is always in charge mode when using adb or terminal on the phone automatically when using usb. and only convert to pc mounting mode when i need to copy a file (like gfree or gfree veryfy) to phone sd card.
although i still keep the usb connected to mac in charge mode when i try terminal on phone (and adb is running). i disconnected to try and received the same error.
Microzift said:
thanks for asking, and thanks for clarifying the perm root.
regarding the sd, yes i am ok with mounting and charging mode, and i make sure that the phone is always in charge mode when using adb or terminal on the phone automatically when using usb. and only convert to pc mounting mode when i need to copy a file (like gfree or gfree veryfy) to phone sd card.
although i still keep the usb connected to mac in charge mode when i try terminal on phone (and adb is running). i disconnected to try and received the same error.
Click to expand...
Click to collapse
When you are getting that error with the "cp", try "ls /sdcard" and see if you get a big list of files, which should include whatever you tried to "adb push" there (e.g. gfree).
You don't have to use adb to copy adb to the phone, that's just one way of getting it there. You could mount the SD card from your phone onto your PC and copy it there that way. You just need to get the gfree binary onto your phone somehow, then copy it to /data/local
I just thought - you are running that "cp" command on the phone in Terminal Emulator, right ? Not on your Mac ?
steviewevie said:
When you are getting that error with the "cp", try "ls /sdcard" and see if you get a big list of files, which should include whatever you tried to "adb push" there (e.g. gfree).
You don't have to use adb to copy adb to the phone, that's just one way of getting it there. You could mount the SD card from your phone onto your PC and copy it there that way. You just need to get the gfree binary onto your phone somehow, then copy it to /data/local
I just thought - you are running that "cp" command on the phone in Terminal Emulator, right ? Not on your Mac ?
Click to expand...
Click to collapse
great now i get why i need to mount and copy gfree to phone sd, so that i can copy from sd to internal phone memory using terminal (on phone) or adb on mac.
yes i am running cp on terminal emulator on phone.
after ls /sdcard i receive
/sdcard
#
Microzift said:
thanks, i could not find busybox, gfree, rage, root, su, and Superuser.apk on my sd after copying and extracting the zip files, the folders i unzipped did not also have the above files (gfree_temp-root.zip & gfree_02.zip from wiki, i do not have the above busybox etc files) i also kept them in separate folders on sd card; gfree and gfree_verify_v01
Click to expand...
Click to collapse
Do not keep them in separate folders on the SD card. The files need to be on the root of the SD card in order for the commands I gave you to work.
Microzift said:
great now i get why i need to mount and copy gfree to phone sd, so that i can copy from sd to internal phone memory using terminal (on phone) or adb on mac.
yes i am running cp on terminal emulator on phone.
after ls /sdcard i receive
/sdcard
#
Click to expand...
Click to collapse
That is showing no files in your SD card folder. It sounds like it is actually mounted on your PC when you are running that, rather than being mounted on the phone itself.
steviewevie said:
That is showing no files in your SD card folder. It sounds like it is actually mounted on your PC when you are running that, rather than being mounted on the phone itself.
Click to expand...
Click to collapse
i have disconnected the usb from my pc, and still get the same message.
this is my understanding; mount sd on pc; means i can access the sd as a hard disk via the phones usb cable on my mac desktop.
unmounting; means i gain access of the sd on my phone only?
i found an option on phone, unmount sd card, should i do this every time i use terminal? i think this is for to unplug the sd card from the phone.
how can i get the sd mounted on my phone? i can see the same files via astro on my phone.
i still receive /sdcard
thanks guys, i just rebooted
my desire z is S OFF now.
and installed the recovery
thanks for all of your efforts
What's up XDA?
I've been messing around with my Xperia Play and i successfully got it rooted. My next task is to get all the annoying icons and processes that are running in the background deleted to make my phone run like a champ (Also i just like the clean appearance of only the applications that i use in my menu, perhaps OCD).
With that said i have tried a few different ways to get my system folder writeable but nothing seems to work as I am unable to delete anything in that folder.
My questions are the following:
1) How to delete files out of this folder.
2) Is there a way to do this via computer so i don't have to mess around with an explorer application on my phone.
Thanks for the help thus far everyone!
FoXide- said:
What's up XDA?
I've been messing around with my Xperia Play and i successfully got it rooted. My next task is to get all the annoying icons and processes that are running in the background deleted to make my phone run like a champ (Also i just like the clean appearance of only the applications that i use in my menu, perhaps OCD).
With that said i have tried a few different ways to get my system folder writeable but nothing seems to work as I am unable to delete anything in that folder.
My questions are the following:
1) How to delete files out of this folder.
2) Is there a way to do this via computer so i don't have to mess around with an explorer application on my phone.
Thanks for the help thus far everyone!
Click to expand...
Click to collapse
You can delete system apps with adb. Here are some commands you may find useful:
"adb remount" - This will remount /system/ as R/W.
"ls /system/app/" This will list all the .apk's in /system/app/
"rm /system/app/***.apk" - this will delete the specified .apk file.
Thanks for the help.
I was able to get the abd to list out all the files in the apps folder but when i type adb remount it gives me an error saying "remount failed: Operation not permitted"
Any tips?
FoXide- said:
Thanks for the help.
I was able to get the abd to list out all the files in the apps folder but when i type adb remount it gives me an error saying "remount failed: Operation not permitted"
Any tips?
Click to expand...
Click to collapse
It's because you do not have insecure adb. Download and install this .apk. after install run it, and your device will reboot. You now have insecure adb and can remount /system/. also once installed you can uninstall app
http://loadbalancing.modaco.com/download.php?url=mf/?8qqca688rvbwcfk
You are a boss! I got it to work but i had to use a slightl different command to remove apps "adb shell rm -r /system/app/***.apk"
My last question is seeing as how your location is Manchester, are you going for city or united? =P
FoXide- said:
You are a boss! I got it to work but i had to use a slightl different command to remove apps "adb shell rm -r /system/app/***.apk"
My last question is seeing as how your location is Manchester, are you going for city or united? =P
Click to expand...
Click to collapse
Yeah sorry you have to be logged into shell for the remove command to work
I'm a man utd fan, city don't scare me there just throwing there money about ....... but they will run out just like chelski
Hi,
Using Android SDK, API 16 (JB) on LinuxMint 11 x64. I copied some mp3 files into the GNex GSM by:
Code:
./adb push ~/Music/MyAlarms /sdcard/Ringtones
./adb push ~/Music/MyRintones /sdcard/Ringtones
NOTE: ~/Music/MyAlarms and ~/Music/MyRintones are folders which contains *.mp3 files. The terminal output confirm that all the mp3 were copied successfully, which Iis confirms by
Code:
./adb shell ls /sdcard/Ringtones
However, when I want to customize the ringtones and alarm tones in Android settings, the mp3 above are not recognized. I connected the device to a Windows 7 x64 computer in MPT mode and saw that the Alarms and Ringtones folders are empty.
I then go back to Linux, used adb to delete the mp3 which were previously copied:
Code:
adb shell
rm /sdcard/Alarms/*.mp3
rm /sdcard/Ringtones/*.mp3
Then I reconnect the device to Windows machine, using MTP mode to copy the *.mp3 into Alarms and Ringtones folders. This time they are seen by Android and I can use these ringtones.
Question: what is the reason files copied by adb push is not visible by Android Settings (and when browsing the sdcard content using MTP mode)? Is there anyway to make an adb push equivalent to a file copy using MTP mode?
Answer:: either reboot the device, or install & run the SDRescan app. More details: MTP, External Storage, and Your App
Thanks in advance for any help.
Not sure why the Android settings do not see them, but as far as MTP, it is a flaky interface at best. Do not trust what you see using it, but as you don't know when it was last refreshed. What you see in a file explorer on your device (or via ADB) is correct
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
Not sure why the Android settings do not see them, but as far as MTP, it is a flaky interface at best. Do not trust what you see using it, but as you don't know when it was last refreshed. What you see in a file explorer on your device (or via ADB) is correct
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
This
If you ever need to transfer anything, use adb pull or push. More reliable
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
Definitely, MTP doesn't see the real content of /sdcard. I had created a folder named BOOKS under /sdcard where I stored *.epub
After I did a factory reset and installed ClockworkMod recovery 6.0.10 + CyanogenMod 10, the *.epub files were deleted. However the /sdcard/BOOKS still exists (seen by adb shell ls /sdcard/). While MTP doesn't see the BOOKS folder and some other folders, either created by me or some apps before I flashed CM10.
I wonder if the factory reset or CM10 had changed the visibility or the permission of something that change the files visibility of MTP. I can live with adb push pull but I wonder if it is reliable as I have explained in 1st post. The *.mp3 copied by adb push are not picked up by Android settings.
Do you find a solution to get the files seen by android?
After this worked not I have to use Airdroid, because I don't have Windows and MTP. But Airdroid is not what I want to use.
mfg Elron
ElronMcBong said:
Do you find a solution to get the files seen by android?
After this worked not I have to use Airdroid, because I don't have Windows and MTP. But Airdroid is not what I want to use.
Click to expand...
Click to collapse
Found solution here: MTP, External Storage, and Your App
Short answer: either reboot the device, or install & run the SDRescan app.
2LoT said:
Found solution here:
Short answer: either reboot the device, or install & run the SDRescan app.
Click to expand...
Click to collapse
Perfect! That just made the trick.
2LoT said:
Found solution here: MTP, External Storage, and Your App
Short answer: either reboot the device, or install & run the SDRescan app.
Click to expand...
Click to collapse
exactly, a reboot or rescanning /data/media/ will allow android to find adb pushed files.
edit: 'adb shell am broadcast -W android.intent.action.MEDIA_SEARCH' should also work. link
bk201doesntexist said:
exactly, a reboot or rescanning /data/media/ will allow android to find adb pushed files.
edit: 'adb shell am broadcast -W android.intent.action.MEDIA_SEARCH' should also work.
Click to expand...
Click to collapse
SDRescan works, but not this command. But I would love to do it with adb. Only Problem, I don't understand it. I know shell, but what does the rest do?
I have a Galaxy Nexus and no externel Storage. Could that be the problem?
mfg Chris
Media information is stored centralised, and this command should initialise a search for new media files and refresh the database.
SDrescan does not work, its stuck on "preparing" any other solution?
SDRescan
romdroid. said:
SDrescan does not work, its stuck on "preparing" any other solution?
Click to expand...
Click to collapse
Only to reboot or initialize the scan with adb.
bk201doesntexist said:
exactly, a reboot or rescanning /data/media/ will allow android to find adb pushed files.
edit: 'adb shell am broadcast -W android.intent.action.MEDIA_SEARCH' should also work.
Click to expand...
Click to collapse
A reboot is inconvenient but should work evertime.
mfg Chris
My S4 LCD screen cracked and went dead. I have root access and can adb in see it as an adb device. I also have titanium backup as an app but I hadn't run a backup in a while. I want to be able to either run a titanium backup from adb and pull the backup to a PC (to do so right now requires unlocking screen which i can't do), or extract the /data directory to a PC. I've already pulled the SIM card and put it in a new phone. Any help would be greatly appreciated as I have some data in certain apps that I want to recover badly.
You should be able to pull up a terminal or cmd prompt and simply type something like adb pull storage/sdcard0/Android/data or adb pull /data/data
Sent from my SGH-M919 using XDA Premium 4 mobile app
---------- Post added at 08:01 PM ---------- Previous post was at 08:00 PM ----------
Or get an MHL OTG cable and plug your phone to your tv.
Sent from my SGH-M919 using XDA Premium 4 mobile app
xdapowerapps said:
You should be able to pull up a terminal or cmd prompt and simply type something like adb pull storage/sdcard0/Android/data or adb pull /data/data
Sent from my SGH-M919 using XDA Premium 4 mobile app
---------- Post added at 08:01 PM ---------- Previous post was at 08:00 PM ----------
Or get an MHL OTG cable and plug your phone to your tv.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for the advice. I can get storage/sdcard0/Android/data but this does not pull the same as an adb pull /data/data would. i was also able to pull /system. adb pull /data is not working for some reason, no thoughts why (i.e., it shows 0 files pulled).
re: Android Commander
Launchpad McQuack said:
My S4 LCD screen cracked and went dead. I have root access and can adb in see it as an adb device. I also have titanium backup as an app but I hadn't run a backup in a while. I want to be able to either run a titanium backup from adb and pull the backup to a PC (to do so right now requires unlocking screen which i can't do), or extract the /data directory to a PC. I've already pulled the SIM card and put it in a new phone. Any help would be greatly appreciated as I have some data in certain apps that I want to recover badly.
Click to expand...
Click to collapse
Just download and install "Android Commander" which is a windows utility.
Here is the direct download link for it:
https://docs.google.com/uc?id=0B44Nx1hrRITWOVczc0FzZEt6OFk&export=download
It works just like any other windows explorer but it's made for android and
it has all the adb commands built-in so you won't need to type anything at all.
With that you will be able to access ROOT and copy any files and folders to
an empty folder on your desktop.
The screen does not need to be on in the phone, but if you want root files your
phone needs to be rooted.
It's really excellent and is one of a kind android utility, you
won't need to install anything at all in the phone itself.
Good luck!
Launchpad McQuack said:
Thanks for the advice. I can get storage/sdcard0/Android/data but this does not pull the same as an adb pull /data/data would. i was also able to pull /system. adb pull /data is not working for some reason, no thoughts why (i.e., it shows 0 files pulled).
Click to expand...
Click to collapse
Sounds like it's not mounted. I would recommend using the too Misterjunky mentioned.
Sent from my SGH-M919 using Tapatalk
Misterjunky said:
Just download and install "Android Commander" which is a windows utility.
Here is the direct download link for it:
https://docs.google.com/uc?id=0B44Nx1hrRITWOVczc0FzZEt6OFk&export=download
It works just like any other windows explorer but it's made for android and
it has all the adb commands built-in so you won't need to type anything at all.
With that you will be able to access ROOT and copy any files and folders to
an empty folder on your desktop.
The screen does not need to be on in the phone, but if you want root files your
phone needs to be rooted.
It's really excellent and is one of a kind android utility, you
won't need to install anything at all in the phone itself.
Good luck!
Click to expand...
Click to collapse
Thank you for the suggestion. I installed Android Commander but it is unable to connect. It says "Connected device has status offline and can not be used. Please reboot your device". I did a reboot and it says the same thing. It also has a loading bar that continues to say loading no matter how long I let it run. I don't know if this is because the device connects only as a digital camera (it was the only way to get it to connect to a PC in the beginning) - I can see any image file in windows explorer, including in the root directories. I can see the data/ directories I want in explorer, but I can't see/access the actual files in them via explorer. In explorer, the empty directories are listed under device/Phone/. Is there a way to mount the /Phone directory and then access it, with adb maybe? I've been trying lots of adb protocols and no luck on /data - adb shell ls -R /data gives "opendir failed, Permission denied" and adb root gives "error: device offline". Is there a way to gain permission to this dir (mount?)? Is this because I can't accept the RSA key through the touchscreen? Thanks in advance, I'm a bit clunky with adb.
Launchpad McQuack said:
Thank you for the suggestion. I installed Android Commander but it is unable to connect. It says "Connected device has status offline and can not be used. Please reboot your device". I did a reboot and it says the same thing. It also has a loading bar that continues to say loading no matter how long I let it run. I don't know if this is because the device connects only as a digital camera (it was the only way to get it to connect to a PC in the beginning) - I can see any image file in windows explorer, including in the root directories. I can see the data/ directories I want in explorer, but I can't see/access the actual files in them via explorer. In explorer, the empty directories are listed under device/Phone/. Is there a way to mount the /Phone directory and then access it, with adb maybe? I've been trying lots of adb protocols and no luck on /data - adb shell ls -R /data gives "opendir failed, Permission denied" and adb root gives "error: device offline". Is there a way to gain permission to this dir (mount?)? Is this because I can't accept the RSA key through the touchscreen? Thanks in advance, I'm a bit clunky with adb.
Click to expand...
Click to collapse
Ahhh, yeah, you need to be able to accept the connection. I'd get a cable to hook it up to my TV and transfer over all the important files. This way you can run a full nandroid backup of your phone and restore it afterwards.
Sent from my SGH-M919 using XDA Premium 4 mobile app
xdapowerapps said:
Ahhh, yeah, you need to be able to accept the connection. I'd get a cable to hook it up to my TV and transfer over all the important files. This way you can run a full nandroid backup of your phone and restore it afterwards.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for the suggestion. I have an MHL cable that goes micro-USB to USB (and then I can get USB Male-Male), but how do I hook it up to a TV, run a nandroid, and then pull the nandroid to PC?