commit | bbb9690935278752df21c2650d73ba9234ecce62 | [log] [tgz] |
---|---|---|
author | Yi-Yo Chiang <yochiang@google.com> | Thu Jan 25 17:24:31 2024 +0800 |
committer | Yi-Yo Chiang <yochiang@google.com> | Mon Jan 29 15:51:52 2024 +0800 |
tree | 6610fb90aa283c0ff00d7e70f03f67aa78237235 | |
parent | 761db931672dd82a40267ec8d74da0abafa035f2 [diff] |
remount: Auto remount option (-R) also tries to gain root When doing an auto remount & reboot command and is running as the SHELL uid, just try to gain root on behalf of the user and retry the remount command. If "gain root" failed, then print the message to tell the user to run "adb root" and retry. Bug: 322285923 Test: adb unroot && adb remount -vR Test: adb unroot && adb shell remount -vR Change-Id: If8e04dc602573c73178c108ef4944f0a985b590e