summaryrefslogtreecommitdiff
path: root/libcutils/sockets_unix.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-10-30 10:37:32 -0700
committerTianjie Xu <xunchang@google.com>2019-11-04 16:12:00 -0800
commit915946da08bf6e00cbbc466a36255b65da759904 (patch)
tree503d513157261b933c9613273e46addd65d5bd16 /libcutils/sockets_unix.cpp
parent65cb36c4f7988cb3d8baa3a5346e92f64705f577 (diff)
Grant adb auth under recovery for unlocked & userdebug devices
During automatic tests, we sometimes want to reboot the device out of the rescue party remotely. And per http://go/recovery-adb-access, we need to grant the adb authorization to enable the adb access. The auth are only granted for userdebug devices and those with an unlocked bootloader. Since the user can always flash a custom recovery image if the bootloader is unlocked. This cl ignores the ro.adb.secure property under recovery. The other option is to default this property to 0 when building the boot/recovery image. Bug: 141247819 Test: unlock bootloader, run adb under recovery in user build Change-Id: I424cfed5bf51a1e31d8687256ae4c6eaaa5e6249
Diffstat (limited to 'libcutils/sockets_unix.cpp')
0 files changed, 0 insertions, 0 deletions