Give ACCESS_NETWORK_STATE permission to PacProcessor.
Fix UnsupportedOperationException for PacProcessor#createInstance. Bug: 169844605 Bug: 171733851 Test: n/a Change-Id: Ied19cc296c945c8923ffa65452113a87a13e7a25
This commit is contained in:
@@ -54,7 +54,7 @@ public interface PacProcessor {
|
||||
*/
|
||||
@NonNull
|
||||
static PacProcessor createInstance() {
|
||||
throw new UnsupportedOperationException("Not implemented");
|
||||
return WebViewFactory.getProvider().createPacProcessor();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
package="com.android.pacprocessor">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
<application
|
||||
android:label="@string/app_name"
|
||||
|
||||
Reference in New Issue
Block a user