[Q] Backup app data before rooting - Legend General

Hey everyone. I want to root my phone but I would love to back up my app data first. I tried using
Code:
adb shell
to get access to /data/data so I could do a backup of this directory but I get a permission denied error.
Is there any way to back up my app data (mostly the savegames) so I can restore them after rooting?

Related

[Problem] Can't use su in ADB.

I've got a problem with my Wildfire.
I've rooted it with unrevolked 3, and in Android itself I've got root access for applications, but if I access the phone using ADB and type in su I only get permission denied.
Why does that happen?
Shouldn't a fully rooted phone provide access as su over ADB too?
And why can't I use Titanium to delete the HTC shipped apps, doesn't unrevolked unlock the NAND?
Thanks in advice
ChrBeck
What UID you have on adb shell ?
Use
Code:
adb shell
then
Code:
whoami
the wildfire atm only has full root via recovery, not full root access to the whole phone, soon it will get full root acess when alpharev releases their working patch for the wildfire.
Ok guys thanks for your answers.
I just found out the recovery thing yesterday evening too.
In ClockworkMod I mounted /system.
Then I was able to delete files.
After that I installed Wildpuzzle and now I have full root in the normal system too.
Anyways thanks for your help.
I rooted my wildfire with unrevoked and it worked good. In the shell: whoami
Root
Make sure the terminal is accepted by superuser
Sent from my Milestone using XDA App
And if you use adb from linux you need to setup android.rules add the vendorId, kill adb server, restart then type. /adb devices
Sent from my Milestone using XDA App
OK, I used adb under Linux and of course haven't added the Vendor ID.
So maybe that was my problem, but WildPuzzle is better anyways and doesn't cause these problems.
Has nothing to do with that. If Linux has no defined rules it will not be able to see your device.
http://menodev.com/mobile/debugging-your-android-device-on-linux/
Sent from my Milestone using XDA App
OK, then that wasn't my problem because I was able to see the device and access it, only su in adb wasn't working, but the simple things like cd and ls have been fine.
As far as i recall you need a rooted phone to su in the adb shell
Sent from my Milestone using XDA App

[Q] Backup /cache/ without root ?

I'm trying to recover some lost pictures from cache. I can't root because my bootloader is still locked, and unlocking it will wipe the very data I'm trying to recover... Is there any way for me to get read-only access to my cache, without first wiping the phone?
What exactly will adb backup/restore keep? Will it save my cache? I've heard people say it stores literally *everything* and others say it won't back up the cache and some other system files?
The djrbliss motochopper toolkit http://forum.xda-developers.com/showthread.php?t=2233852 would be absolutely perfect, except that I'm running 4.3, and I don't know of any way to downgrade without wiping the phone... One Click Root also would be perfect, except they don't support the Nexus 4...
Is there any way I can root access, or at least read/pull these files, without wiping the device?
I've been searching frantically for days now, I'd pay good money to have those pictures back If I can get these pictures off, you can bet I'm rooting immediately!
Nexus 4, running 4.3 build JWR66Y all stock
If all you want to do is be able to access files on your cache partition, you could try using "adb pull /cache/".
I dont think that needs root, but i could be wrong. Nonetheless, its worth a shot. Setup adb , open command prompt, and run:
Code:
cd Desktop
mkdir cache
cd cache
adb pull /cache/
Chromium_ said:
If all you want to do is be able to access files on your cache partition, you could try using "adb pull /cache/".
I dont think that needs root, but i could be wrong. Nonetheless, its worth a shot. Setup adb, open command prompt, and run:
Code:
cd Desktop
mkdir cache
cd cache
adb pull /cache/
Click to expand...
Click to collapse
It does appear to need root - it just leaves the destination file empty? Likewise I can't access /cache/ it through FTPDroid or Total Commander, says I don't have permission
bken said:
It does appear to need root - it just leaves the destination file empty? Likewise I can't access /cache/ it through FTPDroid or Total Commander, says I don't have permission
Click to expand...
Click to collapse
I guess you need root as I just tried adb pull too and it's not working, opening the folder in adb shell is not working either so I guess you have no luck
What you could try is copying the partition using dd but I'm not sure what's the name of the partition (which block) etc ... But that *could* work. EDIT: Not working either, you still get permission denied, sorry
Sent from my Nexus 4 running Android 4.3
mihahn said:
I guess you need root as I just tried adb pull too and it's not working, opening the folder in adb shell is not working either so I guess you have no luck
What you could try is copying the partition using dd but I'm not sure what's the name of the partition (which block) etc ... But that *could* work. EDIT: Not working either, you still get permission denied, sorry
Sent from my Nexus 4 running Android 4.3
Click to expand...
Click to collapse
Thank you for trying. adb backup gave me access to all my app files, but didn't grab cache.
Here's a thought: through the backup I have an extracted .ab file with all the data for the app that wrote this data into cache. Is there a way I could replace the .apk with something that could copy this program's cache data to /sdcard, and then "restore" with this modified .apk? Would the new .apk retain the permissions of the old, and let me copy this data? Or, alternately, could I modify the .apk to allow debug mode so I can open the cache as that app in console, and adb pull then?
My next best option I can think of, is to go ahead and unlock the bootloader, let the phone reset, and then immediately root and perform data recovery, and hope I don't overwrite everything in the meantime. I'm not sure yet which USB Mass Storage methods (if any) will let me use a standard file recovery program to scan the drive. This is also my last resort, as if it screws up I'm toast.
Forensics lab got back to me, said they could "probably" do it but it'd cost me $1200 I would happily pay 120 but 1200 is absurd. Wonder what their method is to extract data...
OK I think I'm almost there!! I retrieved the .apk through my Holo Backup full system backup and decompressed it using Droid Explorer. Decompiled with apktools, changed my manifest file, and then recompiled into apk. Now I'm trying to get my new AndroidManifest.xml and resources.arsc into my .apk without mucking up the certificate... It sounds like people have had success taking the changed files out of the newly compiled apk and stuffing them into the old apk real quick without it changing the certificates, but I don't seem to be having the same luck? I'm getting this error which isn't a "no certificates error" but isn't success either. Only thing I changed was debug = "false" to "true"
Code:
c:\>adb install -r -d d:\com.xxxxx.xxxxx.apk
2490 KB/s (15989341 bytes in 6.269s)
pkg: /data/local/tmp/com.xxxxx.xxxxx.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
The apk I'm starting from installed fine, and I know because it reverted me to a previous version because the marketplace had just updated me over the weekend. This zip trick has also apparently worked for a few people, any suggestions other than keep trying other computers and programs?
http://www.galaxynexusforum.com/for...562-how-decompile-compile-using-apktools.html
http://forum.xda-developers.com/showthread.php?t=1658121
I'm not trying to reverse engineer this app for any evil, I only want my lost data that I only don't have because I failed to root when I should have and as soon as I have that, I'm reverting the app back to the official version. :angel:

Temporary Root with ADB - Note 4 N910f - 5.1.1 - it is possible ?

Hello,
is it possible temporary root with ADB commands?
I need a root in order to restore data to a folder root / data / (copy files - stored position in the games that I have previously backup in Titanium Backup)
Will this work?
1. write in command line adb root
2. the answer will be:
*deamon not running. starting it now*
*deamon started successfully
*adbd is already running as root
3. write in command line adb remount
the answer will be: remount succeeded
A temporary root should be ready ?
Hmm to be honest since the first Android phone G1 I have rooted all my phones the very same day I got them and have never looked back at the useless ****ty stock roms.
With that said I would just try and push the files to there location but do bear in mind if they don't have the right permissions to run then that could open the doors to a whole other ball game of fc and what ever.
So before you copy those files I would look into a way of giving the permissions they need to run from adb and if it's possible.
Sent from my SM-N920C using Tapatalk

Titanium BAckup not opened after root

I have Samsung Intercept from Sprint with Android 2.1, locked. Tried to root it with SuperOneClick 2.3.3. It seems device is rooted (it is not failed during the rooting, and Root Checker shows phone is rooted). SuperUser was installed.
su in /system/xbin
remounting system with read only access
I used simple Root and not Shell Root. I installed Titanium Backup but was unable to start it. I've got the following error:
Could not acquire root privileges. This app will not work. Verify rom is rooted. Attempt was made using /system/xbin/su command.
In Titanium: Root access failed.
So, it seems I'm able to install non-market app but unable to run it, because SU failed to recognize it.
How to root this phone in a right way? Should I unroot it and make Shell Root? Will this unlocked the bootloader? Would this affect the wifi and other phone functions? If the system was mounted with read access only how to get write access rights?
Thank you for your suggestions
I was able to apply temporary root by InterceptRoot software. Unfortunately, permanent root on my device doesn't work.

Accidently Deleted Contacts app, PLEASE HELP!

Hello Everyone,
So today I have flashed stock rom on my Samsung Galaxy S6 Edge (SM-G925T) for some reason. Installed twrp recovery and then rooted using cf-auto-root method and then i started to uninstall all useless apps using titanium backup.
But accidently i checked the samsung contacts app and now it's gone. I tried to reinstall it again (I have backed up all apps+data before uninstall using titanium bakcup) but it takes forever in titanium backup and nothing happens. I tried to install it using apk method but then it says \"The package conflicts with an existing package by the same name". I don't know why but if the app is uninstalled then why is there a conflicting package.
Anyway, I've found a method in one of XDA forums to install the app using adb recovery method through windows PC (booted into TWRP first).
Code:
adb remount
adb push Contacts.apk /system/app
adb shell chmod 644 /system/app/Contacts.apk
adb reboot[/HIDE]
It installs the app but not opens it. Every time when i tried to open, it just flashes for a moment and closes itself.
I'm so tired of this problem so any help would be appreciated. Thanks.:
Why don't you just use third party contacts app such as Google Contacts?
........one moment.....
enjoy

Categories

Resources