Commit graph

5 commits

Author SHA1 Message Date
Joshua Duong
3d0860e802 Add adbd tls APIs to adbd_auth library.
Bug: 111434128

Test: mmm -j frameworks/native/libs/adbd_auth
Change-Id: Id285763c2c2dba1666040581d1d2d56e69ff54cb
2020-02-20 19:05:42 -08:00
Josh Gao
ff20525bc2 adbd_auth: actually dynamically link it into adbd.
Bug: http://b/137798163
Test: cat /proc/`pidof adbd`/maps | grep adbd_auth
Change-Id: Ie86c65d50941ad97cc5c30d0392fd0d877585170
2020-01-16 23:21:16 -08:00
Josh Gao
bb927a13b4 adbd_auth: dispatch pending prompts on success.
If we have multiple queued auth requests, we need to dispatch our
pending prompts on success as well as failure.

Test: `mux off; mux a; mux off; mux` to switch, then tapped allow twice
Change-Id: I14ce2a1c43fbd9af45397c9fb778a0e145ceabba
2020-01-02 12:33:43 -08:00
Josh Gao
9327d976f1 Fix darwin build break.
Bug: http://b/143994895
Test: mma on linux
Change-Id: Ia361959461262ff6d5e299d6815a6b1772590d90
2019-11-05 21:23:54 -08:00
Josh Gao
b789fb14d6 Move adbd authentication into its own library.
As part of moving adbd into a module, split authentication out into a
library with a stable ABI that lives on the system image.

Bug: http://b/137798163
Test: for i in `seq 1 100000`; do echo $i; adb wait-for-device shell "su 0 stop; su 0 start; sleep 10"; adb disconnect; done
Change-Id: I05e3679598e33c83f8cc4c17208f4f753cbfd5e1
2019-10-29 14:58:06 -07:00