I'm doing research on android security, and i realised i can use adb to pull files from /data/data. These files includes SMS databases and sharedpref.
Now I have root on my n1, so I'm wondering if this is possible because of root?
Sent from my Nexus One using Tapatalk
I'm not sure about that specific directory but I do know there are certain system folders/files that can only be modified with root access. Certain apps like Titanium backup use root access to pull apks from root only folders, without root they simply can't function.
It's only possible because of root access. Without root you can't get to the sensitive info like that.
Yep, both /data and /data/data have permissions set to drwxrwx--x, meaning root has read/write/execute permissions, the system group has it too and regular users only have execute permissions.
Thanks all, for your input. Much appreciated!
Sent from my Nexus One using Tapatalk
fubaya said:
Yep, both /data and /data/data have permissions set to drwxrwx--x, meaning root has read/write/execute permissions, the system group has it too and regular users only have execute permissions.
Click to expand...
Click to collapse
To be more accurate, the "drwxrwx--x" (or 771) permission indicates the OWNER's permissions, then the GROUP permissions, and then EVERYONE. root will have the same permissions as the owner.
Related
For clarification...
An app has to request root permissions to run as root, you cannot just give it the permissions? Is there a setuid? The "/system" filesystem is ext3 on this phone. "ext3" supports setuid & setgid, are these supported by Android?
In other words, is there any way to give a non-root app root permissions?
nodots said:
For clarification...
An app has to request root permissions to run as root, you cannot just give it the permissions? Is there a setuid? The "/system" filesystem is ext3 on this phone. "ext3" supports setuid & setgid, are these supported by Android?
In other words, is there any way to give a non-root app root permissions?
Click to expand...
Click to collapse
have you "rooted" your bravo using super one click etc?
the su built for rooted android phones has a hook to the superuser.apk so that any app requesting root must be approved by the user. You can set the app to a whitelisted app so it always gets root permissions, so that is what i recommend. this is a much important security feature and i highly recommend you dont circumvent it. that being said, there is a su out there that doesnt require approval and just gives approval so you can find it on xda if you want it but really its not a good idea or recommended
I have a related question: How do pre-installed apps on unrooted phones get root permission? I would expect that there are some that do, although I cannot give any examples.
Now I am a very avid linux user (used the terminal a time or two) and I bought an acer a500 yesterday. This is my first android device and the first 2 things I did were update it and root it with iconia-root1.3 (gingerbreak didn't work). Now I have 3.1 and the root checker says that I have root. And the busybox installer says I have busybox installed.
Now this is where I get lost...
The root checker says I have root but not /system/bin/su or /sbin/su. Why would I have root if I don't have the application to switch users? Also it has su in /system/xbin but it won't let me move anything to /system/bin (which I assumed I could do as root??). So is root checker giving a false positive or what? and why can't I move any files above the directory /mnt (I'm using astro)? Do I have to selectively give certain apps root or what?
Also I need someone to explain this to me. Why do we need to root it if all of the applications are already in the android marketplace? Do they allow applications to be uploaded to the marketplace that won't work on non-rooted devices?? That seems like there would be a separate marketplace for rooted-only apps like cydia on iOS.
A quick reply: 'Root' allows you to have read/write access on /system/ . After root, you can add/remove any apps in /system/app, also, after root, you can flash CWM, you can then flash custom rom and kernel ... bla bla bla ~
Root is somehow different from 'jailbreak' in iOS. I think you could find more information on google. Cheers.
ardatdat said:
A quick reply: 'Root' allows you to have read/write access on /system/ . After root, you can add/remove any apps in /system/app, also, after root, you can flash CWM, you can then flash custom rom and kernel ... bla bla bla ~
Root is somehow different from 'jailbreak' in iOS. I think you could find more information on google. Cheers.
Click to expand...
Click to collapse
Root doesn't give you superuser(root user) access? I had always assumed that was the case, which means you can do any damn thing you please. Obviously you can't write to ro filesystems, but you could always remount them.
snowman4839 said:
Now this is where I get lost...
The root checker says I have root but not /system/bin/su or /sbin/su. Why would I have root if I don't have the application to switch users? Also it has su in /system/xbin but it won't let me move anything to /system/bin (which I assumed I could do as root??). So is root checker giving a false positive or what? and why can't I move any files above the directory /mnt (I'm using astro)? Do I have to selectively give certain apps root or what?
Also I need someone to explain this to me. Why do we need to root it if all of the applications are already in the android marketplace? Do they allow applications to be uploaded to the marketplace that won't work on non-rooted devices?? That seems like there would be a separate marketplace for rooted-only apps like cydia on iOS.
Click to expand...
Click to collapse
1.) The root app is in /system/app/ and the binary is in /system/xbin/ so you do have root.
2.) You won't be able to just write to any of those folders. You either have to remount them to be writable and use adb or use an app like root explorer that lets you remount on the fly and edit the files.
The same answer goes for the question why can't you move files to anything above /mnt. And yes to the second question. You'll have to set root permissions selectively.
Root doesn't have any effect on the marketplace or the apps you can download. This is not an iDevice.
Some apps need root to work (usually the ones that change system files) and that's why you have to have root. It's not necessary unless you either change system files or use an app that requires it (screen-shot apps, adfree,some file managers, reboot apps,...).
It's early so apologies for any mistakes I made. I hope that it's a little clearer now.
So I have tried searching some and my case might be a little different so I thought I would just ask.
I have a G2 that i am trying to retrieve data from. Specifically the SMS database file. I have found that in android, the sms messages are not kept on the sim car or the SD, its kept in a .db file in the internal memory. Unfortunately these files are restricted without root/su access.
From what I have read, the only way to root right now is to downgrade the OS to a previous version to obtain root. Unfortunately, doing that would erase the .db file and would be counter productive.
I have tried using ADB to obtain root/su access to extract a copy of the DB to no avail. I tried visionary and z4 to temp root and neither seemed to allow me to su in the terminal.
Again, all I need is SU access for a short ammt of time to copy out a file in a section that is restricted. Does anyone know any way to do this? Though backups? copying the whole file system to my cpu hdd? Temp root program that does work?
Any ideas?
Go to this guide
Follow the 'Gaining Temp-Root' and '
Temp-Rooting to Backup' sections.
-Nipqer
Why do you need su to copy a file from /system?
Phone: AT&T LG G2
Software Version : D80010q
Status: rooted
I rootedafter the OTA download of D80010q
I have super user permissions according to Root Checker and Terminal Emulator apps.
I am having issues with Root Browser (also same issues with Root Explorer) It never asks for super user permission, as the other apps have done. It also doesn't show up in SuperSU app's log.
I mainly rooted to get rid of the bloatware that comes installed from AT&T. After searching Google, I found the list of apps safe to remove. Root Browser was recommended to remove these. The folder referenced is /system/apps.
Root browser opens, but never asks for SU permissions.
Browse to /system.
There is no /system/apps folder. There is a /system/app folder, but the apps that can be safely removed are not in there.
Any advice?
Sorry for posting this same thing in multiple places.
lostangelintx said:
Phone: AT&T LG G2
Software Version : D80010q
Status: rooted
I rootedafter the OTA download of D80010q
I have super user permissions according to Root Checker and Terminal Emulator apps.
I am having issues with Root Browser (also same issues with Root Explorer) It never asks for super user permission, as the other apps have done. It also doesn't show up in SuperSU app's log.
I mainly rooted to get rid of the bloatware that comes installed from AT&T. After searching Google, I found the list of apps safe to remove. Root Browser was recommended to remove these. The folder referenced is /system/apps.
Root browser opens, but never asks for SU permissions.
Browse to /system.
There is no /system/apps folder. There is a /system/app folder, but the apps that can be safely removed are not in there.
Any advice?
Sorry for posting this same thing in multiple places.
Click to expand...
Click to collapse
I don't use root browser, but in root explorer, go to your root tab and tap the button on top that says ro (read only), which will switch it to rw (read/write) then you'll be asked for su access.... That's the big difference amongst file managers in regards to root access. Root browser has the same option, just don't know where it is because I don't use it.
-VZW LG G2 VS980
annoyingduck said:
I don't use root browser, but in root explorer, go to your root tab and tap the button on top that says ro (read only), which will switch it to rw (read/write) then you'll be asked for su access.... That's the big difference amongst file managers in regards to root access. Root browser has the same option, just don't know where it is because I don't use it.
-VZW LG G2 VS980
Click to expand...
Click to collapse
That was it. Thanks friend.
I can't delete any system apps with it anymore, does anybody else have the same problem or even a fix for it?
Working fine on 6.01 for me, Did you try uninstalling and reinstalling it?
I just updated to 6.0.1 myself, rooted using superSU 2.61. I too cannot delete system apps using titanium. I tried to uninstalled and reinstall the app (via playstore) but it didn't help.
I also tried to do the same via the root explorer option in ES file explorer and it didn't work. I tried to toggle the root explorer option in ES, but after I turned it off I couldn't turn it on again. Root checker does say that I have root, and other root apps e.g. adaway, xprivacy still work.
Any help and suggestion is most welcome!
case-sensitive said:
I just updated to 6.0.1 myself, rooted using superSU 2.61. I too cannot delete system apps using titanium. I tried to uninstalled and reinstall the app (via playstore) but it didn't help.
I also tried to do the same via the root explorer option in ES file explorer and it didn't work. I tried to toggle the root explorer option in ES, but after I turned it off I couldn't turn it on again. Root checker does say that I have root, and other root apps e.g. adaway, xprivacy still work.
Any help and suggestion is most welcome!
Click to expand...
Click to collapse
hey guys, "system less root"
That would modify system... Just freeze the apps.
geoff5093 said:
That would modify system... Just freeze the apps.
Click to expand...
Click to collapse
Some people still want to recover the space.
With systemless root you will need to modify the system in TWRP to get titanium and ES working correctly.
It's as simple as going into TWRP and mounting the system R/W.
You then need to open the terminal in the following places:
/system/bin and execute "touch su"
/system/xbin and execute "touch su"
This will create zero byte files for SuperSu to come along and swap/link to on boot so that ES and TiBu can ask for root and get it.
They will then operate as you expect.; with the caveat that you are on your own when you start tinkering and may break something.
tech_head said:
Some people still want to recover the space.
With systemless root you will need to modify the system in TWRP to get titanium and ES working correctly.
It's as simple as going into TWRP and mounting the system R/W.
You then need to open the terminal in the following places:
/system/bin and execute "touch su"
/system/xbin and execute "touch su"
This will create zero byte files for SuperSu to come along and swap/link to on boot so that ES and TiBu can ask for root and get it.
They will then operate as you expect.; with the caveat that you are on your own when you start tinkering and may break something.
Click to expand...
Click to collapse
Pretty sure you lose Android Pay with this method though, just FYI if you care about that.
But if you are running Xposed you broke it anyway. There is a way to get it working.
You will need to remove the empty su files you just created to be able to add cards.
You will need to use a Xposed module to hide modifications to the system so that the device check comes back clean.
It's a pain, but if you want Xposed, TiBu, ES and Android Pay, that is the price.
Sent from my Nexus 6P using Tapatalk
I usually use this app:
https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp
I'm not on 6.0.1 at the moment so I can't test if it works. Anyone wanna test it out and report back?
WizeGuyDezignz said:
I usually use this app:
https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp
I'm not on 6.0.1 at the moment so I can't test if it works. Anyone wanna test it out and report back?
Click to expand...
Click to collapse
Doesn't work. Apps restore themselves.