FORUMS
Remove All Ads from XDA
H10 Turbo

[REF] How to add Reboot to power menu (updated 10/21/2010)

480 posts
Thanks Meter: 624
 
By untermensch, Senior Member on 17th October 2010, 10:14 PM
Post Reply Email Thread
29th March 2011, 10:10 AM |#161  
Senior Member
Thanks Meter: 17
 
More
Can anbody make a CWM zip?

I need the extendet power Men├╝ for XXJVK
 
 
16th May 2011, 12:26 PM |#162  
Bladyle's Avatar
Senior Member
Flag Sofia
Thanks Meter: 62
 
Donate to Me
More
Hello,
i manage to add all the changes from first post the copy them to my phone and it boot OK but when i try to power menu phone reload to boot animation.. So I have some error but don't know where ..i have error on compiling framework-res.apk and also on latest "<public type="drawable"" i search for next ID's and they was already taken ..any idea ?
29th May 2011, 01:22 AM |#163  
Spz0's Avatar
Inactive Recognized Developer
Thanks Meter: 674
 
Donate to Me
More
Question:

Is there a way to add a hotboot option to this power menu?

Thanks in advance.
3rd June 2011, 12:28 AM |#164  
Homam Ageel's Avatar
Senior Member
Flag Riyadh
Thanks Meter: 776
 
Donate to Me
More
thnx for this thread

the problem is GB roms are nothing like what you have mentioned in 2# and 3#
totally diferent

any idea for GB or SGSI in general
8th June 2011, 06:12 AM |#165  
Senior Member
Thanks Meter: 22
 
More
Mind to share how to decompile framework. jar file? What tool to use?

Sent from my GT-I9000 using Tapatalk
8th June 2011, 12:43 PM |#166  
XlAfbk's Avatar
Senior Member
Thanks Meter: 398
 
More
baksmali and smali
8th June 2011, 02:00 PM |#167  
Whitehawkx's Avatar
Retired Recognized Developer
Flag Emerald City
Thanks Meter: 9,335
 
Donate to Me
More
Quote:
Originally Posted by juffo

thnx for this thread

the problem is GB roms are nothing like what you have mentioned in 2# and 3#
totally diferent

any idea for GB or SGSI in general

The only thing different in gingerbread is instead if replacing 0x3 with 0x6 you replace 0x4 with 0x7. Everything else is pretty much the same.
The Following User Says Thank You to Whitehawkx For This Useful Post: [ View ] Gift Whitehawkx Ad-Free
8th June 2011, 06:52 PM |#168  
Homam Ageel's Avatar
Senior Member
Flag Riyadh
Thanks Meter: 776
 
Donate to Me
More
Quote:
Originally Posted by Whitehawkx

The only thing different in gingerbread is instead if replacing 0x3 with 0x6 you replace 0x4 with 0x7. Everything else is pretty much the same.

no no no ,,

check android policy ,,, totally different
8th June 2011, 07:11 PM |#169  
Whitehawkx's Avatar
Retired Recognized Developer
Flag Emerald City
Thanks Meter: 9,335
 
Donate to Me
More
Quote:
Originally Posted by juffo

no no no ,,

check android policy ,,, totally different

Code from OP
Code:
const/4 v1, 0x3

    new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7;

    const v3, 0x10803aa # reboot icon resource id

    const v4, 0x10403c5 # reboot string resource id 

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

    aput-object v2, v0, v1

    const/4 v1, 0x4

    new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;

    const v3, 0x10803ab # recovery icon resource id

    const v4, 0x10403c3 # recovery string resource id

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

    aput-object v2, v0, v1

    const/4 v1, 0x5

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

    const v3, 0x10803ac # download icon resource id

    const v4, 0x10403c4 # download string resource id

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

    aput-object v2, v0, v1
Code I used in Gingerbread

Code:
    const/4 v1, 0x4

    new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;

    const v3, 0x1080434

    const v4, 0x1040488

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

    aput-object v2, v0, v1

    const/4 v1, 0x5

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

    const v3, 0x1080435

    const v4, 0x1040486

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

    aput-object v2, v0, v1

    const/4 v1, 0x6

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

    const v3, 0x1080436

    const v4, 0x1040487

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

    aput-object v2, v0, v1
Everything shifted up one because there is an additional GlobalActions smali.
The Following 2 Users Say Thank You to Whitehawkx For This Useful Post: [ View ] Gift Whitehawkx Ad-Free
9th June 2011, 01:06 AM |#170  
Homam Ageel's Avatar
Senior Member
Flag Riyadh
Thanks Meter: 776
 
Donate to Me
More
that is what I meant ,, also the lines number are different !
15th June 2011, 10:19 AM |#171  
Senior Member
Thanks Meter: 38
 
More
Quote:
Originally Posted by intronauta

great mod undertermentch

One "extra" that we can found in some roms is remove the power menu header to prevent scrolling.

someone has idea what files are related in this mod?


any idea?

tnx
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes