yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] kennethso168:
Version 2.0 released

Changelog

New implementation for rebooting into recovery. Reboot wrapper is no longer needed.

Added screenshot function! (experimental)

The screenshot function will no longer be "experimental" if enough people have tested it.

I'll be busy soon so there might not be a major update in the near future.

Warning: DO NOT press Vol-Down + Power while a screenshot taken by Advanced Reboot Menu is being saved! This will result in constant force-stop of System UI and you will need to reboot the phone to solve this!
[Sony Cross-Device General] slimshouki:
Working flawlessly but will be much better if you can remove the confirm prompt.
[Sony Cross-Device General] HackitZ:
$ su
# reboot recovery

It's not working in my rom, the code above reboots fine into recovery.

my sig has a link to my rom.

i have dual recovery installed.

i installed version b, if you need the log let me know.

Thanks
[Sony Cross-Device General] ILikeTheWayYouMove2:
Great work!

Any chance you could add reboot softkeys like in romaur?
[Sony Cross-Device General] Maddhouse:
Cool little mod for xposed but none of my reboot options are working only soft reboot, I get supersu toast for system /bin/sh and nothing

Edit: flashed reboot wrapper and all good
[Sony Cross-Device General] Izengrim:
Z .244 odex stock

Screenshots works

Reboot in recovery works

GREAT THANKS

Great work
[Sony Cross-Device General] paulkhim:
Stock .244

Screenshot works and reboot to recovery works ( TWRP 2.4.3.0 APP/RECOVERY )

Thanks :)
[Sony Cross-Device General] HackitZ:
my phone is an xperia zl, with dual recovery.

here's my log.

2013-08-18 8:09:03 PM UTC
Loading Xposed (for Zygote)...
Loading modules from /data/app/com.oasisfeng.greenify-1.apk
Loading class com.oasisfeng.greenify.pro.FrameworkPatch
Loading modules from /data/app/ind.fem.black.xposed.mods-1.apk
Loading class ind.fem.black.xposed.mods.Xmod
App Version>>>
MODEL Name>>>C6506
BRAND Name>>>Sony
DEVICE Name>>>C6506
MANUFACTURER Name>>>Sony
PRODUCT Name>>>C6506_1270-7584
ROM Name>>>HackitZ_XZL_244_V3.0
RELEASE Name>>>4.2.2
SDK_INT Name>>>17
StatusbarColor: initZygote
CustomCarrierLabel: initZygote
com.android.internal.policy.impl.KeyguardStatusViewManager not found
NotificationPanel: handlePackage
NotificationPanel: Completed
Loading modules from /data/app/com.modaco.toolkit-1.apk
Loading class com.modaco.toolkit.Main
AdvRebootMenu: init
CrtEffect: init
Nbg: init
Clock: init
RecentPanelMod: init
CustomCarrierLabel: init
StatusbarColor: init
SignalCluster: init
Battery : init
Nbg: dimension started
java.lang.NullPointerException
at com.oasisfeng.greenify.pro.ac.beforeHookedMethod(SourceFile:265)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:432)
at android.app.ContextImpl.registerReceiver(Native Method)
at com.android.server.usb.UsbDeviceManager$UsbHandler.needSyncUsbState(UsbDeviceManager.java:685)
at com.android.server.usb.UsbDeviceManager$UsbHandler.handleMessage(UsbDeviceManager.java:658)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at android.os.HandlerThread.run(HandlerThread.java:60)
java.lang.NullPointerException
at com.oasisfeng.greenify.pro.ac.beforeHookedMethod(SourceFile:265)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:432)
at android.app.ContextImpl.registerReceiver(Native Method)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:423)
at com.sonyericsson.psm.sysmonservice.SysmonService.isCharging(SysmonService.java:289)
at com.sonyericsson.psm.sysmonservice.SysmonService.onCreate(SysmonService.java:276)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2552)
at android.app.ActivityThread.access$1600(ActivityThread.java:149)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1328)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:213)
at com.android.server.ServerThread.run(SystemServer.java:1088)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethod(XposedBridge.java:624)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:455)
at com.android.server.ServerThread.run(Native Method)
ebMode 32
ebMode 32
Nbg: dimension started
ebMode 32
ebMode 32
ebMode 32
ebMode 32
java.lang.NullPointerException
[Sony Cross-Device General] kennethso168:
Thanks for the log. However, I can't see any trace of my mod in the logs. From the logs I see that you may be using MoDaCo Toolkit's advanced reboot menu instead of mine. I can also see that there are an exception from Greenify app, which may prevent the normal functioning of other mods. Therefore, I suggest you disable both mods, reboot, and see what happens. Do tell me the result. Thank you.

Btw the test for rebooting into recovery is deprecated.
[Sony Cross-Device General] dan079:
Work on Z ultra too!

Tried on the Z Ultra (firmware .475) Unlocked bootloader & Rooted

Reboot option works, did not try the reboot to recovery as there is no custom recovery available at the moment.

No screenshot option. i am fine as i seldom use this function, in the even i do i am just a few key press away.

Could not give you the log as i installed the 2.0r
[Sony Cross-Device General] kennethso168:
Thanks for the info.

However, it's odd if there's no screenshot option. A screenshot option should be added unless there is already one (stock one). So I hope that you/other Z ultra users can try out the beta version and send me the log.

------------------------------------------------------------------------------------------------------------------------------------

btw, I now think that it's not good to have two separate versions for logging. Some users also wanna disable confirmation dialog, but some users (including me) would like to keep it. So eventually I'll write a GUI for configuring different options. But no guarantee and no release in the near future... (i'll be getting busier)
[Sony Cross-Device General] dan079:
After 2 reboot the screen shot menu show up. It's all good now.... Thumbs up :)
[Sony Cross-Device General] Tungstwenty:
[MENTION=4414937]kennethso168[/MENTION]

An additional idea for the next version :)

Currently superuser is needed for the reboot options to be executed. On SuperSU, at least, this requires either permanently granting system_server su rights, or else answering its prompt every time an option is selected. If you trigger it from the lockscreen, you need to unlock the screen to see the prompt.

I have checked and reboot options can be triggered directly from the system user (which is the one running the menu), which therefore removes the need for su access:

- normal reboot

pm.reboot(String reason)

- recovery reboot

"touch /cache/recovery/boot" can be run as system, as long as /cache/recovery already exists. At least on my device, /cache/recovery is created automatically on startup (init.rc) and the owner is set to "system"

Then, pm.reboot(...)

- soft reboot

The 2 "setprop ctl.restart ..." commands can also be executed as system

As for the issue with the Screenshot FCs if it's triggered with the keys as well, the ideal solution would be for you to inject something onto the PhoneWindowManager's handler and invoke the original takeScreenshot() method, which will be safe from multiple invocations.

Of course this is much easier said than done :)
[Sony Cross-Device General] kennethso168:
Well thanks for telling me all these suggestions

But as you said, this is much easier said than done. I've already spent hours getting everything in v2.0 to work, and I've just learned some basics about handler.

Well I believe you may have even decompiled the apk so as to make these suggestions...I really appreciate your enthusiasm for making the app better.

Before that I'm already considering making the app open-source soon...

btw I knew power manager before. However pm.reboot(recovery) alone doesn't work on Xperia devices so I switched to shell commands. To make everything the same I also use shell commands instead of pm.reboot(null)
[Sony Cross-Device General] Tungstwenty:
The "easier said than done" was for the screenshot, not for the rest :)

pm.reboot doesn't work for recovery, true, but if you touch the /cache/recovery/boot file it will work.

Anyway, that was just a suggestion. I do know it works on my Xperia Z; not sure if works for all devices, though.

PS: I did look at the apk before granting su to system_server, as I am not really comfortable with that ;)
[Sony Cross-Device General] YudiA1:
Thank you for added screenshot. More complete and easy to use for this device. :D

Great job :thumbup:

All reboot option work all. Although recovery when to CWM.
[Sony Cross-Device General] Regionella:
Is it working on 244?
[Sony Cross-Device General] lyndonguti:
Now it works flawlessly!! Great?

sent from my lovely XperiA Z
[Sony Cross-Device General] danytrial:
Yes
[Sony Cross-Device General] raiderkilo:
All works on 244

Sent from my* Sony Xperia™ smartphone
[Sony Cross-Device General] kennethso168:
If you use NUT's dual recovery you can set the default to CWM

It seems that the log doesn't record any pressing of reboot option. If you can please try to press the reboot option and see the logs again.

Or try sending me the last part of debug.log.old as debug.log is reset every reboot.

However I don't think I'll be available these few days so I can't help you. Sorry.

--------------------------------------------------------------------------------------------------------------

Now Advanced Reboot Menu is on GitHub.

However it still lacks some code clean-up, a readme, or perhaps a license. Please wait for them.

It's good if you wanna contribute or send me pull requests, but I can only handle them next week

--------------------------------------------------------------------------------------------------------------

I won't be online next few days, so I won't be able to reply or give any support until next week. Sorry for that.
[Sony Cross-Device General] YudiA1:
Lol, Thank you so much. not read that b4. :D
[Sony Cross-Device General] spida_singh:
2.0r working great! Thanks,

On 244 fw for Xperia Z.
[Sony Cross-Device General] gcgspain:
Working fine on stock 244 fw XZ. Thanks!

Enviado desde mi C6603 usando Tapatalk 4
[Sony Cross-Device General] lyndonguti:
[MENTION=4322181]Tungstwenty[/MENTION] your here? Wow man..i know your gonna also rock here like our old times in s2

Sorry for ot:cool:

Again i find this mod really usefull tnx

sent from my lovely XperiA Z
[Sony Cross-Device General] oakgrove:
The new version works flawless. Thanks

Sendt fra min C6603 med Tapatalk 4
[Sony Cross-Device General] gcgspain:
As I've said a few posts back it it's working perfect on 244 fw, nevertheless I have a dual recovery (volume up = cwm / volume down = twrp) and rebooting to recovery loads cwm. Is there a way to choose which one to load on reboot?

Enviado desde mi C6603 usando Tapatalk 4
[Sony Cross-Device General] kingvortex:
If you read the OP in the dual recovery thread - [TOOL/UTILITY][LOCKED BOOTLOADER][ TWRP 2.6.0.0][CWM 6.0.3.3] XZDualRecovery

You will see this section on how to set the default recovery -
[Sony Cross-Device General] lyndonguti:
del
[Sony Cross-Device General] wmiswm:
Working fine on xz 244 stock rom, thank you very much.

Is it possible to remove the long click re-confirmation? It is just an unnecessary extra step.
[Sony Cross-Device General] soxxo:
Hey can you make it 4.0+ I have Xperia Arc S and I want this mod :fingers-crossed:
[Sony Cross-Device General] BobLC:
Hi guys,

Just to confirm that this mod is fully functionnal on the XPeria ZR 4.2.2.

Thanks :)
[Sony Cross-Device General] blankhang:
bug

on Chinese language dont have the 屏幕截图 word but has a 螢幕截圖 so hope you can help fix that thx XZ 244
[Sony Cross-Device General] yeyi01:
Thanks boss using it now

#thanks+
[Sony Cross-Device General] kennethso168:
Sorry for late reply. Has been very busy on the previous some days.

Thanks for trying Advanced Reboot Menu and reporting if it works.

This may be a planned feature in version 3.0

Thanks for trying out my app. In v3.0 I plan to extend support to nexus devices. In the future I may support phones of more brands. However I have to know the implementation on different brand first.

I manually fix the minimum required version to be 4.1 because I don't know what will happen on 4.0, but it should work. So if you wanna try I can make it to be 4.0+ in the next (small) release if you wanna try.

This is not a bug. This is intentional because I haven't added Simplified Chinese translations yet. What you see is correct Traditional Chinese translations. I will add SC support in the next version.

However, I hope you can also contribute by completing the strings.xml file attached in #2. This can ensure accuracy as, you know, there are lots of differences in computer terms between Mainland China and Hong Kong/Taiwan.
[Sony Cross-Device General] soxxo:
Thank you, but I don't need it anymore, now I'm using 4.3 on my Arc and I have advanced power menu :)
[Sony Cross-Device General] kennethso168:
Version 2.1 released [EXPERIMENTAL]

Add support for 4.0+ devices

Fixed Simplified Chinese/Traditional Chinese Translations

Changed implementation for rebooting so su permissions are no longer needed

Upstream changes from GravityBox

Note: If this version does not work for you, then try again with v 2.0. Then I know that the new changes is the cause of the problem.
[Sony Cross-Device General] HackitZ:
this version worked for me. thanks for your hard work.
[Sony Cross-Device General] cities516:
Hi [MENTION=4414937]kennethso168[/MENTION],

can you disable the confirm prompt after I choose Reboot / Soft Reboot / Reboot to Recovery?

Thanks!:highfive:
[Sony Cross-Device General] golfgtiedition30:
It works great for me. Good work :)

Sent from my Zed
[Sony Cross-Device General] Dennes87:
Thanks!!!!:good:

Works great on Nexus4 and Nexus7 :fingers-crossed:
[Sony Cross-Device General] kennethso168:
Again, thanks anyone who have tested Advanced Reboot Menu.:)

Thanks for the opinion. This will be a planned feature in v3.0.

And btw the Advanced Reboot Menu works well on your Xperia S? Then I can add it to the confirmed working list.

Great! You are the first one who confirms that it works on Nexus devices! Thanks.
[Sony Cross-Device General] cities516:
Yes, it works:laugh:

Or more correctly: it adds another "Reboot" option to the original boot menu from the phone's ROM.
[Sony Cross-Device General] gwithrow:
Works great on my Xperia Z
[Sony Cross-Device General] Penacal:
Works in my Xperia u with an AOSP rom:thumbup:
[Sony Cross-Device General] golfgtiedition30:
It works on my Xperia z....

But the boot to recovery option causes the phone to shut down instead of booting to recovery.

Sent from my Zed
[Sony Cross-Device General] dj_richard05:
Works very well. Very neat stuff. Thank u
[Sony Cross-Device General] kennethso168:
Once again, thanks all testers:)

This is strange... I have heard about normal reboot instead of rebooting into recovery. But I've never heard of phone shutting down!

If you can please provide me more details (firmware, ROM, recovery, etc.)

you can also send me the logs (including the last part of debug.log.old) if you use the beta version. Or wait for v 3.0

-----------------------------------------------------

v3.0 sneak peek!
[Sony Cross-Device General] sixth.pr1m3:
[MENTION=4414937]kennethso168[/MENTION]

Tested on Xperia U stock ICS.

Everything's working :good:

Thank you
[Sony Cross-Device General] dan079:
works with z ultra. by the way is there a way which I can set the default recovery. i am on rooted .510 fw, unlocked bootloder stock kernel with dual recovery.
[Sony Cross-Device General] kennethso168:
Thanks all for testing.

Yes, as the creator of dual recovery says

and btw I'll change the name of the app to "Advanced Power Menu" as it does more than rebooting!
[Sony Cross-Device General] Riekr:
works fine on stock 4.3 on galaxy nexus :) (i now this is not made for a gnex but it works!)

thanks!
[Sony Cross-Device General] kennethso168:
Version 3.0 released

What's New:

App name is changed to "Advanced Power Menu"

Updated app icon

GUI for configuring different options

options to hide/show reboot option and screenshot option

disable reboot confirmation dialogs

option to write full logs (effectively merging beta and release versions)

many small, under-the-hood changes.

if this version does not work for you, try an older version, or enable the logs and send some to me.
[Sony Cross-Device General] AndroPlus:
Here is Japanese translation for v3.0:

http://d-h.st/ihk

Don't you upload Advanced Power Menu to Xposed Module Repository?

It will be convenient for users to find and update this useful module.

http://repo.xposed.info/
[Sony Cross-Device General] kennethso168:
Thanks so much for the translation and the info. Will try to upload the app to the xposed repository (the new update is great)
[Sony Cross-Device General] kennethso168:
A small update (v3.1) is released with updated Traditional Chinese and Japanese translations.

Go to Xposed Modules Repo for download.
[Sony Cross-Device General] skypezero:
Thanks so much!! It works great!! :D
[Sony Cross-Device General] brenopapito:
An option to hide the app icon in drawer it would be really nice !

:good:
[Sony Cross-Device General] Rohaq:
Confirmed as NOT working on a stock ROM and rooted Galaxy S4 - Not that surprising, as it doesn't use the standard Android power menu.

After applying the module, holding the power button for the menu as usual usually ends up with the menu not appearing, then the device rebooting shortly after.
[Sony Cross-Device General] lyndonguti:
Wait did you say galaxy s4?

sent from my lovely XperiA Z
[Sony Cross-Device General] Rohaq:
Um, yes?

Other modules are working fine - The camera from lockscreen module is especially useful.
[Sony Cross-Device General] cities516:
So this proves that this mod won't work on TouchWiz ROMs...
[Sony Cross-Device General] kennethso168:
Thanks for the suggestion. Will try to find a way to do this if I have time.

Well, that's really crazy..., but anyway, thanks for trying.

I have to put this warning at the OP then...:

Warning: This will definitely NOT work for Samsung TouchWiz & HTC Sense Stock ROMs!

But I might add support for more "non-standard" devices though, if I get to know how to implement on those devices.
[Sony Cross-Device General] Tungstwenty:
If you do want to remove the launcher activity and still have the mod's UI be opened from Xposed Installer, check this commit.

You'll just need to use the category "de.robv.android.xposed.category.MODULE_SETTINGS" for your activity instead of the launcher one.
[Sony Cross-Device General] kennethso168:
I also knew this, but I wanna to do something that users can set whether to hide icon or not from the app itself.

And I'll be busy these days. I'll try to do this if I have time
[Sony Cross-Device General] Tungstwenty:
Ah, a *configurable* option :)

Here's a way to do it then: http://www.chainfire.eu/articles/133/_TUT_Supporting_multiple_icons_in_your_app/ ;)

PS: Not personally interested on the feature BTW
[Sony Cross-Device General] jeonghyeon:
Wow... Perfect!!! :)
[Sony Cross-Device General] Juromil93:
The best

This is the best reboot menu for my Xperia V (FW 9.1.A.1.140)
[Sony Cross-Device General] erik90:
Working on my Samsung Galaxy SII i9100 with Chameleon Rom v3.0.3!

:good:
[Sony Cross-Device General] Birdsfan:
Key board click sound lag?

Running stock/rooted with xposed and when I add this module or Busy Box the click sound on my stock keyboard ends up being almost a second late. Removed the module (and Busy Box, one at a time to determine which was causing it, they both do) and back to normal. Any thoughts and yes I know I CAN turn the click sound off.:confused:
[Sony Cross-Device General] kennethso168:
Thanks all for testing

I think this might be a performance issue. Try the performace experiment at the settings section of the newest Xposed installer and see if it helps.
[Sony Cross-Device General] Birdsfan:
I'll give it a try and advise, thanks!

Update- seems to have fixed the lag!
[Sony Cross-Device General] underskyzx:
Amazing job, works great on my Xperia U, so far no issues, perfect even recovery works!
[Sony Cross-Device General] ruadus:
Does it work with S3?

Hi,

Anyone tested this one with Samsung Galaxy S3 (I have ARHD 29 ROM)

Thanks
[Sony Cross-Device General] CallMeVentus:
Working well on my Xperia SP (C5303) running .2.245 :p
[Sony Cross-Device General] myawan:
what if I uninstall framework and module both, will the changes remain or get reverted?
[Sony Cross-Device General] kennethso168:
The changes will get reverted.
[Sony Cross-Device General] janot2007:
Thanks for the Mod. Works on Lenovo p780 stock rom. With just one small problem. Icons are white on white and "screenshot" is written in English. Can't upload screenshot coz I'm a new user.

P.S: I've compiled version 4.0a from github - now I see that translations were updated
[Sony Cross-Device General] baileyjr:
Working great here on the Xperia Z Ultra :good:
[Sony Cross-Device General] takagen:
Works great on stock Xperia ZL deodexed.
[Sony Cross-Device General] ojessie:
Hi,

I'm really happy (was) with your app. Unfortunately right after installing the Honami Camera app from

http://xdaforums.com/showthread.php?t=2437314 I

l lost the functionality of your app. Uninstalling / installing updating of the frame work didn't fix the problem. Any chance that you are looking into it or perhaps to fix the problem. I think it happened because of the "framework change" but I'm not a developer.

Thanks for your app and regards, ojessie
[Sony Cross-Device General] kennethso168:
Version 4.0 released!

As you'll expect, the highlight of this version will be an option to hide the app icon from the launcher.

Grab it from Xposed repo.

And what's more, I'll request moving the thread to the new "Cross-Device Development Projects for Sony Devices" forum. In the future I also plan to open a new thread in Android Apps and Games for support of other devices.

And once again, thanks all for testing the mod.

Thanks for report. I'm planning to add a functionality to use dark icons instead in the next version (maybe v4.1) to solve your problem. And your language is Russian? It's been just updated in v4.0.

Well, that thing might be a little bit difficult for me. But anyway, you may try enabling "verbose logging" in the settings and send me /data/xposed/debug.log. (you need superuser permissions to access it. Also, please don't directly paste the whole chunk of logs here). There is a fix from the new version of xposed library that fixes the problem with fixing permissions. This fix might matter, but I don't have time to implement it now so maybe some time in the future.
[Sony Cross-Device General] Dreiundachzig:
After updating and opening the app the icon disappeared without checking that option.
[Sony Cross-Device General] kennethso168:
Well I figured out the reason why it hides automatically is that I forgot to provide the initial value of that option. How careless I was!

I'll provide a fix very very soon. Sorry for that.

Edit: Now I've released v4.1 which fixes the problem. You can update it via Xposed Installer
[Sony Cross-Device General] ojessie:
Thanks, it's working now. I don't know if this was your new version 4.0 or the fix ... anyhow problem fixed.

Thanks
[Sony Cross-Device General] kennethso168:
Now I've requested to move this thread to the new cross-device forum

It'll be move to here:

http://xdaforums.com/forumdisplay.php?f=2522
[Sony Cross-Device General] SirOch:
Hi,

Great mod. Works well on Gnex.

I have 2 requests if it is possible:

- add "reboot fastboot"

- the possibility to choose the language in the configuration in order to bypass the default phone language. For example set the menu in English and not in French in my case.

Regards