Merge "Ensure ADB is stopped when enabling Test Harness Mode" into rvc-dev am: e23c8dd158 am: 29fe05751e
Change-Id: I9491e11581611a7e5ddd57cb2fd49cc799f2e1ce
This commit is contained in:
@@ -161,6 +161,10 @@ public class TestHarnessModeService extends SystemService {
|
|||||||
private void configureSettings() {
|
private void configureSettings() {
|
||||||
ContentResolver cr = getContext().getContentResolver();
|
ContentResolver cr = getContext().getContentResolver();
|
||||||
|
|
||||||
|
// Stop ADB before we enable it, otherwise on userdebug/eng builds, the keys won't have
|
||||||
|
// registered with adbd, and it will prompt the user to confirm the keys.
|
||||||
|
Settings.Global.putInt(cr, Settings.Global.ADB_ENABLED, 0);
|
||||||
|
|
||||||
// Disable the TTL for ADB keys before enabling ADB
|
// Disable the TTL for ADB keys before enabling ADB
|
||||||
Settings.Global.putLong(cr, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0);
|
Settings.Global.putLong(cr, Settings.Global.ADB_ALLOWED_CONNECTION_TIME, 0);
|
||||||
Settings.Global.putInt(cr, Settings.Global.ADB_ENABLED, 1);
|
Settings.Global.putInt(cr, Settings.Global.ADB_ENABLED, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user