Merge "Adding a way to stub Vpn ConfirmDialog" into klp-modular-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
90e96db0b5
@@ -17,8 +17,10 @@
|
|||||||
package com.android.internal.net;
|
package com.android.internal.net;
|
||||||
|
|
||||||
import android.app.PendingIntent;
|
import android.app.PendingIntent;
|
||||||
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.res.Resources;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.os.UserHandle;
|
import android.os.UserHandle;
|
||||||
@@ -47,7 +49,10 @@ public class VpnConfig implements Parcelable {
|
|||||||
|
|
||||||
public static Intent getIntentForConfirmation() {
|
public static Intent getIntentForConfirmation() {
|
||||||
Intent intent = new Intent();
|
Intent intent = new Intent();
|
||||||
intent.setClassName(DIALOGS_PACKAGE, DIALOGS_PACKAGE + ".ConfirmDialog");
|
ComponentName componentName = ComponentName.unflattenFromString(
|
||||||
|
Resources.getSystem().getString(
|
||||||
|
com.android.internal.R.string.config_customVpnConfirmDialogComponent));
|
||||||
|
intent.setClassName(componentName.getPackageName(), componentName.getClassName());
|
||||||
return intent;
|
return intent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1394,6 +1394,10 @@
|
|||||||
<string name="config_customAdbPublicKeyConfirmationComponent"
|
<string name="config_customAdbPublicKeyConfirmationComponent"
|
||||||
>com.android.systemui/com.android.systemui.usb.UsbDebuggingActivity</string>
|
>com.android.systemui/com.android.systemui.usb.UsbDebuggingActivity</string>
|
||||||
|
|
||||||
|
<!-- Name of the CustomDialog that is used for VPN -->
|
||||||
|
<string name="config_customVpnConfirmDialogComponent"
|
||||||
|
>com.android.vpndialogs/com.android.vpndialogs.CustomDialog</string>
|
||||||
|
|
||||||
<!-- Apps that are authorized to access shared accounts, overridden by product overlays -->
|
<!-- Apps that are authorized to access shared accounts, overridden by product overlays -->
|
||||||
<string name="config_appsAuthorizedForSharedAccounts">;com.android.settings;</string>
|
<string name="config_appsAuthorizedForSharedAccounts">;com.android.settings;</string>
|
||||||
|
|
||||||
|
|||||||
@@ -1638,6 +1638,7 @@
|
|||||||
<java-symbol type="integer" name="config_maximumScreenDimDuration" />
|
<java-symbol type="integer" name="config_maximumScreenDimDuration" />
|
||||||
<java-symbol type="fraction" name="config_maximumScreenDimRatio" />
|
<java-symbol type="fraction" name="config_maximumScreenDimRatio" />
|
||||||
<java-symbol type="string" name="config_customAdbPublicKeyConfirmationComponent" />
|
<java-symbol type="string" name="config_customAdbPublicKeyConfirmationComponent" />
|
||||||
|
<java-symbol type="string" name="config_customVpnConfirmDialogComponent" />
|
||||||
|
|
||||||
<java-symbol type="layout" name="resolver_list" />
|
<java-symbol type="layout" name="resolver_list" />
|
||||||
<java-symbol type="id" name="resolver_list" />
|
<java-symbol type="id" name="resolver_list" />
|
||||||
|
|||||||
Reference in New Issue
Block a user