As title states. i recently broke the screen on my galaxy s 2 and i cant access the internal storage.
first of all the phone has the latest cwm recovery and latest nightly. when i connect the phone to the computer i cant access the sd card or the internal storage because its password protected and opens via the media device transfer. so i heard u had to do it via adb in the recovery/
i have tried this method https://plus.google.com/112476065271141473049/posts/BDghkbfpHEp
but it says that adb is unable to connect for backup. i do have the latest ADB as well.
i also tried manually pulling from adb with these " adb pull /sdcard/ C:\sdcard-backup\ " but nothing happens. says that its generating a file list but stays there forever.
my question is how can i go about removing my pictures from this phone with broken screen?
is there a cm nightly that anyone knows of that doesnt use the MTP ?
pretty much what i would like to be able to do is flash new rom and connect to pc and be able to extract my internal storage files, or find an alternate way of removing files.i have also tried a nandroid backup, but that didnt save my internal files, only data.
any help is appreciated.
also tried using this tool but couldnt really figure it out. thanks.
http://anddisa.tk/
You could try to use the A.R.T. to do a backup of the UMS partition (/sdcard) and then loop mount the resulting img-file. First you need to be sure that the recovery mode is started and your device is recognized, i.e.
Code:
art.sh -devices
should list your device connected to your pc. If this is the case, you can try to do a backup of your sdcard-partition, i.e.
Code:
art.sh -backup -i -bd /tmp -tsf yyyy-MM-dd-hh-mm UMS
Be sure to have enough space on the partition / device you are writing your backup file, because it will be have around 12GB.
If all went well, you will find a file named UMS.img which is an image backup of your phones /sdcard partition. Now you can mount loop this file to read / extract the files you want, i.e.
Code:
mount -o loop UMS.img /mnt
Now an
Code:
ls -l /mnt
should give you a file listing of the root directory of the /sdcard partition.
bootleg16 said:
As title states. i recently broke the screen on my galaxy s 2 and i cant access the internal storage.
first of all the phone has the latest cwm recovery and latest nightly. when i connect the phone to the computer i cant access the sd card or the internal storage because its password protected and opens via the media device transfer. so i heard u had to do it via adb in the recovery/
i have tried this method https://plus.google.com/112476065271141473049/posts/BDghkbfpHEp
but it says that adb is unable to connect for backup. i do have the latest ADB as well.
i also tried manually pulling from adb with these " adb pull /sdcard/ C:\sdcard-backup\ " but nothing happens. says that its generating a file list but stays there forever.
my question is how can i go about removing my pictures from this phone with broken screen?
is there a cm nightly that anyone knows of that doesnt use the MTP ?
pretty much what i would like to be able to do is flash new rom and connect to pc and be able to extract my internal storage files, or find an alternate way of removing files.i have also tried a nandroid backup, but that didnt save my internal files, only data.
any help is appreciated.
also tried using this tool but couldnt really figure it out. thanks.
http://anddisa.tk/
Click to expand...
Click to collapse
AndDiSa said:
You could try to use the A.R.T. to do a backup of the UMS partition (/sdcard) and then loop mount the resulting img-file. First you need to be sure that the recovery mode is started and your device is recognized, i.e.
Code:
art.sh -devices
should list your device connected to your pc. If this is the case, you can try to do a backup of your sdcard-partition, i.e.
Code:
art.sh -backup -i -bd /tmp -tsf yyyy-MM-dd-hh-mm UMS
Be sure to have enough space on the partition / device you are writing your backup file, because it will be have around 12GB.
If all went well, you will find a file named UMS.img which is an image backup of your phones /sdcard partition. Now you can mount loop this file to read / extract the files you want, i.e.
Code:
mount -o loop UMS.img /mnt
Now an
Code:
ls -l /mnt
should give you a file listing of the root directory of the /sdcard partition.
Click to expand...
Click to collapse
I am having trouble setting up ART on windows. I downloaded the cmd script but don't know exactly what to do via cmd.
The cmd takes the same parameters as the .sh. To get it working, the easiest way is to have the latest android development tools installed and have the tools / platform tools directory within your path. Otherwise you need to define the path to the tools directory (-td parameter). Probably it will help you, too, to have a look at the sources, which are located on Github.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
The cmd takes the same parameters as the .sh. To get it working, the easiest way is to have the latest android development tools installed and have the tools / platform tools directory within your path. Otherwise you need to define the path to the tools directory (-td parameter). Probably it will help you, too, to have a look at the sources, which are located on Github.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
attached is an image.
im not sure how to define the path but i always manually set it by cd C:\android-sdk\platform-tools
then from here i can use adb. but im still having issues with your script. everytime i run it it just opens up the notepad document
environment variable set and still this
i went ahead and redownloaded the art.cmd file and ran it from the browser and i got this for the first time and then it automatically closes the cmd screen
The first images you attached shows me, that you do not have java within your path (but you have installed as a plugin of your browser, that s the reason why it's working from there). Add the java/bin directory to your path: on the cmd window enter the following:
PATH=%PATH%;<path to java.exe>
(otherwise within the PATH environment variable within the windows system settings). After that the art.cmd should work from the cmd line, too.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
The first images you attached shows me, that you do not have java within your path (but you have installed as a plugin of your browser, that s the reason why it's working from there). Add the java/bin directory to your path: on the cmd window enter the following:
PATH=%PATH%;<path to java.exe>
(otherwise within the PATH environment variable within the windows system settings). After that the art.cmd should work from the cmd line, too.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
i applied the path as showed on screenshot, but i get either an incorrect syntax or is i click the batch file the command prompt window opens but closes rapidly. i managed to capture it.
bootleg16 said:
i applied the path as showed on screenshot, but i get either an incorrect syntax or is i click the batch file the command prompt window opens but closes rapidly. i managed to capture it.
Click to expand...
Click to collapse
the first error i get is unable to access jar file. jar file is in same directory as adb, along with the .sh and .cmd
bootleg16 said:
the first error i get is unable to access jar file. jar file is in same directory as adb, along with the .sh and .cmd
Click to expand...
Click to collapse
this is what i got now
bootleg16 said:
this is what i got now
Click to expand...
Click to collapse
Use it without the wrapper, i.e. "java -jar art.jar" is perfect. The wrapper was only ment to easy the call.
The Nullpointer-Exception within the "-info" call could be due to the fact, that you have a SGH-T989 and not a i9100. In that case there is a chance, that the parameters which are to be read do not exist / cannot be read.
The call before, i.e. where you tried to do the backup, has a wrong parameter: "<C:\...>" is not a correct path, you need at least remove the "<" and ">".
i cant figure out why i keep getting this error.
what is
/tmp ?
'/tmp' is a directory where you would like to get written the backup file(s), I.e.
java -jar art.jar -backup -i -bd <backup-dir> ...
Probably it would help you to have a look at the sources? You can find them on my GitHub repository.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
'/tmp' is a directory where you would like to get written the backup file(s), I.e.
java -jar art.jar -backup -i -bd <backup-dir> ...
Probably it would help you to have a look at the sources? You can find them on my GitHub repository.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Did u take a look at the screenshot.? My backup directory is c:android-sdk.
If u see the argument I changed i get a different error. Why? And yes I did lookbat your sources, with only Unix examples.
But why did you put /tmp as an additional parameter?
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
But why did you put /tmp as an additional parameter?
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
See I did it with the /tmp and without also. When I did it without it said invaded partition name for UMS. As seen on screenshot.
as seen on this screen shot, doing this,
java -jar art.jar -backup -i -bd C:\android-sdk\ -tsf yyyy-MM-dd-hh-mm
i get nothing. its just returns. what can be wrong.
if i add UMS to the end, it says that unknown partition.
adding UMS based on what u wrote earlier.
art.sh -backup -i -bd /tmp -tsf yyyy-MM-dd-hh-mm UMS
Could you first try to do a
java -jar art.jar -info
Which should give you some detailed information of the device and, if possible, a list of available partitions.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
Could you first try to do a
java -jar art.jar -info
Which should give you some detailed information of the device and, if possible, a list of available partitions.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
i get a nullpointer exception
what can be causing this?
does it matter if use "cd C:\javalocation" ?
Related
Hi guys I want to install keyboardmanager by installing from /sys/app try as I may i just can't move any apk into the root sys folder. Have read write permission in the folder but after paste or copy request the file remains on the sd. Can copy files from sd to /.
Have searched and searched but can't find out why I can move files to this path. I need access as would like to remove some stock apps also.
Rooted with evoke and am running a desire with cyanogen 6.1.0 stable and clockwork mod recovery 2.5.0.7
Any help would be much appreciated.
Q&ASent from my GT-P1000 using XDA App
Are you S-OFF?
If not you do not truly have RW access, just the appearance of it in File Explorer.
Try booting into recovery and using adb to move it, or go through the steps to S-OFF.
Try copying it to /system/app/
Not /sys/app/...wrong place.
Mercianary: I think he used sys as short for system.
To answer the question. The desire is nandlocked so even with root you can't write to system while it is booted. You need to hack the phone on bootloader level (get s-off) to gain this write access.
@cwakerly From what i understand, you are trying to install an apk from your sd card to /system/app while the phone is on and running? As suggested above, you cannot do this via a File Explorer app unless you have full root to the /system partition (S-OFF). Try it via ADB instead and follow these steps:
Perform a Nandroid backup first just incase anything were to go wrong.
1. You need to have USB Debugging enabled, HTC Sync and Android SDK installed (http://developer.android.com/sdk/index.html).
2. To get adb running on the Windows OS platform, for example, download & extract the Android SDK to the following path: C:\android-sdk-windows.
3. Turn on your phone and connect it to your PC via a USB port, and then boot into Recovery mode..
4. Instead of placing the apk onto the SD card, place it into C:\android-sdk-windows\tools in Windows.
5. Open command prompt and type cd C:\android-sdk-windows\tools, hit enter.
6. Type adb shell mount /system, then hit enter, to mount the /system partition.
7. Type adb push keyboardmanager.apk /system/app, hit enter.
8. Type adb reboot.
Let me know if that is what you meant and if it works for you.
Hey guys thanks so much for suggestions will try them and let you know if it works
Sent from my HTC Desire using XDA App
hi i have installed sdk, htc sync and java plug ins.
using command line when i try to run adb shell mount /system command i get the following error message:
'adb' is not recognised as an internal or external command. operable program or batch file.
any ideas what's happing here?
Have you navigated to the tools folder of the sdk?
Mine is C:\android-sdk-windows\tools
Yours maybe something similar....
Sent from my HTC Desire using XDA App
cwakerly said:
hi i have installed sdk, htc sync and java plug ins.
using command line when i try to run adb shell mount /system command i get the following error message:
'adb' is not recognised as an internal or external command. operable program or batch file.
any ideas what's happing here?
Click to expand...
Click to collapse
try it in smaller chunks, type adb shell, you will then get a # sign, now type mount /system
hi have navigated to tools folder of sdk, still the same error message. when i type adb shell i get the same error!
If you have latest sdk you need the "other" tools folder. I'm not at my pc so I'm not sure the exact name.
Sent from my HTC Desire using Tapatalk
if you haven't got it done yet use this update.zip
open the zip then put the apk you want to install in /system/app then zip it back up. it wont be signed so turn off signature verification in recovery before you flash it.
Hurray using the update zip worked!! Thank you everyone for your help on this
Have a great Christmas.
Craig
Sent from my HTC Desire using XDA App
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Omnicide said:
So everything gone fine till I try to push the framework-res.apk to my phone.
adb push framework-rez.apk /system/framework/
'adb' is not a recongnized as an internal or external command,
know I understand what that means but I installed SDK manager and had no cmd in there so I just used Command Prompt. If that is all of my problem how to I get SDK cmd? It didnt install when I installed the problem.
Click to expand...
Click to collapse
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
yoft1 said:
It's not enough to just install SDK manager, you also have to install ADB if you want to interface with your phone through your computer. You shouldn't have to go through SDK manager to use ADB once you have it installed, it should work straight through windows command prompt.
http://www.addictivetips.com/mobile/what-is-adb-and-how-to-install-it-android/
That will walk you through installing adb. Good luck.
Click to expand...
Click to collapse
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Omnicide said:
Well thank you that helped me get pass that issue. Now how do I change the permissions on my phones framework-res.apk?
The error I have now is
"failed to copy 'framework-res.apk' to '/system/framework/framework-res.apl': Read-only file system."
I can't seem to figure a way around this.
Click to expand...
Click to collapse
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
yoft1 said:
I had that issue too, how I bypass it is to boot to CWM, go to "mounts and storage", then mount /system (and /data if that's relevant to what you're pushing). Others have used a line of code to mount the system from the PC end, but I find this easier to do through the phone.
Click to expand...
Click to collapse
Thank you that did the trick
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
Go to the system32 folder on your c drive and copy cmd from there to your tools folder in the sdk.
Now when you want to push, put the files you want to push in the tools folder and then open up the cmd that you placed in that folder, then run the push command.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Omnicide said:
Thanks ill give that a try in morning. That would be a better then how im doing it now my stuff is in all random folder and locations to get it to work.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Master&Slave™ said:
That's actually how I do it so it should work for you. Good luck
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
It worked for the file being in that folder and all. But I still have to do it in recovery and unmount system. I still get the read-only error
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
So, my problem is that I have recently unlocked the bootloader on my HTC One X using my Mac and the very helpful guide provided on this YouTube link
http://youtu.be/8Y3VbFJIwWU
No problems with the process in that video and I've gotten to the end with the phone bootloader definitely.
My problem is that I've then attempted to install a custom ROM from the SD card. Again, this seems to work fine, but upon reboot I'm immediately hit with a continual pop-up 'unfortunately, the process com.android.phone has stopped' with the only option to press ok. It loops continuously.
I suspect I may have to reinstall the ROM onto the SD card, but this is my problem. I cannot get my phone's USB access to work on my Mac as I am stuck with the above pop-up preventing me. I can't seem to access it via Recovery either.
Can I use fastboot to 'flash' over the *.img or *.zip of a new ROM to get it onto the SD card? Stuck with a phone I can't use otherwise. :crying:
Thanks.
Mount usb storage from the recovery.
Sent from my HTC One X using xda app-developers app
or while in recovery type
Code:
adb push rom.zip sdcard/
Thanks for that, athulele . :good:
I have tried that. On a Mac, for USB access requires that I use software called 'Android File Transfer' rather than the way Windows would do it. That software doesn't kick in via Recovery mounting. So, I'm going to need a different approach.
Since I have Windows installed via Bootcamp, I think I'll try to connect the phone up via Windows and see whether I can access the SD card via USB using that route.
Any other help is most welcome.
you do not need that file, just boot into recovery and type the command above... it's the easiest way
matt95 said:
you do not need that file, just boot into recovery and type the command above... it's the easiest way
Click to expand...
Click to collapse
Having booted into recovery, using Terminal on my Mac and typing
adb push sentinelrom_v4_30_endeavoru.zip sdcard/
gives the following message:
-bash: adb: command not found
Am I doing something wrong here?
well, have you got the sdk installed on your mac?
matt95 said:
well, have you got the sdk installed on your mac?
Click to expand...
Click to collapse
I've now downloaded the sdk for mac. It's a adt bundle folder with many files inside. I've installed 'Eclipse' but I'm still getting the same message as before from the Terminal. What else do I need to do here?
Im not into macs .... but don't you need to enter sudo commands before the adb/fastboot commands ?
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
matt95 said:
no, he only needs to navigate to the adb directory with the terminal and then type
Code:
./adb push rom.zip sdcard/
Click to expand...
Click to collapse
Hi matt95
I'm grateful for the help you are giving me here. I've found the adb file within the following downloaded directory path:
act-bundle-mac-x86_64-20130219 - sdk - platform-tools - adb
When I changed directory in Terminal to this path and ensured the specific rom.zip was also in that path, Terminal is still giving me this:
./adb push sentinelrom_v4_30_endeavoru.zip sdcard/
-bash: ./adb: No such file or directory
I must be doing something not right. Please help further.
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
matt95 said:
that's strange, could you provide me the platform-tools folder and the rom.zip folder? i'll write down what you exactly have to write...
Click to expand...
Click to collapse
Folder contents as described.
Thanks.
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
matt95 said:
ok now i need their directory, for ex. /User/yourusernane/Docuemnts/ecc ecc......
Click to expand...
Click to collapse
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
and
/Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools/sentinelrom_v4_30_endeavoru
Thanks.
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
matt95 said:
ok, now open the therminal ans type
Code:
cd /Users/srafferty73/Downloads/adt-bundle-mac-x86_64-20130219/sdk/platform-tools
./adb push (drag the rom.zip into terminal) sdcard/
now it should work
Click to expand...
Click to collapse
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
fingerbob said:
Slowly making progress. Latest Terminal message after doing that reads 'error: device not found'.
I am using ClockworMod Recovery v5.8.2.7 and have clicked on 'mount /sdcard'. I have tried to 'mount USB storage' but am getting an error message which reads 'E: Unable to open ums lunfile (No such file or directory).'
What should I do next?
Thanks.
Click to expand...
Click to collapse
Flash a newer recovery.
Mr Hofs said:
Flash a newer recovery.
Click to expand...
Click to collapse
I managed to find a copy of ClockworkMod Recovery v5.8.4.0 and flashed this as advised. This has somehow enabled the USB facility on my phone to start working again and I can replace the ROM I've downloaded onto it.
I just tried reinstalling the ROM I had again, but once again got the original message stated in my first post. I'm about to now try a different ROM to see if that makes any difference.
:good:
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