I might be talking out of my butt here but if the theme engine is able to write to the system folder, couldn't this be exploited to gain root somehow? Sorry if this is a dumb question.
Related
Hi there,
Is there a way to temporary root my Nexus S [I9020XXKD1] or alternatively a non-root way to access /data so that I can copy a file in and out? Essentially I want to be able to backup and restore some game saves
Most posts I've read basically have folks saying "Just root it", which is good advice to most but isn't right for me - I really don't want to have to wipe my phone and I'd also like to be able to dip my toe into rooting before taking a full leap. That, and aside from needing this one file in /data my phone works exactly as I'd like it to
I only need "su" access for a brief moment to copy off a file to and from /data. I set up the android sdk but ADB didn't work because of the protection of "production builds".
VISIONary seemed like the right kind of thing, but I don't believe it works for the Nexus S or recent firmware, so while temp rooting would be nice so would any solution that allows me to backup and restore some files in /data.
At the moment I am wondering if writing an apk of my own that copies/replaces this one file is the way to go - but that seems perversely long way around!
So any help/suggestions most appreciated
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
If you have the old bootloader (2.3.2 i think) you can boot a recovery without flashing. From you computer use "adb boot recovery.img" and boot clockwork recovery. From there you can mount and access the filysystems.
Sent from my Nexus S using XDA App
Maximilian Mary said:
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
Click to expand...
Click to collapse
Thanks I figured as much. The game is Dungeon Hunter 2 and essentially I am trying to implement a simple fix to make my save game work again (the fix is here: http://forum.xda-developers.com/showthread.php?t=1042675 a few posts down) but it requires root. So I do know the exact paths and filename.
Thank you for your helpful answer
Ok, I'm not having any luck here, and it's pissing me off. FYI, I don't have that game, so I'm testing it with Angry Birds. I can read and copy the file just fine, but I can't modify it without using root. The data file itself has read/write access, but the containing folder (files/) is read-only, so I can't overwrite the file after I've modified it. Since the file itself has r/w access, I wonder if it would work to modify the file directly, instead of using an outside program to modify it then overwriting it. (I'm a bit ignorant of the finer points of linux permissions.) This would require an app that would allow you to open and modify a file by typing the full path & filename, instead of just browsing the directory tree. You could also try < adb pull /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame dh2_000.savegame > (using the correct path, if that's not it). Then see if < adb push dh2_000.savegame /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame > works. The fact that you can copy the file out is promising, anyway. So even if you had to root, you could backup the file before rooting wipes everything, then fix it & back it up after you had root.
Btw, what version of Android are you on?
Edit: I think I'm getting somewhere. While you can't modify the file itself, you can modify the file contents. So something like this might work: < adb shell >
< more /sdcard/dh2_000.savegame > /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame >
So the next step is to get some help from someone who has the game and is rooted as to the exact path to the savegame file. Once we have that, I think we're golden. (Or, let me know if adb pull works with the path I guessed at.)
wow! Thank you for your help
In answer to your questions: my Nexus s is running 2.3.4 and you are correct about the file path (many other kind xda users died to bring us those paths ) is /data/data/com.gameloft.android.TB with the filename being dh2_000.savegame
I don't want to drive you to distraction! If I could back it up I probably would go ahead then and root the phone given how complexplaying with a non-rooted phone is!
I will try the adb pull method and let you know how I get on.
Thank you again for your help and for showing me why I probably do want to root!
if this is in the wrong place mods i am sorry so feel free to move to the right place at your discretion as i am not sure where this question would go.
is there an easy to understand way to make an app that would install 1 specific file to a specific folder on the system (/data/local). im no coder so i have no idea how to do this but i want to make an app that is simple and basic so that when a user opens the app it's only function is to install a certain file into the /data/local folder
Couldn't you just use Root Explorer to do this? I would think there would be a way to do this with Tasker, but I'm not really familiar with the app. I tried out the trial (available on the Tasker website) and learned a little about how to work it, but ultimately realized that there wasn't much that I'd use it for.
I'm sure if you gave your intentions - what file for what reasons, etc - you'd be more likely to get a solution.
Sent from my PC36100 using Tapatalk
i use root explorer for my own phones but i create custom boot animations and i am lookign for a way to make an App that would include (X) bootanimation, and upon downloading/installing it he app would automaticly install the bootanimation.zip file that its bundled with into the users /data/local folder, as some people dont have the tools or abilitys/familierty with the there phone to move the bootanimation to where it needs to be to actually work.
I'm rooted with CleanRom 2.3. Every now and then I read about modifying a system file and it always mentions "be careful and don't change permissions". How do you change permissions? What permission does a file have...are they talking about read/write ???
Would someone please tell us about permissions and how to not change them or change them, if appropriate?
Thanks!
Larry Fortune said:
I'm rooted with CleanRom 2.3. Every now and then I read about modifying a system file and it always mentions "be careful and don't change permissions". How do you change permissions? What permission does a file have...are they talking about read/write ???
Would someone please tell us about permissions and how to not change them or change them, if appropriate?
Thanks!
Click to expand...
Click to collapse
I don't think you have to worry too much about permission. If you rooted you do have the admin power to do anything to the Operating system. Usually people are using "root explorer" for "ES file explore" or what ever (they all available from the market) to view system files and you do have option to change permission of a file like read,write, execute etc... Just don't change them, unless you are using third party scripts or files to replace the original system files. In this case just make a backup of the original then replace the file and set the permission same as the original. Too much permission is not going to hurt the application but not enough permission will causes the app not to work anymore. To much permission usuallly introducing security risk, like the app could actually get your phone/personal information and send them to the third party. In short, if you don't know what you are doing, just stay away from permission. If you decided to mod your phone and involving in changing permission, make sure you understand. read carefully and ask for help before doing so.
Larry Fortune said:
I'm rooted with CleanRom 2.3. Every now and then I read about modifying a system file and it always mentions "be careful and don't change permissions". How do you change permissions? What permission does a file have...are they talking about read/write ???
Would someone please tell us about permissions and how to not change them or change them, if appropriate?
Thanks!
Click to expand...
Click to collapse
I'd recommend using Root Explorer or ES File Explorer to fix those 'permission' messages.
You'll be able to edit everything you want, without the hassle of changing the permissions to edit/mod stuff.
Eg. Changing DPI can be a mess, but using Root Explorer it only takes a minute of your time and you don't need some stupid app to do it for you, which always makes you feel like you know what you're doing, (while - in my case - some do not, but it just looks cool )
Hello, i read a lot on google about root but didn't find the answears that i'm looking for, hope some of you can explain.
I want to access the /system of my phone to change hosts file for example.
I know i need root access for that of course but that is my question.
What is neccessary for that, is placing the su binary in
/system/xbin/su
enough to access /system?
do i have then root access? or i need busybox, superuser.apk and some commands also?
thank you guys
if you have su already pushed into system partition means you got root access but if you dont have supersu installed you can't manage permissions that an application would request
so it is just the *su binary* necessery without chmod or something else? (theoretic)
Dear all.
Do anyone use rooted on VS987 at this time ?
I need root because I need modify telephony-common.jar and some framework file for use Korea. Can you let rooting methode ?
Temporary rooting is no problem. I need possbile read and write /system/app, /system/priv-app, /system/framework folder some time.
Thanks.
naraymm said:
Dear all.
Do anyone use rooted on VS987 at this time ?
I need root because I need modify telephony-common.jar and some framework file for use Korea. Can you let rooting methode ?
Temporary rooting is no problem. I need possbile read and write /system/app, /system/priv-app, /system/framework folder some time.
Thanks.
Click to expand...
Click to collapse
No root yet for us... Please look through other threads before posting.
Thanks.
andyroidking said:
No root yet for us... Please look through other threads before posting.
Click to expand...
Click to collapse
Thank you, sir.
I already look the another posts. Because the posts are older, so I asked it again. Good luck.
Do you know a link of a tutorial on how to do the Temp root? Thanks!
Jubbard said:
Do you know a link of a tutorial on how to do the Temp root? Thanks!
Click to expand...
Click to collapse
Have you tried this
https://forum.xda-developers.com/lg-g5/how-to/guide-adb-root-rw-dm-verity-off-sprint-t3523499
It says that it should work on nougat, and doesn't really pose much risk to try, as long as you have the firmware and LG files that you can download from here;
https://forum.xda-developers.com/ve...rizon-lg-g5-vs987-android-nougat-7-0-t3516709
Best
I know this might sound dumb, but if you have system rw with the dirtysanta exploit, couldn't you just adb push su binaries and supersu.apk to the system to gain temp root?