Skip to content
Snippets Groups Projects
Commit f05b4475 authored by Mark Chien's avatar Mark Chien
Browse files

Remove unnecessary dropShellPermissionIdentity

The test doesn't explicitly call adoptShellPermissionIdentity anymore. Instead it use runAsShell everywhere. Remove the dead code.

Bug: 254183718
Change-Id: Ia949e0e315a3b3ae915752e95ef9fe896fdc0f5b
Test: TH
parent f652d2ca
No related branches found
No related tags found
No related merge requests found
...@@ -146,8 +146,6 @@ public abstract class EthernetTetheringTestBase { ...@@ -146,8 +146,6 @@ public abstract class EthernetTetheringTestBase {
private final TetheringManager mTm = mContext.getSystemService(TetheringManager.class); private final TetheringManager mTm = mContext.getSystemService(TetheringManager.class);
private final PackageManager mPackageManager = mContext.getPackageManager(); private final PackageManager mPackageManager = mContext.getPackageManager();
private final CtsNetUtils mCtsNetUtils = new CtsNetUtils(mContext); private final CtsNetUtils mCtsNetUtils = new CtsNetUtils(mContext);
private final UiAutomation mUiAutomation =
InstrumentationRegistry.getInstrumentation().getUiAutomation();
// Late initialization in setUp() // Late initialization in setUp()
private boolean mRunTests; private boolean mRunTests;
...@@ -276,7 +274,6 @@ public abstract class EthernetTetheringTestBase { ...@@ -276,7 +274,6 @@ public abstract class EthernetTetheringTestBase {
} finally { } finally {
mHandlerThread.quitSafely(); mHandlerThread.quitSafely();
mHandlerThread.join(); mHandlerThread.join();
mUiAutomation.dropShellPermissionIdentity();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment