Forum.ArchosFans.com

Unofficial Archos Support Forum
It is currently Mon Jan 22, 2018 7:14 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Oct 27, 2011 10:39 pm 
Offline
Archos Novice
Archos Novice

Joined: Thu Oct 27, 2011 10:36 pm
Posts: 1
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:
    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:
    .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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited