Jump to content

[MOD] Reboot Option in Power Menu


Recommended Posts

Guest Frankish
Posted
Frankish, any chance of giving me some tuition on how to modify jar files? I'd love to get into doing this kinda stuff myself.

I'm going to be totally honest with you. I'm new to all this stuff so not very good at it. If you click the last link in my signature i wrote a guide on themeing and there is section 2x. which details how to decompile the classes.dex of the android.policy.jar. However it applies to decompiling the classes.dex in any .jar file.

The actual smali code is a whole different thing to understand. I can't get my head around it!

Posted

I shall have to have a look into that. Thanks man, I just like the idea of being able to have a go at this myself haha.

Guest Frankish
Posted
I shall have to have a look into that. Thanks man, I just like the idea of being able to have a go at this myself haha.

Yeah it's worth a go. I waste a lot of hours just reading. Looking at getting a bigger box for the Reboot option...it seems i'd need the action text underneath just wondering if i can figure out how to make it a blank value...

Guest oh!dougal
Posted
...it seems i'd need the action text underneath just wondering if i can figure out how to make it a blank value...

Try a space or two.

Or a non-breaking space ... ?

Posted (edited)

What do I need to use to edit smali files once I've decompiled the classes.dex?

Edit:- Realized wordpad will do lol.

Edited by cobhc
Posted

Been looking at some of the guides for adding reboot to the power menu and one mentions increasing the array length from

const/4 v9, 0x4

to

const/4 v9, 0x5

in the createDialog method in GlobalActions.smali, could that be anything to do with it?

Guest Frankish
Posted

No that's how many lines are in the power menu. You increase it to add an entry as far as iv learnt. Maybe useful in adding a blank entry to separate power and reboot.

Posted
No that's how many lines are in the power menu. You increase it to add an entry as far as iv learnt. Maybe useful in adding a blank entry to separate power and reboot.

Ahh, I see. What guide did you work from to add the reboot option anyway, or did you figure it out yourself?

Guest popoyaya
Posted

There are apps on the market which allow you to reboot from an icon on your homescreen. Much better than using this "mod" and wearing out the somewhat fragile power button on the SF.

Guest jt_mcg
Posted
Yeah it's worth a go. I waste a lot of hours just reading. Looking at getting a bigger box for the Reboot option...it seems i'd need the action text underneath just wondering if i can figure out how to make it a blank value...

Can you specify a class to match the text colour on a specific class/value to the background colour.

Guest Hpman48
Posted

Additional menu item is one thing but is there a way to select the menu items with on of the Blade HW Buttons. It could be a worksround for the lockscreen issue as long as there is no other fix. Much easier instead removing battery

Thanks Hpman

Posted

Hey Frank, any update on the larger boxes for both the reboot and power options?

Guest Junior Bear
Posted

how come my blade never says 'H' as the connectin status

Guest That-Guy
Posted

So does this Reboot the phone correctly? or does it just kill the power and restart it?

Want to try this but not wanting to cause and problems to the phone ;)

  • 4 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.