yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] kennethso168:
Now let me reveal what's new in this update:

Re-organised settings

Remove original reboot, screenshot and toggle airplane mode menu item

Changed implementation in Anti-Theft Protection. Now should also disable the toggle airplane mode menu item and toggle mobile data menu item

Changed implementation in determining positions to add menu items.

Updated Russian translations (Thanks greatslon)

And more importantly - Christmas Easter Eggs!

Hope you can find out all the Christmas Easter Eggs!

This should be fixed in v8.0.1

It's normal that you can't change the color of the power off and toggle airplane mode item. It is because the color themes function is not intended for real theming. It's intended to match the original stock color theme of some devices.

And yes the translations are truly incomplete and outdated. If you wish, you may help me by providing your translations. If you only want to translate the menu you can directly send the translations to me. Or if you have time to translate almost whole of the app, you can grab the strings.xml and arrays.xml file here:

https://github.com/kennethso168/AdvancedPowerMenu/tree/master/res/values

Your help is truly appreciated. Please also tell me the name of your language so I don't need to guess. Thanks.

yes it's normal

Please read the OP (original post). I've put a big red warning there:

Warning: This will definitely NOT work for Samsung TouchWiz stock ROMs or anything based on them!

Hopefully it will, if I have time to change it :)
[Sony Cross-Device General] teddybaerd:
Working well on S3 with CM11 :good:
[Sony Cross-Device General] Avamander:
Any chance that you will add support to block shutdown on my LG L9 II?

Sent from my flying car
[Sony Cross-Device General] ps000000:
Does anyone make it work on Z Ultra C6833 ( .290 android 4.3 firmware )

I try and did not work (or I miss something)
[Sony Cross-Device General] kennethso168:
Xperia 4.3 ROMs need a special xposed installer. You can get it here:

http://xdaforums.com/attachment.php?attachmentid=2454695&d=1387049158
[Sony Cross-Device General] Kocane:
So... is the christmas stuff gonna get removed from the power menu :P?
[Sony Cross-Device General] showham:
Works on rooted stok jb Xperia P.
[Sony Cross-Device General] kennethso168:
It's been removed.

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

At first, there were already xposed modules like GravityBox which adds advanced reboot option. However it doesn't work for Xperia ROMs. I know the special implementation to get it working, so I developed my own Advanced Reboot Menu (yes originally it's called like that and is reflected by the package name). I was just developing for myself and share it to others who might find it useful. Therefore, at that time, the app is ONLY INTENDED FOR SONY DEVICES. That's why I put the thread under Cross-Device Development Projects for Sony Devices.

Then, the application was met with responses out of my expectation. Many users began telling me their requests, which helps me to improve the app and make the app more powerful and unique. A lot of people also find it working on other devices. Slowly, the app becomes a generic Android App now.

So I intend to open a new thread in Android Apps and Games section. Once I've set it up I'll post the link here. Then this thread can still be used to provide specific support for Xperia Devices.

Thanks for your continuous support.

Thread link:

http://xdaforums.com/showthread.php?t=2594642
[Sony Cross-Device General] ps000000:
This Xposed is very useful for me

with my C6833 Stock Root 290 it works perfectly

( I don't know why Sony stock has only shutdown option in their boot menu !!!! )
[Sony Cross-Device General] DiDA™:
Dammit! This would've been so useful if it would've worked on TW. :|

Anyways, great mod!
[Sony Cross-Device General] tidu12:
Can I use Xposed and its modules with my device not have Rooted?

Thanks
[Sony Cross-Device General] kingvortex:
No. You need root to install the Xposed framework.
[Sony Cross-Device General] ki4m:
works quite well on LG G2 D802 (stock firmware)

but I cant enable ATH.. (and disabling airplane mode)

wich sucks because I love the idea of it, lockscreen without it is kinda pointless to me because it's so easy to just turn the phone off and avoid the gps tracking if it was stolen.. but as the LG G2's battery can't be removed and also removing the ability to turn it off without unlocking is brilliant... I would propably have my phone back before someone could find a way to bypass that or before the battery goes flat.

so I'd love to see that feature working on my LG G2
[Sony Cross-Device General] kennethso168:
Please enable verbose logging in my app, launch the power menu at least once and send me the logs, which can be obtained in the xposed installer. I may try to investigate that
[Sony Cross-Device General] jb0ne:
I LOVE the anti-theft feature!! I asked for it to be addded to Gravitybox but got no response, however people say the two are compatible - and it does appear so. Love that I can have a pattern lock, a nice blurry see through background, and the power menu can't be used to turn on airplane mode or turn off device.

Perfect match for Cerberus :)
[Sony Cross-Device General] hassanmahmood:
confirmed working on the Xperia Z Ultra 4.3 .290 firmware
[Sony Cross-Device General] guybrush2099:
confirmed working on Xperia z1 KitKat :)

Inviato dal mio C6903 con Tapatalk
[Sony Cross-Device General] Philip:
I realise that the APM module is (sadly) no longer supported, but I can report that it is NOT working for me on a C6833 Xperia Z Ultra running Kitkat (4.4.2 - Sony build is 14.3.A.0.681). :(
[Sony Cross-Device General] chunlianghere:
the soft reboot seems weird on kitkat z1 681. it is same as hard reboot.

possible to fix this? thanks for your hard work! :)

[MENTION=4414937]kennethso168[/MENTION]
[Sony Cross-Device General] kingvortex:
Work on the module has unfortunately ceased. See this - http://xdaforums.com/showpost.php?p=49049254&postcount=1
[Sony Cross-Device General] rocketrazr99:
Definitely the best module for Xposed ever and unfortunate Ken So has dropped support. Thankfully it is still available. I tried to donate but Paypal won't send to Hong Kong atm. All I can do is hit Thanks.
[Sony Cross-Device General] pyler:
If you want add option "Reboot to Safe mode", you can run this "setprop persist.sys.safemode 1" and then do reboot.
[Sony Cross-Device General] kennethso168:
Now I've been able to just squeeze some time to resume limited support. Just that it's a little bit better to post in the more general xposed module thread.

You're welcome. I've also just updated my Z to kitkat and the soft reboot also worked like hard reboot. Actually I used the method by the xposed installer and xposed installer also failed to do a soft reboot on my device. So I don't think it's possible for me to fix that. (Maybe just hide that soft reboot option for the time being)

Thank you. I'll consider adding this feature in the next release.

You're welcome. Actually I planned (or dreamed of) re-writing the app with a new UI and lots of new features. I'll put the new app as a paid app in Google Play store to facilitate donation (maybe in-app donations too). The same package will still be uploaded to xposed repository for free. But now I don't think I've time to do it.
[Sony Cross-Device General] RusherDude:
[MENTION=4414937]kennethso168[/MENTION] Awesome mod mate, thanks!!

One request, please :D

When in the anti-thief mode, why isn't the "screenshot" option disabled? that allows a thief to start taking screenshots and, even if its no danger right now, some exploit regarding taking screenshots and saving it into storage could appear and put risk into the issue.

Also, I noticed that if we add another off-menu options like "Record Screen" from gravitybox, they're still there and the thief can start recording stuff (again, futures vulnerabilities may ruin the purpose of this mod). Could you please add an option to block ABSOLUTELY EVERY OPTION in the screen-off button menu panel? Like only the "Phone blocked" option, nothing more.

That would be awesome!!!
[Sony Cross-Device General] :
You must disable it, just keep searching for it. And you can remove the airplane mode too.
[Sony Cross-Device General] RusherDude:
That option disables it completely, even when you're using the phone. I'm requesting him to disable it ONLY on thief mode.

And I know airplane mode can be disabled, Im talking about added features from other modules. Forcing a DISABLE ALL, not only the basic stuff.
[Sony Cross-Device General] Kocane:
Why not just use gravitybox then? It has the possibility to compeltely disable the power menu on lockscreen.
[Sony Cross-Device General] RusherDude:
Because that is a bad option, the thief won't know that is blocked and will keep it pressed.. and after 15s, the phone will reboot (15s activates a hardware-based reboot, it simulates battery pull on non-removable battery devices) and then we're screwed, since there is no such thing as password-protected bootloader for android (which is why android still kinda sux, even if there is no better option)
[Sony Cross-Device General] Kocane:
Yes, 15s with the volume up button pressed as well. Just holding the power button does nothing. The thief would had to be aware of the way to simulate the battery pull on the Z, which is unlikely.
[Sony Cross-Device General] RusherDude:
On my Nexus 5 its kinda clear so i'd be screwed :(, thats why I can't disable that menu.
[Sony Cross-Device General] Kocane:
For some reason I was under the impression that people here were on recent Xperia devices, my bad :p .. I guess its hard for you to keep strangers from turning off your phone then :(
[Sony Cross-Device General] xosele:
Hi!

It is assumed that the combination of Power + Volume Up keys should not work, right?

If the answer is YES, there is something wrong with my terminal. And I can not remember how many times I restarted.

Also probe to disable all modules without success

May i try to delete and reinstall the module? Somehow?
[Sony Cross-Device General] kennethso168:
Not sure what do you mean. Do you mean that the key combination doesn't work like usual with my module, but works without my module? And what do you mean by it working? The behavior for this key combination varies from device to device. For Xperia devices it should force reboot the device.

Normally my module doesn't change the key combination behaviors as it's a kernel related thing.

You may try uninstalling my module/disabling my module from xposed installer, reboot, and see if the problem persists. You can tell if the problem is related to my module by doing so.

PS reply to the previous discussion:

I'm now working on a more powerful app called APM2. You'll have greater control for the power menu options, including controlling whether EACH option should be shown in the lockscreen.
[Sony Cross-Device General] xosele:
Ok , my mistake.

Indeed in my Xperia combination Power + Volume makes the phone reboot. I thought one of the features of your module is avoiding this possibility.

If the phone can be reset as well (Power + Volume Up), is not very useful (at all)to hide shutdown from the button, no?

Anyway , great job. One of my favorites!!
[Sony Cross-Device General] kennethso168:
You can say that it may not be so useful. But that is a possibility that cannot be totally prevented. You have no choice but have to hope that thieves don't know this key combination (Given that the market share of Sony devices are not so high, and most thieves are not geeks, I don't think many of them know this key combination.)

(And actually the key combination just reboots the phone. You will need to press and hold this key combination for a REALLY VERY LONG time to power off the phone, which I think only a few will know this)

You may also try the fake power off button, which hopefully can fool the thief for the longer time (PS: personally I don't use it because I was sometime fooled by the fake option as well)

In the coming APM2 I'll implement a more "realistic" fake power off function so that the thief can be fooled for a longer time.
[Sony Cross-Device General] xosele:
I tried that option but does not work as I hope, or something I'm doing wrong

If the box for "Hide description" is not checked and the box for "Fake Power off" is activated, the button "power off" appears, and when you click to power off the information shown on the screen(Alerting thieves)

What I would like is that if the "Hide description" is checked and "Fake Power Off" box is marked also, when you press to power off, do nothing or show some kind of error. This is possible?

Thanks for your work!
[Sony Cross-Device General] kennethso168:
I tried that out myself and found that the fake power menu didn't work. Should be a bug accidentally introduced in recent versions. I'll try to investigate and fix it later.
[Sony Cross-Device General] kennethso168:
I think I've fixed it and I've put a new version on xposed repository

Also, in this version I made the device-is-locked description and the fake power TWO INDEPENDENT OPTIONS, as it is confusing even for myself.

(Translators: you may want to update that relevant strings to avoid confusion.)

The normal behavior of the fake power menu should be produce a power off dialog that looks exactly to the stock one (something like "are you sure?", and then "Powering off..."), but the dialog stays indefinitely. Try the new version and see if it's fixed.
[Sony Cross-Device General] xosele:
Men, works deluxe now. Simply spectacular!
[Sony Cross-Device General] brettsmods:
I have the airplane mode disabled on my device, but it still shows up in the power menu.

I'm on an LG G2 (D801) with 4.4.2 stock.

Here is the error log: https://www.mediafire.com/?x54d4kvzud4ejcl

Any idea on why it wouldn't be working? The airplane mode toggle is really annoying because I never use it. :P
[Sony Cross-Device General] kennethso168:
From the logs, what I can tell is that the airplane toggle can't be detected by APM. It seems that the system adds the option on-the-fly after APM does the job.

Now, I think I'd need to investigate the relevant system files to find out the reason. If you wish, you can send me back a copy of android.policy.jar (it can be found in /system/framework. A root file manager should be helpful). Then I can decompile the file to figure out how the system really works.
[Sony Cross-Device General] brettsmods:
Here you go: https://docs.google.com/file/d/0B7Dsn8ueza3sU29WbngxX0hIQ1k/edit
[Sony Cross-Device General] brettsmods:
I posted this in the wrong thread it seems. It should have been here: http://xdaforums.com/xposed/modules/xposed-advanced-power-menu-anti-theft-t2594642/page19

I guess that's what happens when you post stuff at 3 in the morning. :p
[Sony Cross-Device General] kennethso168:
Not a big problem, as I'll still be notified for both threads (I subscribed to both)

Yesterday I tried to do a fix. I'll compile and upload it today, you can try that.

And I didn't post at 3 in the morning. It was around 10 in Hong Kong.
[Sony Cross-Device General] brettsmods:
I meant that I posted at 3 in the morning and I was tired.

And alright, I'll await the fix!
[Sony Cross-Device General] kennethso168:
Sorry for getting you wrong.

Now you should be really posting at around 3 in the morning, right?[emoji38]
[Sony Cross-Device General] brettsmods:
I wanted to post something about this a while ago, but never got around to it. I just remembered last night, so I posted something. :p
[Sony Cross-Device General] kennethso168:
Uploaded the fix as an experimental version to the xposed repository. You can try it out. Not sure if it really works though.
[Sony Cross-Device General] brettsmods:
It worked! But now the volume toggles are like this.
[Sony Cross-Device General] kennethso168:
Again I think I need the logs
[Sony Cross-Device General] brettsmods:
https://docs.google.com/file/d/0B7Dsn8ueza3sTFJKWnJNT3VNaEE/edit?usp=docslist_api
[Sony Cross-Device General] kennethso168:
No time to investigate and fix it, as I've something else important to do. I'd also like to focus on the development of APM2 later. Sorry for that.

APM2 will have a different implementation for handling items in lockscreens which may solve your problem.
[Sony Cross-Device General] Brutal_Master:
I have been looking for a way to do what your anti-theft does FOREVER and now thanks to you and xposed i can do it!!! I want you to know i tried to donate to you but paypal says i can't donate to someone in Hong Kong (?) ....for whatever reason!
[Sony Cross-Device General] kennethso168:
I'm sorry to hear that. Please wait for APM2. I'll implement Google Play In-App Billing there and you can use it to donate to me.

And I'm excited to announce the progress of APM2 so far:

The app now almost works like the old APM, with some exciting additions like a revamped UI, ability to re-order menu items, changing stock icons, etc.

I'll continue to add a little few more features (e.g. flashlight, wifi, more realistic fake power off, PIN-protected options, and of course in-app billing) and test the stability before releasing the app for "beta" testing

I think it'll be available in about 2 weeks. Stay tuned.
[Sony Cross-Device General] Brutal_Master:
I can't wait!! Thanks again for the awesome xmodule!!!! :)
[Sony Cross-Device General] kennethso168:
Today is the first anniversary of Advanced Power Menu!

Originally called Advanced Reboot Menu, the module individually was a very small module which only adds reboot option to the power menu. After that, the module gained increasing interest, and there was more feature requests. With your support, APM grows into a powerful xposed mod, and then a revamped and even more powerful APM+.

Without your input, APM would not have been so successful. So thank you all very much for your support and effort. Although I'll be quite busy, I'll certainly improve APM+ and make it even better.

Feel free to share your opinions of APM here. If you like the module, you can show your gratitude by pressing thanks, or even consider a donation.

Once again, thank you all.
[Sony Cross-Device General] MattKneale:
Hi! Thank you for your app. It's wonderful.

Is it possible to have the keyboard automatically show when entering passwords on locked menu items? A little annoyance of mine is that I have to click the password field manually.

Thanks!
[Sony Cross-Device General] kennethso168:
Thank you for your suggestion.

I think it's possible. Will try when I have time
[Sony Cross-Device General] aqua9teen1:
Hi

I try the mode and it awesome. But there is a small problem that occur in my device. When I click reboot to recovery, it only make normal reboot and does not go to the recovery even though I had recovery installed in my ROM. Any solution?
[Sony Cross-Device General] Aaazv:
Hello bro. Did you know youre awesome? Say yes. In addition to that, would you do a big favor???

In the icons theme part, leave an option to choose a certain color for every task.

Like power off i want blue, restart I want yellow and etc.

Or leave another option so we can choose an icon for the task ourselves. For example I wanna choose my art for power off icon... thanks in advance
[Sony Cross-Device General] Philip:
Did you actually read the first line of the (huge amount of) text that you quoted? The bit that says "This module is discontinued"!
[Sony Cross-Device General] Aaazv:
Lol. I understand. But I just downloaded your app and enjoyed it... didnt read your post. Well, anyways I should thank you for this app, although Id like another option for it which is being able to choose a icon for options and I was daily checking the app for updates. But no problem! ?

Thank you great developer ✌?
[Sony Cross-Device General] Philip:
Firstly, it's pretty rude to paste a huge amount of text when replying, especially if you say that you haven't actually read it!

Secondly, if you had bothered to read it you would have known that the module has been discontinued since January 2015, so there is absolutely no point in either checking daily for updates or asking for new features to be included.

Thirdly, I am not the developer of this module, and I have no connection with him.
[Sony Cross-Device General] Toledo_JAB:
Based on this post by the OP, I have closed this thread.

If there are any questions or comments please PM me.

Thread closed.
[Sony Cross-Device General] Rajeev:
Thanks

Worked in Sony Xperia SP latest . 245 firmware...

Thanks alot
[Sony Cross-Device General] fc_sobral:
someone test this on a 423 firmware with 4.2.2??

im afraid to test
[Sony Cross-Device General] oakgrove:
It is the same here. It only reboots..

Sendt fra min C6603 med Tapatalk 4
[Sony Cross-Device General] kazim.asghar:
is glove mode is working after this modification?
[Sony Cross-Device General] kotarohp84:
I tried on XSP, but it does not work with reboot recover
[Sony Cross-Device General] Izengrim:
awesome work on Z .244 odex stock

works fine

waiting for a screenshot!!!
[Sony Cross-Device General] rioferraz:
Xperia ZQ all works fine.

[]´s.
[Sony Cross-Device General] kennethso168:
Thanks. May consider your suggestion in the future

Thanks again. I have put this string into the values xml

No need to be afraid. :)

I don't think Sony has changed the power menu part when upgrading from .423 to .244. Very likely it will work.

And xposed mods 'hooks' the system but doesn't change the system files (no flashing). So it'll be easy to revert if anything goes wrong.

To revert:

If you can still boot into system just disable this mod.

(Very unlikely) If you can't boot into system then you can disable the whole xposed framework through recovery. You can refer to the xposed framework thread for more details.

http://xdaforums.com/showthread.php?t=1574401

Soft reboot should be fixed in v1.1. See if the soft reboot function of the xposed installer works or not. I'm using the same strategy to do a soft reboot.

For Recovery: Did you flashed DooMLoRD's reboot wrapper? Rebooting into recovery doesn't work without that.

You can test whether you've installed the reboot wrapper by entering the following commands in the terminal emulator:

$ su
# reboot recovery

If this boots straight into recovery, you've reboot wrapper installed.

To everyone who tried the mod and reported the results:

Thank you so much! This enables me to know more about the compatibility of the mod.
[Sony Cross-Device General] Tungstwenty:
Since you're the one triggering the recovery reboot, why not do on your side the stuff to trigger the recovery?

You just need to create an empty file called /cache/recovery/boot. That will be the same as what DoomLoRD's wrapper does.

So, in short:

# mkdir -p /cache/recovery
# touch /cache/recovery/boot
# reboot

I have it working fine since I have the wrapper, but if you implement this anyone would have it working (provided they have a recovery, of course, which on XperiaZ requires additional stuff).
[Sony Cross-Device General] Darkfunnyguy:
Cannot download the Reboot Wrapper so can you give me the zip file please.
[Sony Cross-Device General] HackitZ:
same here dooms link is down.
[Sony Cross-Device General] Darkfunnyguy:
Reboot Wrapper File Uploaded

Here the Reboot Wrapper to upload :-

View attachment DooMLoRD-Reboot_Wrapper-v1.0.zip

Succeeded in using the Advanced Reboot Menu.

:D:D:D:D
[Sony Cross-Device General] kennethso168:
Thanks for the info. Will try to implement this in the next version
[Sony Cross-Device General] alainmona:
I'm going to try this now on my Xperia ZL I'll post back if it works :D

Edit: it works!!!!! Haha good job man +thanks for your hard work. I was looking for this forever.