Skip to content

Tags: BytesOfBinary/android_system_su

Tags

cm-10.1-M2

Toggle cm-10.1-M2's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
su: Setting root access to "ADB only" doesn't work

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=5897

1. Settings > Developer Options > Root access > ADB only
2. Reboot device, just to be sure.
3. Plug the phone via USB to a computer capable of running adb.
4. Run adb shell. Results follows.

This change does:

- Add constants for CM Su Settings
- For app access, check that uid is not shell or root (this is when shell gains access
and then do a su from root)
- Hide shell and root UI deny/allow messages. This are always from background task (adb or
su from root) and messages are always on logcat. Only apps messages are shown.

Change-Id: Ib3cce944adb8810f49997add8beb628ea978af93

cm-10.1-M1

Toggle cm-10.1-M1's commit message

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
su: Setting root access to "ADB only" doesn't work

Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=5897

1. Settings > Developer Options > Root access > ADB only
2. Reboot device, just to be sure.
3. Plug the phone via USB to a computer capable of running adb.
4. Run adb shell. Results follows.

This change does:

- Add constants for CM Su Settings
- For app access, check that uid is not shell or root (this is when shell gains access
and then do a su from root)
- Hide shell and root UI deny/allow messages. This are always from background task (adb or
su from root) and messages are always on logcat. Only apps messages are shown.

Change-Id: Ib3cce944adb8810f49997add8beb628ea978af93