yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Senzanamico:
Build version: 1.5.5-3

Build date: 2016-09-04 22:56:14

Current date: 2016-10-24 13:48:28

Device: Samsung SM-A510F

Stack trace:

java.lang.RuntimeException: An error occurred while executing doInBackground()

at android.os.AsyncTask$3.done(AsyncTask.java:309)

at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)

at java.util.concurrent.FutureTask.setException(FutureTask.java:223)

at java.util.concurrent.FutureTask.run(FutureTask.java:242)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

at java.lang.Thread.run(Thread.java:818)

Caused by: java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]

at de.NeonSoft.neopowermenu.MainActivity$saveSorting.doInBackground(MainActivity.java)

at android.os.AsyncTask$2.call(AsyncTask.java:295)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

... 3 more

★SnZ ★

---------- Post added at 01:52 PM ---------- Previous post was at 01:49 PM ----------

Error occurs triyng to add new item on power menu...

Hope the log could help to solve the problem.

Thx in advance..

★SnZ ★
[Xposed Framework Modules] DrAcHe981:
This bug is caused due to my back migration to my phone development environment.

Please just download the v1.5.5-4, this should already be fixed in the last released version!
[Xposed Framework Modules] Primetime_de:
For flashlight the power off icon is used instead of the correct flashlight icon.

Can I change this behavior or is it a bug?

In the icon chooser (don't know the exact name, I use the German translation) the correct icon is shown, but not in the menu itself.

NPM 1.5.5-4
[Xposed Framework Modules] DrAcHe981:
Yeah this is a bug, it will be fixed in the next release! (better said: it's already in my latest test release on g+ ^^)
[Xposed Framework Modules] Senzanamico:
Solved. Thx!

★SnZ ★
[Xposed Framework Modules] KaMyKaSii:
Unrelated to module, but how you compile on phone? Ubuntu Touch or something similar?
[Xposed Framework Modules] Rakuu:
Aide does it
[Xposed Framework Modules] DrAcHe981:
That's right, i use AIDE to compile apps on my phone!

Almost everything in NPM is created on my phone with AIDE, sometimes it's difficult with aide since some functions aren't implemented or different implemented but it works with some tricks!
[Xposed Framework Modules] BeachNYC:
I've used this on several other phones but cannot get it to work on my OnePlus 3. Went back to 1.5.4-1 which someone indicated worked, but it just instantly reboots. No options at all.

Any ideas? Would love to use this again.
[Xposed Framework Modules] DrAcHe981:
As I didn't got a log from someone with this problem I can't say what causes the reboot, but you could give me the logs!

I noticed that the option 'Take bug report' in the advanced settings contains the system ui crash information so please just generate the log (after the crash) via this option and send it to me, so maybe I'm able to fight this bug down!
[Xposed Framework Modules] g422:
DrAche just installed your beta works fine for me, thanks again for implementing wifi/data toggles
[Xposed Framework Modules] Stoutpuppy GFX:
Yes latest Beta working fine for me as well ( LG G3 D855 AOSP MM ROM )

Also updated UX Classic White theme with all new required icon graphics

I will update colored versions soon :)
[Xposed Framework Modules] Stoutpuppy GFX:
Updated 3 more presents to ver 1.5.6 with complete graphics UX Gold, UX Glass and UX Gradient Green

After you download choose apply graphics only to keep your existing layout

This takes a lot of work so I'm going to update Spectrum and Blue/red swirls as well

I will update the other gradient color presets only if requested
[Xposed Framework Modules] Ms_Julia:
When you turn on the menu, the program each time requesting root privileges :(
[Xposed Framework Modules] NGOwner:
Could you add one more function to the list of selectable functions? Could you add Lock Screen/Lock Phone?

NGOwner
[Xposed Framework Modules] DrAcHe981:
I will add it to my to-do list, but it won't be in the next release planned for Wednesday, now the only thing I modify on the v1.5.6 are the bug causing pieces.
[Xposed Framework Modules] MrWasdennnoch:
[MENTION=6342037]DrAcHe981[/MENTION] How do you blur the background of the power menu again? I just had an idea that would also fix the issue with the black background on the keyguard; there is this fancy method android.view.SurfaceControl#screenshot(int, int) which captures a screenshot of the whole screen, maybe that helps :)
[Xposed Framework Modules] DrAcHe981:
Currently the blur function is almost completely removed until I found a good and working way...

But I will try it again with your provided method!
[Xposed Framework Modules] Klaus N.:
On my new device (Xperia XZ), reboot into recovery doesn't work - it always reboots into system. Power-off and reboot works.

Thanks in advance!
[Xposed Framework Modules] NGOwner:
Ok. In the meantime I found I can use your app to call program tasks.

So I downloaded an app that locks the screen and I have my functionality!

NGOwner
[Xposed Framework Modules] DrAcHe981:
New release is out!

Changes in v1.5.6:

Added:

+ Added the ability to change the 'action reveal color' for every shutdown/reboot action separately.

+ Added the ability to filter the items list.

+ Added the ability to select different custom graphics for each app shortcut.

New Power menu items:

> WiFi toggle: to toggle the WiFi via the power menu.

> Bluetooth toggle: to toggle the Bluetooth via the power menu.

> Data toggle: to toggle the Mobile Data via the power menu.

> Flashmode: reboot to Flash mode.

Changed:

# Updated to the latest xposed api version. (again)

# Changed automated backup file name.

# Reworked item loading systems.

# Rebuild the entire graphics system.

# Reworked the Presets list system.

Bugs fixed:

# Fixed transparent reveal hide animation bug.

# Fixed the torch icon not changing.

# And many little bugs fixed.

Removed:

- Nothing.
[Xposed Framework Modules] Spookymyo:
Suggestion:

Add the ability to change the icon of each individual application launched from the power menu.

I have a calculator app and bar code scanning app. But I can only change the icon of the app category not each app separately.
[Xposed Framework Modules] DrAcHe981:
Please scroll down in the graphics list, it's already added ^^
[Xposed Framework Modules] Spookymyo:
Well don't I feel stupid.

I didn't realize it added the individual apps to the graphics setting after you selected the apps.

Thanks
[Xposed Framework Modules] Alexey71:
Hi. When add normal reboot?

http://xdaforums.com/showpost.php?p=66569771&postcount=165
[Xposed Framework Modules] DrAcHe981:
Using the root command executes the same stuff as the normal reboot since several android versions, but I'm working on another method as the root request sometimes takes very long...

This could still take some time.
[Xposed Framework Modules] Artieza:
Little bug.

Color settings - preview - power off - confirm - press button Back to exit from preview.
[Xposed Framework Modules] DrAcHe981:
Just checked and it seems to happen on every confirmation dialog...

I'm pretty sure that I can fix it very fast but it's not the biggest problem so I will not push an update directly, first I will add some more stuff and wait for other bugs to fix!

Anyway: thx for reporting!
[Xposed Framework Modules] Mabuse24:
Build version: 1.5.6

Build date: 1979-11-30 00:00:00

Current date: 2016-11-11 22:55:23

Device: Samsung SM-A500FU

Stack trace:

android.view.InflateException: Binary XML file line #15: Error inflating class <unknown>

at android.view.LayoutInflater.createView(LayoutInflater.java:626)

at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)

at android.view.LayoutInflater.onCreateView(LayoutInflater.java:675)

at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:700)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)

at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)

at android.view.LayoutInflater.inflate(LayoutInflater.java:498)

at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)

at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)

at android.view.LayoutInflater.inflate(Native Method)

at android.view.LayoutInflater.inflate(LayoutInflater.java:398)

at de.NeonSoft.neopowermenu.xposed.XposedDialog.createMultiItem(XposedDialog.java:569)

at de.NeonSoft.neopowermenu.xposed.XposedDialog.onCreateView(XposedDialog.java:425)

at android.app.Fragment.performCreateView(Fragment.java:1700)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)

at android.app.BackStackRecord.run(BackStackRecord.java:684)

at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1453)

at android.app.FragmentManagerImpl$1.run(FragmentManager.java:443)

at android.os.Handler.handleCallback(Handler.java:733)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:146)

at android.app.ActivityThread.main(ActivityThread.java:5756)

at java.lang.reflect.Method.invokeNative(Native Method)

at java.lang.reflect.Method.invoke(Method.java:515)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)

at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)

at dalvik.system.NativeStart.main(Native Method)

Caused by: java.lang.reflect.InvocationTargetException

at java.lang.reflect.Constructor.constructNative(Native Method)

at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

at android.view.LayoutInflater.createView(LayoutInflater.java:600)

... 28 more

Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x10302ae a=2 r=0x10302ae}

at android.content.res.Resources.loadDrawable(Resources.java:3429)

at android.content.res.TypedArray.getDrawable(TypedArray.java:602)

at android.content.res.XResources$XTypedArray.getDrawable(XResources.java:965)

at android.view.View.<init>(View.java:3760)

at android.view.ViewGroup.<init>(ViewGroup.java:481)

at android.widget.LinearLayout.<init>(LinearLayout.java:177)

at android.widget.LinearLayout.<init>(LinearLayout.java:173)

... 31 more
[Xposed Framework Modules] DrAcHe981:
This seems to be caused by a wrong implemented background drawable, please try the attached version (it also has some of the new things im currently working on ;D)
[Xposed Framework Modules] ukov1976:
Work well on my lg l90 with cm13.
[Xposed Framework Modules] Mabuse24:
Thanks for your work. Now it's working fine on my stock 4.4.4 Samsung SM-A500FU
[Xposed Framework Modules] BeachNYC:
Immediate Reboot on OnePlus 3

I'm having exactly the same problem. Have now installed about four different versions of NeoPowerMenu, and inevitably the second I push the power button, it reboots. I loved this app on my Galaxy S6 Edge, miss it now.

---------- Post added at 06:35 PM ---------- Previous post was at 06:30 PM ----------

On my OnePlus 3, using the "Experimental PhoneWindowManager hook" made no difference whatsoever. Still an instant reboot.
[Xposed Framework Modules] DrAcHe981:
Please use the lates version ( maybe my last attached apk) and click the option that causes the instant reboot, after that go into the developers settings and click on "Take bug report", and please send the file to me...
[Xposed Framework Modules] BeachNYC:
Well, there is no option that causes the reboot. The reboot happens the second the power button is pushed.
[Xposed Framework Modules] DrAcHe981:
Then just cause the reboot -> then take the bug report and send it to me!

The file will be big but that's what search functions are made for xD
[Xposed Framework Modules] NovaViper:
Thanks for your work! It works perfectly with my Samsung S6 Edge (SM-G925p) with the Renegade MM ROM.. Its the perfect power menu replacement :good: :victory:
[Xposed Framework Modules] DrAcHe981:
New Version released!

Changes in v1.5.6-1:

Added:

+ Added the ability to let empty multi line items still use the space.

+ Added the ability to change the screen recording settings. (Can be found in the advanced settings)

+ Added the ability to change or disable the automatic flashlight turn off. (Can be found in the advanced settings)

+ Added the ability to blur the content behind the menu. (Can be found in the advanced settings)

New Power menu items:

> Lock device: to lock your phone via the power menu. (Needs access as a Device admin)

Changed:

# Optimized permissions dialog.

# Reworked the way times are selected. (removed the seek bar and added a dialog to change them)

Bugs fixed:

# Fixed clicking back after the confirmation dialog in the preview results in a bugged layout.

# Fixed various crashes on pre lollipop devices.

# Finally fixed the lockscreen default background bug.

# Server side: fixed uploaded presets sometimes not downloadable when uploaded with completely lowercase creator name

Removed:

- Nothing.
[Xposed Framework Modules] Artieza:
Lol, what are you doing? About pref "Style". It depends on language. Try to setup "Full horizontal" then change the language through App Settings, for example.

---------- Post added at 08:13 PM ---------- Previous post was at 07:53 PM ----------

Could you make Silent Mode as toggle on/off?

---------- Post added at 08:26 PM ---------- Previous post was at 08:13 PM ----------

de.robv.android.xposed.XposedHelpers$ClassNotFoundError: java.lang.ClassNotFoundException: com.android.settings.SettingBootReceiver

Is it your?
[Xposed Framework Modules] DrAcHe981:
That behavior is normal, it's the simplest way to save it and I don't know anyone who normally changes the language at runtime.

You want to have the sound mode toggle with only sound on an off?

Is this the only line from this problem or is there more content?

I can't remember the use of this class in any of my files...
[Xposed Framework Modules] Artieza:
It isn't normal. Prefs should be used as style:full_horizontal, "full_horizontal"="Full horizontal" for US and so on.

Exactly.

Only one. Just wondered that the new update brought new permission "Start at boot".
[Xposed Framework Modules] DrAcHe981:
I will add you wish to my to-do list!

My class for this has another name (de.NeonSoft.neopowermenu.bootCompleteReceiver)
[Xposed Framework Modules] Artieza:
Ok, I'll find the guilty after several reboots. Can't remember if I saw it before...
[Xposed Framework Modules] Artieza:
Graphics change have some troubles...

1. Padding doesn't work for external images.

2. If I'll try to change padding after adding my images, I'll see loading circle instead.
[Xposed Framework Modules] DrAcHe981:
Just checked and no problems on my side, works fine with custom graphics...

Anything in the normal android log with the tag "NPM:imageLoader" or just "NPM"?

Nice setup btw ;D
[Xposed Framework Modules] Artieza:
In fact I think that there is really 2 dp padding for my icon... But why is your icons not the same? Try with that (square cutting if this is important).

When should I check a logcat?

Thanks ^.^
[Xposed Framework Modules] DrAcHe981:
Yeah it looks exactly like yours if I set the padding to 2dp,

If I use your image without any padding then the circle is right at the edge.

Check the log after the loading bar appears when you changed the padding.
[Xposed Framework Modules] Artieza:
And it is right. Every icon should be cropped by it's boarders. If you will download anything from web, so you will find exactly such icons. But yours have additional space (in image files), as I guess, so impossible to use it in the same time with downloaded from web. Could you normalize all in-build icons? I don't want to change them all.

Ok. I defined the problem. Pick up new icon from SD card, try to setup new, choose "from preset", got "there is no presets", tap ok and get loading circle.

11-19 00:17:40.735 E/NPM:graphicsList(12460): Failed to load image 'file:///data/data/de.NeonSoft.neopowermenu/files/images/Reboot.png': com.nostra13.universalimageloader.core.assist.FailReason@362d8c74

---------- Post added at 10:30 PM ---------- Previous post was at 10:26 PM ----------

Just it isn't truth that your icons have 2 dp padding, if I set so.
[Xposed Framework Modules] DrAcHe981:
The padding for the stock graphics is hard coded, it behaves like:

Use the bigger value from user padding and default padding (5dp)

I have ideas to change that for the next version!

I checked it and after change I got the loading bar, it seems like the graphic gets deleted directly when the choose from preset dialog opens...

This isn't normal and will definitely be fixed in the next version!

The icons in the graphics list have a scaled value, and the final value may not be 100% accurate as it runs through some functions to get the pixel value. ( Android's setpadding value seems to only accepts pixel values...)
[Xposed Framework Modules] NikolaFiko:
Thanks for the great app. It would be even better with Fake power off and item password protection options, like in APM module. [MENTION=6342037]DrAcHe981[/MENTION]
[Xposed Framework Modules] DrAcHe981:
Thank you for using my app ;D

It's all on my to-do list!

I think the password protection will be in the next release, for the fake power off I need to try a bit more, maybe it's also ready in the next release...
[Xposed Framework Modules] NGOwner:
How are you coming along on the new reboot sequence? Will it ultimately be like the reboot in the Xposed Installer Framework section?

I mean when I hit reboot there, it's rebooting. No thinking. No spinning circle. No toast saying granted superuser permissions. Just Bam ... reboot.

Will it be like that?

Oh, and thanks for the new version, I've changed over to your native lock device task, and it works equally well. One of the things that might be important to note somewhere for those of us who enable it: Once making NeoPowerMenu a Device Administrator, uninstalling becomes a two step process. First you have to remove the Device Administrator checkbox before uninstalling NeoPowerMenu. I know it's stupid. Who would want to uninstall NeoPowerMenu? But for those misguided souls, there is now that one additional step to consider.

[NG]Owner
[Xposed Framework Modules] DrAcHe981:
To be honest: I didn't worked on that part since months...

I just checked the entire xposed installer source and it seems like they are just using root commands too, but they're not waiting for other apps to save data, so it reboots without showing the root granted message and with possible data lost for some apps...

Yeah I might put some info for this somewhere...

And as always: thx for using my module! ^^
[Xposed Framework Modules] Artieza:
Your waiting function sometimes doesn't allow me to reboot device!
[Xposed Framework Modules] DrAcHe981:
Is there anything in the logs when that happens?
[Xposed Framework Modules] Artieza:
Why should anything be there? You waiting function do what it should... I can leave phone, go to drink tea, and when I come back, it should be rebooted. Do you understand what I mean? With APM on Kit-Kat it worked perfectly.
[Xposed Framework Modules] hawki:
Is there a way to change colours of a specific item (text, background, reveal) at once? Can't seem to find it as an optic so I'm changing them one at a time
[Xposed Framework Modules] DrAcHe981:
Sry for the late reply, the XDA app didn't notified me...

Click and hold on an option to get a menu with "Reset to default" and "Apply to all of this type"

And to all:

New version online: v1.5.6-2

Changes in this one:

Added:

+ Added the ability to lock items with a password or fingerprint. (Password can be set in the advanced settings and items can be locked in the 'Edit appearance and behavior' dialog accessible in the visibility and order screen)

+ Added the ability to use every power menu item as a standalone homescreen shortcut.

New Power menu items:

> Silent Mode: simply switch between sound on and off.

Changed:

# Removed stock graphics padding, changed default padding value to 5dp

Bugs fixed:

# Fixed clicking on 'select graphic from preset' will delete the current graphic even when the dialog is cancelled.

# Fixed adding an app shortcut as a normal item results in 'Unknown' item.

Removed:

- Nothing.
[Xposed Framework Modules] hawki:
Doesn't seem to work o The OnePlus 3T. I'm able to show the preview, but it just uses the default reboot menu of the 3T :rolleyes:
[Xposed Framework Modules] DrAcHe981:
Did you tried the experimental hook found in the advanced settings?

But as far as I know, the OnePlus 3 is a trouble maker since some versions...

The problem is, no one gave me the required log files to fix this, so I couldn't do anything to support it...

If you want to help then please give me the xposed log! ;D
[Xposed Framework Modules] hawki:
I'll try the experimental hook setting and keep u posted. Not sure how to sends log files, but more than willing to do so if you give me detailed instructions!
[Xposed Framework Modules] DrAcHe981:
In the xposed installer is a section for logs, open it, then hit your menu key and there should be a button "Send logs",press it and then attach the file to a post here.
[Xposed Framework Modules] Artieza:
ACRA caught a InflateException for de.NeonSoft.neopowermenu

I see you added many prefs in the new shortcuts. I was a bit confused about color settings and padding. It would be better if you will make this options inactive while letters mode (or custom graphics) instead of original icon isn't activated.
[Xposed Framework Modules] DrAcHe981:
It seems like my fingerprint vector drawable has some stupid lines that doesnt work on every device...

I will keep that in mind for the next release!
[Xposed Framework Modules] Stoutpuppy GFX:
Newest update working perfectly for me. Well done Robin :)
[Xposed Framework Modules] gursewak.10:
just a small problem

The app works great on my marshmallow rom.thanks for that. Everything works fine except these

1) The app's screen recording says "your system doesn't support screen recording" but when toggled to stock binary it works fine.

2) after enabling this module in xposed the screen doesn't turn off when power button is clicked.

The power button shows no behaviour on single click but it goes to power menu when long clicked.

Earlier was working fine.

Please solve 2nd option ASAP. I can provide any extra details if you need.

Thanks again.
[Xposed Framework Modules] DrAcHe981:
The "advanced" screen record binary is limited in its device range (I might need to look for a new one...)

The interesting part with the second problem is that I don't modify anything how the button behaves, that's still managed by the system, I'm hooking into the default power dialog itself and let that one start my own menu...

One info you could give me is your device and your android version (I don't think that there are any log lines for that problem...)

Another thing you could try is the experimental hook (found in the advanced settings), it uses another method to show the menu.
[Xposed Framework Modules] gursewak.10:
thanks

Thank you the experimental hook worked and single click power button is working back.

Thanks again for reply.

If you could add new screen record binary it will be highly appreciated .