[Xposed] NeoPowerMenu - Create your own Power Menu

Search This thread

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
Working flawlessly on my Xiaomi MIA1 running N 7.1.2
Love the additions, and not sure if password protection was there before
but it's a great addition if it wasn't. Good to prevent someone entering places
like recovery by accident while using your device.

Great job (as always) and very appreciative for your continued hard work

Not a biggee but I just noticed slight alignment problem with password attached image
Password/fingerprint lock is already a thing since several updates ;D

The alignment problem is most probably caused by my test devices and yours having a different screen size or font size, I will check it for the next release.


Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:73)
at de.NeonSoft.neopowermenu.Preferences.PresetsPage.onCreateView(PresetsPage.java:78)

Please fix:confused::crying:

---------- Post added at 08:05 PM ---------- Previous post was at 08:02 PM ----------

Please help me. I've made all the settings of the app, but it's not valid.:(:(:(:(
Can't reproduce it on my test devices, but please give the attached apk a shot, if it doesn't solves it then I need more details on what exactly you did right before the crash!
 

Attachments

  • app-release.apk
    3.4 MB · Views: 14

hacker baba

Member
Apr 20, 2017
26
1
Password/fingerprint lock is already a thing since several updates ;D

The alignment problem is most probably caused by my test devices and yours having a different screen size or font size, I will check it for the next release.



Can't reproduce it on my test devices, but please give the attached apk a shot, if it doesn't solves it then I need more details on what exactly you did right before the crash!


Sorry, it failed. What do I have to do to help you better? Is it necessary to wait patiently for a new update?

what can I do externally?
 

iamfarhanansari

Senior Member
Apr 11, 2016
709
481
20
pratapgarh
plus.google.com
Xiaomi Poco X2
Okay, I might have finally found the solution for this positioning problem!
For whatever reason the calculation script had added the half size of the status bar to the bottom padding, I don't remember adding that, but it's removed now and it should hopefully finally get completely rid of all the gaps

The next release will have it included! (and its also already halfway in the latest "unstable" version on github)


Btw @Wierius, I like your preset, used it during my last tests ;D
Can u please add android 8.1 oreo style power menu
 

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
I'm working on it.

Can u please add android 8.1 oreo style power menu
Go into advanced settings, search for rounded corners, set that to the radius you want (on the screenshot it's 25%)
Go into dialog position, scale the width slider until you have the right fit
Go into visibility and order, add the items you want as multi items, tap on appearance and behavior, disabled the horizontal line toggle!

That should give an android 8.1 like style!
 

Attachments

  • Screenshot_20180211-162813.png
    Screenshot_20180211-162813.png
    136.5 KB · Views: 148

ctsuresh

Senior Member
Jun 8, 2017
189
13
Is it working on android 7.0?
I installed but don't know how to use. When clicking preview its showing all the option once exit and pressing power button nothing new same as before restart and power off
 

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
Is it working on android 7.0?
I installed but don't know how to use. When clicking preview its showing all the option once exit and pressing power button nothing new same as before restart and power off
It should work on 7.0, but unfortunately not on all device operating systems (OxygenOS, or MIUI for example are causing problems with their operating system modifications)

But you can try the experimental phone window manager hook that can be found in the advanced settings! (scroll way down the advanced settings to find it)

If that doesn't works, then please disable the experimental hook, enable the deep xposed logging, restart the device, and then send the xposed log to me!
 
  • Like
Reactions: ctsuresh

MOAMEN123

Member
Jan 28, 2017
38
23
cool

Heyho fellow people of XDA, I'm here to proudly present my first Xposed module!

NeoPowerMenu is an replacement for androids stock power menu, it gives the ability to customize the entire power menu how you like!
You can freely change the colors, graphics, whats displayed, and much more!

Don't like your default power menu colors?
Then change them!
To do this, simply tap on "Theme" in the apps main screen and change every color of it, or download one of the various community made presets!​

Need more unique graphics?
Then the "Graphics" screen is the right thing for you! Try it out and pick your favorite graphics!​

Want to have your favorite apps, shortcuts, or similar in your power menu?
No problem for NeoPowerMenu, just tap on "Visibility and order" in the apps main menu, then tap on the + in the top right of the screen to add new elements!​

This module is not compatible with any other Module that performs Power Menu Modifications...(my module will try to overwrite the other modifications)

Main features:
  • Replace the Default power menu
  • Additional reboot options (For example: bootloader, safe mode, recovery mode)
  • Change the colors and save/load presets
  • 3 Built in presets (Light, Dark, Black)
  • Online preset server with over 250 community made presets (Containing custom graphics and colors)
  • Choose which items are displayed
  • Reorder the items as you wish
  • Multi Language, currently supported: English, German, Russian, Polish and Portuguese and more

Download from:

Other links:

Screenshots:

~ Sorry when my english is not the best

Current Version:
Stable: v1.5.7
Package name: de.NeonSoft.neopowermenu
Size: ~3,43mb

Fantastic module
 
  • Like
Reactions: DrAcHe981
Just want to know if there is a way to use
Code:
su -c 'am start -a android.intent.action.REBOOT'
or
Code:
su -c 'am start -a android.intent.action.ACTION_REQUEST_SHUTDOWN'
as the reboot and shutdown commands for a more normal experience? It seems that the current method "su reboot" just causes an immediate restart without allowing the system to process normally. At the very lest could these system intents be made optional?
 
Last edited:
  • Like
Reactions: guillermorojaz

ctsuresh

Senior Member
Jun 8, 2017
189
13
It should work on 7.0, but unfortunately not on all device operating systems (OxygenOS, or MIUI for example are causing problems with their operating system modifications)

But you can try the experimental phone window manager hook that can be found in the advanced settings! (scroll way down the advanced settings to find it)

If that doesn't works, then please disable the experimental hook, enable the deep xposed logging, restart the device, and then send the xposed log to me!

Please find the log file
 

Attachments

  • Screenshot_20180213-130931.jpg
    Screenshot_20180213-130931.jpg
    227.7 KB · Views: 201
  • Screenshot_20180213-130954.jpg
    Screenshot_20180213-130954.jpg
    216.8 KB · Views: 199
  • Screenshot_20180213-131005.jpg
    Screenshot_20180213-131005.jpg
    226.1 KB · Views: 195

frwerewolf

Senior Member
Jan 12, 2013
84
9
Hello
Works fine on my galaxy S8 plus with stock rom and rooted with Magisks.
Everything works fine except screen recorder.
The result is always unreadable video files. I tried to change all the settings but no better...
Do you have ideas ?

Ps: could you add an option for where to save the video files (sdcard) ?
 

Ibuprophen

Senior Member
Sep 4, 2012
9,545
6,496
Upstate New York
I know @DrAcHe981 that this would be a big undertaking but, I'm just wondering about a possible Skins Feature.

It would be great to be able to import/export NeoPowerMenu Skins. Kinda like TWRP Skins...

Is this a good idea or am I just reaching for the stars in "La-La-Land"? LMAO :)


~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
 

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
First off to everyone in here, I'm taking a small break from programming due to personal reasons, that means I will only collect reports for now and do written support. Thanks for understanding!

Just want to know if there is a way to use
or
as the reboot and shutdown commands for a more normal experience? It seems that the current method "su reboot" just causes an immediate restart without allowing the system to process normally. At the very lest could these system intents be made optional?
First people complain about a too slow reboot, now it's too quick?

Anyways, the commands you suggest are the same as using "PowerManager.reboot();", they trigger the default power manager service
I'm working on a different way to shut down completely without the use of root, but so far it either causes a system crash or breaks the entire shutdown system...

Please find the log file
Unfortunately nothing helpful in that logs, but I will still try to take a look into it.

Hello
Works fine on my galaxy S8 plus with stock rom and rooted with Magisks.
Everything works fine except screen recorder.
The result is always unreadable video files. I tried to change all the settings but no better...
Do you have ideas ?

Ps: could you add an option for where to save the video files (sdcard) ?
I need a log from the recording service, please enable deep logging, start a logcat with 'adb logcat -v long -s 'NPM"', then start a recording and send me the logcat
Also send me the recorded file please.

And to the saving location, I guess I can add such settings to it!

I know @DrAcHe981 that this would be a big undertaking but, I'm just wondering about a possible Skins Feature.

It would be great to be able to import/export NeoPowerMenu Skins. Kinda like TWRP Skins...

Is this a good idea or am I just reaching for the stars in "La-La-Land"? LMAO :)

~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
The presets are the skins, when pressing to save a preset, all the selected configurations get bundled in one single file that can be imported later again (or uploaded to the public server)
When pressing the share button in the local preset list, it will be copied to the internal storage in a location similar to "emulated/0/android/data/de.NeonSoft.neopowermenu/sharedpresets" as on some devices other apps can't access the presets in the apps internal storage folder
The file format is "nps", which is basically a zip file when the preset contains graphics, or just a text file when graphics aren't saved
 
First off to everyone in here, I'm taking a small break from programming due to personal reasons, that means I will only collect reports for now and do written support. Thanks for understanding!


First people complain about a too slow reboot, now it's too quick?

Anyways, the commands you suggest are the same as using "PowerManager.reboot();", they trigger the default power manager service
I'm working on a different way to shut down completely without the use of root, but so far it either causes a system crash or breaks the entire shutdown system...

I would like to apologize for my previous post, in no way did I intend to suggest that the reboot or shutdown speed was too fast or too slow. I had made an observation on my device (Samsung Galaxy Note Pro SM-P900 running stock LL 5.0.2) that part of the reboot and shutdown routine was missing while using your module. I compared logcats when using your module and compared them to stock reboot / shutdown and the commandline I referenced in my previous post. There is quite a bit of activity that is not present when using your module. I was just concerned that my particular device might not be getting restarted or shutdown properly. I was simply curious if there was a way to choose which command would be issued. I meant no disrespect.


Sent from my Samsung SM-P900 using XDA Labs
 
  • Like
Reactions: Supermatt01

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
Using with Mi 5 stock rom with magisk root and enabled alternative hook method in advance setting.. All functions seems running fine except password and/or fingerprint protection!
Any help?
When enabling the password/fingerprint in the advanced settings, you can individually protect each element with password, to do so press the "Edit appearance and behavior" in the visibility and order list of the element you want to lock, and select the "Lock with password" option!
 

Supermatt01

Senior Member
Nov 20, 2010
736
82
Surabaya
Love it

This works in MIUI EU v9. I had to enable the experimental hook, but it works perfectly. Even booted safe mode. I thought safe mode wouldn't work on redmi note 4X. Thank you for your hard work.
 
Oct 16, 2016
35
14
This is module is great. It's so nice to have a tailored power menu.

Could you look into adding the ability to nest folder items inside of multi items
OR implement the ability to turn title text into description text (tiny and underneath vice big and on the side)
OR give the user turn off any text they want on any any item they want

Reasoning being that current method to emulate an Oreo styled menu is having a vertical multi item. But what if you want a folder with all the reboot options tucked away (me) or a bunch of app shortcuts or whatever the use case is? You add a folder item and have this gross, non-conforming text to the side of the icon and it's probably all scrunched up and hyphenated because you've got the menu adjacent to the power button instead of centered on the screen. Any of the three methods fixes that inconsistency. Multi items have tiny underneath text so presumably a nested folder item would follow that logic. Giving the user the choice to make big into tiny or just turn off whatever text means they could just put the folder item wherever and be satisfied.

And if you've got time and the inclination, maybe you could add some sort of numerical indicator the the dialog position. It is extremely difficult to fine tune position when you're not actually sure if you've changed the coordinates at all. This is exacerbated by the fact the position usually jumps when you grab the slider to move.

Thanks for all hard work on this, keep it up.

*see attached screen if my words are an imcomprehensible mess of first world problem complaining
 

Attachments

  • Screenshot_20180307-134043.jpg
    Screenshot_20180307-134043.jpg
    176.5 KB · Views: 575

DrAcHe981

Senior Member
Jan 18, 2015
379
391
Wickede (Ruhr)
www.neon-soft.de
Could you look into adding the ability to nest folder items inside of multi items
OR implement the ability to turn title text into description text (tiny and underneath vice big and on the side)
OR give the user turn off any text they want on any any item they want

And if you've got time and the inclination, maybe you could add some sort of numerical indicator the the dialog position. It is extremely difficult to fine tune position when you're not actually sure if you've changed the coordinates at all. This is exacerbated by the fact the position usually jumps when you grab the slider to move.
Hmm, would need some kinda big changes to the way how folders and multi items are rendered...
currently folders are limited to the single line items because if a folder would pick up the multi item, most probably all buttons of the multi item would open the folder, and let's just say, for laziness reasons I accepted it that way and just excluded folders for multi line items

I will put it on my to-do list nonetheless, just like the idea to completely disable the text.
- - - - -
And I might have some ideas for the suggestion with the indication numbers, not sure yet tho if that works, but also on my to-do list!
- - - - -
Please keep in mind tho that I'm currently on a development break due to personal reasons, it might take some time until I get to it...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 96
    Heyho fellow people of XDA, I'm here to proudly present my first Xposed module!

    NeoPowerMenu is an replacement for androids stock power menu, it gives the ability to customize the entire power menu how you like!
    You can freely change the colors, graphics, whats displayed, and much more!

    Don't like your default power menu colors?
    Then change them!
    To do this, simply tap on "Theme" in the apps main screen and change every color of it, or download one of the various community made presets!​

    Need more unique graphics?
    Then the "Graphics" screen is the right thing for you! Try it out and pick your favorite graphics!​

    Want to have your favorite apps, shortcuts, or similar in your power menu?
    No problem for NeoPowerMenu, just tap on "Visibility and order" in the apps main menu, then tap on the + in the top right of the screen to add new elements!​

    This module is not compatible with any other Module that performs Power Menu Modifications...(my module will try to overwrite the other modifications)

    Main features:
    • Replace the Default power menu
    • Additional reboot options (For example: bootloader, safe mode, recovery mode)
    • Change the colors and save/load presets
    • 3 Built in presets (Light, Dark, Black)
    • Online preset server with over 250 community made presets (Containing custom graphics and colors)
    • Choose which items are displayed
    • Reorder the items as you wish
    • Multi Language, currently supported: English, German, Russian, Polish and Portuguese and more

    Download from:

    Other links:

    Screenshots:

    Screenshot_2016-02-27-21-13-32.pngScreenshot_2016-02-27-21-13-42.pngScreenshot_2016-02-27-21-14-14.pngScreenshot_2016-02-27-21-14-36.pngScreenshot_2016-02-27-21-14-43.pngScreenshot_2016-02-27-21-14-51.pngScreenshot_2016-02-27-21-15-01.pngScreenshot_2016-02-27-21-15-48.pngScreenshot_2016-02-27-21-16-06.png

    ~ Sorry when my english is not the best

    Current Version:
    Stable: v1.5.7
    Package name: de.NeonSoft.neopowermenu
    Size: ~3,43mb
    13
    Man, quite some time passed since I last appeared alive in here...

    Had a lot of private issues to sort out, some as serious as almost living under a bridge, but anyways, that's mostly sorted now!

    And with that being sorted I began some big project just a few days ago...
    I'm working on NeoPowerMenu v2.0, a complete rewrite of the entire app!

    It'll be more dynamic, more customizable, more your completely custom power menu! (and hopefully also more stable and smooth)

    But be patient with me, I still have a very tight time table, and a project from square zero will take quite some time... I only have a few hours every evening to work on the app... and those hours are also shared with my other projects for other website services...

    But eventually we will receive a completely new NeoPowerMenu with way more customizable features waiting for us all!
    I'm even trying to accomplish most of it without the use of root or xposed! (we will see how that goes, but I try to only use root/xposed if it really won't work without it)
    7
    Here it comes: the v1.5 is online!
    Download over the xposed repository, can't upload now in the first post, bad network connection...

    Changes (warning huge changelog):
    - Removed 'Waiting for root... ' Dialog. (moved it to the Root and Xposed info as an simple progress bar)
    # Reduced opening time.
    # NPM will now hide when the screen gets turned off and when other system dialogs open.
    # Reordered Colors list: both colors for one item are now together.
    # Reworked Visibility and Order list handler.
    # Reworked permissions system: Not all permissions are needed to work, you can select what you want to grant! ( not granted permissions will cause some functions to stop working...), only Android 6.0+
    # Reworked Presets system, faster loading and saving.
    # Reworked Presets import, now NeoPowerMenu won't open every file type, to open nps files as themes open them as text files.
    + Added new items: Airplane Mode, Restart System UI and Sound Mode.
    + Added the ability to hide item descriptions, for example you can hide the Soft Reboot description. (Checkbox for this is in the visibility and order screen)
    + Added the preset server, feel free to upload your presets!
    7
    Now I'm back at active work, and I will try to publish a new update in the next days...

    This update will mainly contain bug fixes:
    A fix for the color picker crash,
    for the upload crash and some changes to the login system (add the ability to update/delete your own presets on every device where you log in with your account, currently it's limited to the device where the preset gets firstly uploaded)
    Also I will (again) try to fix the transparency issue...

    Additionally I have added a custom crash activity which has a button to directly display the part that caused the crash, also I've added an automatic crash reporter which should send the needed information directly to my server!
    6
    Hi, thanks for this great xposed module.
    Any way to make it like this (https://dribbble.com/shots/1987775-Advanced-Power-Menu-concept-applied-in-the-Nexus-5)
    This is the second concept by Igor Silva
    I think I have the perfect place for such an option, currently we have only "Material" -> but we could also have "Material Fullscreen"

    Will come in a next update!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone