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)
Related
when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
ripsta99 said:
when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
Click to expand...
Click to collapse
when paste or modifying a file in the root system, you need to tap the r/w to r/o in order to write or change permissions.
If you are doing a 3e mod, don't forget to change the permissions too.
....not working. if i change it to read only it Def not working.
ripsta99 said:
....not working. if i change it to read only it Def not working.
Click to expand...
Click to collapse
Check again to see what you are doing wrong. Its a toggle to read/write or read only.
If you're using root explorer, you have root.
Infuse n root explorer is not smart enough to pick out just you.
Edit.. Are you trying the 3e mod?
Three are easier way
ripsta99 said:
when i try to copy files to /system/ nothing happens
i mounted as r/w so what could be the problem?
Click to expand...
Click to collapse
bad su binary?
does super user show root explorer having super user permission? do you have super user installed? does it give a notification or toast that permissions were granted either when the app starts or on boot?
if that is all ok then open terminal emulator and type
su
(you should see $ change to # and a notification for superuser permissions granted.. if not you likely need to re root the phone)
if that goes OK then type
mount -o rw,remount /dev/block/stl9 /system
if it has any error like permission denied or invalid argument or can't remount folder exists or anything at all then there is something odd going on, could be something I'm overlooking, could be a bad su binary. try reflashing and don't update the binary if you are on a custom kernel.
edit: overlooking busy box. try installing it from a busybox installer from the market! that should fix it if su is OK.
Also, you may new to delete the app and reinstall, that happened to me and it thought I was trying to pirate the app. It would open but Wouldn't let me move/replace anything.
Then I went and verified I paid for it and everything worked after that.
hellos, in trying to get some ad block host files installed but there's no conventional way to write the files... can i use cwm or adb to push the host files?
i understand this isn't practical in terms of keeping the host files up to date but once the files are there 90-99% should be blocked for at least a few months which is good enough for me.
i had the same problem on my a510. after you mount it as rw, use chmod to give yourself write permissions the correct dir (/etc i think?), put the host file in place, then change the permissions back.
i did this with adb.
i cant remember what the permissions are suppose to be for /system and /etc after i messed with them, so i set them both to 755, and now AdFree works as advertised. where before i tinkered with permissions, it couldn't write the host file. i tired a couple adblock apps, and they all had the same write permission issue.
Rusty_Gunn said:
i had the same problem on my a510. after you mount it as rw, use chmod to give yourself write permissions the correct dir (/etc i think?), put the host file in place, then change the permissions back.
i did this with adb.
i cant remember what the permissions are suppose to be for /system and /etc after i messed with them, so i set them both to 755, and now AdFree works as advertised. where before i tinkered with permissions, it couldn't write the host file. i tired a couple adblock apps, and they all had the same write permission issue.
Click to expand...
Click to collapse
I'm using A700 and I've already tried editing permissions, didn't work.
this was what happened
i rooted my samsung galaxy pocket gt-s5300 succesfully
i replaced superuser.apk file in "system\app" by new one
and again i copied new binary file "su" in system\bin.previously there was not su file in this directory
when i restart it superuser permission denied everything.and so now i cannot delete the su binary file i copied in system\bin directory
do anyone know the solution for this?
GAEENG said:
this was what happened
i rooted my samsung galaxy pocket gt-s5300 succesfully
i replaced superuser.apk file in "system\app" by new one
and again i copied new binary file "su" in system\bin.previously there was not su file in this directory
when i restart it superuser permission denied everything.and so now i cannot delete the su binary file i copied in system\bin directory
do anyone know the solution for this?
Click to expand...
Click to collapse
Really really really wrong section!!!!! This is not you're device thread!!
With that being said.
U should have not replaced anything!
Re-root your phone than swap your root control app or update the existing one. As u need one to allow permissions to the other!!
After that use tit backup and uninstall the other superuser app
Take care and pay attention to where are u posting
Sent from my GT-I9300 using xda premium
ver3go said:
really really really wrong section!!!!! This is not you're device thread!!
With that being said.
U should have not replaced anything!
Re-root your phone than swap your root control app or update the existing one. As u need one to allow permissions to the other!!
After that use tit backup and uninstall the other superuser app
take care and pay attention to where are u posting
sent from my gt-i9300 using xda premium
Click to expand...
Click to collapse
thank u my friend.
I really dont know where to post.i searched for almost 3 days.
Could u guide me?pls.
Thank u again
Sit tight. Mods have been asked to move your thread to the appropriate forum, they'll do it soonish.
Ver3go said:
Really really really wrong section!!!!! This is not you're device thread!!
With that being said.
U should have not replaced anything!
Re-root your phone than swap your root control app or update the existing one. As u need one to allow permissions to the other!!
After that use tit backup and uninstall the other superuser app
Take care and pay attention to where are u posting
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I FINALY FOUND MY PROBLEM
I have two binaries one in /system/xbin/su and the other in /system/bin/su
#ls -l /system/*/su gives me this:
-rwxrwxr- system sdcard_rw 380532 2013-05-22 17:13 su
-rwsr-xr-x root root 22236 2013-05-22 17:13 su
#chmod 06775 /system/bin/su gives me this:
unable to chmod /system/bin/su: readonly filesystem
#echo $PATH gives me this
/system/bin/su: /system/Xbin/su
so what should i do next?
is it possible to swap the path variables
i mean to make "echo $path give /system/Xbin/su:/system/bin/su"
10Q
I am trying to get rid of lots of bloatware that I don't want in my new unlocked Motorola Atrix hd phone. I have rooted the phone and got terminal emulator and su working. When I read around on the internet, there are posts describing to remount the /system/app for read/write, delete the apk and odex files and the remount again for read only.
My understanding is that root should be able to "rm" those files in "su" mode if you can see them. So why do we have to remount them before deleting and after? What does it do? What happens if I simply "rm" the apk and odex files in /system/app without remounting before or after, I mean if I am able to "rm"?
Thank you.
I believe the logic is that for security reasons the system/app partition is mounted in read-only mode by default. With root privileges, you can mount it as read/write and make changes such as removing apk files. When you're done editing, you should remount the /system/app partition as read-only, restoring it to its default state. If you don't, any process could theoretically make changes to the files in that partition which could damage your OS or apps.
So we remount the partition because we cannot delete them otherwise. That means if we are able to delete them without remounting, it is OK to do so. Correct?
I believe so. But just to be sure, I would strongly advice to make a nandroid backup before you delete any files.
skipperx said:
I am trying to get rid of lots of bloatware that I don't want in my new unlocked Motorola Atrix hd phone. I have rooted the phone and got terminal emulator and su working. When I read around on the internet, there are posts describing to remount the /system/app for read/write, delete the apk and odex files and the remount again for read only.
My understanding is that root should be able to "rm" those files in "su" mode if you can see them. So why do we have to remount them before deleting and after? What does it do? What happens if I simply "rm" the apk and odex files in /system/app without remounting before or after, I mean if I am able to "rm"?
Thank you.
Click to expand...
Click to collapse
Just use this app free from the Play Store: https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp
No messing around with Terminal and any commands.
I found out. I could not delete even as su and got a msg that it was read only. That's why we need to remount.
Or you can use Titanium Backup. TB has option to backup system app&data and then remove.
It's safer...
You can also freeze apps with TB. If something goes wrong, you can unfreeze it or do factory reset.
Hello,
I have a sony xperia e3, with unlocked bootloader, and it is rooted.
But I don't have write access to /system.
How can I fix this?
Greetz
Ps, I have rooted with the mobile kingo root app and then I have unlocked my bootloader. I can't change the ric because it changes back to the default when I save it.
This thread may be closed or deleted, it was ok after I rooted with the mobile kingroot app
Use es file explorer
getting rw on /system
Wouter_ said:
This thread may be closed or deleted, it was ok after I rooted with the mobile kingroot app
Click to expand...
Click to collapse
try mounting rw in / system with terminal emulator or es file explorer if that doesn't work
get an apk named " super su me " from Google and run the application
lingo super user and kinguser don't let u get rw on /system
super su me app let's u get rid of lingo super user and get super is as your super user manager then try mounting rw in /system using terminal or es it'll work for sure this time