diff --git a/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java b/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java index 1c4a6629d1..377da91ca4 100644 --- a/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java +++ b/Tethering/tests/integration/base/android/net/EthernetTetheringTestBase.java @@ -146,8 +146,6 @@ public abstract class EthernetTetheringTestBase { private final TetheringManager mTm = mContext.getSystemService(TetheringManager.class); private final PackageManager mPackageManager = mContext.getPackageManager(); private final CtsNetUtils mCtsNetUtils = new CtsNetUtils(mContext); - private final UiAutomation mUiAutomation = - InstrumentationRegistry.getInstrumentation().getUiAutomation(); // Late initialization in setUp() private boolean mRunTests; @@ -276,7 +274,6 @@ public abstract class EthernetTetheringTestBase { } finally { mHandlerThread.quitSafely(); mHandlerThread.join(); - mUiAutomation.dropShellPermissionIdentity(); } }