How to enable the Android Setup Wizard(Provision.apk)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to enable the Android Setup Wizard(Provision.apk)

11,631 次查看
13614278
Contributor III

We are running Android 9.0 on IMX8mini

 

By default, the screen shows Launcher GUI. We want to enable the SetupWizard(Provision.apk).

I checked via adb shell, and found it existed in /system/priv-app/Provision/Provision.apk on the device, and I found the default value in SettingsProvider is:

<bool name="def_device_provisioned">false</bool>

 

It seems it is correct. How can I let the Android show the Setup Wizard?

0 项奖励
回复
2 回复数

10,490 次查看
jakem
Contributor II

Hi @weidong_sun , I have a similar issue but with the Android 11 build. I created a build and flushed it on the board but it's not showing any setup wizard when I first boot the device. I also tried setting up the user_setup_complete and device_provisioned to 0 and restarted the device but no wizard still. 

Please let me know if what needs to be done in order to show the setup wizard.

Thanks,

Jake

0 项奖励
回复

11,624 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

After SetupWizard is completed, the values of the following two settings will be changed from 0 to 1.

USER_SETUP_COMPLETE

DEVICE_PROVISIONED

Then the next time you boot, as long as USER_SETUP_COMPLETE is not 0, it will not enter SetupWizard again.

So use adb to change these two values to 1 and restart SetupWizard.

adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1

 

Hope this is helpful to you.

Have a nice day!

B.R,

weidong

0 项奖励
回复