Related
After flashing Haykuro's H build to my girlfriend's phone without a wipe everything went a little screwy. So I moved all of her data to the ext2 partition of her sd card, flashed JF RC33 back to her phone and then tried symlinking the data directory. This brought back alot of the same issues (she was getting an inconsistent system ID error).
So I went back to the default data directory as it stood after flashing rc33 and started copying over the /data/data/[app package] folders from the sd card for only the apps that she really needed the data for and even though I can read them in the terminal, for some reason whenever I try to start any apps that I copied the folders over for, they force close immediately. My only thought is that maybe they're owned by the wrong group or something. I tried chmoding them all 777 to see if that helped, but it didn't. I know I have to do a chown to change the owner of the files, but what should I chown it to? 0?
/data/data/* is 755, and the content is owned by the various sandboxed users (Except a handful of androids own services, which is owned by 1000 and 1001).
Symlinking the data directory itself should work just fine, i had the whole data partition symlinked out, until i just decided to mount my ext2 partition as /data.
Well, symlinking the data directory isn't fine. As I said in the original post there's something wrong with her data directory and whenever I boot up with the entire thing symlinked it says it needs a factory reset as there are inconsistent system IDs. So I'm trying to just add them back one by one. Is there any way to determine which user/group ID an app is running as so I can chown the data folder for that app to be the same? My thought is it has to come down to an ownership issue.
I'm far from a guru, but you may want to consider a couple of things.
I finally moved my data off of my sd. I had tons of quirks and force closes as long as data was on the ext2 partition. You may consider just moving apps and dalvik-cache.
If it's your GID that is incorrect, you should be able to go into the sd/data and "ls -l" to see what the ownership for each file looks like. Then verify that is carrying over when you copy it back to internal flash. If it's changing the group you can do a chgrp and change it back to what ever it was in the sd/data directory. Same goes for ownership also... ls-l will tell you who owns it and what group. Like you said, you can chown to change that.
I reall don't think this is going to solve your problems, but give it a shot. Ultimately, i think you're going to have to wipe data. If you did a nandroid before it went south, you might be alright.
Beyond that, i got nuthin... Good luck.
If it was my phone, I would've just wiped it and not thought twice about it. But my g/f is a fanatic about her shopping lists, todo lists, etc.
What I'm thinking about doing when I get home is running a ls -l on the app directory to see if I can see what group ID each of the apps are running at because I'm fairly certain that's what the problem is. The apps are running as one user id after the wipe, but the data is owned by another user id that was being used before the wipe.
Run it, and quickly check the UID with ps ("busybox ash", then "ps", or jut "busybox ps"
, the first one starts a shell, so you only have to write "ps"), then compare to the UID/GID of the files (ls -l, again with busybox).
If they don't match, you should change them with "chown uid:gid /data/data/directory".
If the UID's GID's are correct, you should just copy the contents of the directories out, wipe, run the apps once, and copy the content back in (Then you'll know the correct UID).
You can always take a nandroid backup if you don't trust me
Thanks Joushou, that's actually what I was looking for. I couldn't remember the command to see what the apps are running as. Now, considering they force close immediately, would I be able to run ps before I click force close and still see the IDs?
So in this format, which numbers are the user/group ids? I'm guessing the username is the first column.
USER.....PID PPID...VSIZE RSS..WCHAN PC............NAME
app_24 174 33 89264 13412 ffffffff afe0c824 S com.android.calendar
app_28 186 33 86828 11076 ffffffff afe0c824 S com.android.alarmclock
app_36 217 33 88892 11828 ffffffff afe0c824 S edu.mit.locale
Nevermind, that was from a regular ps. Did busybox ps and it turned up the number I was looking for, thanks Joushou!
LPChris said:
Nevermind, that was from a regular ps. Did busybox ps and it turned up the number I was looking for, thanks Joushou!
Click to expand...
Click to collapse
So were you able to get it working again?
is it possible to backup data from on app before flashing?
i am running dudes cupcake and have bought workoutmanager from the market. i have taken a heap of time to install all my workouts and exercises and dont want to lose it next time i wipe and flash.... the app has an export function but no import.
i found the data for the app in: ls /system/intmem/data/com.wktmngr
inside was 2 files- MyWorkout and lib.
i figure i could just copy these to sd card using cp /system/intmem/data/com.wktmngr/MyWorkout /sdcard
and same for lib.
then cp this back in after flashing....
would this work?
is this the correct command or do i need cp -a /system/intmem/data/com.wktmngr/MyWorkout /sdcard ???
thx
I posted a similar question a little while ago in the main Dream forum. Worth I can't find the link now but if I remember correctly you will find the apps estate in data/data and you can web pull to your computer or copy to your decade.
If you search under my name, it should show up.
thanks mate- i figured it out myself on the weekend.... problem was finding the data folder with the new apps2sd- esp. with me being a linux nooob....
cp /system/intmem/data/com.wktmngr/MyWorkout /sdcard
i tested it by uninstalling app and checkin it had deleted all data- it had... then reinstalled, rm the new MyWorkout and cp old one in.
If anyone is wondering: Workout Manager is a great gym app. Best so far- not the best GUI but the fxns are exactly what is required....
Hi all
I was looking for the way to backup my game data because I like to test others ROMS or if I must to do a wipe and don't loose my game data. I founded looking at the directories that in /data/data is the solution.
Important: You've to use the same profile you used before.
1) Backup the game data
* adb remount
* adb pull /data/data/au.com.phil.abduction/databases/data data
You'll see the file data in the directory tools of your Androi's SDK.
2) Restore the game data
* Install the game again and run it. Create your profile, the same profile you used before.
* Put the file "data" in your tools directory
* adb remount
* adb push data /data/data/au.com.phil.abduction/databases/data
* Run the game and play it.
I've tested it and retested, it works.
Cheers
Thanks so much for posting this, my fiance always plays abduction and she would kill me if I lost her save game because of testing out new roms
THANKS!!!!!
Latest version has backup ability
I came across this discussion and wanted to let you know that the latest version of Abduction! World Attack has backup to SD included. For full instructions:
http://abductiongame.wordpress.com/2009/08/25/how-to-save-your-profile-between-installs/
my friends always take my phone just to play this damn game
way cool tip on the backup to SD thing..really useful. i love this game.
This method worked great, thanks
Okay, so I have looked into the other posts about people not having anything in their /efs folder. So I bought an i957r from Rogers. Rooted it and have su and busybox installed. Astro shows that my /efs folder is empty. My IMEI is perfectly fine, all of my data services work, and I am sure root is installed. When I run the adb shell to pull my nv_data.bin, it tells me the file doesn't exist, and when I pull it from the sdcard, it is an empty file. Any ideas as to why that folder would be empty?
Also on a side note, if I was to factory reset it, with root installed, would it damage my device? The only reason I want to reset it is to get the /efs folder. Any help that can be given would be greatly appreciated. Thanks so much!!
Astro is lying to you. Astro also shows /efs to be empty on my ATT device, but if i get a root shell, it is NOT empty.
This is due to the default permissions on the /efs folder:
Code:
# ls -l | grep -i efs
drwxrwx--x system radio 2012-06-15 10:04 efs
Note the lack of read permissions for other users (not user system or member of group radio). If you change the permissions on the folder, say via:
Code:
# chmod 775 /efs
# ls -l | grep -i efs
drwxrwxr-x system radio 2012-06-15 10:04 efs
Astro would then should you the files in that folder. But that's probably not the best way to handle it... Just deal with the efs files from a root shell, not a user-level file browser like Astro.
Interestingly enough, my Tab 8.9, which has been through a hackathon and a half, doesn't have nv_data.bin file.. anywhere. I do have a /efs/redata.bin file, though.
I wonder if the lack of nv_data.bin is related to why my tab started displaying "Search Network Manually" when I turn LTE on, and sometimes randomly whines about an invalid SIM even though it then immediately connects and works like normal... I've been trying to root cause that change for a while, although it seems to have no negative effects. Probably leaving some whacky log entries on the carrier side of things, though... FWTW.
Do you all actually have an nv_data.bin in /efs?
Also, before someone else flames you... this thread does not belong in this forum... Use the main forum for non-development issues
Well thank you for not making me feel completely stupid, I wasn't really sure where to put it. Can you tell me how to move it? So I'm not "that guy"?
But as far as what I have, in the /efs folder, I have redata.bin, but no nv_data.bin and a couple of other files and folders.
I downloaded Root Explorer and it was able to show me what was in that folder. I also searched using that for nv_data... didn't find anything
But while I am already in the wrong forum, can you tell me if doing a factory reset will hurt my device? Also, if I don't have an nv_data.bin file, I can't unlock it, can I? Just hoping you could help. Thanks so much!
I could be wrong, but I believe only mods can move threads. Never tried, and don't see anything obvious.. Ah well, no big deal.
I wonder if these devices use something different than nv_data.bin? I mean, we both seem to get working LTE service without it, right? Other various posts found via gooogle show several folks that claim their corruption and/or lack of nv_data.bin results in no service.
I highly doubt a factory reset will do any damage, "factory reset" basically means wiping data and cache, which is quite safe. Factory reset doesn't touch /system, /boot, etc. The assumption is that the user never had access to modify /system, so wiping the cache and user data partitions results in a "factory fresh" condition.
No so much after you've haxxored up all sorts of stuff.
If you are looking to get back to as close to stock as possible, you are probably best off starting with the factory ODIN tarball, which I believe is still available on sammobile. It contains the boot, system, recovery, cache and two modem partitions (although it doesn't appear to contain an EFS image).
It would be interesting to see if a virgin device actually has this file. My suspicious is we are both missing this file because it never existed on the i957 in the first place. I believe another vector would be used to unlock the device, instead of the nv_data hack.
Futhermore, I believe the nv in nv_data means nvidia, who makes the Tegra chipset and associated radio modems which are used in devices based on Tegra. The i957 is based on the MSM8660 SOC, a Qualcomm part, which is an entirely different beast than the Tegra solution. Pretty much everything I can find online about hacking up nv_data.bin covers devices that are NOT based on Qualcomm SOCs, which in recent times is most devices not destined for LTE on AT&T or other similar carriers (Rogers/Bell/Telus).
The captivate had the nv data file and it was on a hummingbird chip which was the precursor to exynos
Sent from my SAMSUNG-SGH-I727 using xda premium
Hello!
So I have become a crazy cat collector with Nougat. But I recently switched roms so I dont have my beautiful cats anymore. :crying: What files can I copy from my old rom to get them back into my new one?
I found this article:
https://www.reddit.com/r/Android/comments/4tualq/what_i_know_about_cats_the_android_nougat_easter/
It didn't specifically say that cats can be restored but i tried copying the xml file from directory below. But it was a no-go
/root/data/data/com.android.egg/shared_prefs/mprefs.xml
Is there anyway I can be reunited with my cats. Please let me know.
God Bless
-The Cat Lady
You could try backing up the android easter egg app in tibu and restoring data when you flash the rom. I haven't tried it, so if you feel like taking a risk go for it.
CollinsB said:
Hello!
So I have become a crazy cat collector with Nougat. But I recently switched roms so I dont have my beautiful cats anymore. :crying: What files can I copy from my old rom to get them back into my new one?
I found this article:
https://www.reddit.com/r/Android/comments/4tualq/what_i_know_about_cats_the_android_nougat_easter/
It didn't specifically say that cats can be restored but i tried copying the xml file from directory below. But it was a no-go
/root/data/data/com.android.egg/shared_prefs/mprefs.xml
Is there anyway I can be reunited with my cats. Please let me know.
God Bless
-The Cat Lady
Click to expand...
Click to collapse
This might work but it also might crash your phone. Proceed at your own risk.
I was wondering if you ever figured out a way. I'm using a Nexus 5X so it's only a matter of time before the bootloops plague my device. Was hoping to back them up before then.
EDIT:
Would using ADB work?
Code:
adb backup -f "C:\CatsBackup20161229.ab" -apk com.android.egg
EDIT 2:
I was so close. Thanks to this Reddit post, I have used the following in a Windows Batch File to backup my Cats with a timestamp. Hope this helps any Googlers.
Code:
adb root
adb backup -f C:\CatsBackup_%date:~-4,4%%date:~-10,2%%date:~-7,2%.ab com.android.egg -system
What I'd done was long press the cat when one came up then just shared it to my Drive folder. I've also found duplicates will most likely come up (number of the cat) but the cat will be different color.
I've personally flashed numerous different nougat ROMs and different versions (7.0, 7.1, 7.1.1) in no particular order, and the Easter egg cat collection got backed up and restored on each and every ROM I've tried and used.
The way I go about this is, before I decide to switch ROMs or update using clean flash, I use titanium backup to backup the Easter egg app. Once I clean install an update or a different nougat ROM, I first unlock the nougat Easter egg in settings (tap the Android version a bunch and long press on the N animation to find the cat icon). Then head over to quick toggles, hit edit, find the cat toggle and add it to a desired slot. Finally, in titanium backup, find the Easter egg app, hit restore. It will ask what to restore, make sure you select "data only," do NOT restore "app + data," this may or may not cause system UI issues.
Requirements: Nougat ROM of your choice (any version) and root access.
This method works for restoring chrome tabs and possibly a few other system apps' data. Restoring system app(s) + data, however, will usually break things, so make sure to only restore the respective system apps' data only.
okay so i got the easteregg.ab file to back up onto my local disk, but i cannot get my phone to restore the .ab file through ADB.
ADB will say that i must unlock my device and allow the restore to complete however the phone is completely unresponsive to the request to restore, it as if nothing is happening.
what am i missing here :
adb backup -f easteregg.ab com.android.egg -system
(that puts an easteregg.ab file into c\users\xxxx)
then : adb restore c\users\xxxx
(adb then tells me "Now unlock your device and confirm the restore operation)
.....but nothing has happened and it asks for nothing on my phone and the cats are not loaded =(
Permissions. Were they set on the file when you restored it?
Strephon Alkhalikoi said:
Permissions. Were they set on the file when you restored it?
Click to expand...
Click to collapse
im not sure if i know which permissions your refering too, but the easteregg.ab file permissions are currently set to allow full control for the System, Administrator and the User.
How do i ensure the permissions are correct ?>
The permissions were likely completely stripped from the file when it was sent via ADB. You'll need to root and do one of the following.
*Use a terminal app to set permissions.
*Use a file manager with root access, navigate to the file's location, and set permissions manually.
The correct permissions are likely rw-r--r--, which uses the number 644.
Strephon Alkhalikoi said:
The permissions were likely completely stripped from the file when it was sent via ADB. You'll need to root and do one of the following.
*Use a terminal app to set permissions.
*Use a file manager with root access, navigate to the file's location, and set permissions manually.
The correct permissions are likely rw-r--r--, which uses the number 644.
Click to expand...
Click to collapse
My s7 edge is not rooted.
Is there anyway to restore the easteregg kitties with out root ? i thought that was possible.
Did you downgrade from a Nexus 6 to a S7? Sorry to hear that if true, because the S7 has a locked bootloader. The file likely never transferred to where you wanted it to go, as the locked bootloader would prevent that. Thus you need to unlock the bootloader to even transfer the file. ADB may have commands to set file permissions, but my recollection on that is hazy. It would also be irrelevant if the bootloader cannot be unlocked.
Strephon Alkhalikoi said:
Did you downgrade from a Nexus 6 to a S7? Sorry to hear that if true, because the S7 has a locked bootloader. The file likely never transferred to where you wanted it to go, as the locked bootloader would prevent that. Thus you need to unlock the bootloader to even transfer the file. ADB may have commands to set file permissions, but my recollection on that is hazy. It would also be irrelevant if the bootloader cannot be unlocked.
Click to expand...
Click to collapse
oh wow! i pulled up this thread last night and didn't even realize i was on the nexus 6 groups forums haha, boooooo on me =(
no i didnt down grade lol, i never had the nexus, i am just a s7 edge owner who doesn't want to loose their kitties in a phone swap =(
and yeah i had some real difficulties getting the .ab file to even save to my computer after messing around with a bunch of variations on commands through adb.
now im getting depressed again
..hey i REALLY appreciate all this help btw =\
Sorry to hear that. But unfortunately, unless you can unlock the bootloader, you're not going to be able to use ADB to transfer the file back. With a locked bootloader you can pull files, but not push them.
I shoulda realized that cause im not new to the rooting process at all and i hate having a phone with a locked bootloader but i really do like the s7 edge, it grew on me,....... alas my kittens will have to wait till the bootloader becomes available.....
Check the S7 Edge forums. I'm sure they have something that may help.