[Q] Broken screen, copy files - Captivate Q&A, Help & Troubleshooting

Hello XDA, here is a brain teaser:
My Cappy screen is broken and I'm not going to replace it at the moment as I got myself a Nexus 4. I would however like to pull my files (mainly Titanium backup files) off of it.
I'm running CM10.1 Stable and DevilKernel 4.2. Also, I'm pretty sure USB debugging was on last time I checked.
Now Iv'e tried pulling the files using ADB, the thing is, there is apparently some kind of permission problem. When I use the Linux shell, it won't give me permission to look inside the /sdcard/ and I don't know what password (if any) to use with "su" (I'm assuming it tries to authorize on the screen, alas - broken screen).
So, any takes on a creative way of pulling the files?
I was thinking of odin/heindall flashable kernel with pre-autorized permissions and USB debugging enabled, anyone knows of something like that?
Thanks in advance

gosha100 said:
Hello XDA, here is a brain teaser:
My Cappy screen is broken and I'm not going to replace it at the moment as I got myself a Nexus 4. I would however like to pull my files (mainly Titanium backup files) off of it.
I'm running CM10.1 Stable and DevilKernel 4.2. Also, I'm pretty sure USB debugging was on last time I checked.
Now Iv'e tried pulling the files using ADB, the thing is, there is apparently some kind of permission problem. When I use the Linux shell, it won't give me permission to look inside the /sdcard/ and I don't know what password (if any) to use with "su" (I'm assuming it tries to authorize on the screen, alas - broken screen).
So, any takes on a creative way of pulling the files?
I was thinking of odin/heindall flashable kernel with pre-autorized permissions and USB debugging enabled, anyone knows of something like that?
Thanks in advance
Click to expand...
Click to collapse
This thread might help you: http://forum.xda-developers.com/showthread.php?t=1573744

Thanks for the reply, however, as I mentioned above, I tried using ADB to copy the files, but it won't recognize anything inside /sdcard/ folder. It seems there is a permission problem with accessing it.

Related

[Q] adb confusion

Hey there xda forums,
so a while ago i bought a galaxy s, and i was pretty happy with it! rooted it, used a lagfix, and now im trying to tweak the framework-res.apk to get a glass status bar + dock.
now i know theres enough tutorials on this, and i know how the adb works, but i cant seem to 'push' my framework-res.apk back onto my phone after i've modified it.
here's what it says
Code:
C:\android-sdk-windows\tools>adb push framework-res.apk /system/framework/
failed to copy 'framework-res.apk' to '/system/framework//framework-res.apk': Permission denied
it seems i am missing some permissions. as i've mentioned, my phone is rooted, so i dont think thats the problem. anyone else having trouble trying to push apk's?
please help me out, id like some more customizing, but i cant seem to get past the 'permission denied'.
i've read a superuser authentication box is supposed to pop up when i keep the phone from going to stand by, but nothing is happening.
when i went to the adb shell and run 'su' i did get the box..
regards,
terraego
bumperdiebump,
cmon someone with a xxjf3 device must have tried adb? i really want to customize my device
I had the same trouble with ADB on my JM1 ROM, in the end I used "Root Explorer" (from the market) to alter the permissions of the system and Framework folders, to give ALL read/write access... had to reboot a few times before the permissions would stick... now adb worked first time
Just install Root Explorer, Long press on the System Folder and select Permission, then make sure ALL boxes are ticked, then browse to the Framework fodler and do the same....

[Q] Reviewing Android Security - MUST be root?

So as a little side project I've tasked myself to review the security features and potential risks to data being stored within the Android OS and I've been using my Captivate as the test rat. Since pretty much everyone with an android device uses Gmail I wanted to focus first on the Gmail app. I know that information for many apps are stored under the /data/data/[app package]/databases directory structure in an SQL Lite *.db file.
That being said, I wanted to inquire with everyone here about being able to access the /data/data directory and all info there-in WITHOUT having to root the device. Im sure there might be some on that but Im just trying to be thorough in my review...any potential thief would obviously just instantly root and delve right in afterward the data but what other potential ways are there to get into that directory, if there are any?
I've been playing around with ADB and from what I can tell that is not a viable path. The only thing I could think of is somehow tricking the ADB daemon into thinking my phone is a development phone which would allow ADB to run as root but haven't found that to be possible.
So in any case, just looking for insight from the more experienced folk as to other avenues of attack against the user data beyond the obvious root method. Thanks very much for any help!
You can run adb shell as root if the phone is in clockworkmod recovery - but if someones going to the trouble of dropping a clockwork update.zip could just as well and as easy drop a root update.zip on the phone.
If someone physically gets a hold of your phone anything tied the google account/s on the phone would have to be considered compromised - as these phones are so easy to root anyway.
I just thought of another thing, if someone were to get a hold of your phone and have access to a computer with odin they could pretty quickly do a system dump (grab every file off your phone) return where you could find it without you ever knowing they got it.
dayv said:
I just thought of another thing, if someone were to get a hold of your phone and have access to a computer with odin they could pretty quickly do a system dump (grab every file off your phone) return where you could find it without you ever knowing they got it.
Click to expand...
Click to collapse
you dont need odin. adb will do it too
Pirateghost said:
you dont need odin. adb will do it too
Click to expand...
Click to collapse
Can you do a system dump in adb without root?
dayv said:
Can you do a system dump in adb without root?
Click to expand...
Click to collapse
yes
adb pull /system
Pirateghost said:
yes
adb pull /system
Click to expand...
Click to collapse
Learn new things every day.
I like this phone allot, but there just is no way to secure it against someone physically gets their hands on it.
Pirateghost said:
yes
adb pull /system
Click to expand...
Click to collapse
Yep thats actually very easy to do however it doesn't contain any critical private data really. I looked through the directories and while there is some interesting information that can be gleaned (e.g. the generic APN configs and other hardware information) there isn't any actual private stuff such as Gmail data, authentication info for apps, etc. That is all contained within the /data/data directory from what I understand.
You CAN get a list of all the packages on the device through /SYSTEM as well as all the APK's of the installed apps but otherwise not much I've found to be worrisome.
I'll have to check out Odin and see what that can offer from a non-root perspective.
Pirateghost said:
yes
adb pull /system
Click to expand...
Click to collapse
But, that is why you don't leave USB debug on all the time - and why there is a warning when you do turn it on.
PIN or pattern lock keep prying eyes out, and protect your phone from ADB, but not if you leave USB debug on. But, like other hardware, if someone has physical access and enough time, they can get to your data.
So now that Im rooted, is there an easy way to write up a script to copy all files in the /data/data and whatever other folders I decide onto my PC?

need help...total noob

I am trying to back up all of my apps using titanium back up, but after running into multiple problems on TBU people have said that i need to enable side loading, i am trying to do that and everything goes well till i need to find settings.db and then i get lost, cuz i can't find that anywhere on my captivate or my laptop. please help me!! if you know of a much easier way to do the whole thing...then please let me know...thank you!!
Th3Nigh7Stalk3r said:
I am trying to back up all of my apps using titanium back up, but after running into multiple problems on TBU people have said that i need to enable side loading, i am trying to do that and everything goes well till i need to find settings.db and then i get lost, cuz i can't find that anywhere on my captivate or my laptop. please help me!! if you know of a much easier way to do the whole thing...then please let me know...thank you!!
Click to expand...
Click to collapse
What program are you using to find it? You need something like root explorer which is a file system available on the market which gives you access to files you can not see with my files. It us not free but is very useful.
Sent from my SAMSUNG-SGH-I897 using XDA App
i am not using any program. i am just connecting my phone to the computer and going into the command prompt...and then it tells me to pull settings.db i can't find it anywhere.
Do you have your phone rooted?
yes i do justmde
To use that command you need adb google it and will tell you how to install. Or you can use super manger from the market its free to get to the file. Be careful if you don't know what your doing you. I would read up om odin. One click and make sure you have the bottom combos just in case.
I am not too familiar with the command approach, but if you have root explorer you can navigate to your dbdata, darabases, com.android.providers.settings. Inside there us the file you are looking for. You can copy and paste it to you're internal sd. Then hook up to your computer and transfer the file to your pc. I believe you have to open some table and change a zero to a one. Save then drag back into your phone. Copy, paste back into the original directory where you found it. Over write, reboot.
Or you may consider a custom rom, all have this enabled, and have additional perks. Just saying, it is only a matter of time.
Sent from my SAMSUNG-SGH-I897 using XDA App
the main point that i wanna do..is i wanna go back to 2.1 and just save all of my apps and the progress in my apps. can somebody please message me or AIM me and walk me through???
I am completely new to this too man. I just rooted and enabled sideloading in about 10 minutes without even connecting my phone to a comp.
I'm not sure if it will work without installing the unleashthebeast thing, but to enable sideloading i just downloaded android terminal emulator from the market, opened it, typed in su, hit enter, then typed "sideloading". phone rebooted and now i can sideload.

Cracked Screen, How to blind copy data to replacement??

I just got my captivate 1 month ago (first android). I rooted the phone and installed Cognition 2.3b6 right when i got it. I have never backed up the phone.
2 days ago the phone dropped from about 18 inches onto the bathroom floor. Cracking the interior of the screen. Origintally i could see the top half, the touchscreen hardly works. Now i can only see a faint blue color when i boot hte phone. It still works, i get alarms and feel it vibrate.
I understand that I might be able to do a nandroid backup (is it possible to do it blind?), but is that the correct thing to do? Will that change the deviceID of my replacement phone from AT&T (insurance replacement).
I would like to get the data backed up and transferred over asap so i can pack the old phone up and ship it off before the holidays.
Thank you guys!
adb pull /sdcard
Some one else might be able to help you with the specifics, but pull the /sdcard data from your phone.
From a phone
what?
I figured i need to probably copy it to the sd card. But from what i understand, some applications rely on DeviceID's and not the actual phone. Ergo, if you do a complete nandroid backup it will also copy over the DeviceID (from what i understand, correct me if i'm wrong).
Or is that something different than what you are suggesting?
Your data is stored in /sdcard. The external sdcard is /sdcard/external_sd for froyo, cant remember file path for 2.1. What else could you be wanting to transfer to the new phone?
From a phone
I've never done it before, I want to be able to transfer all data (ie, installed apps, cached notebooks for evernote, preferences, etc) to the other phone.
I have never done this before on an android phone and don't know the best way to tackle this using a cracked screen (can't even unlock the phone)
I think I can manage to do a nandroid backup ( http://www.youtube.com/watch?v=sEqbjUb4WxM ) but i'm concerned about the device id
Cassetti said:
I've never done it before, I want to be able to transfer all data (ie, installed apps, cached notebooks for evernote, preferences, etc) to the other phone.
I have never done this before on an android phone and don't know the best way to tackle this using a cracked screen (can't even unlock the phone)
I think I can manage to do a nandroid backup ( http://www.youtube.com/watch?v=sEqbjUb4WxM ) but i'm concerned about the device id
Click to expand...
Click to collapse
There are 2 way i can think of.
1- Like mentionned in prior post do a adb pull /sdcard
2- Boot into recovery and try to a backup from there blindly (following online pictures/video of the different menus and pressing the buttons accordingly).
I don't see the big deal about your deviceid. Many users have had a auto generated id with roms. It will be ported with the nandroid. Not sure just how wide spread the use of deviceid is used in apps.
Thanks I was really confused about the whole DeviceID thing. Figured it was best to play it safe.
I'll give it a try, i'm sure i can manage to do a nandroid backup on my phone
I'll keep you posted
There are ways of getting your device id back. First of all theres a market app that can backup the device id on your new phone and restore it back after you restore the backup http://www.appbrain.com/app/android-id-changer/adaptive.cogid Or you could search around the forums and/or google for ways of changind and backing up your device id, there are multiple ways of doing it. And don't forget about backing up your sdcard, like boborone said, do an adb pull /sdcard from the clockworkmod screen (adb works from recovery in case you didn't know).
Hell man, you can adb pull the whole phone if you want.
From a phone
Can you send the link to where i can find out how to do and adp full pull from the pc? The only instructions i'm seeing are for the android sdk (bit confused)
the sdk is downloaded to your pc, and then you run that command from a terminal/command prompt with the phone connected.
kmac1914 said:
the sdk is downloaded to your pc, and then you run that command from a terminal/command prompt with the phone connected.
Click to expand...
Click to collapse
Do i need to have left the phone in USB debugging mode? I believe 3 days before the accident, i turned off USB debugging on purpose (for file transfers)
Check out my Screencast video...It may help you here.
http://forum.xda-developers.com/showthread.php?t=877652
Cassetti said:
Do i need to have left the phone in USB debugging mode? I believe 3 days before the accident, i turned off USB debugging on purpose (for file transfers)
Click to expand...
Click to collapse
I believe you can use adb from recovery screen.
connexion2005 said:
Check out my Screencast video...It may help you here.
http://forum.xda-developers.com/showthread.php?t=877652
Click to expand...
Click to collapse
Thanks, the screencast helped, but i honestly think that 2 days before i did this, I turned off usb debugging (so i could use my phone as a hard drive)
I think that is why whenever i plug in my phone, it vibrates really hard and droid explorer doesn't find any devices. Suggestions?

[Q] Android 4.4.2 - ADB - Shell Commands - Root

Hi All,
Since I am getting nowhere and no replies for my questions, I am going to rephrase them differently here so hopefully someone can jump in and give me a helping hand... (and please forgive if I seem to bombard the forums with questions).
My Note 3 SM-N900A, build KOT49H.N900AUCUCNC2, running 4.4.2. It is having issues with permissions that effectively block the phone from seeing any SD Card, USB, and internal memory space. It won't access any remote resources like internet or Google Play...either
Issues arose after I changed platform.xml. I since then unrooted the phone and uninstalled SuperSU. I can see that these 3 changes were reckless on my part, that I just put the phone into a very bad state that made it very very difficult to recover. I am still banging my head for the blunders but obviously that didn't help fix the phone. :crying:
I would like to know if there is a way to gain access to the phone's system area again to fix the permission issues. Can I use ADB Shell along with USB debugging? If yes, what are the commands I need? Can I somehow send towelroot and SuperSU to the phone via Odin and execute them? The reason I ask this is that I have no way to access any storage area on the phone, and there is no way to go online to download apps. Or can I put the phone into service mode by typing in the *# numbers on the keypad and hopefully fix it there?
Thank you
At this point I'm not even sure if adb would be able to access your memory card to push TowelRoot to it. You might be best off restoring using the stock Odin files, lick your wounds, start over and chalk it up as a learning experience.
http://forum.xda-developers.com/showthread.php?t=2703006
Sent from my AT&T Galaxy Note 3 using Tapatalk®
OK, Something Positive
andygev35 said:
At this point I'm not even sure if adb would be able to access your memory card to push TowelRoot to it. You might be best off restoring using the stock Odin files, lick your wounds, start over and chalk it up as a learning experience.
http://forum.xda-developers.com/showthread.php?t=2703006
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Ah, thanks for replying. I was really worrying about that too.
However, I just installed ADT on my PC and connected to the phone via USB debugging. Using the adb shell ls command, I could see the entire directory structure. I was able to get to the system folder too.
I pulled the platform.xml back and attached to this message. Could you or someone please take a look and let me know if anything is wrong in the file? I made very small changes and reverted them. So it should be same as original, but I am not so sure. Also do you know if the encoding of the file is wrong so that Android couldn't read it?
At this point, it appears all is NOT lost. I just need some of your experts to guide me thru the commands needed to regain the access to my SD card or storage from the phone.
Now, let me bring in another point: Prior to having all this snafu, I granted ES File Explorer root access so that I could overwrite the platform.xml file. I don't know if doing that messed up the system. If it did, what would be the most straight forward way, simplest way to try to get back to normal? Provided now adb seems to be able to access the files and directory.
I know I could try install towelroot again, but would like to see if I can bring the system back to normal operation first.
Thanks
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
vbcomer said:
Ah, thanks for replying. I was really worrying about that too.
However, I just installed ADT on my PC and connected to the phone via USB debugging. Using the adb shell ls command, I could see the entire directory structure. I was able to get to the system folder too.
I pulled the platform.xml back and attached to this message. Could you or someone please take a look and let me know if anything is wrong in the file? I made very small changes and reverted them. So it should be same as original, but I am not so sure. Also do you know if the encoding of the file is wrong so that Android couldn't read it?
At this point, it appears all is NOT lost. I just need some of your experts to guide me thru the commands needed to regain the access to my SD card or storage from the phone.
Now, let me bring in another point: Prior to having all this snafu, I granted ES File Explorer root access so that I could overwrite the platform.xml file. I don't know if doing that messed up the system. If it did, what would be the most straight forward way, simplest way to try to get back to normal? Provided now adb seems to be able to access the files and directory.
I know I could try install towelroot again, but would like to see if I can bring the system back to normal operation first.
Thanks
Click to expand...
Click to collapse
Here's the original stock platform.xml if it helps you.
andygev35 said:
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Edit: instead of using adb push, use "adb install towelroot.apk" (if that's the actual package name). Go through the rooting process, download the ES File Explorer apk to your computer install it using adb. Hopefully if all that works, you'll be able to check and fix any permissions that got messed up with your platform.xml. It should be rw-r-r.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
A Step Forward
andygev35 said:
I may be wrong, but adb being able to see and pull system files is one thing. To get adb to actually modify system files, you'd need to be able to give adb root access. You may however be able to download the TowelRoot apk to your computer, put it in the same directory as adb, then in the command prompt type "adb push towelroot.apk /data/app/" (without quotes). Reboot and see if TowelRoot installed.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
OK. You are right. adb doesn't have write access yet.
I tried this and got success:
C:\AndroidDev\sdk\platform-tools>adb install tr.apk
1767 KB/s (113099 bytes in 0.062s)
pkg: /data/local/tmp/tr.apk
Success
What should I do next? Does it mean the tr.apk has been installed?
Thanks
Update: I saw the Towelroot app in the App Drawer, but after clicking on it and choosing "make it ralr", I got message "Unfortunately, towelroot has stopped."
vbcomer said:
OK. You are right. adb doesn't have write access yet.
I tried this and got success:
C:\AndroidDev\sdk\platform-tools>adb install tr.apk
1767 KB/s (113099 bytes in 0.062s)
pkg: /data/local/tmp/tr.apk
Success
What should I do next? Does it mean the tr.apk has been installed?
Thanks
Click to expand...
Click to collapse
Sounds as though towelroot is now installed. Go to your app drawer and run it.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
andygev35 said:
Sounds as though towelroot is now installed. Go to your app drawer and run it.
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Yeah, it is installed in the App drawer, but running it gave me error "Unfortunately, towelroot has stopped.".
I went ahead and install both ES File Explorer and SuperUser packages. From ES FE, I could look at the /system/ect/permissions/platform.xml and could see that it had a different date, its date is older, 3/15/2014. I think it came with the N900AUCUCNC2 that I flashed with Odin yesterday.
So, it appears the permission come from a different place or source, I would like to know where Android actually sees the permissions. You know, how did it think that it needed to lock down read/write access to storage areas while the /system folder has been replaced.
Thanks
vbcomer said:
Yeah, it is installed in the App drawer, but running it gave me error "Unfortunately, towelroot has stopped.".
I went ahead and install both ES File Explorer and SuperUser packages. From ES FE, I could look at the /system/ect/permissions/platform.xml and could see that it had a different date, its date is older, 3/15/2014. I think it came with the N900AUCUCNC2 that I flashed with Odin yesterday.
So, it appears the permission come from a different place or source, I would like to know where Android actually sees the permissions. You know, how did it think that it needed to lock down read/write access to storage areas while the /system folder has been replaced.
Thanks
Click to expand...
Click to collapse
I'm at the limit of my experience here... Did you do the all in one restore or the 4 file restore?
Sent from my AT&T Galaxy Note 3 using Tapatalk®
andygev35 said:
I'm at the limit of my experience here... Did you do the all in one restore or the 4 file restore?
Sent from my AT&T Galaxy Note 3 using Tapatalk®
Click to expand...
Click to collapse
Thanks for hanging in and helping, you don't know how much I appreciate your time!
I did the all in one first. That didn't help. Then I did it again with the re-partition with PIT file. But that didn't help either. I didn't try the 4 files individually for fear of losing data.
vbcomer said:
Thanks for hanging in and helping, you don't know how much I appreciate your time!
I did the all in one first. That didn't help. Then I did it again with the re-partition with PIT file. But that didn't help either. I didn't try the 4 files individually for fear of losing data.
Click to expand...
Click to collapse
I think you've just about done everything you can do without a complete Odin reinstall and reformat. If adb pull is working for you I suggest pulling the folders you want to save and doing the complete 4 file install with the PIT file as well.
Someone more experienced than I may be able to get you back up without losing your but tbh with the amount of troubleshooting you've done already I think a full Odin reinstall is your best option and will prevent any issues that could stem from this further down the line.
The only thing I can think of with towelroot is that it needs internet access to run were you connected to wifi when you ran it? It's probably not that simple but figured it couldn't hurt to try!
brisinger08 said:
I think you've just about done everything you can do without a complete Odin reinstall and reformat. If adb pull is working for you I suggest pulling the folders you want to save and doing the complete 4 file install with the PIT file as well.
Someone more experienced than I may be able to get you back up without losing your but tbh with the amount of troubleshooting you've done already I think a full Odin reinstall is your best option and will prevent any issues that could stem from this further down the line.
The only thing I can think of with towelroot is that it needs internet access to run were you connected to wifi when you ran it? It's probably not that simple but figured it couldn't hurt to try!
Click to expand...
Click to collapse
Hi there,
Thanks for replying. I am kind of afraid I will have to go down that route, but at the same time trying not to if I could.
One of the other reasons I didn't try the 4 files was because I thought the all-in-one, as its name suggested, would be equivalent to those 4 files.
Is there a way to pull the SMS, MMS, call logs from the phone via adb? Do you know where those records are kept?
Thanks
vbcomer said:
Hi there,
Thanks for replying. I am kind of afraid I will have to go down that route, but at the same time trying not to if I could.
One of the other reasons I didn't try the 4 files was because I thought the all-in-one, as its name suggested, would be equivalent to those 4 files.
Is there a way to pull the SMS, MMS, call logs from the phone via adb? Do you know where those records are kept?
Thanks
Click to expand...
Click to collapse
The all-in-one file is the same as the 4 files, the only difference is installing it doesn't wipe the internal storage.
Have you tried running adb backup? That would be a heck of a lot easier than pulling a bunch of folders...if that doesn't work the databases are in /data/data
Calls: /data/data/com.android.providers.contacts
SMS and MMS: data/data/com.android.providers.telephony
Is there is any shell command to long tap

Categories

Resources