android - Start app on first boot before keyguard (rooted phone) -


i'm trying start app upon first boot of device before keyguard appears. need ensure first thing user sees after boot animation (which i've changed) app. app 3 screens of text in fullscreen mode next button in between them.

i realize cases, terrible user experience. however, phones we're shipping have specific purpose , because of need meet following criteria:

  • my app needs first thing user sees (after boot animation of course) when take phone out of box , power on first time.
  • after first boot, phone should function normal (i.e keyguard should appear upon bootup instead of app).
  • this needs work lollipop since that's android version we're shipping.
  • i can modify android framework if needed, solution don't have preferred.

my (failed) approach

create app starts upon boot. have app dismiss keyguard first thing does.

the problem found approach keyguard code called before app initialization code user sees keyguard briefly , sees app.

a possible solution

i think best way add code in framework call app before calling keyguard. i'm imagining having boolean that's used keep track of whether it's first time device powered on. if boolean true, open app. if not, open keyguard.

the problem there's a lot of code in android userspace boot process , have quickly-approaching deadline (don't all?). how can modify framework code show app before keyguard?

if there's better way, please let me know too!


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -