Modifying of system StartupWizard.apk, need your help!

Open Development of Android, dual-booting other Linux OS and other hacks
Post Reply
md55
Archos Novice
Archos Novice
Posts: 1
Joined: Thu Oct 27, 2011 10:36 pm

Modifying of system StartupWizard.apk, need your help!

Post by md55 »

I need to add some steps in standard StartupWizard.apk
Device is Archos 101 IT with installed SDE and UrukDroid1.5.

I've got /system/app/StartupWizard.apk by usb, unpack it by "apktool d StartupWizard.apk" (apktool1.4.1), and added 2 lines just for test:
in StartupWizard\smali\com\archos\startupwizard\Welcome.smali at end of onCreate:

Code: Select all

    iget-object v1, p0, Lcom/archos/startupwizard/Welcome;->mManager:Lcom/archos/startupwizard/WizardManager;

    invoke-virtual {v1, p0}, Lcom/archos/startupwizard/WizardManager;->goNextStep(Landroid/app/Activity;)V
so end of onCreate method is:

Code: Select all

    .line 44
    :cond_0
    const-string v0, "Welcome"

    const-string v0, "onCreate: no wizardPreTreatment"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v1, p0, Lcom/archos/startupwizard/Welcome;->mManager:Lcom/archos/startupwizard/WizardManager;

    invoke-virtual {v1, p0}, Lcom/archos/startupwizard/WizardManager;->goNextStep(Landroid/app/Activity;)V

    goto :goto_0
.end method
i.e. I've added goNextStep() call and wizard should pass to Disclaimer view at start.

I've packed it back by "apktool b StartupWizard", got no errors in output.
Then copy this StartupWizard\dist\StartupWizard.apk to device by usb and then RootExplorer to /system/app/StartupWizard.apk

Now after device reboot StartupWizard should run automatically (I've not completed it after uruk install).
But reboot is looping - after boot-animation screen turns black for couple of seconds, then boot-animation is showed again, and again, and again...

Questions:
- what I'm doing wrong?
- how to launch StartupWizard without reboot?
- in which logs can I see reason of looping?
- is it possible to replace files /system/app/ in such way? or how should I install new StartupWizard.apk?
- should StartupWizard.apk be processed with signjar ð© zipalign?
- is there error in added 2 lines of code? I copy-pasted it from previous onClick method, where goNextStep() called in normal program flow.
Post Reply

Return to “Gen8 Hacking and Open Development”