« Bitair ICO scam bewareSolution for "This item isn't available in your country" aka Changing country in Google Play Store »

Skipping Setup Wizard on first boot of LineageOS or any Android ROM

Technical, Android, 256 words   Bookmark and Share

I flash custom ROMs often and various Android devices. Most of my phones only last two years and stop working just when the warranty expires. Anyway, I recently had a phone with dead areas in the touch screen and the setup wizard buttons are in the dead region. So I had to figure out a way to bypass the setup wizard. Here's how I did it.

:!: these approaches are done in Recovery mode (TWRP) with Terminal in recovery mode on the device or via adb. Remember to mount system as read-write, this can be done in one of the options in TWRP.

Approach 1: build.props
So I first tried to disable it via build.props and updating


ro.setupwizard.mode= DISABLED

However that didn't work for LineageOS but from what I read it could work for other Android ROMs.

Approach 2: Just remove the setup wizard apk

via TWRP, after mounting system, open up Terminal and do


rm -rf /system/priv-app/SetupWizard

:!: With LineageOS, LineageOSSetupWizard does a couple of things so you need to run it so it to have it functioning correctly such as being able to enable developer mode. If you dont run the SetupWizard for LineageOS you wont beable to enable developer mode.


mv /system/priv-app/LineageOSSetupWizard /sdcard

Then once you've fixed what you need such as resizing the viewport via wm overscan or something else, you need to run the LineageOSSetupWizard.apk and complete it.

If you prefer via adb, here's the alternative steps.


adb reboot recovery
adb shell mount /system
adb shell rm -rf /system/priv-app/SetupWizard
adb shell mv /system/priv-app/LineageOSSetupWizard /sdcard

No feedback yet

Leave a comment

Your email address will not be revealed on this site.
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
2 plus 2?
Please answer the question above.

January 2018
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Brinley Ang

Brinley Ang is a sysadmin, web dev, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
home | portfolio | blog | links | contact
© 2018 - Brinley Ang
Valid xhtml