Help. Xposed Framework not working. - Android Q&A, Help & Troubleshooting

Hi. I'm using Cherry Mobile Flare S3ini (Q820) kitkat official rom. The problem is when the resourse hook is disabled, the framework is not working. I wasn't able to use theming modulea due to I need to activate disable resource hook for the framework to work. This is the log.
Sep 12, 2017 8:21:41 PM UTC
Loading Xposed v54 (for Zygote)...
Running ROM 'Cherry_Flare_S3_MINI3G_Q620_V04_20151211' with fingerprint 'unknown'
Errors during Xposed initialization
java.lang.ClassCastException: class android.content.res.XResources doesn't extend class android.content.res.SPRDResources
at de.robv.android.xposed.XposedBridge.cloneToSubclass(XposedBridge.java:787)
at de.robv.android.xposed.XposedBridge.hookResources(XposedBridge.java:365)
at de.robv.android.xposed.XposedBridge.initXbridgeZygote(XposedBridge.java:267)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)
at dalvik.system.NativeStart.main(Native Method)
My phone is quad core spreadtrum processor, KK 4.4.2 Thanks.

Related

[MOD][XPOSED] Unsafe Volume - disable safe media volume popup/check

Unsafe Volume Xposed mod
disable the safe media volume check​
I wrote a tiny Xposed module, which disables the annoying safe media volume popup/check, present in many Jellybean devices. It works by simply setting the config_safe_media_volume_enabled system parameter to false at boot time. Because it uses the Xposed framework, it is device and rom independent
Installation
Install the awesome Xposed framework on your rooted device.
Install and activate the mod, which you can download from my Bintray site.
You can find the sources at my Github repository. This software is released under the GNU GPLv3.
Cheers!
Does it matter if we are deodexed or odexed? I just got a new phone and I am running the stock samsung 4.2.2 rom, but it is rooted.
stammler said:
Unsafe Volume Xposed mod
disable the safe media volume check​
I wrote a tiny Xposed module, which disables the annoying safe media volume popup/check, present in many Jellybean devices. It works by simply setting the config_safe_media_volume_enabled system parameter to false at boot time. Because it uses the Xposed framework, it is device and rom independent
Installation
Install the awesome Xposed framework on your rooted device.
Install and activate the mod, which you can download from my Bintray site.
You can find the sources at my Github repository. (They use the gradle build system introduced as default with Google's new android-studio IDE, with which this mod was produced.)
Cheers!
Click to expand...
Click to collapse
omniphil said:
Does it matter if we are deodexed or odexed? I just got a new phone and I am running the stock samsung 4.2.2 rom, but it is rooted.
Click to expand...
Click to collapse
Short Answer: It works for all roms, odexed and deodexed
Long Answer: This question is actually a question whether the Xposed framework works with (de)odexed roms. The first post in the Xposed framework thread says
It will work for odexed and deodexed ROMs.
Click to expand...
Click to collapse
under the section Advantages in the beginning. And as such does any Xposed mod work with any (de)odexed rom.
will this stop your device from also stopping the media and turning the volume half way down???
DaMyth said:
will this stop your device from also stopping the media and turning the volume half way down???
Click to expand...
Click to collapse
No. Technically, this mod doesn't do anything but setting the system parameter config_safe_media_volume_enabled to false, no other tweaks. It should be possible to write a mod, or extend this one, so that the system doesn't stop the current media from playing when something is plugged in to the earphone jack. Anybody knows how to do this?
But there's an App in the Play store with which you can configure the volume levels that will be set when you (un)plug a cable: Hearing Saver
Thanks for releasing this mod :good: I'm however having trouble getting it to function on ICS 4.0.4 - The 'Safe Volume Level' toast pops up even when the mod's enabled.
shadeMe said:
Thanks for releasing this mod :good: I'm however having trouble getting it to function on ICS 4.0.4 - The 'Safe Volume Level' toast pops up even when the mod's enabled.
Click to expand...
Click to collapse
I think this popup was introduced into the core Android system with 4.1, so the implementation of this pop-up in ICS roms is probably differently, which should be the reason this mod is not working for you. But I'd be happy to add support to ICS/you particular rom/phone, if you could provide me with some information. Which phone to you have? Which rom are you running? Can you point me to the sources of your rom? Please post the output of /data/xposed/debug.log and maybe the config.xml out of your framework-res.apk (or some other .xml files if there's no config.xml).
Cheers!
Thanks - That's very generous of you! I'm running a mostly AOSP stock ROM that came with my phone - It's a Huawei Ascend G600 (U8950-1). The contents of the debug log:
Code:
-----------------
Jul 7, 2013 6:43:17 AM UTC
Loading Xposed (for Zygote)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
android.content.res.Resources$NotFoundException: android:bool/config_safe_media_volume_enabled
at android.content.res.XResources.setSystemWideReplacement(XResources.java:232)
at net.cantab.stammler.xposed.unsafevolume.UnsafeVolume.initZygote(UnsafeVolume.java:38)
at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:282)
at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:234)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:99)
at dalvik.system.NativeStart.main(Native Method)
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 7, 2013 6:52:14 AM UTC
Loading Xposed (for com.goodmooddroid.gesturecontrol.RemoteContext)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 7, 2013 7:00:40 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 7, 2013 7:05:54 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 7, 2013 7:23:04 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 7, 2013 7:57:05 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 2:36:45 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 2:58:31 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 3:05:54 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 4:15:27 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 5:47:39 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 6:39:23 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 7:40:28 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 8:42:40 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 9:42:53 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 10:40:30 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 8, 2013 11:40:02 PM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 12:43:19 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 1:44:14 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 1:56:26 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 4:46:30 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 6:44:12 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 9:18:25 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 9:32:17 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 9:50:07 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 10:29:05 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 10:52:16 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
-----------------
Jul 9, 2013 11:00:20 AM UTC
Loading Xposed (for com.android.commands.am.Am)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
Loading modules from /data/app/de.robv.android.xposed.mods.appsettings-1.apk
Loading class de.robv.android.xposed.mods.appsettings.XposedMod
Loading modules from /data/app/sg.ruqqq.XThemeEngine-1.apk
Loading class sg.ruqqq.XThemeEngine.Mod
I was unable to find a config.xml inside my framework-res APK so I've attached the manifest file.
The log says
shadeMe said:
Code:
-----------------
Jul 7, 2013 6:43:17 AM UTC
Loading Xposed (for Zygote)...
Loading modules from /data/app/net.cantab.stammler.xposed.unsafevolume-1.apk
Loading class net.cantab.stammler.xposed.unsafevolume.UnsafeVolume
android.content.res.[B]Resources$NotFoundException: android:bool/config_safe_media_volume_enabled[/B]
Click to expand...
Click to collapse
so indeed there isn't a config_safe_media_volume_enabled parameter in ICS, as I expected.
shadeMe said:
I was unable to find a config.xml inside my framework-res APK so I've attached the manifest file.
Click to expand...
Click to collapse
Thanks, but, unfortunately, the manifest wasn't helpful. I think it makes sense if you just upload the whole framework-res.apk
Of course! Bitte schoen - Dropbox
shadeMe said:
Of course! Bitte schoen - Dropbox
Click to expand...
Click to collapse
Hmm, didn't contain anything helpful to me either... For a start, please post a screenshot of the pop up And maybe you could search for the sources of your rom, Huawei is obliged to release them somewhere.
I've attached a screenshot. As for the source code to my ROM, I'm afraid the closest we've got right now is the kernel source. And even that's ported from a different model of the phone.
shadeMe said:
I've attached a screenshot. As for the source code to my ROM, I'm afraid the closest we've got right now is the kernel source. And even that's ported from a different model of the phone.
Click to expand...
Click to collapse
The kernel sources wouldn't help... Is it actually just showing the toast but you can increase the volume nevertheless? I couldn't find something useful in the framework-res.apk either, please send me your framework.apk
Yes, the toast doesn't restrict the volume level. However, occasionally (or should I say randomly), a modal message box gets displayed instead. When it does, the volume level cannot be modified until it's dismissed. And I also recall receiving the message as a notification once.
Where would I find the framework APK? It doesn't seem to be present in the framework directory. Nor does it show up during a search (there was a JAR file of the same name though). Or are you talking about the GoogleServicesFramework APK?
PS: I just noticed that there's a second frameworkres APK, this one a custom Huawei extension. It's named framework-res-hwext.apk. Would you like to take a look at this as well?
shadeMe said:
Yes, the toast doesn't restrict the volume level. However, occasionally (or should I say randomly), a modal message box gets displayed instead. When it does, the volume level cannot be modified until it's dismissed. And I also recall receiving the message as a notification once.
Where would I find the framework APK? It doesn't seem to be present in the framework directory. Nor does it show up during a search (there was a JAR file of the same name though). Or are you talking about the GoogleServicesFramework APK?
PS: I just noticed that there's a second frameworkres APK, this one a custom Huawei extension. It's named framework-res-hwext.apk. Would you like to take a look at this as well?
Click to expand...
Click to collapse
The framework-res-hwext.apk file could be helpful. Also, please run the command
Code:
ls -R /system > /sdcard/ls-R_system
in a shell on your phone (either adb shell or any terminal emulator from the play store)
and post the resulting file ls-R_system.
Cheers!
Although I don't have a Huawei device, there is a similar problem that the samsung galaxy family devices have with the unsafe volume pop-up. From poking around in the adb log on my samsung device, after triggering the message.
Code:
D/PopupuiReceiver(3524): onReceive() getAction : android.intent.action.EAR_PROTECT_TOAST
D/STATUSBAR-NotificationService(673): enqueueToast()
from the log I then decompiled the apk "PopuiReceiver" trying to find the string id "EAR_PROTECT_TOAST"
under the decompiled apks "public.xml" ideally look for it under the folder "values"
Code:
<public type="string" name="ear_protect_toast" id="0x7f050007" />
and under the decompiled apks "strings.xml"
Code:
<string name="ear_protect_toast">To lower your risk of hearing damage, do not listen at high volumes for long periods</string>
By being able to remove the string id "ear_protect_toast", when the function is called, the pop-up message is never triggered because there is no coding link to it (ie a dead-end).
Using the advice that stammler is mentioning, use an adb logging tool, ideally with your device connected to the computer. After that forcefully trigger the popup on device (helps to do this a handful of times so the lines of code in the adb log stands out). From the adb log, you should be able to determine what installed app (or line(s) of code) is triggering the popup message.
Hope this helps in removing the nanny message
Joe
@cybhunter, thanks for the detailed instructions. But I did some more digging and was able to find a build.prop setting to turn off the toast on my device.
@stammler, thanks for taking the time to help me out - Much appreciated
shadeMe said:
@cybhunter, thanks for the detailed instructions. But I did some more digging and was able to find a build.prop setting to turn off the toast on my device.
@stammler, thanks for taking the time to help me out - Much appreciated
Click to expand...
Click to collapse
How about sharing that setting, please.
Of course, my apologies. It's ro.config.hw.security_volume, takes an integer value. Was set to 11 on my device. Although I think it might be Huawei/region specific, for I found the message string in Huawei's framework-res extension APK.
It makes my device reboots randomly
Xperia z using romaur v8.0 (4.2.2)
Sent from my C6603 using xda premium

[1.117.0306] Latest Gear Fit Manager non-Samsung + Endomondo [4.x/5.x compatible]

Hello,
I've patched the current version of the Gear Fit Manager (v. 1.117.0306) built on 2015, March 06 and released at the end of March.
Links updated on 2015, April 19. Calls are fixed. I'm investigating on the issue with Lollipop 5.1 .
Test version for 5.1 : https://mega.co.nz/#!bEdXAQhb!i5hxkgyzEI43fBWa6ThfIiPUI2U2V2gdVeXY5AGWHg8 [Test 1 - try to use the 5.1 API]
https://mega.co.nz/#!GFcHUAhI!snmHX91S4PJwJZlPtCTMDUjOv36EKeaaKrS54UX2PtY [Test 2 - try to bypass one section]
This version is based on the last official Samsung version compatible with Lollipop. I patched the apk to be compatible with non Samsung phones. To install this version you need to install the following packages (I advice you to install in that order).
Gear Fit Manager and requirements
This firmware to update with Odin: R350XXU0BOA2
https://mega.co.nz/#!qUskxIDL!wexEZQTZ6t6wk0jO6dv1JDsdT6oCDYBxlegMb-MS6qc
This apk which is the main application: Gear Fit Manager
https://mega.co.nz/#!nI0UyJJD!zYFvTolgxAgL39ydX9ZgHCson5K2TJxMx9_-BKOa--A
This apk which contains required components: Gear Fit Installer (it's actually embedded into the second apk but it has to be installed manually)
https://mega.co.nz/#!mFknlTZB!iIB7DWPQC5ECiPlNcum0JXpcJRuE4XmI7v6Drchgk3Y
Your build.prop must NOT contain "samsung", just keep the default values for your device.
App Connect Applications :
Endomondo 11.0.3:
https://mega.co.nz/#!Kd82hawL!lGt2pJbBCfvO7bQ52fI4VgtOufMHLQVEozqWt7ziY84
To connect via Facebook you need to delete the app from your profile (https://www.facebook.com/help/170585223002660) if you already used it before, else you will have a login loop. The normal login via mail also works.
Endomondo is not able to use the Heart Rate monitor from the watch, this is normal (https://support.endomondo.com/hc/en-us/articles/201784416-SmartWatches#gear).
Calculator 2.0:
https://mega.co.nz/#!jFNDQDoJ!oIqRjQY_4oBrCMbygSB4HZfsAt7K1AWW2gg7KvTx1UA
I'll try to keep this topic up to date with the last version available on :
http://forum.xda-developers.com/showthread.php?t=2789503
I guarantee that the software is 100% safe. I will detail the reverse engineering done to make the new versions of the manager to work properly on non-Samsung devices.
Working :
Bluetooth connection
Clocks
Notifications
Media control
Custom clocks
Heart Rate
Reject Calls
SMS Quick Reply
Find my phone
Partially working :
App Connect (the manager cannot be signed properly so you will always get the "You should install Gear Fit Manager application first" message. This can be fixed but no so easily (the app have to be patched to not check the signature). If you want an app, post the apk here and I will patch this app.
Not working :
Anything related to SHealth / Weather as it requires Touchwiz (Endomondo is a good SHealth alternative)
Updates
19/04/2015 : Added Endomondo and Calculator apps.
19/04/2015 : Crash when receiving calls fixed.
Thanks for baking this. I can live without the weather, but I miss the caller ID notifications.
This isn't working on my 5.1 Nexus 6. I get a force close upon opening it. Firmware is at BOA2 and I installed the smaller file, then the first. Anything I can do to help troubleshoot this? It was a clean install on this phone.
It should work with 5.0.2 (tested with my OnePlus One with OxygenOS). I never tried with 5.1 yet. Could you send me a logcat please ? If it's a force close on launch I think it should be fixable.
koalala said:
Hello,
I've patched the current version of the Gear Fit Manager (v. 1.117.0306) built on 2015, March 06 and released at the end of March.
This version is based on the last official Samsung version compatible with Lollipop. I patched the apk to be compatible with non Samsung phones. To install this version you need to install :
- This firmware with Odin (R350XXU0BOA2) :
https://mega.co.nz/#!WFF2XaAD!slUq8FE4D3cvTCIMrI4THnOPlR2GBttRLRyOgm379r8
- This apk which contains required components : Gear Fit Installer (it's actually embedded into the second apk but it has to be installed manually)
https://mega.co.nz/#!mFknlTZB!iIB7DWPQC5ECiPlNcum0JXpcJRuE4XmI7v6Drchgk3Y
- This apk which is the main application : Gear Fit Manager
https://mega.co.nz/#!WFF2XaAD!slUq8FE4D3cvTCIMrI4THnOPlR2GBttRLRyOgm379r8
Your build.prop must NOT contain "samsung", just keep the default values for your device.
I'll try to keep this topic up to date with the last version available on :
http://forum.xda-developers.com/showthread.php?t=2789503
I guarantee that the software is 100% safe. I will detail the reverse engineering done to make the new versions of the manager to work properly on non-Samsung devices.
Working :
Bluetooth connection
Clocks
Notifications
Media control
Custom clocks
Heart Rate
Reject Calls
Find my phone
Partially working :
App Connect (the manager cannot be signed properly so you will always get the "You should install Gear Fit Manager application first" message. This can be fixed but no so easily (the app have to be patched to not check the signature). If you want an app, post the apk here and I will patch this app.
Not working :
Anything related to SHealth / Weather as it requires Touchwiz
Click to expand...
Click to collapse
So great. I waiting for a long time
Will re-install Lolipop on my 6653 and feedback to you soon.
Again, thanks you
Update: Could you please update the frimware link? My gear fit running R350XXU0BNG2 and CAN NOT pair with my Sony Z3 D6653
Thank you for the remark I didn't see that the hyperlink was broken. It's corrected now, you can download the last firmware.
works
wish endomondo can be work in this version could u plz patch this app?? ... btw thank you for your big help:good::good::good:~ it works on my android 5.0 phone. i flash my gear firm by odin3.0.9.5 in csc bar
Log Cat from Stock 5.1 Nexus 5
koalala said:
It should work with 5.0.2 (tested with my OnePlus One with OxygenOS). I never tried with 5.1 yet. Could you send me a logcat please ? If it's a force close on launch I think it should be fixable.
Click to expand...
Click to collapse
Code:
D/AndroidRuntime(19780): Shutting down VM
E/AndroidRuntime(19780): FATAL EXCEPTION: main
E/AndroidRuntime(19780): Process: com.samsung.android.wms, PID: 19780
E/AndroidRuntime(19780): java.lang.RuntimeException: Unable to create service com.samsung.android.wms.service.WingtipManagerService: java.lang.ClassCastException: int[] cannot be cast to long[]
E/AndroidRuntime(19780): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2771)
E/AndroidRuntime(19780): at android.app.ActivityThread.access$1800(ActivityThread.java:151)
E/AndroidRuntime(19780): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
E/AndroidRuntime(19780): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(19780): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(19780): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime(19780): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(19780): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(19780): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime(19780): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
E/AndroidRuntime(19780): Caused by: java.lang.ClassCastException: int[] cannot be cast to long[]
E/AndroidRuntime(19780): at com.samsung.android.wms.service.notification.CallAdapterForLollipop.registerPhoneStateListener(CallAdapterForLollipop.java:150)
E/AndroidRuntime(19780): at com.samsung.android.wms.service.notification.CallAdapterForLollipop.onCreate(CallAdapterForLollipop.java:110)
E/AndroidRuntime(19780): at com.samsung.android.wms.service.WingtipManagerService.initAdapters(WingtipManagerService.java:1641)
E/AndroidRuntime(19780): at com.samsung.android.wms.service.WingtipManagerService.onCreate(WingtipManagerService.java:1275)
E/AndroidRuntime(19780): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
E/AndroidRuntime(19780): ... 9 more
W/ActivityManager( 738): Force finishing activity 1 com.samsung.android.wms/.app.base.ContentsActivity
I/WindowManager( 738): Screenshot max retries 4 of Token{26383230 ActivityRecord{b658373 u0 com.samsung.android.wms/.app.base.ContentsActivity t689 f}} appWin=Window{2394e09a u0 com.samsung.android.wms/com.samsung.android.wms.app.base.ContentsActivity} drawState=1
I/OpenGLRenderer( 738): Initialized EGL, version 1.4
W/ActivityManager( 738): Activity pause timeout for ActivityRecord{b658373 u0 com.samsung.android.wms/.app.base.ContentsActivity t689 f}
W/LocationOracleImpl(17839): Best location was null
W/ResourceType( 1111): No package identifier when getting value for resource number 0x00000000
W/PackageManager( 1111): Failure retrieving resources for com.samsung.android.wms: Resource ID #0x0
D/TaskPersister( 738): removeObsoleteFile: deleting file=687_task_thumbnail.png
D/PhoneStatusBar( 1111): disable: < expand ICONS* alerts SYSTEM_INFO* back home recent clock search >
D/NuPlayerDriver( 188): stop(0xb590d8e0)
W/MessageQueue( 1111): Handler (android.media.MediaPlayer$EventHandler) {36f23de2} sending message to a Handler on a dead thread
W/MessageQueue( 1111): java.lang.IllegalStateException: Handler (android.media.MediaPlayer$EventHandler) {36f23de2} sending message to a Handler on a dead thread
W/MessageQueue( 1111): at android.os.MessageQueue.enqueueMessage(MessageQueue.java:325)
W/MessageQueue( 1111): at android.os.Handler.enqueueMessage(Handler.java:631)
W/MessageQueue( 1111): at android.os.Handler.sendMessageAtTime(Handler.java:600)
W/MessageQueue( 1111): at android.os.Handler.sendMessageDelayed(Handler.java:570)
W/MessageQueue( 1111): at android.os.Handler.sendMessage(Handler.java:507)
W/MessageQueue( 1111): at android.media.MediaPlayer.postEventFromNative(MediaPlayer.java:2670)
D/NuPlayerDriver( 188): reset(0xb590d8e0)
D/NuPlayerDriver( 188): notifyResetComplete(0xb590d8e0)
I/ActivityManager( 738): Process com.google.android.apps.docs (pid 17663) has died
D/PhoneStatusBar( 1111): disable: < expand icons* alerts system_info* back home recent clock search >
koalala said:
Hello,
I've patched the current version of the Gear Fit Manager (v. 1.117.0306) built on 2015, March 06 and released at the end of March.
Click to expand...
Click to collapse
Thank you very much. It works on my Nexus 4 with 5.0.1 stock.
I think my logcat is saying the same thing as the previous one.
[Nexus 6 w/ 5.1 ROM]
Code:
[ 04-10 18:34:15.309 4238: 4238 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: com.samsung.android.wms, PID: 4238
java.lang.RuntimeException: Unable to create service com.samsung.android.wms.service.WingtipManagerService: java.lang.ClassCastException: int[] cannot be cast to long[]
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2771)
at android.app.ActivityThread.access$1800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1386)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassCastException: int[] cannot be cast to long[]
at com.samsung.android.wms.service.notification.CallAdapterForLollipop.registerPhoneStateListener(CallAdapterForLollipop.java:150)
at com.samsung.android.wms.service.notification.CallAdapterForLollipop.onCreate(CallAdapterForLollipop.java:110)
at com.samsung.android.wms.service.WingtipManagerService.initAdapters(WingtipManagerService.java:1641)
at com.samsung.android.wms.service.WingtipManagerService.onCreate(WingtipManagerService.java:1275)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2761)
... 9 more
Working on Xperia Z2 android 4.4.2 stock/rooted
This is my first attempt to make the gear fit work on a non-samsung device and it's working as informed. Was hoping to get endomondo working thru appconnect, so I'm also looking forward for that patch. Congratulations koalala on this accomplishment and keep up the good work!
This seems to be working on my Nexus 5. Thanks a bunch!
bugs found
Incoming call notify doesn't work. Gear fit will disconnect when there is incoming call and so as the gear for manager
Hi man! You have my all attention
I have Lenovo A806 with Mediatek and Android 4.4.2. It's not possible to connect. Pairing is ok. Logcat is included and I will help you as much as I can, so don't hesitate contact me.
Logcat from line 2381 I think.
Thank you very much!!
Hi, I´m trying to use the app "gear fit share", but i don´t know how i can signed (it show "the manager is not signed" message).
How can i do it?
Is there any tutorial for this?
Thanks!!!
Search tutorial in thread "gear fit manager on non Samsung devices" on xda
Sent from my nexus 4 using XDA Free mobile app
1.117.030622
I have stock rooted Sprint phone and got the 1.117.030622 update and it won't connect anymore. I tried resetting everything still no luck.
hi
followed instructions and the firmware B02 by odin
installed apks, paired with my phone, but it stays on "connect to the device" when in the app, it cant go to the gear
any idea?
logcat joined if any help?
Incoming call notify doesn't work,nexus 4 aicp 5.0.2
hi, i want to use the app "gear fit launcher" to launch tasker shortcuts.
It was hard to find the apk because it isn't available at the playstore anymore.
sadly if i try to activate the app it says "manager not signed"
is there any way to get around this?
if you need the apk, i can upload it for you
adrian_cwchow said:
Incoming call notify doesn't work. Gear fit will disconnect when there is incoming call and so as the gear for manager
Click to expand...
Click to collapse
I have the same problem with my sony xperia z3 compact with 5.0.2

Greenify without Xposed on LP

Hi
I buy donate and update phone to Lollipop. And I can not install xposed because I have a lot of bugs. My question is: Can I be notified GCM in frozen applications without Xposed?
UszkiX said:
Hi
I buy donate and update phone to Lollipop. And I can not install xposed because I have a lot of bugs. My question is: Can I be notified GCM in frozen applications without Xposed?
Click to expand...
Click to collapse
No, without Xposed, you can not.
Xposed alpha is compatible with Lollipop 5, not 5.1 or higher. If you have 5, you should be able to install Xposed alpha.
When I install xposed I see "com.android.......
Has been stoped"
And I can not using the phone...
Ya even me also getn bootloops.... Phone-sony Xperia t2 ultra android version-5.0.2
Which version of Xposed are you both trying to install?
You can use Xposed in Lollipop 5.0 and 5.1 but the greenify module will give you a bootloops.
The developer should update the module to make it work.
I trying to flash framework not xposed apk.
UszkiX said:
I trying to flash framework not xposed apk.
Click to expand...
Click to collapse
Then search in Xposed thread.
tnsmani said:
Which version of Xposed are you both trying to install?
Click to expand...
Click to collapse
Latest xposed 20150430
My phne is nt even booting to home screen after flashing the xposed zip
But it works on other phones like z2,z3 having lollipop
pvnsai73 said:
Latest xposed 20150430
My phne is nt even booting to home screen after flashing the xposed zip
But it works on other phones like z2,z3 having lollipop
Click to expand...
Click to collapse
Did you disable all Xposed modules (assuming you were running earlier versions of Xposed) before attempting to install this version?
This version is running without major issues in almost all phones. So may be your phone or OS is causing this. Search in the Xposed thread.
tnsmani said:
Did you disable all Xposed modules (assuming you were running earlier versions of Xposed) before attempting to install this version?
This version is running without major issues in almost all phones. So may be your phone or OS is causing this. Search in the Xposed thread.
Click to expand...
Click to collapse
I did a clean and fresh install of rom..and properly root with r/w and a twrp recovery..but here is my log
05-19 00:01:27.672 I/Xposed ( 994): -----------------
05-19 00:01:27.672 I/Xposed ( 994): Starting Xposed binary version 61, compiled for SDK 21
05-19 00:01:27.672 I/Xposed ( 994): Device: D5322 (Sony), Android version 5.0.2 (SDK 21)
05-19 00:01:27.672 I/Xposed ( 994): ROM: 19.3.A.0.470
05-19 00:01:27.672 I/Xposed ( 994): Build fingerprint: Sony/D5322/D5322:5.0.2/19.3.A.0.470/552693915:user/release-keys
05-19 00:01:27.672 I/Xposed ( 994): Platform: armeabi-v7a, 32-bit binary, system server: yes
05-19 00:01:27.672 I/Xposed ( 994): SELinux enabled: yes, enforcing: yes
05-19 00:01:27.681 I/Xposed ( 994): -----------------
05-19 00:01:27.681 I/Xposed ( 994): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
05-19 00:01:27.785 I/Xposed ( 994): Forcing image recompilation because /data/dalvik-cache/arm/[email protected]@boot.art is not compiled for the current Xposed version
05-19 00:01:55.606 I/Xposed ( 994): Detected ART runtime
05-19 00:01:55.616 I/Xposed ( 994): Found Xposed class de/robv/android/xposed/XposedBridge, now initializing
05-19 00:01:55.689 I/Xposed ( 994): Initializing XposedBridge version 64
05-19 00:01:55.892 E/Xposed ( 994): Cannot load any modules because /data/data/de.robv.android.xposed.installer/conf/modules.list was not found
05-19 00:01:57.206 F/libc ( 1831): Fatal signal 6 (SIGABRT), code -6 in tid 1831 (main)
@pvnsai73,
I think that your problem is here "05-19 00:01:55.892 E/Xposed ( 994): Cannot load any modules because /data/data/de.robv.android.xposed.installer/conf/modules.list was not found"
This has nothing to do with Greenify and you are asking in the wrong place.
Search in the Xposed thread for missing modules list. But I don't think that there is any solution found for this.
UszkiX said:
I trying to flash framework not xposed apk.
Click to expand...
Click to collapse
Have you tried to install the APK than flash the framework?

[Xposed] Battery Shutdown Manager

Battery Shutdown Manager
Download @ Google Play
​
Do you know that moment when you're on 1% of battery and think "I'll just use my device 20 more seconds then I'll get my charger" - and at exactly that moment it'll switch to 0% and you'll see the threaded "Shutting down" dialog and know it's too late now?
This Xposed module will help by showing you a dialog with a countdown before the actual shutdown, so you'll have time to attach your charger.
The module achieves this by postponing the shutdown for a couple of seconds to give you time to connect the charger.
Please post any kind of feedback or ideas you have regarding this app :fingers-crossed:
I tested the module a lot but can't possibly test it for all those different phones and versions out there.
Thus I will flag it as beta for now so you can provide feedback before I'll release the 1.0 version.
It would be great if some more people could test it. I used the StabilityTest app to quickly drain my battery down to 0%.
Compatibility:
I wrote this module and tested it with AOSP devices as well as on Cyanogenmod.
It should work without any issues on all Nexus and Google Play Edition devices from Android 4.2 to 5.1+.
As almost all Custom ROMs are based on either AOSP or CM they should work without issues, too.
Some vendors might have changed the original code and thus render this module incompatible on their device. Nothing bad will happen when you install it, it just won't work.
Compatible:
Nexus / AOSP / GPE ROMs
Cyanogenmod
Almost all custom ROMs (as they're usually either based on AOSP or CM)
Sony Stock ROMs
Not compatible:
Currently not working for LG Stock ROMs due to internal code changes by LG.
Android devices <4.2. Support for Android 4.0.3+ and 4.1 might be added when I see a greater demand for it.
Installation:
- Download the app
- Activate the module in the Xposed Insaller
- Reboot your device
- Open the app to change it's options to your liking
Bugs/Issues:
If you encounter any bugs just report them here and I'll try to fix them. Always include as much information as possible, including your device model, android version and exact ROM details.
Note that I will most likely need a log to fix the issue, a generic "doesn't work on phone xyz" won't help me fixing the issues.
There are two possibilities to get a log.
Use the Catlog app. In the app press Menu > Record Log before the device shuts down, then attach the logcat to your bugreport.
Alternatively you need to use adb to grab the log.
Unfortunately logging is a bit more complicated for this module as the interesting part happens on shutdown.
The best solution (and what I do personally for debugging this app) is to use ADB over WiFi (e.g. with this app) and grab the log.
Download:
Google Play Store
Xposed Module Repository
Google+:
www.google.com/+thetonyp
Last but not least an obligatory huge thanks to @rovo89 for his amazing Xposed framework!
If you like this module don't forget to press thanks, rate this thread with 5 stars, consider a donation etc. etc.
:fingers-crossed:​

			
				
I love your icon pack!
Tried it on my cm12.1. No bootloops here. Will edit after full uncharging
EDIT: Turned turning on full brightness, hot spot, gps, flashlight, mobile data, etc... Still 8% to go. Your module and me are waiting eagerly lol
EDIT2: Finally reached 0
And tonyp, I am pleased to say your module works in cm12.1
Suggestion: Make the dialog box closable. So if I am playing a game or writing to a File I can save my progress. Hope you understand.
And I appreciate your idea. Well implemented.
And do you mind sharing that icon pack :hungry:
Samsung galaxy s3 i9300 4.3 mk6 stock rom, bootloops.
Sent from a stolen phone!
Bootloop on Nexus 4, Stock Android 4.3.3...
EDIT Because OP asked how the bootloop occurs on Nexus 4, Android 4.3.3:
Bootloop occurs after activating module and normal (not soft) reboot.
Before reboot app can be runned and configurated.
I have no log app running, so I'm not able to deliver logs.
Yes, please send me a logcat. Bootloops are great, then you can just get the log after the reboot. I literally can't do anything without a log.
mobihack said:
Tried it on my cm12.1. No bootloops here. Will edit after full uncharging
EDIT: Turned turning on full brightness, hot spot, gps, flashlight, mobile data, etc... Still 8% to go. Your module and me are waiting eagerly lol
EDIT2: Finally reached 0
And tonyp, I am pleased to say your module works in cm12.1
Suggestion: Make the dialog box closable. So if I am playing a game or writing to a File I can save my progress. Hope you understand.
And I appreciate your idea. Well implemented.
And do you mind sharing that icon pack :hungry:
Click to expand...
Click to collapse
Thanks for the feedback, then I will add 5.1 to the compatibility at the Play Store.
Regarding the closable dialog, I made it non closable on purpose but I'll consider adding an experimental feature to change that. At first I'd like to fix the bugs, though.
tonyp said:
Thanks for the feedback, then I will add 5.1 to the compatibility at the
Regarding the closable dialog, I made it non closable on purpose but I'll consider adding an experimental feature to change that. At first I'd like to fix the bugs, though.
Click to expand...
Click to collapse
More suggestions:
Add some animations to the dialog
Add option for an alert tune or notification 1min before
Add buttons to dialog box for shutdown(sometimes I dont like to wait)[optional]
Happy with what you had already done and you forgot me an icon pack
bootloops
Bootloop on MMX Canvas Magnus stock ROM (JB 4.2.1)
akhilkbaby said:
Bootloop on MMX Canvas Magnus stock ROM (JB 4.2.1)
Click to expand...
Click to collapse
I'd like to fix the issue, could you kindly send me a logcat of the bootloop?
Unfortunately there is literally nothing I could possibly do without a log.
mobihack said:
More suggestions:
Add some animations to the dialog
Add option for an alert tune or notification 1min before
Add buttons to dialog box for shutdown(sometimes I dont like to wait)[optional]
Happy with what you had already done and you forgot me an icon pack
Click to expand...
Click to collapse
I'm using the stock dialog which guarantees the highest possible compatibility with other devices.
Regarding the notification, I don't know when the battery will be empty before, so there's no way to display a message one minute before. All I could do is starting the dialog at 1% (which I'm considering for a future version), but that would be quite different.
I like the idea for a shutdown button, an option to include that will be in an upcoming version.
Oh, true, the icon pack is called etched material.
Phone freezes when I get a notification from an app. Specifically when I get a notification from Messenger(Facebook app). Is it possible to grab a log if it freezes and I have to restart?
And to make sure it wasn't anything else, I uninstalled it and the freezing stopped.
Galaxy S4 4.4.2 Stock ROM w/ Root
Thanks
HydraS4 said:
Phone freezes when I get a notification from an app. Specifically when I get a notification from Messenger(Facebook app). Is it possible to grab a log if it freezes and I have to restart?
And to make sure it wasn't anything else, I uninstalled it and the freezing stopped.
Galaxy S4 4.4.2 Stock ROM w/ Root
Thanks
Click to expand...
Click to collapse
This sounds very strange, the module is only hooking into one class which has nothing to do with receiving messages.
Yes, usually it works to log the freeze, just start logging (best would be with adb logcat) before it happens.
Can not install on 4.1
I am trying to install it on my xperia x10 running cm10 but it does not install. Please help me so that I can test the module on it.
I am also experiencing odd behavior on CM 11 M11 on two devices: Nexus 5 and 10.
The behavior I'm seeing is that when the battery is running low, the dialog shows up.
When the countdown completes, the device then reboots (seems to be doing a soft boot) instead of shutting down.
I am running some experiments, on a Nexus 4 and I'm hoping to capture a logcat.
---------- Post added at 02:41 PM ---------- Previous post was at 01:49 PM ----------
Fif_ said:
I am running some experiments, on a Nexus 4 and I'm hoping to capture a logcat.
Click to expand...
Click to collapse
There we go, I have it.
This is a logcat of the behavior I was describing earlier: after the countdown, the system performs a soft reboot instead of shutting down.
I have seen this behavior on Nexus 4/5/10 (mako/hammerhead/manta) on CM11 M11.
The logcat below is on a Nexus 4 running CM11 M11 and Battery Shutdown Manager 0.93:
Code:
I/Xposed ( 1726): BatterySM: invokeOriginalMethod. batteryLevel=2, isPoweredLocked=false, chosenTime=30, alertDialog=null, showedDialog=false, prefScreenOff=false, isScreenOn=true
I/Xposed ( 1726): BatterySM: Showing dialog. batteryLevel=0, isPoweredLocked=false, chosenTime=30, alertDialog=null, showedDialog=true, prefScreenOff=false, isScreenOn=true
I/Xposed ( 1726): BatterySM: AlertDialog is showing, postpone shutdown. batteryLevel=0, isPoweredLocked=false, chosenTime=30, alertDialog=true, showedDialog=true, prefScreenOff=false, isScreenOn=true
I/Xposed ( 1726): BatterySM: AlertDialog is showing, postpone shutdown. batteryLevel=0, isPoweredLocked=false, chosenTime=30, alertDialog=true, showedDialog=true, prefScreenOff=false, isScreenOn=true
D/SystemPanel( 4621): Recorder Update, force=false
I/Xposed ( 1726): BatterySM: AlertDialog is showing, postpone shutdown. batteryLevel=0, isPoweredLocked=false, chosenTime=30, alertDialog=true, showedDialog=true, prefScreenOff=false, isScreenOn=true
D/SystemPanel( 4621): Recorder Update, force=false
I/Xposed ( 1726): BatterySM: AlertDialog is showing, postpone shutdown. batteryLevel=0, isPoweredLocked=false, chosenTime=30, alertDialog=true, showedDialog=true, prefScreenOff=false, isScreenOn=true
D/SystemPanel( 4621): Recorder Update, force=false
I/Xposed ( 1726): BatterySM: Dismiss dialog
W/InputMethodManagerService( 1726): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/AndroidRuntime( 1726): Shutting down VM
W/dalvikvm( 1726): threadid=1: thread exiting with uncaught exception (group=0x415e4ce0)
E/AndroidRuntime( 1726): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 1726): java.lang.NoSuchMethodError: com.android.server.BatteryService#processValuesLocked(java.lang.Boolean)#bestmatch
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:271)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedHelpers.findMethodBestMatch(XposedHelpers.java:284)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedHelpers.callMethod(XposedHelpers.java:947)
E/AndroidRuntime( 1726): at com.thetonyp.batteryshutdownmanager.BatteryDialog$2.onFinish(BatteryDialog.java:258)
E/AndroidRuntime( 1726): at android.os.CountDownTimer$1.handleMessage(CountDownTimer.java:118)
E/AndroidRuntime( 1726): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1726): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 1726): at com.android.server.ServerThread.initAndLoop(SystemServer.java:1289)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1726): at com.android.server.ServerThread.initAndLoop(Native Method)
E/AndroidRuntime( 1726): at com.android.server.SystemServer.main(SystemServer.java:1386)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1726): at com.android.server.SystemServer.main(Native Method)
E/AndroidRuntime( 1726): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1726): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1726): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
E/AndroidRuntime( 1726): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 1726): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 1726): at dalvik.system.NativeStart.main(Native Method)
W/DropBoxManagerService( 1726): Dropping: system_server_crash (1667 > 0 bytes)
I/Process ( 1726): Sending signal. PID: 1726 SIG: 9
I've trimmed the logcat, but it's available to the dev in its entirety, if needed.
Mubasher96 said:
I am trying to install it on my xperia x10 running cm10 but it does not install. Please help me so that I can test the module on it.
Click to expand...
Click to collapse
The module currently requires Android 4.2 or higher. You can't install the module on CM10 as that is based on Android 4.1.
To support Android 4.0 and 4.1 I need to write some custom code which I need some people to test, so everyone interested in this module on a 4.0 or 4.1 device (including CM9 / CM10 etc of course) please write here or send me a PM and I'll contact you as soon as I have a version ready for testing! Can I count you in?
Fif_ said:
I am also experiencing odd behavior on CM 11 M11 on two devices: Nexus 5 and 10.
The behavior I'm seeing is that when the battery is running low, the dialog shows up.
When the countdown completes, the device then reboots (seems to be doing a soft boot) instead of shutting down.
I am running some experiments, on a Nexus 4 and I'm hoping to capture a logcat.
...
I've trimmed the logcat, but it's available to the dev in its entirety, if needed.
Click to expand...
Click to collapse
Thank you very much for the logcat! It contained exactly what I needed!
Thanks to that I identified the issue and pushed out a new version (0.94) to fix it.
It will probably take a couple hours in the Google Play Store to appear, in the meantime you can find the new version at the Xposed Repo or attached to this post.
Additionally this version fixes a potential bootloop cause for devices running Jellybean (4.2 / 4.3).
Could the affected people please test this and confirm? Again, if you manage to get me a log it will make it a lot easier for me to fix any issue whatsoever.
Changelog v0.94:
fixed a soft reboot on Kitkat devices when the countdown reaches 0
fixed a potential bootloop on Jellybean devices
Nice! This is so necessary… I'm gonna test it.
tonyp said:
Thank you very much for the logcat! It contained exactly what I needed!
I believe I identified the issue thanks to the log and pushed out a new version (0.94) to fix it.
It will probably take a couple hours in the Google Play Store to appear, in the meantime you can find the new version at the Xposed Repo or attached to this post.
Changelog v0.94:
fixed a soft reboot on Kitkat devices when the countdown reaches 0
fixed a potential bootloop on Jellybean devices
Click to expand...
Click to collapse
The 0.94 update fixes the soft-reboot after countdown problem for me on CM11 M11 for Nexus 5. I haven't checked the other devices, and won't be any time soon.
Also, I just bought the Pro version on one device.
The Pro option won't unlock on the other devices, I get a "You already own this item." Error.
@tonyp I'm using WSM Manager (Xposed for MIUI) , but this app still ask to download xposed installer. How to fix this?
Fif_ said:
The 0.94 update fixes the soft-reboot after countdown problem for me on CM11 M11 for Nexus 5. I haven't checked the other devices, and won't be any time soon.
Also, I just bought the Pro version on one device.
The Pro option won't unlock on the other devices, I get a "You already own this item." Error.
Click to expand...
Click to collapse
No worries, they're using the same codebase so it will work on all devices.
Thanks a lot for buying pro
That purchase should work on all devices of course sometimes it takes a little while to propagate at Google, when you still have the issue after a couple more hours could you please drop me a PM? I did test the IAP purchases with all possible ways Google offers for me, but unfortunately that's something that could be greatly improved on their side.
exodius48 said:
@tonyp I'm using WSM Manager (Xposed for MIUI) , but this app still ask to download xposed installer. How to fix this?
Click to expand...
Click to collapse
Ah, I didn't know there exists an alternative manager. I'm explicitly checking for the Xposed Installer. You can ignore the warning for now and I will push an update which recognizes the WSM Manager as well
No bootloops on moto g stock 5.0.2

[MOD][XPOSED] Sticky Location Icon Fix

Xposed module to fix the bug in some devices that location icon is shown in the status bar even when there is no app requesting location.
The location notification icon in the status bar is designed only to show when an app is accessing the GPS (a.k.a. high powered location); however, this is broken on some devices where the icon is shown all the time, whether or not there is actually an app requesting high powered location. This Xposed module makes sure that the location icon shows up only when it should.
Should work on Android 5.0+.
(As a side benefit, you can check the Xposed log for which packages had accessed or are still accessing high powered location ).
Get it in the Xposed repo:
http://repo.xposed.info/module/com.xinlu.location_icon_fix
Source code URL:
https://github.com/xinluh/Xposed-StickyLocationIconFix
Some technical details of the fix:
The icon change is trigger by an intent from the LocationManagerService, but whether the icon is visible or not is determined by whether any app is currently using the high powered location permission in the AppOps package. I spent a long time tracking down if LocationManagerService is sloppy in forgeting to tell AppOps that a location request is no longer active, but the problem seems to stem from other packages requesting the location permission directly from AppOps without shutting it down properly. So, in essense, whenever the status bar is checking for high powered location requests, there are always active requests in the AppOps package which did not come from LocationManagerService.
The fix, without figuring out where those AppOps requests come from (they seem to come from close source Google services), is to keep track of the intent sent from LocationManagerService without invoking AppOps; to do that, I modified the intent sending code to send also package name and the on/off status. The side effect is that the android.location.HIGH_POWER_REQUEST_CHANGE broadcast is now sent twice, once without and once with the extra information. This side effect can easily be fixed by changing the intent action, but no other packages seem to use it (and it is a system level broadcast, so no user app should be using it).
Excellent.
Thanks a lot.
Ceased working with xPosed 86. Logs forthcoming once ROVO89 tells me what to look for. But I kinda worry this project is abandonware? Can I get a confirm/denial?
Details of why xPosed v86 stops can be found in this info.
rovo89 said:
Finally, a word to all module developers: In v84, I added a warning when a module's APK includes the Xposed API classes instead of just referencing them. I have also sent an email to the developers of all modules I could identify. With v86, I will turn the warning into an error and prevent the module from loading, as it could causes strange issues otherwise. Please update your module as soon as possible.
Click to expand...
Click to collapse
Error log, proving 86 difference has broken module
Code:
07-08 11:13:37.659 I/Xposed ( 383): -----------------
07-08 11:13:37.659 I/Xposed ( 383): Starting Xposed version 86, compiled for SDK 23
07-08 11:13:37.659 I/Xposed ( 383): Device: Nexus 6 (motorola), Android version 6.0.1 (SDK 23)
07-08 11:13:37.659 I/Xposed ( 383): ROM: N6XShamuM v2.2.3 - MOB30M - HeckNoTechnO
07-08 11:13:37.659 I/Xposed ( 383): Build fingerprint: google/shamu/shamu:6.0.1/MOB30M/2862625:user/release-keys
07-08 11:13:37.659 I/Xposed ( 383): Platform: armeabi-v7a, 32-bit binary, system server: yes
07-08 11:13:37.659 I/Xposed ( 383): SELinux enabled: yes, enforcing: no
07-08 11:13:39.979 I/Xposed ( 383): -----------------
07-08 11:13:39.981 I/Xposed ( 383): Added Xposed (/system/framework/XposedBridge.jar) to CLASSPATH
07-08 11:14:11.057 I/Xposed ( 383): Detected ART runtime
07-08 11:14:11.062 I/Xposed ( 383): Found Xposed class 'de/robv/android/xposed/XposedBridge', now initializing
cut
07-08 11:14:36.137 I/Xposed ( 383): Loading modules from /data/app/com.xinlu.location_icon_fix-1/base.apk
07-08 11:14:36.381 E/Xposed ( 383): Cannot load module:
07-08 11:14:36.381 E/Xposed ( 383): The Xposed API classes are compiled into the module's APK.
07-08 11:14:36.381 E/Xposed ( 383): This may cause strange issues and must be fixed by the module developer.
07-08 11:14:36.382 E/Xposed ( 383): For details, see: http://api.xposed.info/using.html

Categories

Resources