Can someone check what changes are needed to have a working setupwizard on startup,
perhaps this one below so it works correctly and doesn’t show a black screen?
This is one of the APKs in GMS
This setupwizard doesn’t need Google Services and it is open-source and can be modified eg. auto connect bt remotes that is why I want to use it but someone needs to test it and give changes so it can run on the first boot.
The Setupwizard app in GMS is restricted, not open-source and needs a Google Account then some users won’t be able to finish the setup if they don’t have a Google account.
How did you add this APK and send me the relevant modifications to take a look
Can download and extract and rename to SetupWizard in packages/apps
Then add SetupWizard package in kedge2.mk
I haven’t made changes yet.
You need to add the package name as follows
xiong@builder:~/work/edge2-14/device/khadas/common$ git diff modules/rockchip_apps.mk
diff --git a/modules/rockchip_apps.mk b/modules/rockchip_apps.mk
index b3f7aac..ecdc100 100644
--- a/modules/rockchip_apps.mk
+++ b/modules/rockchip_apps.mk
@@ -20,4 +20,5 @@ PRODUCT_PACKAGES += \
RkExplorer \
StressTest \
RKUpdateService \
- OTAService
+ OTAService \
+ SetupWizard
xiong@builder:~/work/edge2-14/device/khadas/common$
I tried but the app doesn’t start on the first boot after the firmware is flashed.
Is this apk generated in the out directory
Yes in system_ext/priv-app/SetupWizard
I also tried to add a startup script with below but it still doesn’t automatically start.
It shows in Android Settings - Apps as a system app.
am broadcast -a android.intent.action.MAIN
-n org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardActivity
app_process -Djava.class.path=/system/framework/am.jar /system/bin com.android.commands.am.Am start -n “org.lineageos.setupwizard/org.lineageos.setupwizard.SetupWizardActivity” --user 0
Did you try removing this from common/tv/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
<!-- No setup wizard -->
<bool name="def_device_provisioned">true</bool>