5,606,722 Members 37,625 Now Online
XDA Developers Android and Mobile Development Forum

[Xposed][MOD][4.0+]Advanced Power Menu (w/ Anti-theft helper)

Tip us?
 
kennethso168
Old
(Last edited by kennethso168; 27th February 2014 at 02:04 PM.)
#1  
Senior Member - OP
Thanks Meter 354
Posts: 158
Join Date: Jan 2012
Location: Hong Kong

 
DONATE TO ME
Default [Xposed][MOD][4.0+]Advanced Power Menu (w/ Anti-theft helper)

THIS MODULE IS DISCONTINUED
For quite a long time, I have neither do any update nor provide any support. There are two reasons. First I've too busy to deal with that. I have a lot of more meaningful things to do. Second, I'm no longer motivated to continue developing this app. I experienced an unprecedented peace of mind when I wasn't touching any programming for some time.
So, after some thoughts, I decided to officially discontinue this app. That means no more updates, and no more support either via email or this thread. But I'll still release v9.0 in these few days, which I did it quite a long time ago. The version also contains new features and translations done by others, so I don't want to have their efforts wasted. The version will be marked as FINAL with a clear statement that no more support will be given.
The discontinuation may not be permanent. Some how if I become interested in this project again I may resume development, but there will be no guarantee and that will not happen in this few months.
Anyway, I have to express my heartfelt gratitude to you all for your continuous support of the app. And also special thanks to all contributors (developers, translators, etc.). Your work definitely made the app better.
So, goodbye everyone


ADVANCED POWER MENUXposed Mod

Original Xperia-specific thread

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):http://forum.xda-developers.com/show...postcount=6846

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

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 beast - Sony Xperia Z
ROM: Stock 4.2.2 ROM, rooted
Recovery: CWM+TWRP Dual Recovery for Locked Bootloader (I prefer TWRP) link
MY WORK:
Advanced Power Menu Xposed Mod
RECOMMENDATIONS:
Advanced Xperia Z Launcher (Modified Stock Launcher APP. No root required)
Xposed framework: MoDaCo Toolkit & Disable Data Noti & Enable Call Recording (SemcPhone Patcher)

The legend - LG Optimus One

Pls press Thanks! if I help you.
The Following 38 Users Say Thank You to kennethso168 For This Useful Post: [ Click to Expand ]
 
kennethso168
Old
(Last edited by kennethso168; 18th January 2014 at 08:35 AM.)
#2  
Senior Member - OP
Thanks Meter 354
Posts: 158
Join Date: Jan 2012
Location: Hong Kong

 
DONATE TO ME
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/.569 odexed
  • Xperia ZL .244 odexed
  • Xperia SP .245
  • Xperia ZQ
  • Xperia Z Ultra .475 .290
  • Xperia ZR 4.2.2
  • Xperia Tablet Z
  • Xperia S
  • Xperia U (stock ICS & AOSP)
  • Xperia UL
  • Xperia J
  • Xperia P stock JB
  • Xperia Neo V (stock ICS)
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
  • Motorola Razr D3
  • LG Optimus G Pro stock 4.1.2 rooted rom
  • LG G2 (Omni 4.4, D802 (stock 4.4.2 v10c), VS980 (vs98012b stock))
  • 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 beast - Sony Xperia Z
ROM: Stock 4.2.2 ROM, rooted
Recovery: CWM+TWRP Dual Recovery for Locked Bootloader (I prefer TWRP) link
MY WORK:
Advanced Power Menu Xposed Mod
RECOMMENDATIONS:
Advanced Xperia Z Launcher (Modified Stock Launcher APP. No root required)
Xposed framework: MoDaCo Toolkit & Disable Data Noti & Enable Call Recording (SemcPhone Patcher)

The legend - LG Optimus One

Pls press Thanks! if I help you.
The Following 9 Users Say Thank You to kennethso168 For This Useful Post: [ Click to Expand ]
 
kennethso168
Old
#3  
Senior Member - OP
Thanks Meter 354
Posts: 158
Join Date: Jan 2012
Location: Hong Kong

 
DONATE TO ME
reserved
---Now you may post---
The beast - Sony Xperia Z
ROM: Stock 4.2.2 ROM, rooted
Recovery: CWM+TWRP Dual Recovery for Locked Bootloader (I prefer TWRP) link
MY WORK:
Advanced Power Menu Xposed Mod
RECOMMENDATIONS:
Advanced Xperia Z Launcher (Modified Stock Launcher APP. No root required)
Xposed framework: MoDaCo Toolkit & Disable Data Noti & Enable Call Recording (SemcPhone Patcher)

The legend - LG Optimus One

Pls press Thanks! if I help you.
The Following 2 Users Say Thank You to kennethso168 For This Useful Post: [ Click to Expand ]
 
Kocayine
Old
(Last edited by Kocayine; 2nd January 2014 at 04:14 PM.)
#4  
Kocayine's Avatar
Senior Member
Thanks Meter 94
Posts: 748
Join Date: Apr 2012
The Anti-Theft feature is quite a genius thing. The thief wont know about the "battery pull" of my Xperia Z ^^

May I request a feature to hide the "device locked" in the lockscreen power menu completely?
Please quote my posts if you are replying to one of my posts, that way I'll get notified.
 
mauam
Old
#5  
mauam's Avatar
Senior Member
Thanks Meter 5879
Posts: 3,545
Join Date: Jan 2011
Amazing, keep up dev
 
android404
Old
#6  
android404's Avatar
Senior Member
Thanks Meter 457
Posts: 735
Join Date: Jan 2013
Location: Oslo
Works fine on my LG g2, 4.4.2 omni. It seems almost to good tat a potential thief can't boot into recovery anymore. Great work!
sent from naked browser
 
kennethso168
Old
#7  
Senior Member - OP
Thanks Meter 354
Posts: 158
Join Date: Jan 2012
Location: Hong Kong

 
DONATE TO ME
Thanks all for your support and feedback!

Quote:
Originally Posted by Kocayine View Post
The Anti-Theft feature is quite a genius thing. The thief wont know about the "battery pull" of my Xperia Z ^^

May I request a feature to hide the "device locked" in the lockscreen power menu completely?
Thanks for your suggestion. The feature has been implemented in the latest release v8.1.1
The beast - Sony Xperia Z
ROM: Stock 4.2.2 ROM, rooted
Recovery: CWM+TWRP Dual Recovery for Locked Bootloader (I prefer TWRP) link
MY WORK:
Advanced Power Menu Xposed Mod
RECOMMENDATIONS:
Advanced Xperia Z Launcher (Modified Stock Launcher APP. No root required)
Xposed framework: MoDaCo Toolkit & Disable Data Noti & Enable Call Recording (SemcPhone Patcher)

The legend - LG Optimus One

Pls press Thanks! if I help you.
 
harahara0121
Old
#8  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Jan 2014
Default I have request for U

I want Wi-Fi switch and Bluetooth switch in power menu.

Please make it!!
 
android404
Old
#9  
android404's Avatar
Senior Member
Thanks Meter 457
Posts: 735
Join Date: Jan 2013
Location: Oslo
It would be cool if the displayed text for quick dial was customizable.
sent from naked browser
 
kennethso168
Old
#10  
Senior Member - OP
Thanks Meter 354
Posts: 158
Join Date: Jan 2012
Location: Hong Kong

 
DONATE TO ME
Quote:
Originally Posted by harahara0121 View Post
I want Wi-Fi switch and Bluetooth switch in power menu.

Please make it!!
I plan to make this, but this is more time consuming to implement it. I'll do that if I've ample free time (but I don't think I'll in near feature)

Quote:
Originally Posted by android404 View Post
It would be cool if the displayed text for quick dial was customizable.
I've just done that so the feature will be available in the next version of release
The beast - Sony Xperia Z
ROM: Stock 4.2.2 ROM, rooted
Recovery: CWM+TWRP Dual Recovery for Locked Bootloader (I prefer TWRP) link
MY WORK:
Advanced Power Menu Xposed Mod
RECOMMENDATIONS:
Advanced Xperia Z Launcher (Modified Stock Launcher APP. No root required)
Xposed framework: MoDaCo Toolkit & Disable Data Noti & Enable Call Recording (SemcPhone Patcher)

The legend - LG Optimus One

Pls press Thanks! if I help you.

The Following User Says Thank You to kennethso168 For This Useful Post: [ Click to Expand ]
Tags
advanced power menu, xposed, xposed mod
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes