[SOLVED] Where are Superuser permissions saved ? - General Questions and Answers

Hello,
I never figured this out yet, but I can't imagine it would be that hard to find;
Let's say I switch ROMs on my phone (Galaxy S4), I wouldn't want to grant all these Superuser requests for all my apps again, one by one. So I've wondered, in which file are these requests saved?
You know what I'm talking about, in SuperSU (in that case), each app has Superuser access "Granted" or "Denied". Where are these permissions saved in the OS? Guessing /System partition, but never found them. How could I back these up, in case I switch ROM, or if my /System partition would become corrupted someday (Well, that's why we have Nandroid Backups as well, sure).
On Linux, we have a file called "sudoers" which list a few users or commands that are autorised.. Not the same thing, not sure how the file "sudoers" work exactly.. But could something similar exist under Android?
I just want to backup/restore all these Superuser requests I've granted/denied. How?
Thanks!

They're saved in the data of SuperSU, just backup its data with Titanium Backup and restore on your new rom and SuperSU will have given the same apps root access

Thank you! =) Pressed the Thanks button.
Kinda obvious now that I know - However for some reason, I've been wanting to backup the SuperSU app for a while using Titanium Backup, but it's just not listed in Titanium Backup (Why is that? I only see SuperSU Pro in the list, weird).
No big deal, I'll just backup the data folder manually I guess, fixing permissions after restoration. Will give it a try.
Problem solved!

Related

[Q] removing apps for later use?

Due to some warranty issues, I need to take my rooted and unlocked Captivate back to AT&T. Before I do that I must set it back to factory default. What I don't want to do is lose the programs that I painstakingly searched for and installed onto the device. Some of these I think I can't find anymore. Is there a way to remove these apk apps from the phone and store them onto my PC for re-installation later. Things like busybox installer, root explorer, Superuser permission, etc?
Downloaded apps are stored in /data/app and native apps in /system/app. This path may be different depending on your carrier and OS version. On a Samsung phone I used which was running 2.1, I think downloaded apps were in /d/apps.
If you still can't find then, try running:
Code:
find -name *.apk
. That will tell you where everything is.
Titanium Backup. Backup all user apps + data, then reinstall later. I suggest getting the Pro Key, but it isn't necessary.
If you want something a little more minimal, there are apps that backup a list of installed apps. You can save the list in HTML form. Open it with a text editor from your phone, click the link, and it takes you to the market download page.
(from... Evo/MIUI/Tapatalk)
Thanks! I have Titanium Backup Pro installed. So, I just run backup and save it to my PC, then reinstall it all later? That sounds SO easy! I hope I understood you correctly. Thanks again!
Yep. Run the backup, then move the Titanium Backup folder to your computer. Since app purchases are tied to your Google account, just reinstall TB and the Pro key from the market, move the folder back, and batch reinstall.
Almost seems too good to be true, but it isn't. I wouldn't restore system apps/settings across different roms or phones. The only system stuff I restore are wifi access points and playlists.
Good luck!
(from... Evo/MIUI/Tapatalk)
bimfi said:
Due to some warranty issues, I need to take my rooted and unlocked Captivate back to AT&T. Before I do that I must set it back to factory default. What I don't want to do is lose the programs that I painstakingly searched for and installed onto the device. Some of these I think I can't find anymore. Is there a way to remove these apk apps from the phone and store them onto my PC for re-installation later. Things like busybox installer, root explorer, Superuser permission, etc?
Click to expand...
Click to collapse
Simple. Just do a nandroid backup and it will be saved in your sd card. If you restore it, it will restore all the apps, system settings, launcher settings, etc; it will be in the same exact state as it was before the nandroid backup. Steps on how to do a nandroid backup and restore from an earlier nandroid backup can be found here:http://www.addictivetips.com/mobile/how-to-perform-and-restore-a-nandroid-backup/

Oops.

I was preparing to install LBC Mod with rom manager, so i decided just to use titanium backup. I also had an app called titanium defender. I deleted the titanium backup instead.
I noticed that it was taking an unreasonably long time to delete the folder.
When it was done, i got my doom message.
"The SDcard encountered an unknown error - mounted as R/O"
Uh. Oh.
So i rebooted into bootloader, then recovery (which worked fine) and chose to restore, and (suprise, suprise) it found my SDCARD backup make yesterday.
And what im asking is, what happened?
Titanium Defender seems stupid. Never had a problem with titanium backup. What happened was you're folder was mounted as R/O (read-only) whereas it should've been R/W (read-write). This can be toggled via ROOT EXPLORER. But Titanium Backup needs no such thing.
Thanks.
Thanks for your help shrome.
I ended up successfully flashing LBC anyway.
Thanks again!
No need to say it, there's a button for that
Thanked
You have been thankz'd
I use "mybackup root" from android market and thats does a great job of restoring and backing up apps and app data, just saying lol.
Rueben_ said:
I use "mybackup root" from android market and thats does a great job of restoring and backing up apps and app data, just saying lol.
Click to expand...
Click to collapse
Thx for that hint: tried it and yes its better and simpler
Little question , does this backup the account information from skype , gmail , facebook to ?

Titanium Backup Help

I recently flashed a new rom (the last time I did this was almost 2 years ago so I forgot what to do). Titanium backup has been doing weekly updates for a long time. So when I started up the phone titanium backup is gone, I read that I must redownload from the play store, but when I run it, it says I failed to acquire root privileges. It tells me to get busy box, so I download that too, but that won't install properly.
What should I do now? Have I lost root? The bootloader is available...that means it's still rooted right? The internal sd card still shows my folder of titanium backup and all the other root folders I used to have on my phone, I just can't get titanium backup to run so i can't restore.
Thanks!
stryder1587 said:
I recently flashed a new rom (the last time I did this was almost 2 years ago so I forgot what to do). Titanium backup has been doing weekly updates for a long time. So when I started up the phone titanium backup is gone, I read that I must redownload from the play store, but when I run it, it says I failed to acquire root privileges. It tells me to get busy box, so I download that too, but that won't install properly.
What should I do now? Have I lost root? The bootloader is available...that means it's still rooted right? The internal sd card still shows my folder of titanium backup and all the other root folders I used to have on my phone, I just can't get titanium backup to run so i can't restore.
Thanks!
Click to expand...
Click to collapse
If you flash a new rom root is lost.
You have to root again.
S.R.
A few of the JB ROMS were causing issues with root. The fix was to re-flash the SU (superuser) apk and that would fix things right up. You should be able to find it doing a search.
Good luck and hope this helps!
stryder1587 said:
I recently flashed a new rom (the last time I did this was almost 2 years ago so I forgot what to do). Titanium backup has been doing weekly updates for a long time. So when I started up the phone titanium backup is gone, I read that I must redownload from the play store, but when I run it, it says I failed to acquire root privileges. It tells me to get busy box, so I download that too, but that won't install properly.
What should I do now? Have I lost root? The bootloader is available...that means it's still rooted right? The internal sd card still shows my folder of titanium backup and all the other root folders I used to have on my phone, I just can't get titanium backup to run so i can't restore.
Thanks!
Click to expand...
Click to collapse
Lets start with a few basic questions... dont mean to offend you, just wanna make sure its not something you may have overlooked.
What rom did you flash?
What, if anything, did you wioe in recovery?
Did you get a superuser or supersu prompt when titanium started?
shivasrage said:
If you flash a new rom root is lost.
You have to root again.
S.R.
Click to expand...
Click to collapse
Not necessarily so. Most custom roms are pre-rooted by the dev. Ive flashed countless roms and until recently w/ jb not had any issues w/ root access.
Sent from my Nexus S 4G using Tapatalk 2
seems you've just lost root privileges,
just flash supeuser again and you will be fine...
I think this is the right thread to ask queation relevant to titanium backup so,
Here's my question -- how to backup messages by using titanium backup.
atishey23 said:
I think this is the right thread to ask queation relevant to titanium backup so,
Here's my question -- how to backup messages by using titanium backup.
Click to expand...
Click to collapse
it pretty much looks like this in TitBack, give or take a few letters: "[SMS/MMS/APN] Phone/Messaging...". when you tap on it, the pop-up recognizes it as "Phone/Messaging Storage". this is where your text messages are.
some 3rd-party MMS apps like GoSMS Pro can back up your messages too, and I believe there's also an app or two solely for backing up your messages to your sdcard/internal storage.
Titanium Batch restore fail
Hi all
Having a few problems, I'm new to flashing roms and the use of Titanium Backup and I've just flashed my second ROM. I've gone from CM9 to CM10. Before doing so I created a backup of apps + data.
I flashed the ROM fine, and ran the batch restore function in Titanium. I have all the icons on my homescreen from the previously installed apps but after clicking on them my phone tells me that app isn't installed. I then notice that my notification from Titanium's batch restore shows the apps I had downloaded from the play store failed to restore (the notification said that the elements failed after batch restore was complete).
I noticed that these apps have a line through them when the list of apps I want to restore appears.
Titanium then advised me that the apps did not restore as the Android ID had changed, So I then reverted to the previous android ID thinking this to be the solution. However, after running the restore function again, the same amount of elements failed to restore.
Due to my lack of knowledge in Titanium and my need for these apps, I turned to the play store and decided to manually redownload all the apps again. This does not work either! The error message I get is the apps cannot be downloaded due to an error (491). I guess this is to do with the android ID changing?
Please help, how can I get these apps to restore? and also how can I be able to download apps from the play store again? :crying:
EDIT: So I was able to reinstall the apps from the play store by wiping the dalvik + cache.
This still leaves me baffled as to why Titanium wasn't able to do this
jessel56 said:
Hi all
Having a few problems, I'm new to flashing roms and the use of Titanium Backup and I've just flashed my second ROM. I've gone from CM9 to CM10. Before doing so I created a backup of apps + data.
I flashed the ROM fine, and ran the batch restore function in Titanium. I have all the icons on my homescreen from the previously installed apps but after clicking on them my phone tells me that app isn't installed. I then notice that my notification from Titanium's batch restore shows the apps I had downloaded from the play store failed to restore (the notification said that the elements failed after batch restore was complete).
I noticed that these apps have a line through them when the list of apps I want to restore appears.
Titanium then advised me that the apps did not restore as the Android ID had changed, So I then reverted to the previous android ID thinking this to be the solution. However, after running the restore function again, the same amount of elements failed to restore.
Due to my lack of knowledge in Titanium and my need for these apps, I turned to the play store and decided to manually redownload all the apps again. This does not work either! The error message I get is the apps cannot be downloaded due to an error (491). I guess this is to do with the android ID changing?
Please help, how can I get these apps to restore? and also how can I be able to download apps from the play store again? :crying:
EDIT: So I was able to reinstall the apps from the play store by wiping the dalvik + cache.
This still leaves me baffled as to why Titanium wasn't able to do this
Click to expand...
Click to collapse
Did you try to restore system apps? I always use tb w/ the pro key to restore user apps + data, and have been getting the changed android id lately, but whether I keep the new id or revert to the old one, my restore works. Depending on what ROM I'm going to or from, sometimes I have to change my home screen shortcuts for system apps.
Sent from my Nexus S 4G using xda premium
p1gp3n said:
Did you try to restore system apps? I always use tb w/ the pro key to restore user apps + data, and have been getting the changed android id lately, but whether I keep the new id or revert to the old one, my restore works. Depending on what ROM I'm going to or from, sometimes I have to change my home screen shortcuts for system apps.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
I didn't select restore system apps, instead I selected restore all apps with data, failing that I tried restore missing apps + all system data.
What option should I normally be selecting to do a straight restore after flashing a ROM? Does the fact that there is a line through the apps that I'm trying to restore mean anything?
I always select "restore missing apps + data" it's the 1st option under restore in the batch menu. The apps with a line through them are the ones that tb recognizes as being backed up but not installed.
Sent from my Nexus S 4G using xda premium

Reject list: what to backup/restore in titanium backup?

Can someone tell me what specifically needs to be backed up and restored in titanium backup to maintain the call reject list after a wipe/flash of a stock rom? Actually using Cleanrom...
Alright, I have been looking for this since shortly after you posted this question. I think I may have found a solution as well. The reject list as well as reject messages and contacts are all stored in database files these can be located in the terminal with busybox or root explorer pro and of course root access.
Download Root Explorer (Pro is what I have)
Search Reject
Backup the ".db" files, I am not sure if you need the journals as well. I do not think you do as I assume you change the database itself as it is not a reference file like a dll or odex reference file, but its own database. I am asking that you backup your journals too just in case though.
You can browse to the db files by going to data/data/com.android.phone/databases
Arrrt! Arrrrt!
I was hoping there was a way to just do this via tibu, because I've already got the new rom flashed and didn't want to reflash the backup just for this. I think in the future I may just use root call blocker, which can be restored via tibu including to potential non tw devices in the future. Thanks for your help!
netter123 said:
I was hoping there was a way to just do this via tibu, because I've already got the new rom flashed and didn't want to reflash the backup just for this. I think in the future I may just use root call blocker, which can be restored via tibu including to potential non tw devices in the future. Thanks for your help!
Click to expand...
Click to collapse
I'm not familiar with titanium backup - any idea if I can use it to restore just the block list from an S4 to a G3?
Thanks
netter123 said:
I was hoping there was a way to just do this via tibu, because I've already got the new rom flashed and didn't want to reflash the backup just for this. I think in the future I may just use root call blocker, which can be restored via tibu including to potential non tw devices in the future. Thanks for your help!
Click to expand...
Click to collapse
In Tibu, if you look for "Phone" (the green phone icon dialer) is the application which saves the blocked numbers and messages in a sql database. Once moved to another phone you just need to restore "data" from the phone icon (tibu will give you an option to restore app+data, app or just data) and you should have the list back.

[Q] Textsecure backup issue -nandroid

Hey, I'm in a bit of a bind.
I updated cyanogenmod yesterday, and stupidly didn't do a nandroid beforehand or use titanium backup. I had to wipe because it was boot looping.
The only thing I really want is my textsecure SMSs. After it bootlooped, I did a nandroid of the broken system and then wiped and reflashed hoping to extract out of the nandroid.
I first tried the process using Titanium Backup, and then Nandroid Manager. Titanium backup crashes when trying to restore anything. Nandroid Manager app can successfully restore apps from the nandroid backup, however if I try that with Textsecure, Textsecure just force closes when i try to open it.
Considering I still have an intact backup of my old system, just not able to be booted into, do you think there is any way I can get my TextSecure messages back. My last titanium backup was over 9 months ago, so I'd rather not lose that.
Device is a OnePlus One. Using TWRP and CM12 Nightlies
1.Power on your phone
2.connect to pc go in sdcard which is internal storage
3.Then find titanium backup folder copy into your pc
4.Grab other phone install titanium app in it
5.put that copied titanium backup folder
On new phone and copy paste that exect folder on same location its will ask you to over write press yes
I dont what app u using textsecure sms but if you install that u will be able to get every thing back
???? Nitin Maan
don't forget to hit thanks ☺???
Thanks for the reply.
The titatnium backup I have is easily accessible, however its a really old backup (from last year), what I'm trying to get is the two day old textsecure data out of the nandroid backup.
I dont about text secure app is its a app or system app
These app create backup in its self in there text secure folder in root directory
But they are encrypted u cant get those msgs specifically recent msg becoz they are encrypted in root directory app data
Only solution to fix your phone
Extracting data from nandroid backup is very tricky and u not might get successfully
Thanks
???? Nitin Maan
don't forget to hit thanks ☺???
I managed to get it fixed. I'll put some details in case anyone else gets this issue in the future.
A lot of the apps, at least ones with some kind of database were force closing after using the Nandroid Manager app to extract the app out of the nandroid. Other ones included pocketcasts.
Trying to use fix permissions in TWRP just caused a bootloop and i had to restore again.
I did however find that the "Fix Permissions" app by Stericson allowed me to fix the permissions of individual apps, I tried it on pocketcasts first and it stopped FCing, after restoring Textsecure, I fixed the permissions on it and it now works.

Categories

Resources