1

i'm new here, so i apologize in advance if this is a n00bish question:

how could one remount /system (or any partition, for that matter) in rw and allow suid on a booted system via ADB wifi? here's some particulars:

  • hardware=custom, no exterior ports
  • bootloader=unknown
  • kernel=loop device and module enabled
  • ro.secure=1
  • recovery=OEM
  • version=4.3
  • root=temp
  • busybox=yes, custom
  • mount=ext4; ro; relatime; barrier=1; nosuid

thnx

1
  • just fyi, i don't have microUSB access. i have to do this via wifi on a fully booted system. May 18, 2015 at 12:29

2 Answers 2

1

Once your debug bridge is connected, get it running as root with adb root. Then remount the partition read/write using adb shell mount -o rw,remount /system.

Not sure what you mean by the suid part of your question, but if you can elaborate, I will try to answer that as well.

4
  • i suppose the suid portion might be redundant, so nvm that. i have tried that one, no luck with it. May 18, 2015 at 10:21
  • Are you getting an error on either or both of the 'adb' commands? If you are remounting rw and still unable to modify the partition, you may have a bios protection. Some phones, like HTC call this S-ON. This must be changed to S-OFF before the 'mount' command will do anything. It can be difficult to get S-OFF, depending on the model of phone. May 18, 2015 at 11:33
  • adb root returns no error and build.prop shows adb running as root. i get the error when I pass the mount cmd to the shell. May 18, 2015 at 12:26
  • What exactly is the error you're getting?
    – dantis
    May 19, 2015 at 11:42
1

Try running everything from the ADB shell.

adb shell
su
mount -o remount,rw /system

If you install something as root "su" you can use chown to change the owner of the file. It's not quite like using suid but at least you can change the owner.

It also looks likes Busybox has suid built in, if you have the right version.

Check out this website for more info.

10
  • tried from the shell and from term emu installed via [adb install]. I have an su binary in /sdcard/Download, as well as one in /data/local, but can't execute the one in /sdcard. i'll try [chown] on the /sdcard/Download binary. thnx for the link. updates to come. May 18, 2015 at 16:13
  • What error are you getting when trying to execute the binary under /sdcard? You might need to change the permissions chmod 6774 su of the binary.
    – D. Gibbs
    May 18, 2015 at 18:13
  • "system/bin/sh: ./su: can't execute: Permission denied" May 18, 2015 at 20:46
  • And your tablet is rooted, correct?
    – D. Gibbs
    May 18, 2015 at 21:25
  • 1
    @aureljared, thanks for the permissions. The command might have -c on some ROM's but I don't remember using it. But that's not to say that I'm mistaken :) @particlewave_delta: why not just root the tablet permanently?
    – D. Gibbs
    May 19, 2015 at 19:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .