Steps: add Bluetooth, SIM-missing, Date/Time, Restore (auto-skip), Location, microG, Screen-lock, Biometric, Navigation, Theme, Privacy/Metrics, Device-specific, Recovery-update, and an OTA update-check step, all on a shared WizardStepScaffold with DeviceProfile gating. PartnerReceiver + SETUP_COMPLETE broadcast added. microG: gate the step on microG's GmsCore being installed (microGAvailable) rather than hasGMS(), which additionally requires Google's setup wizard and is therefore always false on a microG build. OTA: UpdateChecker mirrors the Updater's read-only check (server URL from the Updater's own resources, same version/timestamp/release-type rules) and delegates download + A/B install to the Updater (update_engine). Props are read via reflection so the module still builds under Gradle. Kiosk + deep links gated off via WizardFlags (immersive skipped entirely, oxmc http/oxn VIEW filters removed from both manifests). Permissions gate removed (platform-signed SETUP_WIZARD already holds what it needs). Cleanup: purge Applebee's-mockup code (login/AuthManager, oxmcservers, ManagerInfo/UserInfo, TemperatureUnit, SettingsScreen, weather + oxmc API strings). Rework theme off the all-purple palette to neutral surfaces with violet/pink/teal accents; fix white-on-primary button contrast.
126 lines
5.8 KiB
XML
126 lines
5.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Root-level manifest used by the AOSP/Soong build (Android.bp).
|
|
app/src/main/AndroidManifest.xml is used by the Gradle/Studio build. -->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="me.pawlet.setupwizard"
|
|
android:versionCode="1"
|
|
android:versionName="1.0.0"
|
|
android:sharedUserId="android.uid.system">
|
|
|
|
<!-- Network -->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.NETWORK_SETTINGS" />
|
|
|
|
<!-- System settings -->
|
|
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
|
|
<uses-permission android:name="android.permission.WRITE_GLOBAL_SETTINGS" />
|
|
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
|
|
<uses-permission android:name="android.permission.SET_TIME_ZONE" />
|
|
<uses-permission android:name="android.permission.SET_TIME" />
|
|
|
|
<!-- Telephony -->
|
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
|
|
|
|
<!-- Accounts / Users -->
|
|
<uses-permission android:name="android.permission.GET_ACCOUNTS_PRIVILEGED" />
|
|
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.MANAGE_USERS" />
|
|
|
|
<!-- Components -->
|
|
<uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE" />
|
|
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
|
|
|
<!-- UI -->
|
|
<uses-permission android:name="android.permission.STATUS_BAR" />
|
|
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
|
|
|
<!-- Storage -->
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
|
|
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
|
|
|
<!-- Backup -->
|
|
<uses-permission android:name="android.permission.BACKUP" />
|
|
|
|
<!-- App links verification -->
|
|
<uses-permission android:name="android.permission.DOMAIN_VERIFICATION_AGENT" />
|
|
|
|
<!-- Custom permission so other trusted system apps can signal finish -->
|
|
<permission
|
|
android:name="me.pawlet.setupwizard.permission.FINISH_SETUP"
|
|
android:protectionLevel="signatureOrSystem" />
|
|
<uses-permission android:name="me.pawlet.setupwizard.permission.FINISH_SETUP" />
|
|
|
|
<protected-broadcast
|
|
android:name="me.pawlet.setupwizard.SETUP_COMPLETE"
|
|
android:permission="me.pawlet.setupwizard.permission.FINISH_SETUP" />
|
|
<protected-broadcast
|
|
android:name="me.pawlet.setupwizard.SETUP_FINISHED"
|
|
android:permission="me.pawlet.setupwizard.permission.FINISH_SETUP" />
|
|
|
|
<application
|
|
android:label="@string/app_name"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:theme="@style/Theme.SetupWizard"
|
|
android:supportsRtl="true"
|
|
android:taskAffinity="com.android.wizard">
|
|
|
|
<!-- Entry point — HOME + SETUP_WIZARD so AOSP launches us on first boot
|
|
and the user cannot navigate away mid-setup. -->
|
|
<activity
|
|
android:name=".EntryPoint"
|
|
android:exported="true"
|
|
android:excludeFromRecents="true"
|
|
android:immersive="true">
|
|
|
|
<intent-filter android:priority="1">
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.HOME" />
|
|
<category android:name="android.intent.category.SETUP_WIZARD" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
</intent-filter>
|
|
|
|
<!-- Deep links disabled for now (WizardFlags.DEEP_LINKS). The oxmc
|
|
http(s) VIEW filters and the oxn:// IPC scheme were removed so the
|
|
wizard is only launched as the SETUP_WIZARD HOME app. Re-add these
|
|
and flip WizardFlags.DEEP_LINKS to restore provisioning deep links. -->
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".activities.MainActivity"
|
|
android:exported="false"
|
|
android:immersive="true"
|
|
android:excludeFromRecents="true" />
|
|
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="me.pawlet.setupwizard.fileprovider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/file_paths" />
|
|
</provider>
|
|
|
|
<!-- Partner/provisioning hook: a trusted app holding FINISH_SETUP may
|
|
broadcast SETUP_FINISHED to complete setup without user input. -->
|
|
<receiver
|
|
android:name=".PartnerReceiver"
|
|
android:exported="true"
|
|
android:permission="me.pawlet.setupwizard.permission.FINISH_SETUP">
|
|
<intent-filter>
|
|
<action android:name="me.pawlet.setupwizard.SETUP_FINISHED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
</manifest>
|