ProvisioningService: disable PawletSetupWizard when setup wizard is off
Add me.pawlet.setupwizard to the list of packages disabled when enable_setupwizard=false. Remove org.lineageos.setupwizard (not shipped). Update README to reflect real default config APK URL.
This commit is contained in:
@@ -41,7 +41,7 @@ enable_configapk_service=true
|
||||
device_provisioned=true
|
||||
enable_setupwizard=false
|
||||
config_apk_package=app.pawlet.config
|
||||
config_apk_url=https://example.com/pawlet_config.apk
|
||||
config_apk_url=https://oxmc.me/aosp_apis/data/default-config.apk
|
||||
```
|
||||
|
||||
## Config APK format
|
||||
|
||||
@@ -401,9 +401,9 @@ public class ProvisioningService extends Service {
|
||||
boolean enable = VendorConfig.isSetupWizardEnabled();
|
||||
Log.i(TAG, "Setup wizard: " + (enable ? "ENABLED" : "DISABLED"));
|
||||
if (!enable) {
|
||||
disablePackage("me.pawlet.setupwizard");
|
||||
disablePackage("com.android.setupwizard");
|
||||
disablePackage("com.google.android.setupwizard");
|
||||
disablePackage("org.lineageos.setupwizard");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user