MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

[GUIDE \ MOD] Extended Power Menu [Reboot & Recovery]

12 posts in this topic

Posted · Report post

THIS GUIDE IS ONLY FOR STOCK BASED ICS ROMS ON THE G300

(i will provide a flashable.zip for people who don't want to try them self)

PLEASE DO NOT PM ME WITH YOUR PROBLEMS, POST IN THE THREAD WITH YOUR MODIFIED FILES ATTACHED

things you will need from your ROM

framework.jar

framework-res.apk

android.policy.jar

Tools you will need to work with (links provided)

notepad ++ > http://notepad-plus-...nload/v6.3.html

7zip > http://www.7-zip.org/download.html

jar decomplier / recomplier > http://ubuntuone.com...B9DlVRiSPtmmPtM (How To Use)

apk manager > http://ubuntuone.com...iGEQawtXvjzLq�� (How To Use)

FIRST:

adding resources to the framework-res.apk

start by decompling framework-res.apk with apk manager

navigate to

projects\framework-res.apk\res\values\public.xml

using notepad ++ search

<public type="string" name="contact_status_update_attribution" id="0x0104051d" />
below this add the following code

<public type="string" name="reboot_ics" id="0x0104051e" />
<public type="string" name="recovery_ics" id="0x0104051f" />[/code] now search
[code]<public type="drawable" name="stat_sys_upload_done_static" id="0x010805e6" />
below this add the following code

<public type="drawable" name="reboot" id="0x010805e7" />
<public type="drawable" name="recovery" id="0x010805e8" /> [/code] [b]save and exit[/b] navigate to projects\framework-res.apk\res\values\strings.xml add the following code below <resources>
[code]
<string name="reboot_ics">Reboot</string>
<string name="recovery_ics">Recovery</string>
save and exit download the resorces from the link below and add the two .png images to projects\framework-res.apk\res\drawable-hdpi LINK :http://www.solidfile...m/d/43dbd2924d/ now recompile the framework-res.apk DO NOT SIGN IT! SECOND: shutdown thread decompile framework.jar with "jar decompiler / compiler" navigate to classout\com\android\internal\app delete the whole of huawei's shutdown thread, all files that start with > ShutdownThread it should be the last eight files in the folder now add my modified shutdown thread, copy all the files in the link below to the folder classout\com\android\internal\app LINK: http://www.solidfile...m/d/d0ae175b78/ now we are done with the framework, compile it and add the new classes.dex inside the framework.jar (use 7zip) delete the classes folder as we are finished with that THIRD: global actions decompile android.policy.jar with "jar decompiler / compiler" navigate to classout\com\android\internal\policy\impl\GlobalActions.smali open it with notepad ++ use the search function and search > .line 187 delete all code from and including .line 187 up to .line 212 (delete all code shown below)

.line 187
const-string v0, "true"

const-string v1, "ro.config.hw_quickpoweron"

invoke-static {v1}, Landroid/os/SystemProperties;->get(Ljava/lang/String;)Ljava/lang/String;

move-result-object v1

invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_5f

.line 188
iget-object v9, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$3;

const v4, 0x202000b

move-object v1, p0

move v2, v12

move v3, v12

move v5, v11

move v6, v11

invoke-direct/range {v0 .. v6}, Lcom/android/internal/policy/impl/GlobalActions$3;-><init>(Lcom/android/internal/policy/impl/GlobalActions;IIIII)V

invoke-virtual {v9, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
[/code] now below [b].line 212[/b] delete
[code] :cond_5f
OK, that's huawei's stuff removed, now we can add my code add the following code above .line 212

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$9;

const v2, 0x10805e7

const v3, 0x104051e

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mItems:Ljava/util/ArrayList;

new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$10;

const v2, 0x10805e8

const v3, 0x104051f

invoke-direct {v1, p0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$10;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V

invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
[/code]

[b]save and exit [/b]

add the two files in the link below to

classout\com\android\internal\policy\impl\

[b]LINK: [/b]http://www.solidfile...m/d/cb277673ef/

now we are done with android.policy, compile it and add the new classes.dex inside the android.policy.jar (use 7zip)

delete the classes folder as we are finished with that

[b]FOURTH:[/b]

check your build.prop for this line and change it to false

ro.config.hw_quickpoweron=true

[b]done... add the new files to your ROM[/b]

framework.jar

framework-res.apk

android.policy.jar

8

Share this post


Link to post
Share on other sites

Posted · Report post

bare with me, i need to check this over ;)

EDIT: corrected a few things, looks good to go now...

1

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Big thanks for this, tillaz. I've never looked at adding extended power menu options before so some of this was new to me but that guide was very easy to understand and follow. I now have a power menu recovery option in the dev build of Stock+. Job well done. :)

Edited by Cyda
0

Share this post


Link to post
Share on other sites

Posted · Report post

many thanks for share this mod, explains very understandable, has worked at first attempt, again thank you

0

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks, I'm gonna try this in an hour or so :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

Your like the energizer battery that keeps on giving.

Cheers and much appreciated ;)

0

Share this post


Link to post
Share on other sites

Posted · Report post

I'm getting 'nginx bad gateway' when trying to download the modified shutdown files. Got a mirror?

0

Share this post


Link to post
Share on other sites

Posted · Report post

I'm getting 'nginx bad gateway' when trying to download the modified shutdown files. Got a mirror?

Here you go mate: http://ubuntuone.com/4czgyRMAJSxGJm5MM6gELB

1

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, solidfiles is down for now and it's getting late, so I will continue tomorrow. It's actually a lot easier than I thought.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, now it's working :)

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Yay, it worked perfectly! I also added custom settings, :)

post-969101-0-55594500-1362273844_thumb.post-969101-0-85746400-1362273845_thumb.post-969101-0-03823700-1362273847_thumb.

Thanks SO much Tillaz, your awesome dude ;) Now lightning ROM has a new boost of energy

Edited by kyan31
0

Share this post


Link to post
Share on other sites

Posted · Report post

tillaz i love your work....will try this Mod in the morning......i hope it will work on Bruno's SGS3 Rom based on B952.

I don't have paypal, cant get one in Pakistan.....is there any other way to donate....? may be by buying your stuff on Google play

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

i have tried my best...but recompiling of framework-res.apk was killing me....its public.xml that was giving error :-(

i almost gave up when i saw kyan's mod....i got the desired framework files and they did the job....thanks a lot tillaz and kyan :-)

11rpq9x.png

Edited by Rashid6156
0

Share this post


Link to post
Share on other sites

Posted · Report post

I tried but always gave error to compile the apk, cam you please provide me the flashable.zip ?

thanks

0

Share this post


Link to post
Share on other sites

Posted · Report post

I tried but always gave error to compile the apk, cam you please provide me the flashable.zip ?

thanks

send me your log.txt from apk manager

0

Share this post


Link to post
Share on other sites

Posted · Report post

It won't be necessary I already knew what I did wrong, was using the wrong files but thanks anyway

0

Share this post


Link to post
Share on other sites

Posted · Report post

Hi, great guide, written well. I tried to modify the power menu of my ascend y300 with a stock ROM but I can't find files at the second step

"delete the whole of huawei's shutdown thread, all files that start with > ShutdownThread"
. Is it possible to have an updated guide for ascend y300 or you can send me the files to add? Thank you very much.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.