Root user cannot 'remount' - General Questions and Answers

Hi,
after a lots of hassle I finally accessed the root access into my Sony z2 tablet. But the Root Checker Basic app says
Sorry! Root access is not properly installed on this device.
Click to expand...
Click to collapse
I can still run
Code:
adb root
without error. And the
Code:
adb shell whoami
returns "root".
Still when I run
Code:
adb remount
it says
remount of /system failed; couldn't make block device /dev/block/platform/msm_sdcc.1/by-name/system writable: Permission denied
remount failed
Click to expand...
Click to collapse
I need to remount the device because I want to move an APK to the "/system/priv-apps" folder.

Did you try remounting directly from an adb shell ?
mount -o remount,rw /system

ddscentral said:
Did you try remounting directly from an adb shell ?
mount -o remount,rw /system
Click to expand...
Click to collapse
Yes I tried. it says
mount: Operation not permitted
Click to expand...
Click to collapse

Toriq100 said:
Yes I tried. it says
Click to expand...
Click to collapse
Are you trying to mount as root ? (your shell prompt should start with # and not $). If not, use "su" command to get root and then try mounting again.
If remount fails even from a root shell, check your SELinux status with "getenforce" command.

ddscentral said:
Are you trying to mount as root ? (your shell prompt should start with # and not $). If not, use "su" command to get root and then try mounting again.
If remount fails even from a root shell, check your SELinux status with "getenforce" command.
Click to expand...
Click to collapse
Yes, I am trying to mount as root so that I can move an APK to "system/priv-apps". My shell prompt does start with #. I cannot use "su", it says "[-] Daemon is stop".
I checked SELinux status. It says "Enforcing", then I tried "adb shell setenforce 0" it says "setenforce: Couldn't set enforcing status to '0': Permission denied". :'(

Likely SELinux is preventing remount.
Are you still using the original software or a custom ROM ?

ddscentral said:
Likely SELinux is preventing remount.
Are you still using the original software or a custom ROM ?
Click to expand...
Click to collapse
Original software (I gained the root access using KingRoot, tried everything else, didn't work)

I would either flash SuperSU with a custom recovery (assuming you can unlock the bootloader) or flash a third party ROM.

ddscentral said:
I would either flash SuperSU with a custom recovery (assuming you can unlock the bootloader) or flash a third party ROM.
Click to expand...
Click to collapse
I tried recovering with custom ROM but failed. Here I asked a question for reference, but didn't find working solution.

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

ADB question

I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
$ adb push email.apk /system/app
failed to copy 'email.apk' to '/system/app/email.apk': Read-only file system
Click to expand...
Click to collapse
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
$ adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
Then I tried open shell first. no go
$ adb shell
$ mount -o remount rw system/app
mount: Operation not permitted
Click to expand...
Click to collapse
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
$ adb shell
$ su
Permission denied
Click to expand...
Click to collapse
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
tangyoulei said:
I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
Then I tried open shell first. no go
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
Click to expand...
Click to collapse
you need to look at your phone and allow superuser app to grant permission
crazythunder said:
you need to look at your phone and allow superuser app to grant permission
Click to expand...
Click to collapse
su app? how should I set it? I didn't see anyone mentioned that. Do you care to give a bit more details? Thanks.
I think I figured out. I have to manually run the superuser app and let it say in active. Then when I type in "adb shell" the app on the handset will ask my permission. Thanks for the reminder.
Plus I am doing the following as the following that I read from another thread
adb shell
$ su
# mkdir /data/yourname
# chmod 777 /data/yourname
# exit
$ exit
adb push gps.conf /data/yourname
adb shell
$ su
# mount -o remount,rw /dev/block/mtdblock6 /system (copy biggrin.gif)
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system (copy biggrin.gif)
# mv /data/yourname/gps.conf /system/etc
Click to expand...
Click to collapse

[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] Any way to get ADB fully working on GT-P5110 ??

Hey guys!
I want to replace the original frmaework-res with my modded apk but ADB does not fully work Is there any Kernel which solves this problem or any other way?
Please HELP!
BTW: I am running official Android 4.1.1
mrlollog said:
Hey guys!
I want to replace the original frmaework-res with my modded apk but ADB does not fully work Is there any Kernel which solves this problem or any other way?
Please HELP!
BTW: I am running official Android 4.1.1
Click to expand...
Click to collapse
ADB works fully, what are you talking about?
WTF??!!
DigitalMD said:
ADB works fully, what are you talking about?
Click to expand...
Click to collapse
So for you "adb remount" and push to /system works??
FOLLOWING PROBLEM:
I get the following error when I try "adb remount"
remount failed: Operation not permitted
HELP PLS
mrlollog said:
So for you "adb remount" and push to /system works??
FOLLOWING PROBLEM:
I get the following error when I try "adb remount"
remount failed: Operation not permitted
HELP PLS
Click to expand...
Click to collapse
"adb remount" requires you to have the "ro.secure = 0" line in /default.prop on your tablet.
You need adbd insecure from Chainfire or KK-Boot boot image.
k1mu said:
"adb remount" requires you to have the "ro.secure = 0" line in /default.prop on your tablet.
Click to expand...
Click to collapse
Or you can use adb shell
Asuming your rooted, and mount -o rw, remount
Sent from my GT-P3113 using Tapatalk HD
sickysticky said:
Or you can use adb shell
Asuming your rooted, and mount -o rw, remount
Click to expand...
Click to collapse
Of course. (as long as you get it right: "mount -o remount,rw /system")
But the OP claimed that having to do that meant that ADB doesn't "fully work" because "adb remount" doesn't work. That requires ro.secure to be set to zero.

"Not running as root. Try "adb root" first." despite trying "adb root" above

C:\Users\HieAnh>adb root
restarting adbd as root
C:\Users\HieAnh>adb remount
Not running as root. Try "adb root" first.
Click to expand...
Click to collapse
after i do :"adb root" to cmd,
then i get :"restarting adbd as root"
next i do :"adb remount"
but i get :"Not running as root. Try "adb root" first."
a big question for this problem
my phone is rooted, switch ro.secure=0, ro.debuggle=1
pls help me
What response do you get when you type su in shell?
ze7zez said:
What response do you get when you type su in shell?
Click to expand...
Click to collapse
i get :
C:\Users\HieAnh>adb shell
gracerlte:/ $ su
gracerlte:/ #
Click to expand...
Click to collapse
The ADB driver does not care at all whether phone's Android is rooted or not. As you correctly stated one have to run adb root for ADB to gain root access device's Android.
I don't want to examine why adb root in your case doesn't work.
Anyways the following should be a workaround:
Code:
adb devices
adb shell "su -c 'mount -o remount,rw /system'"
...
...
jwoegerbauer said:
The ADB driver does not care at all whether phone's Android is rooted or not. As you correctly stated one have to run adb root for ADB to gain root access device's Android.
I don't want to examine why adb root in your case doesn't work.
Anyways the following should be a workaround:
Code:
adb devices
adb shell "su -c 'mount -o remount,rw /system'"
...
...
Click to expand...
Click to collapse
hmm, i just run
adb pull /data/data
Click to expand...
Click to collapse
but i get
/data/data/: 0 files pulled, 0 skipped.
Click to expand...
Click to collapse
why ?
You have to mount /data partitton as RW.

Categories

Resources