[Q] How do I access my /root directory? - Nexus S Q&A, Help & Troubleshooting

I just unlocked my bootloader and rooted my phone. But, I'm still not able to see system files or access the root directory or run various commands like SUFBS or mount from adb.
Does anyone know what I can do to get these permissions?
adb shell
root
root: permissions denied

type su first

Aro2220 said:
I just unlocked my bootloader and rooted my phone. But, I'm still not able to see system files or access the root directory or run various commands like SUFBS or mount from adb.
Does anyone know what I can do to get these permissions?
adb shell
root
root: permissions denied
Click to expand...
Click to collapse
try with su permissions:
Code:
adb shell
su root
And allow su permissions on the phone, when asked...

Neato! Thanks

Related

Root and SU issues

Hello Everyone,
I have recently rooted my phone again but am having an issue. I cannot do an adb remount becase it says that permission is denied. This is going to be due to the fact that when I adb shell it starts with a $ instead of #. If I do the following it will work so that I can push files and system files:
PHP:
adb shell //enter adb shell
su //activate superuser
mount -o rw,remount /dev/block/mmcblock1p21 /system //mounts the drive and allows read/write
exit //exit superuser
exit //exit shell
adb push xxxxxxxxxx.apk /system/xxxxxxxxx/ //push whatever file is needed
My question is why can I not just adb push or remount? Does anyone know how to make it so that I auto superuser when doing adb shell so i get # instead of $?
you should be able to just type adb remount and have the /system turned either RW or RO depending on what its changing from...
Have you granted superuser permissions to adb? It should pop up on the phone.
yes superuser works on the phone. I can access superuser and it will work but I have to do it manually.
jj702561 said:
you should be able to just type adb remount and have the /system turned either RW or RO depending on what its changing from...
Click to expand...
Click to collapse
I understand that it should allow it but its not. That is exactly what this post is for. If i do the commands list in the first window this is manually change it to RW and then after I finish I set it back to RO.
theecho said:
yes superuser works on the phone. I can access superuser and it will work but I have to do it manually.
Click to expand...
Click to collapse
Right, but a superuser request will pop up when you use adb remount. Try it again and check the phone for it.
its not getting to that point. It is giving me an error on the command prompt. I have checked for it and the SU wasnt there

[Q] Problems with ADB remount / pushing app

I've unlocked my phone via HTCDev, which to my understanding should give enough permissions and whatnot for adb to work on system files too.
I'm trying to push application to replace system application, I know the application works, I got both signed & unsigned versions of it but same thing with either one of them.
adb remount says "remount failed: operation not permitted" and adb push [file] /system/apps says "failed to copy '[file]' to '/system/apps/': read-only file system
--
What am I doing wrong, or do I really have to root the phone just to get one damn application replaced with modified one?
Bump
Have you rooted?
frazzeld said:
Have you rooted?
Click to expand...
Click to collapse
This^
You need to have SU# access, which be definition needs root permissions. If you haven't already, use the all in one tool kit to flash clockwork and root that beech. Then when in ADB you enter SU and you will get a prompt like this #, indicating you have root privileges.
Update, I have rooted, stock rom still though
If I use adb shell, I get $, but writing "su" in shell gives me #
still, I've tried both the adb remount and in shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
the latter seems to work, but however still when I try to push something to /system/app it still says permission denied
edit:
not quite sure what I did, but i finally got SUCCESS from installing from shell
how did you install through the shell

[Q] need help with adb shell busybox is write protected

I have a Huawei H867G Inspira it is or was rooted now through adb shell i cant execute any busybox commands mkdir, mount, ls etc. it gives me cannot execute permission denied. Now the system is read only i have tried several adb commands i can get shell but su command just stays in limbo but the toast notifications says that shell has been granted super user permission but nothing happens i can't use titanium backup either and fix permissions on scripter, and busybox installer don't work any help would be greatly appreciated
I'm also using ics and out is aqualcomm device rooted with framaroot o have uninstalling root won't work i used customscript on framaroot 1.9. It says success by the system status is still read only

help about adb system mount

Hi
I have a elephone G9. this phone came in a strange situation.
the "su" script which should be in "/system/xbin" to let superuser work is in "/custom/xbin".
I tried to move it with adb but I couldn't find any way to mount system folder as RW without root.
any attempt to remount it like "adb remount" ends in something like permission denied.
If there is any way to mount system as rw in adb without already having root or any other way to do the job, please answer me.
Thank you.
To anyone who has the same problem (probably with another elephone) the su script in /custom/xbin is executable by adb shell. so execute it and then do other stuff needed to root.
if needed further instructions feel free to ask.

How to access data folder from non-rooted device?

A few weeks ago one of my important apps started crashing on open.
Since I have important informaiton saved on that app I need to obtain it.
Is there a way to access that package folder (and that app is not debuggable) with adb or shell?
When I try to access via adb and shell the result it Permission denied.
I can't root the phone, so this is out of the quesiton.
I'm using Google Pixel 1 with Android 10 Build - Build/QP1A.191005.007.A3)
There isn't any way to access /data/data/ as a normal user or shell user, the only user able to access that is root, at least according to the permissions.
You could try to backup using "adb backup package", then you could apply this backup back on another phone or on this same app after reinstalling it.
bystroy said:
A few weeks ago one of my important apps started crashing on open.
Since I have important informaiton saved on that app I need to obtain it.
Is there a way to access that package folder (and that app is not debuggable) with adb or shell?
When I try to access via adb and shell the result it Permission denied.
I can't root the phone, so this is out of the quesiton.
I'm using Google Pixel 1 with Android 10 Build - Build/QP1A.191005.007.A3)
Click to expand...
Click to collapse
Temporarily root phone's Android, means add su cmdlet what is suitable, and then mount the partition in question as RW by means of ADB applying su.
Example:
Code:
adb devices
adb push <SU-BINARY> / data/local/tmp/
adb shell "chmod +x /data/local/tmp/su"
adb shell "/data/local/tmp/su -c 'mount -t auto -o rw,remount <PARTITION-IN-QUESTION>'"
adb pull "<DIRECTORY-TO-PULL>" <LOCATION-ON-PC>

Categories

Resources