[mod] extended power menu - need help!

Search This thread

yewsiong

Senior Member
Feb 22, 2012
520
274
Johor
one question buddy, what do we need to deodex? and what does deodexing does to our phone? sorry for my bad english.

Both system/framework and system/app folders need to be deodexed. Apps in both of them have .odex and .apk files if u open them and take a look. Stock ROM will store part of the apk data into .odex file which makes theme editing difficult.
Deodexing will repackage the two files into single .apk and it will be a lot more easier to edit the data inside.
 

pjrg

Senior Member
Oct 22, 2010
223
27
I just want to add the extended power menu to my deodexed rom.
Where can i find a zip for recovery?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Hey guy, I'm trying to port the extended power menu using this guide

    http://xdaforums.com/showthread.php?t=1169443

    I managed to make the first part work.

    However with the second part (editing android.policy.jar) I get stuck on the first static Samsung logo after reboot.

    Does anyone have a clue, or is anyone willing to help?

    I attached my modified files. I'm using GingerICE 2.1 ROM.
    2
    fender90 i have decompilied your android.policy.jar and in GlobalAction.smali it looks all good
    ...but in the folder you forgot to create the files GlobalAction$10.smali and $11 and $12 like it say in the howto, read this part:

    Code:
    c/ Come on, we're almost there ...
    
    Now copy the "out/com/android/internal/policy/impl/GlobalActions$4.Smali" to "out/com/android/internal/policy/impl/GlobalActions$8.Smali".
    We choose #4 because it is one that contains the shutdown of the phone. We will rename it 8 because it's 8 in the next free issue ...
    Remember this if ever in a future version of the files they are change.
    
    d/ Now open the new file "out/com/android/internal/policy/impl/GlobalActions$8.Smali" and replace in, all occurrences of "\GlobalActions$4" with "\GlobalActions$8"
    
    Then, Replace :
    Code:
    
        const/4 v1, 0x1
    
        invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V
    
    With :
    Code:
    
        const/4 v1, 0x1
    	
        const-string v2, "now"
    	
        invoke-static {v0, v2, v1}, Lcom/android/internal/app/ShutdownThread;->reboot(Landroid/content/Context;Ljava/lang/String;Z)V
    
    
    e/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$9.Smali"
    Open it and replace in, all occurrences of "\GlobalActions$8" with "\GlobalActions$9
    and
    const-string v2, "now" with const-string v2, "recovery"
    
    f/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$10.Smali"
    Open it and replace in, all occurrences of "\GlobalActions$9" with "\GlobalActions$10
    and
    const-string v2, "recovery" with const-string v2, "download"
    
    Save the file and then ... compile it all!

    I think this is the problem,maybe :)
    2
    Amazing, I'll try when I get back home!

    Inviato dal mio GT-I8150 usando Tapatalk

    Use this guide http://xdaforums.com/showthread.php?t=811532 This is what I used on the exhibit and that guide does not edit the framework.jar and when you do the edit make sure your placing it where it says look at the code above and below ;)
    1
    Update: i mixed those guides because neither of them matches the Wonder files, and this time, and I got some progress: the phone boots!

    However, when pressing the power button, I get a force close and it reloads the launcher.

    I'm attaching the modified files, so you guys can help me spot the mistake :p
    1
    Have you boys tried last Black note hybrid? I think is that what you looking for :D

    Sent from my GT-I8150 using XDA