Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 36,432 Now Online
XDA Developers Android and Mobile Development Forum

[FX-MOD][SENSE] Reboot option in power menu 3-in-1

Tip us?
 
snq-
Old
(Last edited by snq-; 8th September 2010 at 04:44 PM.) Reason: added 2.10.751.3
#1  
snq-'s Avatar
Retired Recognized Developer - OP
Thanks Meter 869
Posts: 581
Join Date: Aug 2010
Lightbulb [FX-MOD][SENSE] Reboot option in power menu 3-in-1

uses htc widgets. minimal footprint (check out the patch).
enjoy

--
flashable zips for _deodexed_ roms: (do not flash them over odexed ones. if in doubt, consult your chef)
The Following 4 Users Say Thank You to snq- For This Useful Post: [ Click to Expand ]
 
snq-
Old
#2  
snq-'s Avatar
Retired Recognized Developer - OP
Thanks Meter 869
Posts: 581
Join Date: Aug 2010
as the source code for htc's _heavily_ modified and extended android framework is not publicly available, implementing features like this isn't that straightforward as it is for aosp-based roms
i took the 2.2_r1.1 aosp sources, coded the reboot entry with the dialog (directly into the power menu to maintain a mininal footprint), created dummy stubs for external htc framework references, looked up and hardcoded htc string/icon resource ids, fiddled with the code until it barely compiled
then i baksmali'd my own build, took only the relevant changes, and injected them into the baksmali'd original
Attached Files
File Type: 7z sense_powermenu_rebootdlg.patch.7z - [Click for QR Code] (2.0 KB, 829 views)
 
mindtwista
Old
#3  
mindtwista's Avatar
Member
Thanks Meter 0
Posts: 49
Join Date: Mar 2008
hi,
good work ;) but i have one question:
did this work on auraxtsense 7.6? if yes, what file i need to download?

-----------------------------------------------------
Device: HTC Desire rooted by unrevoked, S-OFF by AlphaRev
ROM-nr1: Alex-V 1.7 + BrightSilence Carbon/Expresso Theme 2.2
ROM-nr2: RCmixHD-v08 + Circle Battery Mod
 
snq-
Old
#4  
snq-'s Avatar
Retired Recognized Developer - OP
Thanks Meter 869
Posts: 581
Join Date: Aug 2010
Quote:
Originally Posted by mindtwista View Post
did this work on auraxtsense 7.6? if yes, what file i need to download?
2.10.406.2, just added
 
pascanu
Old
(Last edited by pascanu; 6th September 2010 at 10:16 PM.)
#5  
pascanu's Avatar
Senior Member
Thanks Meter 53
Posts: 545
Join Date: Jan 2009
Location: Tg. Mures
Very nice! Love it. Please provide some more instructions, compatibility issues, which ROMs should this work with.
Nexus 4
Stock - rooted
--------------------------------------------------------------------
Galaxy Nexus
ROM: Manhattan IC120
Baseband: I9250XXKL1
--------------------------------------------------------------------
HTC Desire - CM7
--------------------------------------------------------------------
unlocked black G1 => "Hall of Fame" drawer
 
ganjbass
Old
(Last edited by ganjbass; 6th September 2010 at 10:18 PM.)
#6  
Senior Member
Thanks Meter 17
Posts: 206
Join Date: May 2009
Flashed on MCR 9

Finnaly booted :P ))
Take more than first time boot after flash the rom :P

Very nice work! Thanks!




Kill me only if you kiss me!
Killing me Is Not Enough to Make me Go away!
 
stoned99
Old
#7  
Senior Member
Thanks Meter 55
Posts: 419
Join Date: Aug 2010
Quote:
Originally Posted by snq- View Post
2.10.406.2, just added
Really nice! That's what I was looking for!
I now have the reboot option in my AuraxTSense 7.6 I flashed 2.12.911.1 at first because I didn't know which one to use and it worked flawlessly. Now flashing the version 2.10.406.2 since it seems that's the one you are saying it's the one compatible with AuraxTSense

Thanks a lot. I'm really happy now. My rom now has everything I wanted
 
snq-
Old
(Last edited by snq-; 6th September 2010 at 10:30 PM.)
#8  
snq-'s Avatar
Retired Recognized Developer - OP
Thanks Meter 869
Posts: 581
Join Date: Aug 2010
Quote:
Originally Posted by pascanu View Post
Please provide some more instructions
  • check your framework build number (settings -> about phone -> software information)
  • select the package matching your build number
  • flash it in recovery mode (first boot may take quite a long time)

Quote:
Originally Posted by pascanu View Post
compatibility issues
may interfere with other mods on android.policy.jar. ask your rom's chef about risks and side effects

Quote:
Originally Posted by pascanu View Post
which ROMs should this work with
this is only for deodexed sense-based roms
 
pascanu
Old
#9  
pascanu's Avatar
Senior Member
Thanks Meter 53
Posts: 545
Join Date: Jan 2009
Location: Tg. Mures
I flashed 2.09.405.8 over Modified Official 2.2 by ieftim and I don't see any reboot option when I long press the power button. What am I missing?
Nexus 4
Stock - rooted
--------------------------------------------------------------------
Galaxy Nexus
ROM: Manhattan IC120
Baseband: I9250XXKL1
--------------------------------------------------------------------
HTC Desire - CM7
--------------------------------------------------------------------
unlocked black G1 => "Hall of Fame" drawer
 
snq-
Old
#10  
snq-'s Avatar
Retired Recognized Developer - OP
Thanks Meter 869
Posts: 581
Join Date: Aug 2010
Quote:
Originally Posted by stoned99 View Post
Thanks a lot. I'm really happy now. My rom now has everything I wanted
glad you like it

Tags
framework, mod, power button, reboot, sense
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes