The OnePlus 6 is officially on sale! Buy now →
FORUMS
Remove All Ads from XDA

[Xposed][Xperia&AOSP]Advanced Power Menu (New: Anti-theft protection)

465 posts
Thanks Meter: 781
 
By kennethso168, Senior Member on 13th August 2013, 12:24 PM
Thread Closed Email Thread
This module is discontinued. Try Advanced Power Menu+

For general comments and support, please post in the thread in the Android Apps and Games section.
This thread will then be intended for Xperia-specific discussions only.



ADVANCED POWER MENUXposed Mod

Advanced Power Menu is an Xposed Mod which adds advanced reboot options (reboot, soft reboot and reboot to recovery) and screenshot option to your power menu. It works on both AOSP and Xperia devices. For rebooting into recovery, a special implementation for Xperia devices is used, but it will also work on AOSP devices.

Features
  • [NEW] Anti-theft helper - Stop anyone from turning off your phone /enabling airplane mode when the device is locked. In this way no one can stop Android Device Manager from locating your phone by turning off the phone or disabling mobile data (removable battery not taken into account)
  • A dedicate first-level option for rebooting
  • Fully working reboot to recovery(no reboot wrapper required)*, bootloader and soft reboot
  • Screenshot function
  • Quick dial - call a predefined number directly from the power menu
  • Toggle mobile data from your power menu
  • High quality mdpi-xxhdpi icons
  • GUI for different configurations
  • Multi-language support
Thanks to Xposed framework,
  • Easy Installation. No flashing required.
  • Works both for odexed and deodexed ROMs
  • Quite future proof (should work for Android 4.3 if there is no big framework change from Sony)#
  • Should work for a lot of devices


* - For rebooting into recovery, a special implementation for Xperia devices is used, but it will also work on AOSP devices.
# - Unfortunately, there IS framework change from Sony, mainly caused by the new theming engine. Therefore the regular Xposed Installer doesn't work on Xperia 4.3 ROMs. You can download the special version here (released by rovo89, mirrored because I've forgotten the original link):http://forum.xda-developers.com/atta...5&d=1387049158

Screenshots
See the app in action
You can add items into the power menu like this:


Or remove items like this:


The reboot sub-menu:


Anti-theft helper: this is what a bad guy will see if he tries to turn off your phone while the device is locked:


Settings - great level of customization:



Prerequisites
  • All Xperia Phones with rooted stock 4.0+ ROM / Nexus devices / AOSP#/ a number of other devices(see confirmed working devices below) (Please do test and tell me)
  • Xposed framework installed

#AOSP: not including CM, PAC, etc. This may mess things up and there's no point in doing so
Warning: This will definitely NOT work for Samsung TouchWiz stock ROMs or anything based on them!
The effect of this on TouchWiz ROMs will be that your phone will reboot immediately whenever you press the power button
(Google Play Edition will be ok, I think)
Note: for Android 4.4 you need the latest version of Xposed Installer (2.4 Beta 1 or later)
A user has reported that sound options disappear when using this mod on HTC One. I currently have no idea why this happens, and I'm too busy to figure it out at this moment. Sorry.

Installation
You will need xposed framework and for this mod to work! See prerequisites above.
After you meet the prerequisites,
Download and install the apk in the next post
Go to Xposed Installer > Modules and enable "Advanced Power Menu"
Reboot
and you are done! (Sometimes you might need to reboot more than once for all functions to work)

Disclaimer
I'm not responsible for any damage caused by this mod! Use this at your own risk.

User agreement
Once you use this software, you agree to the Copyright and Disclaimer statement.

Special Thanks
See file on github

Appeal
If this app helps you please press the Thanks button.

Note
The Change Network State and Internet permission is needed for toggling mobile data.

NOTICE
My app, as well as some other xposed modules, was placed on Google Play without my consent.
This Google Play entry (https://play.google.com/store/apps/d...ncedrebootmenu) was made without my knowledge and agreement, and I am by no means affiliated with the said developer on that entry.
Authentic releases, whether current or future, is only available on Xposed Modules Repository unless I make another notice.
The Following 185 Users Say Thank You to kennethso168 For This Useful Post: [ View ] Gift kennethso168 Ad-Free
 
 
13th August 2013, 12:24 PM |#2  
OP Senior Member
Flag Hong Kong
Thanks Meter: 781
 
More
Download
From now on, Advanced Power Menu is hosted on Xposed Module Repository. You may go to there to download, or directly download from Xposed Installer App.
Old versions on xda:
v3.0
v2.1r
v2.1b
v2.0r
v2.0b
v1.1r
v1.1b
v1.0 apk
Which version should I download?
Release(r): Disabled most of the logs. Use this if you have no problems with the app
Beta(b): With full verbose logging. Use this if you encounter problems. Logs can be found at /data/xposed/debug.log

What can you do if the app doesn't work / if issue happens?
Step 1: Try fixing it yourself
1. Make sure that you have read the prerequisites and installation guide thoroughly/
2. Reboot your phone TWICE (TWO TIMES)
For every single xposed mod, a reboot after installation is necessary. But that might not be enough as users have reported that the app doesn't work after a single reboot, but things get right when they reboot again. So rebooting TWICE is recommended
3. Disable all other Xposed Mod
Xposed framework do take care of mods that hook the same method, but sometimes conflicts can still happen. Try disabling all mods except mine in the Xposed Installer. Then reboot and see if things get right.
4. Clear app data/reinstalling my app
The settings may get messed up when my app updates, so try reinstalling and see if it helps.
5. Use an older version of my app
Try this and see if it helps. If so that means a new update breaks something old and please tell me about that!
If all the above doesn't work, you can then send me an issue report.

Step 2: Tell me and see if I can fix it
(Please don't do this before doing step 1)
Please send me an issue report including
1) a description of the issue
2) screenshots (if it helps explain the situation)
3) The device, ROM, Android OS version, and the app version
4) debug.log (Please enable verbose logging in my app first, then do something like long-pressing the power button)(you may obtain the log in xposed installer 2.4)
5) Anything else you think it's important
through one of the following means:
1) xda forum thread/PM (preferred)
2) e-mail (NOTE: please begin your subject with [APM] so I can better sort my emails. Thanks)
Please note that I can't solve the problem with insufficient information. I will also IGNORE any email with NO BODY TEXT (I use gmail)

Keep in mind that even with all the information I still may not be able to fix your problem because I do not own your device and I'm only a novice android developer. Sorry.


FAQ
Q: The mod doesn't work!
A: Other xposed mods might interfere with this mod. Disable them, reboot and try again.

Q: Rebooting into recovery doesn't work!
A: Flashing the DoomLorD's reboot wrapper MAY help. However, as the wrapper is intended to be optional, there might be something wrong. So it'd be nice if you could send me some logs

Q: There's something wrong with the mod...
A: Just disable the mod in Xposed Installer and reboot. Then everything should be fine again (Should this happens please tell me and send me the debug.log and debug.log.old files. This helps me to fix the issue)]

Q: I have a bootloop! What should I do now?
You can follow the following methods (quoted from xposed framework main thread) to disable the xposed framework
Quote:

In case you get into a boot loop:
You can flash the attached Xposed-Disabler-CWM.zip by Tungstwenty. It will be copied to your (external) SD card when you install Xposed as well. The only thing it does is copying /system/bin/app_process.orig back to /system/bin/app_process, which you can also do yourself (e.g. with adb shell in recovery mode).
You could also create a file /data/xposed/disabled, which causes Xposed to be bypassed as well.

Usage Warning
DO NOT press Vol-Down + Power while a screenshot taken by Advanced Power 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!

Usage Tip
You can long-press the reboot option on the power menu if you wanna do a normal reboot. Then you can skip the reboot mode dialogue.

Changelog
From now on, all changelogs are on Xposed Module Repository.
Old changelogs:

v3.0
  • 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.
v2.1
  • 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
v2.0
  • New implementation for rebooting into recovery. Reboot wrapper is no longer needed.
  • Added screenshot function!
v1.1
  • Added more than 10 languages (some of them are from GravityBox)
  • Fixed soft-reboot function
  • Added drawable resources for xhdpi, hdpi and mdpi
  • Improved logging system
v1.0
  • initial release


Source and Permission of Use
Advanced Power Menu is on github.
Please ask for my permission before redistributing or creating derivative works of the app. However, as governed by GitHub's Terms of Service, forking the project on GitHub is permitted. Feel free to fork the project, add your own code, and send me pull requests on GitHub.

Multi-language Support
This app is translated into more than 10 languages.
But if you like to add a new language/ providing better translations you can download the strings.xml and do the modification. I would be grateful for you work!
Note: You don't need to send me the xml file if you'd like to add/change one or two strings only. Just drop me a post/message.

Suggestions/Feature Requests
Your suggestions can help me to improve the app. Feel free to post here.

Confirmed Working Devices/Firmwares
Nexus Devices
  • Galaxy Nexus 4.3
  • Nexus 4
  • Nexus 10
  • Nexus 5 4.4
  • Nexus 7 4.4
Sony Xperia Devices
  • Xperia Z C6603/C6602 .244/.67 odexed
  • Xperia ZL .244 odexed
  • Xperia SP .245
  • Xperia ZQ
  • Xperia Z Ultra .475
  • Xperia ZR 4.2.2
  • Xperia Tablet Z
  • Xperia S
  • Xperia U (stock ICS & AOSP)
  • Xperia UL
  • Xperia J
  • Xperia P stock JB
HTC devices
  • HTC One X 4.2.2 stock Rom with Sense 5
  • HTC Rezound with Vanir (AOSP Jelly Bean 4.3)
Other Devices
  • Moto X 4.4
  • LG Optimus G Pro stock 4.1.2 rooted rom
  • Samsung Galaxy SII Chameleon ROM v3.0.3 (NOTE: NO SAMSUNG STOCK)
  • Samsung Galaxy S3 w/ CM11
  • Micromax CANVAS HD A110
  • Lenovo p780
Don't be afraid if your device/firmware is not listed on the list. Xposed means high compatibility and ease to revert.
A user has reported that sound options disappear when using this mod on HTC One. I currently have no idea why this happens, and I'm too busy to figure it out at this moment. Sorry.
The Following 35 Users Say Thank You to kennethso168 For This Useful Post: [ View ] Gift kennethso168 Ad-Free
13th August 2013, 12:25 PM |#3  
OP Senior Member
Flag Hong Kong
Thanks Meter: 781
 
More
reserved
---Now you may post---
The Following 4 Users Say Thank You to kennethso168 For This Useful Post: [ View ] Gift kennethso168 Ad-Free
13th August 2013, 12:50 PM |#4  
Ninoh-FOX's Avatar
Senior Member
Thanks Meter: 54
 
More
The apk dont work, it is broken

13th August 2013, 01:06 PM |#5  
Senior Member
Thanks Meter: 154
 
More
It works just fine. Installs and works as stated by the OP.
The Following User Says Thank You to proctologist For This Useful Post: [ View ] Gift proctologist Ad-Free
13th August 2013, 04:17 PM |#6  
YudiA1's Avatar
Senior Member
Flag jakarta
Thanks Meter: 27
 
Donate to Me
More
Work good here . Stock Fw .244 Odex.
Thank you so much. :thumbup:

Sent from my C6602 using xda premium
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1376406976711.jpg
Views:	3434
Size:	63.2 KB
ID:	2186324   Click image for larger version

Name:	uploadfromtaptalk1376406992543.jpg
Views:	3186
Size:	62.0 KB
ID:	2186325  
The Following User Says Thank You to YudiA1 For This Useful Post: [ View ] Gift YudiA1 Ad-Free
13th August 2013, 05:51 PM |#7  
Tungstwenty's Avatar
Senior Member
Thanks Meter: 4,547
 
Donate to Me
More
Thanks for this!

Much nicer than the ugly hack I had on my devices, since I find the resources part always a big deterrent

I would just suggest that you remove the logging code to prevent clutter on the debug.log file, since it appears to be working fine.
13th August 2013, 06:54 PM |#8  
Ninoh-FOX's Avatar
Senior Member
Thanks Meter: 54
 
More
To me the following message: There was a problem parsing the package.
Damn, I want this application.


Note: Xblast tools work fine in me phone.
13th August 2013, 10:04 PM |#9  
Soheil_rf's Avatar
Senior Member
Flag Tehran
Thanks Meter: 984
 
More
Worked on Xperia ZL 244 ODEX


Edit :
Reboot >>>> Reboot
Soft Reboot >>>> Reboot
Recovery >>>> Reboot
14th August 2013, 01:50 AM |#11  
Senior Member
Thanks Meter: 80
 
More
Quote:
Originally Posted by kennethso168


ADVANCED REBOOT MENUXposed Mod
targeted towards the Sony Xperia Z

Many of us are waiting for a perfect reboot menu. We don't want one that hides your original power off option with the reboot options in a sub-menu. We don't want one that are specifically for deodexed ROMs. We don't want one that works only partially (very often reboot to recovery doesn't work for Xperia Z, as there is no dedicate reboot partition). We don't want one that doesn't work with a firmware update. We just want a simple reboot menu to get things easier...
Now, wait NO MORE as I proudly present you my work of ADVANCED REBOOT MENU Xposed Mod.

Features
  • A dedicate first-level option for rebooting
  • Fully working reboot to recovery and soft reboot
  • High quality xxhdpi icons
Thanks to Xposed framework,
  • Easy Installation. No flashing required. (except reboot wrapper)
  • Works both for odexed and deodexed ROMs
  • Quite future proof (should work for Android 4.3 if there is no big framework change from Sony)
  • Should work for a number of similar devices (not tested)

Screenshots


Prerequisites


Installation
You will need xposed framework and reboot wrapper(only for rebooting into recovery) for this mod to work! See prerequisites above.
After you meet the prerequisites,
Download and install the apk below
Go to Xposed Installer and enable "Advanced Reboot Menu"
Reboot and you are done!
If you use the reboot to recovery or soft reboot function for the first time you may need to grant superuser permission.

Download
v1.0 apk

Disclaimer
I'm not responsible for any damage caused by this mod! Use this at your own risk.

Special Thanks
  • @C3C076 for the source of GravityBox
  • @rovo89 for making xposed framework
  • @DooMLoRD for making the reboot wrapper

Appeal
If this app helps you please press the Thanks button.
If you find this app useful please consider making a donation.
Please ask for my permission before redistribution/mirroring

Soft reboot is not working
Using romAur v8.0 with advanced power menu chosen during installation

Sent from my C6603 using xda premium
Thread Closed Subscribe to Thread

Tags
advanced reboot menu, reboot, xperia z, xposed
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes