yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] Goldie:
Looks ok from a quick look. Sure the file got replaced when you pushed it?
[Galaxy S II Themes and Apps] xdadroidabc:
Thank you for quick response.

Yes I have confirmed it size wise, also there is typical delay in rebooting after flashing android.policy.
[Galaxy S II Themes and Apps] xdadroidabc:
Here is logcat
[Galaxy S II Themes and Apps] Goldie:
Ahhh ok...the restart isnt actually restarting. Its crashing. Post the dumpstate_sys_error.txt.gz from data/log after the restart
[Galaxy S II Themes and Apps] xdadroidabc:
Thank you again

Here attached.
[Galaxy S II Themes and Apps] Goldie:
Change references to....

invoke-static {v2}, Lcom/android/internal/policy/impl/GlobalActions;->access$200(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;

To.....

invoke-static {v2}, Lcom/android/internal/policy/impl/GlobalActions;->access$800(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;

...in GlobalActions$99's. You need access 800 not 200 :)
[Galaxy S II Themes and Apps] xdadroidabc:
Still same error
[Galaxy S II Themes and Apps] Goldie:
You missed other access$200 in GlobalActions$99. They all need changing to $800. There is 2 in $99 and 2 in $99$1
[Galaxy S II Themes and Apps] xdadroidabc:
Yeah just i have checked log and already change, rebooting now. will report you in 5 min
[Galaxy S II Themes and Apps] Goldie:
Dont forget the ones in 99$1
[Galaxy S II Themes and Apps] xdadroidabc:
Sorry for delay, was checking all the options.

Thank youuuuuuuuuuuu. It's fine now

Only issue is Hot Reboot' does nothing.
[Galaxy S II Themes and Apps] Goldie:
I believe that can be a kernel issue. Cant help with that im afraid.
[Galaxy S II Themes and Apps] xdadroidabc:
rm

No problem, current setup is still fine.

Again thank you very very much for all help
[Galaxy S II Themes and Apps] xdadroidabc:
deleted
[Galaxy S II Themes and Apps] Codename13:
Hot Reboot won't work if you don't have Busybox installed (specifically the 'pkill' command).
[Galaxy S II Themes and Apps] majdinj:
You can change the code of instead using pkill -TERM -f system_server for quick reboot, use setprop ctl.restart zygote.. First check if you can get hot quick reboot using this code from adb engine:

adb shell "su" "" "setprop ctl.restart zygote"

or this one using terminal emulator in your device:

su
setprop ctl.restart zygote

If you succeed having quick reboot then proceed with next step to correct your smali codes to the new code.

Open GlobalActions$99$1.smali and locate the method ".method public onClick" and change this part:

.line 288
:cond_2c
:try_start_2c
[B][COLOR="Red"]invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

move-result-object v0

const/4 v1, 0x4

new-array v1, v1, [Ljava/lang/String;

const/4 v2, 0x0

const-string v3, "pkill"

aput-object v3, v1, v2

const/4 v2, 0x1

const-string v3, "-TERM"

aput-object v3, v1, v2

const/4 v2, 0x2

const-string v3, "-f"

aput-object v3, v1, v2

const/4 v2, 0x3

const-string v3, "system_server"

aput-object v3, v1, v2

invoke-virtual {v0, v1}, Ljava/lang/Runtime;->exec([Ljava/lang/String;)Ljava/lang/Process;[/COLOR][/B]

to:

.line 288
:cond_2c
:try_start_2c
[B][COLOR="RoyalBlue"]invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

move-result-object v0

const/4 v1, 0x3

new-array v1, v1, [Ljava/lang/String;

const/4 v2, 0x0

const-string v3, "setprop"

aput-object v3, v1, v2

const/4 v2, 0x1

const-string v3, "ctl.restart"

aput-object v3, v1, v2

const/4 v2, 0x2

const-string v3, "zygote"

aput-object v3, v1, v2

invoke-virtual {v0, v1}, Ljava/lang/Runtime;->exec([Ljava/lang/String;)Ljava/lang/Process;[/COLOR][/B]

Now compile and test your Hot Reboot option, it should work ;)
[Galaxy S II Themes and Apps] brolee93:
[/COLOR]Hi hello boy .

i have one pb your mod work well on 4.1.2 NOTE 2 official rom . But when i want mod in 4.3 it is not work have you one idea ?

One people can help me ?

Samsung Note 4.3 MJ5 official leak

i have test with access$200 and access$800 and access$2600

When i clic on reboot i have sudenlyt bootloop/reboot
[Galaxy S II Themes and Apps] Goldie:
Same issue as the other guy. You are using an access that doesn't exist. You should look in GlobalActions to see which access refers to mContext then replace all instance of $200
[Galaxy S II Themes and Apps] brolee93:
Oh thanks bro

oh Good now when i clic in reboot i can see menu wtih hot reboot etc etc but when i clic on i have hot reboot in all options . i have put access$700 of GlobalActions in all GlobalActions$99 and all GlobalActions$99$1

other idea
[Galaxy S II Themes and Apps] majdinj:
baksmali services.jar and locate the exact location of ShutdownThread.smali then change the package direction in GlobalAction$99$1.smali which is:

Lcom/android/server/pm/ShutdownThread

to the new location
[Galaxy S II Themes and Apps] brolee93:
in service.jar i can't see :Lcom/android/server/pm/ShutdownThread

ar you sure it is this or Lcom/android/server/power/ShutdownThread ?

Sorry it is work now .

Reboot : OK

Hot reboot : OK

Reboot to recovery :eek:K

Reboot bootloader : NO , it is same to reboot .

Have you one idea ? you want see my new global action ?
[Galaxy S II Themes and Apps] majdinj:
There are 2 lines in GlobalAction$99$1 of:

Lcom/android/server/pm/ShutdownThread

You must change both lines to:

Lcom/android/server/power/ShutdownThread
[Galaxy S II Themes and Apps] brolee93:
i have this in my file , have you other idea ?

Code:

Lcom/android/server/power/ShutdownThread
[Galaxy S II Themes and Apps] majdinj:
Both the download and recovery modes are triggered by:

invoke-static {v0, v1, v3}, Lcom/android/server/power/ShutdownThread;->reboot(Landroid/content/Context;Ljava/lang/String;Z)V

They are only called by const-string in .method static constructor,, what I understand is that you give different names for const-string v2, "Reboot bootloader" and const-string v2, "Reboot to recovery",,, so my wild thinking is, you should use const-string v2, "Download" and const-string v2, "Recovery" instead.

I know this looks ridiculous, but try it. o_O
[Galaxy S II Themes and Apps] brolee93:
Thanks lol ;)

I test tonight .

thanks for help me [MENTION=369057]majdinj[/MENTION]
[Galaxy S II Themes and Apps] majdinj:
My pleasure,,, now the 4-way reboot menu is officially ported to android 4.3 :laugh:
[Galaxy S II Themes and Apps] brolee93:
And officially all work .

Thanks [MENTION=243864]xda[/MENTION] my Bibly lol

Thanks very much [MENTION=369057]majdinj[/MENTION]

thanks [MENTION=3065070]Goldie[/MENTION]

Thanks this good thread and big up to [MENTION=3076446]kahvitahra[/MENTION]
[Galaxy S II Themes and Apps] Goldie:
Another happy customer buddy ;)
[Galaxy S II Themes and Apps] majdinj:
I now think, when I looked at ShutdownThread, why not to try const-string v2, "Safe"
[Galaxy S II Themes and Apps] fcortes626:
thanks for this i was having the same issue and that fixed it.
[Galaxy S II Themes and Apps] DutchDanny:
Hi People,

I'm trying to port this mod to Galaxy Tab3 8.0

When done with edits, and compile i get these errors:

GlobalActions$99$1.smali[27,4] Error for input '.parameter' : Invalid directive
GlobalActions$99$1.smali[42,4] Error for input '.parameter' : Invalid directive
GlobalActions$99$1.smali[43,4] Error for input '.parameter' : Invalid directive
GlobalActions$99$1.smali[42,15] mismatch input '"dialog"' expecting END_METHOD_DIRECTIVE
GlobalActions$99.smali[78,4] Invalid literal value: 16909008. Low 16 bits must be zeroed out.

Any idea on what to do/change?

Tnx
[Galaxy S II Themes and Apps] :
I am porting it to a Touchwiz 4.2.2 ROM and i compiled the android policy.jar but everytime i click on the restart button.The ROM will just restart on its own without any notice.Please help me look into it
[Galaxy S II Themes and Apps] Goldie:
Would help if you gave a log or dumpstat....(wish I had £1 for every person asking for help with no log!)
[Galaxy S II Themes and Apps] :
Here you go
[Galaxy S II Themes and Apps] Goldie:
Nothing of use in there that I can see. Post the dumpstate_sys_error.txt.gz from data/log
[Galaxy S II Themes and Apps] :
Here
[Galaxy S II Themes and Apps] Goldie:
Not the politest fellow when someone is trying to help are you...

Anyway, same problem as the last few guys. Read the last few pages of this thread.
[Galaxy S II Themes and Apps] :
I apologised for being impolite to you.About the changing of GlobalAction$99 and GlobalAction99$1

invoke-static {v2}, Lcom/android/internal/policy/impl/GlobalActions;->access$[COLOR="Red"]800[/COLOR](Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;

I changed to 800 but when i click on the restart button.The same issue happened where the whole phone will reboot

Attached with newer dumpstate_sys_error.txt
[Galaxy S II Themes and Apps] Goldie:
You also need to change path of shutdown thread. Also covered in previous few pages
[Galaxy S II Themes and Apps] cleverior.ipul:
someone please help me to add 4-way reboot for mediatek device. cz i can follow this tutorial. Thanks in advance
[Galaxy S II Themes and Apps] Alard_626:
Hello!

I've succeeded in making this mod, all reboot menu items working like a charm, except "Download" - phone just reboots back to the desktop. Maybe i've missed something, or maybe i'm expecting what i shouldnt? Can anybody help me to make it work as expected?

Thank you!

My phone is GT-I9082 (Galaxy Grand Duos)
[Galaxy S II Themes and Apps] Goldie:
Log it... ;)
[Galaxy S II Themes and Apps] Tsjoklat:
I had to switch the order of the reboot menu. Try swapping the positions of Recovery with Download in the menu.
[Galaxy S II Themes and Apps] Alard_626:
For some reason i can't logcat, so, here's my dumpstate_sys_error.txt.gz instead
[Galaxy S II Themes and Apps] Alard_626:
Thanks for the tip, i'll try it.

UPD. No change, phone just reboots as normal, no download mode.
[Galaxy S II Themes and Apps] Goldie:
Same prob as the others had. Read back last few pages. Your access is 200 but in 4.3 should be 800
[Galaxy S II Themes and Apps] Alard_626:
look at the date, it was 7/01/14, i already fix that. There's no error, when i press "Download", phone just reboots as if i press "reboot".

By the way, on GT-I9082 access is 000 )
[Galaxy S II Themes and Apps] Goldie:
So if you fixed it why post that log? How are ppl supposed to know what date you did stuff? :rolleyes: Good luck with your error.
[Galaxy S II Themes and Apps] Alard_626:
i've posted it in hope, maybe someone smarter than me will look at it and found things i've missed, and because there's no other error log, sorry, my mistake, have missed file creation date.

Sorry if i disturb you ))
[Galaxy S II Themes and Apps] smegg:
Has anyone worked out the kitkat tw reboot mod yet?
[Galaxy S II Themes and Apps] cleverior.ipul:
dear @kahvitahra

could u make tutorial 4 way reboot for MTK device which is using JB 4.2.2, please ? I've tried this tutorial but nothing changed.

TIA :)
[Galaxy S II Themes and Apps] Alard_626:
Hello!

Is there a way to add icons in 4-way reboot menu?
[Galaxy S II Themes and Apps] glfsd:
help :)

first of all sorry for my poor english :o

thanks for the wonderfull guide that i tried to follow, especially here

this is the result

but the reboot in revovery dont work, simply restart

and i dont understand why?

i've edited:

GlobalActions.smali

GlobalActions$SinglePressAction.smali

and placed these files

GlobalActions$99.smali

GlobalActions$99$1.smali

GlobalActions$99$2.smali

in android.policy.jar\smali\com\android\internal\policy\impl\

In file "GlobalActions$99.smali" there is id 0x1110008,

i check my public.xml and had to change for 0x1110009 (config_sf_slowBlur)

Id for "ok" and "Cancel" are ok (i think)

Also looked in services.jar for ShutdownThread.smali

and Lcom/android/server/pm/ShutdownThread (GlobalActions$99$1.smali) is ok

busybox and pkill are installed

i follow this (oK)

I must say, though, that all apps that I've tried from playstore,

no one has ever worked. the only one that worked is rom manager

my device is a LG Optimus 4X HD P880 jb 4.1.2

i've cwm 6.0.4.5

I dont know what else to check, can you help me?

View attachment 2594433

View attachment 2570733

View attachment 2570734

(all decompiled)

Unfortunately, I dont know how to do a log :o

glfsd
[Galaxy S II Themes and Apps] Goldie:
Is it rebooting or is it crashing and causing a reboot ? Does it create dumpstate_sys_error.txt.gz in data/log? I'm guessing if it's 4.3 that your access for mcontext are wrong
[Galaxy S II Themes and Apps] glfsd:
No, the recovery option does not work, simple reboot

in my lg, no dumpstate_sys_error.txt.gz in data/log

i've jb 4.1.2

....my bad english :)
[Galaxy S II Themes and Apps] IMRAN KHAN:
great mod
[Galaxy S II Themes and Apps] artur0588:
logcat

Hi,

Please help me. I have done everything to the first post and still have issue when press restart my phone go to hot reboot, no any extra reboot options.

I have attached zip with original android.policy.jar and modified decomplied one.

I have checked ShutdownThread.smali in right way. I have changed GlobalActions$99.smali and GlobalActions$99$1.smali according to my .method static synthetic access$100()Landroid/content/Context; Also added methods and change ok and cancel according to framework id, still no extra reboot menu.
[Galaxy S II Themes and Apps] SpaceCaker:
[MENTION=225651]op[/MENTION] do you also have this mod but in java form ?

i wanna see how its done in the globalactions.java

thank you ;)
[Galaxy S II Themes and Apps] remuntada78:
[MENTION=3862405]SpaceCaker[/MENTION],hi i need to ask you a thing about SimUnlockScreen.java file,can i ask you here or PM or other?tell me
[Galaxy S II Themes and Apps] SpaceCaker:
what do you want to ask ?
[Galaxy S II Themes and Apps] remuntada78:
see the image

View attachment 2600280

this windows is managed by SimUnlockScreen.smali,SimUnlockScreen$TouchInput.smali and .smali,

now in this windows i want call id for the button pressed, see second image

View attachment 2600281

to implement code for change color of the button pressed with a colorpicker.To do this i tried to work with eclipse to simulate it can you see here how http://stackoverflow.com/questions/21733814/how-can-i-change-keypad-button-pressed-color/21834873#21834873,and the only way that work is to add onTouchListener for each button.But when the button is clicked it don't put the number in the EditText.

Now I converted the classes.dex of android.policy.jar and i got the SimUnlockScreen.java that incorporates SimUnlockScreen$TouchInput and SimUnlockScreen$CheckSimPin, this is the file:View attachment 2600317

Can you tell me where can i add the code to do this in SimUnlockScreen.java ? Or if there is another way?

Sorry for the long OT:p
[Galaxy S II Themes and Apps] SpaceCaker:
This is JB or GB ?

what u could try to do is Sync aosp GB

maybe if there exists an device config to compile full aosp gb rom

u can do that

and then modify the simunlockscreen.java from frameworks/base

to what you want and then when it is like you want u can Use decompile policy.jar and copy paste ur new smaliw and fix All const id values.

atleast this method is what i did for a device of a friend of mine and ported some stuff and features like this.

JB powermenu on gingerbread :p
[Galaxy S II Themes and Apps] remuntada78:
is JB
[Galaxy S II Themes and Apps] SpaceCaker:
then try this by using Aosp JB as base or maybe CM Jb as they seem like same part

so u can compile part of rom manually

make -j8 framework-res && make -j8 android.policy

after lunch

then u can get the two needed framework files and try them on latest CM/Aosp rom..

then if ur method seems to be working u can port it to you re stock rom with ease
[Galaxy S II Themes and Apps] mknrls:
Error

Hey folks,

I having some small issues while compiling :p

Seem to be errors withing GlobalActions$99$1 and GlobalActions$99.smali

(Im compiling it for a 4.2.2 JellyBean (TouchWiz) and im using the jb source zip)

9-May-2014: Compiling classes.dex
9-May-2014: Microsoft Windows [Version 6.1.7601]
9-May-2014: Copyright (c) 2009 Microsoft Corporation. All rights reserved.
9-May-2014: C:\quickmod>java -Xmx512m -jar C:\quickmod\bin\smali.jar "C:\quickmod\output\dex\decompiled\241043490" -o "C:\quickmod\output\dex\compiled\241043490\classes.dex"
9-May-2014: output\dex\decompiled\241043490\com\android\internal\policy\impl\GlobalActions$99$1.smali[27,4] Error for input '.parameter': Invalid directive
9-May-2014: output\dex\decompiled\241043490\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,4] Error for input '.parameter': Invalid directive
9-May-2014: output\dex\decompiled\241043490\com\android\internal\policy\impl\GlobalActions$99$1.smali[43,4] Error for input '.parameter': Invalid directive
9-May-2014: output\dex\decompiled\241043490\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,15] mismatched input '"dialog"' expecting END_METHOD_DIRECTIVE
9-May-2014: output\dex\decompiled\241043490\com\android\internal\policy\impl\GlobalActions$99.smali[78,4] Invalid literal value: 260. Low 16 bits must be zeroed out.
9-May-2014: C:\quickmod>exit
9-May-2014: Failed
[Galaxy S II Themes and Apps] chudy_85:
@up

Upload me your file and i see what its wrong when i back from work

Wyklepane z mojego S4Lte Rooted Kitkat :)
[Galaxy S II Themes and Apps] mknrls:
Do you only need the framework-res. apk and the android. policy. Jar?
[Galaxy S II Themes and Apps] chudy_85:
Framework-res.apk , twframework.apk and android.policy.jar

Wyklepane z mojego S4Lte Rooted Kitkat :)
[Galaxy S II Themes and Apps] mknrls:
I zip them :P
[Galaxy S II Themes and Apps] chudy_85:
Ok when i back from work i check this

You must wait because i now start work cheers

Wyklepane z mojego S4Lte Rooted Kitkat :)
[Galaxy S II Themes and Apps] mknrls:
No worries mate.
[Galaxy S II Themes and Apps] chudy_85:
here is modded android policy.jar

download from zippyshare.com

link on post 353

write me if it's work
[Galaxy S II Themes and Apps] mknrls:
Didnt work man. When i press shutdown it those a hot boot
[Galaxy S II Themes and Apps] chudy_85:
Do you have nexus 4 or 5??? I do it that same like before whem i have galaxy s3 . Okay i try do it again and when i finish i upload you

Wyklepane z mojego S4Lte Rooted Kitkat :)
[Galaxy S II Themes and Apps] mknrls:
No lol its Galaxy Tab 3 7.0 (tablet) (touchwiz) :p
[Galaxy S II Themes and Apps] chudy_85:
okey try this i for get change In file ("GlobalActions$99.smali" there is id 0x1110008, you might want to check that this id is same in you roms puplic.xml )

now i change and here you have this file on post 353

remeber set correct permission
[Galaxy S II Themes and Apps] mknrls:
Still not working. Its restart the tab.
[Galaxy S II Themes and Apps] chudy_85:
I dont have this tab but i do it this for p3100 with 4.1.2 and work

Okey i try again

Wyklepane z mojego S4Lte Rooted Kitkat :)
[Galaxy S II Themes and Apps] mknrls:
Ohk cool. Thx for keeping trying
[Galaxy S II Themes and Apps] chudy_85:
okay now must work if this dont be work i finish

i find two bug what i do it but now its must work

first bug its i added 4 way reboot to power botton not to restart botton

and secend its in globalaction.xml

sorry bro for this and try this file

http://www63.zippyshare.com/v/61703822/file.htm

write its work
[Galaxy S II Themes and Apps] mknrls:
Well this also didn't work. I think is dialog problem, because now when i click restart it just restart there no promt to accept to restart lol
[Galaxy S II Themes and Apps] mknrls:
Still not working.
[Galaxy S II Themes and Apps] Sesme:
awesome thanks i put in last I9100XWMS3_I9100FOPLS6_FOP for S2
[Galaxy S II Themes and Apps] princeferoz:
Which file do I need to modify to get a custom name instead of "Device Options" when holding down the power button? Thanks.
[Galaxy S II Themes and Apps] smegg:
anyone figured out lollipop yet?
[Galaxy S II Themes and Apps] Darkman:
[MENTION=4151605]smegg[/MENTION] What does not work on your MOD?

I can confirm is not working on Samsung S5 (G900F) with Android 5.0 Lollipop :crying:

I made the same change like Android 4.4.4 but on the 5.0 it is not working (4.4.2 / 4.4.4 works).

If i click on "Reboot" then comes the Stock Screen with "Do you want to Restart? abort / reboot" but not the 4 Way Reboot Screen.

Any Ideas?

pfath to ShutdownThread changed

access refers to mContext changed

But it is not working
[Galaxy S II Themes and Apps] smegg:
One of the Vietnam note 3 forum guys cracked it. Here. This works for new lollipop TW.

http://xdaforums.com/galaxy-note-3/development/dev-tw-lollipop-torch-5way-reboot-t2997748
[Galaxy S II Themes and Apps] Darkman:
Thanks but test it now too but the same Issue:
[Galaxy S II Themes and Apps] qoejohn:
excuse me sir, :)

I've tried this guide, but I got a constraint, the constraint is the download mode does not work (if I select download mode, the device will restart but do not go to download mode). how to fix these problems,?

Any one help me please..

I've tried this guide in JB 4.2.2 stockrom,

thank you very much

Sorry for my bad english :)
[Galaxy S II Themes and Apps] DresdanPI:
How do you uninstall it if you don't want it anymore?
[Galaxy S II Themes and Apps] Abdullaharis:
Thanks

---------- Post added at 03:42 PM ---------- Previous post was at 03:41 PM ----------

Thanks To You Too
[Galaxy S II Themes and Apps] RealWelder:
I am trying to get this mod working on an LG phone running 4.4. The smali code for GlobalActions is a little different, but I think the same principles still apply.

My problem is when I press reboot. Instead of the 4 way reboot menu popping up it just soft reboots the device. If I upload my modded classes can someone take a look and hopefully figure out why it is not working?

The original reboot is $3 and in that file the annotations is different, instead of createDialog()Landroid/app/Dialog$Builder it uses createDialog()Lcom/android/internal/policy/impl/GlobalActions$GlobalActionsDialog. Was wondering if somehow this could be the issue.

https://drive.google.com/file/d/0B3XczzpnAnvwQktLZmRvWjhBdVU/view?usp=drivesdk Modded file.

https://drive.google.com/file/d/0B3XczzpnAnvwM0VLbmFUdFMwcEE/view?usp=drivesdk Stock file.

Edit: Still not working, but I noticed that my public id for the blur was different. One step closer.

In logcat I'm getting NoSuchMethodError: com.android.internal.policy.impl.GlobalActions.access$400

I don't understand, the method is there in global actions. (Although it is invoking changeAirplaneModeSystemSettings)

access$100 is Landroid/content/Context, but when I changed 400 to 100 it still didn't work.
[Galaxy S II Themes and Apps] RealWelder:
Please delete I was trying to edit and hit the wrong button.
[Galaxy S II Themes and Apps] giew13:
Cool^^

Don't forget to press THANKS if i help you^^
[Galaxy S II Themes and Apps] kahvitahra:
Well, hard to tell. You know that only way to spot what is wrong is to get logs out of phone :) So attach logcat with error here and i see if i can help that way.
[Galaxy S II Themes and Apps] interpol2050:
Actually i'm a novice of android, I don't know when to get the logcat. I got this logcat when I restored my SG2. I'm not sure that it would be useful. If it's not, could you tell me when I have to get that logcat?
[Galaxy S II Themes and Apps] kahvitahra:
Right after you have error. In your case you keep phone pluged in when booting and take logcat after it bootloops.
[Galaxy S II Themes and Apps] coccolino_dbro:
Hello!

Thank you for this guide, just did it on my Galaxy Gio, with some small modifications, combining it with the other method of exended menu (kept Reboot and Power off options separate in main shutdown menu). It works beautifully.

However, I wondered if there's any way to localize the reboot options in the sub-menu; the others are localized using the framework-res.apk. I know I could change names in the smali file, but it would be nice to have them auto-localize based on user language choice.

Thanks!