Custom First Boot sequence

154 views
Skip to first unread message

Ken

unread,
Apr 25, 2012, 5:14:10 PM4/25/12
to android-...@googlegroups.com
Hi,

I'm new to building AOSP.  I'm currently working off Android 4.04.  I'm not sure if this question belongs here or in porting/building groups.

Essentially I'm interested in developing a custom series of screens on initial first time boot up of a device.  For example when I first boot up a Samsung Galaxy Tab 2 running ICS, it asks the user for language, setting wireless services and initial google account login.  I would like to create my own greeting screens and a process for the user to perform initial setup of the device.

Is this sequence vendor specific?  Is there a standard sequence of events that happens on a base build of Android if its the first time the device is booted?  If so, can you point me to a place in the AOSP source tree? Also how do I "reset" the emulator so that I can emulate a "first boot" of a device?

If it is vendor specific/custom, at what point in the Android device boot sequence should I look into modifying.  I understand after the kernel loads it starts the system/core/init process with the init.rc script.  Would I need to create a package that can be launched?

I believe waiting building an app package and waiting for ACTION_BOOT_COMPLETED is possibly too late in the process as I usually see the lock screen and the system UI and apps loaded before I receive this broadcast.  

Any help would be greatly appreciated or any tips on where I could look deeper.

Thanks,
Ken 

Tez

unread,
Apr 26, 2012, 10:49:20 AM4/26/12
to android-platform
you can try observing the logs from system startup and see which
activity is started first by the activity manager.
then look at its code.

-Earlence

Jean-Baptiste Queru

unread,
Apr 26, 2012, 10:52:06 AM4/26/12
to android-...@googlegroups.com
Check packages/apps/Provision for an example of code that runs at
first boot. That one is not user-visible, but IIRC it's a full-grown
Activity and uses the same mechanism as Google's SetupWizard.

On the emulator, you can use --wipe-data to delete the content of the
/data partition, which will get you back to clean state.

JBQ
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-platform/-/5EvbT4y1eCYJ.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-platfo...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-platform?hl=en.



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
Reply all
Reply to author
Forward
0 new messages