Greenify Hibernating Running Foreground apps after recent Cyanogenmod update - Greenify

I apologize if creating a new thread was wrong but this issue is a big one. Developers must notice this.
Greenify is undoubtedly one of most amazing apps that exist. thus such issues are frustrating.
Greenify was smart enough to not put running foreground apps (music players, maps or any app in use) to put into hibernation. it used to say "not hibernating xyz" .
I am on CM12.1 20150820 nightly. Using greenify 2.7beta5 . rooted. (no xposed)
Greenify was working just fine till i was on Cm version 20150811.
Basically it is unusable now. Either you don't use Greenify or keep the display on forever.
Please fix this guys . It was a greaaaaaaaaaaaaaaaat feature.

I do not know whether this is related to recent CM updates, but I am also running Greenify on CyanogenMod 12.1 (20150816 nightly) and Greenify is hibernating Spotify while it is playing (despite it's ongoing event notification). If I remember correctly, previously Spotify was not hibernated while playing in background (however I am not 100% sure). Both Greenify latest stable and latest beta versions have this issue (I was running stable and then updated to beta while trying to resolve this issue). Can anyone else confirm this?
Could @oasisfeng look at this?
Probably we should continue discussion in this thread.

2.7 Beta 6 is rolling out with a new implementation to detect foreground app via the app usage stats permission.
But unfortunately, this new implementation can only detect foreground app, but not background app with on-going notification. The latter will be supported in a future version, due to its implementation complexity.

oasisfeng said:
2.7 Beta 6 is rolling out with a new implementation to detect foreground app via the app usage stats permission.
But unfortunately, this new implementation can only detect foreground app, but not background app with on-going notification. The latter will be supported in a future version, due to its implementation complexity.
Click to expand...
Click to collapse
Music player still hibernating altough playing music :/
Hope you find a workaround...

oasisfeng said:
2.7 Beta 6 is rolling out with a new implementation to detect foreground app via the app usage stats permission.
But unfortunately, this new implementation can only detect foreground app, but not background app with on-going notification. The latter will be supported in a future version, due to its implementation complexity.
Click to expand...
Click to collapse
Thanks! Have you identified changes in CM creating this problem? CM guys are great, but sometimes they make bugs too! Once my Jelly Bean 4.x Airplane Mode Helper (btw working on Lollipop as well) got broken by a change in CyanogenMod/android_frameworks_base. I informed authors of the change about side effects (broken APIs) of that change and they got fixed pretty soon.
If the Greenify breaking API changes were introduced by CyanogenMod (and not by Google), then IMHO @oasisfeng should inform CyanogenMod team about the fact they have broken API compatibility with native Android, and most likely CM will fix the broken APIs. I think best way to do it is by writing comments in CyanogenMod's Gerrit to the breaking patch sets.

DavisNT said:
Thanks! Have you identified changes in CM creating this problem? CM guys are great, but sometimes they make bugs too! Once my Jelly Bean 4.x Airplane Mode Helper (btw working on Lollipop as well) got broken by a change in CyanogenMod/android_frameworks_base. I informed authors of the change about side effects (broken APIs) of that change and they got fixed pretty soon.
If the Greenify breaking API changes were introduced by CyanogenMod (and not by Google), then IMHO @oasisfeng should inform CyanogenMod team about the fact they have broken API compatibility with native Android, and most likely CM will fix the broken APIs. I think best way to do it is by writing comments in CyanogenMod's Gerrit to the breaking patch sets.
Click to expand...
Click to collapse
Unfortunately, it's an upstream change in AOSP made by Google. So I bet we have little chance arguing that change.

oasisfeng said:
Unfortunately, it's an upstream change in AOSP made by Google. So I bet we have little chance arguing that change.
Click to expand...
Click to collapse
Thanks! I know from discussion on Google+ about the CyanogenMod 12.1 Change 105861 that is comming from AOSP and has broken Greenify.
Could you please try adding
Code:
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
to the manifest of next beta? Then I could do
Code:
pm grant com.oasisfeng.greenify android.permission.INTERACT_ACROSS_USERS_FULL
as root, test Greenify and report back to you whether this has resolved the issue.
Permission name INTERACT_ACROSS_USERS_FULL comes from Change 105861, file ActivityManagerService.java line 12547 (in Patch Set 1). Looks like either INTERACT_ACROSS_USERS_FULL or REAL_GET_TASKS permission is required.
Update! Sorry! Looks like nor android.permission.INTERACT_ACROSS_USERS_FULL, nor android.permission.REAL_GET_TASKS can be granted by pm grant.

@oasisfeng May be getActiveNotifications() from NotificationListenerService could help detecting applications having ongoing event notifications (by checking isOngoing() and getPackageName() of returned notifications)?

Hope this issue gets fixed :/

@oasisfeng
Any news?

I have exactly the same problem with greenify and cm12.1 (on latest nightly). Effectively removes all the benefits of greenify and turns it into a liability when it shuts down apps I'm relying on. Obviously I am not complaining about the dev as it isn't their fault at all, but it is really annoying.

iamnotkurtcobain said:
@oasisfeng
Any news?
Click to expand...
Click to collapse
The issue has been fixed in version 2.7 beta 8.
Many thanks to @oasisfeng for quick solution!

not working yureka cm 12.1..lollipop 5.1.1 not rooted.. any solution?

Related

[Mod][Xposed] Keepchat

Hey guys, sad announcement unfortunately.
I knew it was coming soon, since they were actively blocking my mods. I just received a cease and desist letter from Snapchat's lawyers for infringement of their intellectual property. And they're right, I am infringing their intellectual property. I won't be taking any further risks and will comply with their requirements to settle. I have and am going to remove everything, including SnapMod, Keepchat and Snapshare.
It's been a fun ride. I really loved developing it and really improved my skills. But I knew it had to stop some time. I understand they're not happy with it and there's no other option than to honour their requests. I'm going to think of something else to develop, of course it'll be open source. Something like an app (don't know what yet) or rom development for example. New challenges, new things to learn.
I'm going to remove everything from AndroidFileHost and the Xposed repository, ask the mods to close this thread and remove it after a few days, when most of you have had the chance to read this message.
I'm really sorry guys, I hope you understand I have to quit. I do understand them. Thanks for being such a loyal community.
P1nGu1n
XDA:DevDB Information
Keepchat, Xposed for all devices (see above for details)
Contributors
P1nGu1n_, sturmen, stammler and Ramis
Xposed Package Name: com.ramis.keepchat
Version Information
Status: Stable
Current Stable Version: v4.3.0
Stable Release Date: 2015-01-31
Created 2014-10-24
Last Updated 2015-02-10
Changelog
Changelog
Updates can be downloaded from Xposed Installer.
Note: uninstall Keepchat version prior to v4.0.0, otherwise it will refuse to install.
v4.3.0 - 2015-01-31
This version is compatible with Snapchat 9.0.1.0 up to 9.0.2.0.
Save images from the chat
Usage: long press the image in the chat you want to save and it's saved.
v4.2.3 - 2015-01-30
This version is compatible with Snapchat 9.0.1.0 up to 9.0.2.0.
Fix sweep to save:
In Snapchat 9.0.x they changed the way snaps are loaded. They used load the image/video once the timer of the previous one was finished. However, in the newer versions they load the next snap while the current one is viewed. When sweep to save was performed, it used to save the latest snap. This didn't work properly any more, because they load the next one in advance and so the latest loaded snap is the next one, resulting in the next image being saved when performing the gesture on the current one. This is worked around now. :good:
v4.2.2 - 2015-01-29
This version is compatible with Snapchat 9.0.1.0 up to 9.0.2.0.
Snapchat v9.0.1.0 and 9.0.2.0 compatibility
Updated translations
v4.2.1 - 2015-01-20
This version is compatible with Snapchat 8.1.0 up to 8.1.2.
Added Urdu (Pakistan) and Vietnamese translations
Updated many translations
v4.2.0 - 2015-01-03
This version is compatible with Snapchat 8.1.0 up to 8.1.2.
Added Sweep to Save
Just swipe back and forth in any direction with the finger you were already holding the screen with (to view the snap) and it'll save. Replaces the ask-to-save functionality.
Added minimum timer duration
You can set how long at least you can view a snap. Especially useful in combination with Sweep to Save so you have a few settings minimum to decide if you want to save it.
Added Korean and partially Romanian translation
Updated translations
v4.2.0-beta1 - 2014-12-30
This version is compatible with Snapchat 8.1.0 up to 8.1.2.
Replaced the ask-to-save functionality by the brand new Sweep to Save mode! Just swipe back and forth in any direction with the finger you were already holding the screen with (to view the snap) and it'll save.
v4.1.0 - 2014-12-25
This version is compatible with Snapchat 8.1.0 up to 8.1.2.
Compatibility with Snapchat v8.1.0+
Rewrote the whole core of the application
Improved Czech, Spanish and Turkish, partially added Chinese Traditional.
v4.0.1 - 2014-12-08
This version is compatible with Snapchat 5.0.38.1 up to 8.0.1.
I'm proud to announce that Keepchat is fully translated to 17 languages; Arabic, Brazilian Portuguese, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hungarian, Italian, Norwegian, Polish, Portuguese, Spanish and Swedish! Thereafter it's partially translated to Russian and Turkish. This is al done by you, the community! You can still contribute by voting for translations, improving them if necessary and by bringing Keepchat to new languages. Click here to help.
Many new and updated translations
Small internal improvements
v4.0.0 - 2014-11-20
This version is compatible with Snapchat 5.0.38.1 up to 8.0.1.
Mainly internal improvements: refactoring and simplifying code
Option to sort by username without having to sort by category
Added option to hide the app from your launcher
Rearranged preferences
New icon, matching Snapchat and Snapshare
Added Danish, Dutch, Finnish, French, Italian and Norwegian translations
Removed Google Analytics and thus internet permission
Transfer - 2014-10-24
Ramis transferred the project to me, I'll be improving the module and adding new features in the next weeks. Thread created and repo cloned.
Previous versions released by Ramis:
Code:
3.6.3
-- Fixed support for snapchat 5.0.38.2
3.6.2
-- Support for latest snapchat 5.0.38.2
3.6
-- Bug fix
3.5.9
-- Added support for the 5.0.34.4
3.5.7
-- Small bug fix
3.5.5
-- Updated to support 5.0.32.1 and above
3.5.2
-- Support for 5.0.27.1 added
3.5
-- Removed support for older versions
-- Only works with the current stable ( 5.0.23.0 )
-- Included google analytics
3.2.3
-- Added support for the latest beta 4.1.13
3.2.2
-- Added support for the latest beta 4.1.12 and 4.1.11
3.2
-- Added support for the latest beta 4.1.11
-- Made a few changes with how settings work and it should fix the problems people have
3.1.8
-- Disabled support for saving sent snaps for these three beta (4.1.08, 4.1.09 and 4.1.09) due to major changes in snapchat code
-- Added new setting to save snaps into sub-folders by user name
3.1.7
-- Fixed small bug introduced by last version
-- Also trying a potential fix for the settings not being applied error
3.1.6
-- Added support for latest snapchat beta 4.1.07 and 4.1.07 Stable
3.1.5
-- Added support for latest snapchat beta 4.1.06
3.1.4
-- Added support for 4.1.05 including the beta
3.1.2
-- Added support for the latest Stable 4.1.03
-- Fixed a major bug for older versions of snapchat
3.1.1
-- Added support for the latest beta 4.1.03
3.1
-- Added support for all snapchat version 4.1.01 Beta and below. (Includes the 4.1.01 stable)
-- Fixed a bug with settings
-- Fixed a bug with the dialog boxes
3.0.4 Beta
-- Hopefully fixed getting reported bug for stories
-- Works with 4.0.22 Beta now
3.0.2
-- Fixed bug that caused Errors 1, 2, 3
-- Added new setting for sorting images into folder
-- Little changes to make logs better
3.0.1
-- Small update to the debugging code (no need to update really unless you want to help debug errors)
3.0 Settings added!
-- Initial Release
Snapchat compatibility
Snapchat compatibility
This post lists the latest compatible Keepchat version for every Snapchat version. Every Keepchat version can be downloaded from both Xposed Installer and GitHub
Snapchat 9.0.1.0 up to the latest
Keepchat v4.2.3
Snapchat 8.1.0 up to 8.1.2
Keepchat v4.2.1
Snapchat 5.0.38.1 up to 8.0.1
Keepchat v4.0.1
Snapchat 5.0.23.0 up to 5.0.38.3
Keepchat v3.6.3
@P1nGu1n_
Thanks for taking this over. I'm very happy that development will continue
Tnx!
As i asked in previous topic..
I would like to have folder snapchat in gallery( like camera folder, download folder,..) Now i have different snapchat users folders..
I would like to have main folder "snapchat" and in there subolders of users...
Tnx
Sent from my A0001 using Tapatalk
ddasd said:
I would like to have folder snapchat in gallery( like camera folder, download folder,..) Now i have different snapchat users folders..
I would like to have main folder "snapchat" and in there subolders of users...
Click to expand...
Click to collapse
Just go into settings and change the destination folder, I have all my snaps save to one folder and have done for the whole time using keepchat. That would be the only way, its down to the gallery app, not keepchat. Gallery apps just look for images in a folder, with no sub directories.
Adam3Sixty said:
Just go into settings and change the destination folder, I have all my snaps save to one folder and have done for the whole time using keepchat. That would be the only way, its down to the gallery app, not keepchat. Gallery apps just look for images in a folder, with no sub directories.
Click to expand...
Click to collapse
I like that i have for every user own folder.. but i would love to have in "gallery" there only one folder ( like keepchat or snapchat.. or what ever)
folders:
https://drive.google.com/file/d/0B5K0CX82qr0bT1FOZjBxQkxzVlk/view?usp=sharing
gallery:
https://drive.google.com/file/d/0B5K0CX82qr0bSGE5U3pxZlBmQms/view?usp=sharing
here i want to have main folder and inside this snapchat users folders... if its possible and if u guys understand what i am trying to say
tnx!
ddasd said:
I like that i have for every user own folder.. but i would love to have in "gallery" there only one folder ( like keepchat or snapchat.. or what ever)
folders:
https://drive.google.com/file/d/0B5K0CX82qr0bT1FOZjBxQkxzVlk/view?usp=sharing
gallery:
https://drive.google.com/file/d/0B5K0CX82qr0bSGE5U3pxZlBmQms/view?usp=sharing
here i want to have main folder and inside this snapchat users folders... if its possible and if u guys understand what i am trying to say
tnx!
Click to expand...
Click to collapse
That has nothing to do with Keepchat. Keepchat only saves the images, it's up to your gallery app how it displays those pictures. If you want that, you should look for a gallary app which meets your needs.
P1nGu1n_ said:
That has nothing to do with Keepchat. Keepchat only saves the images, it's up to your gallery app how it displays those pictures. If you want that, you should look for a gallary app which meets your needs.
Click to expand...
Click to collapse
What he said.......
(And I did actually say in my first post, lol)
Thanks for taking over Keepchat! And also thanks to @Ramis for all of this work. And for the people before him.
Hope you can keep this up-to-date with Snapchat versions and very much luck!
Thanks!
@P1nGu1n_ what's your first plan of attack pal?
@P1nGu1n_ So I have no idea how much work this would involve or even if you support the idea, but given Xposed's lack of support for ART in the foreseeable future, what are your thoughts on forking this project into a standalone app?
I know there are currently a handful of Snapchat clones that support saving snaps, but they are all either horribly outdated (e.g. no support for stories or messages) or frighteningly unsafe (The Snappening). I think an open-source, up-to-date app from a trusted dev would fill a big hole for users who can't root their device or install the Xposed framework.
I hope I'm not coming across as entitled or ungrateful, I'm just a regular Keepchat and Snapshare user, and losing both after updating to Lollipop kind of sucks. Having a Snapchat alternative that would work on Android 5.0 and be available on something like f-droid would be awesome.
f0xy said:
@P1nGu1n_ what's your first plan of attack pal?
Click to expand...
Click to collapse
First I'm going to convert the project from Eclipse to gradle (Android Studio). Second I'm going to refactor and clean the code, mainly internal improvements. Than I'm going to look into making the captions on videos optional. Of course I'll add support for new versions when it's necessary. That's it at the moment, don't know any other features to implement yet. If anyone has suggestions (and I mean only doable and useful features), I'm open to it
And yes, I'm sorry I haven't start working on Keepchat yet. I've been so busy this week and I took this project over unexpectedly, but it was a no-brainer.
Wondersnite said:
@P1nGu1n_ So I have no idea how much work this would involve or even if you support the idea, but given Xposed's lack of support for ART in the foreseeable future, what are your thoughts on forking this project into a standalone app?
I know there are currently a handful of Snapchat clones that support saving snaps, but they are all either horribly outdated (e.g. no support for stories or messages) or frighteningly unsafe (The Snappening). I think an open-source, up-to-date app from a trusted dev would fill a big hole for users who can't root their device or install the Xposed framework.
I hope I'm not coming across as entitled or ungrateful, I'm just a regular Keepchat and Snapshare user, and losing both after updating to Lollipop kind of sucks. Having a Snapchat alternative that would work on Android 5.0 and be available on something like f-droid would be awesome.
Click to expand...
Click to collapse
That would involve an enormous amount of work. There's no point forking this project, this 100% depends on Xposed and has no future without it.
I do get what you mean and I agree with you, there are no great alternatives at the moment. Another app not requiring Xposed would still require root, because it needs to get the images from the data folder from Snapchat. The only solution not requiring root is modifying a Snapchat APK, which sucks, as you stated yourself. My OnePlus One will get Android L in 3 months, I hope Xposed will be compatible by then. If not, I might create an app for it, but that will require root. So I'm sorry, I can't help you at the moment. Keepchat really is the best solution at the moment and it is open source.
@P1nGu1n_ I can't wait for you to begin work. Can you make the first order to get this thing working again. This latest update doesn't work anymore. Just on stories. Good luck with it.
keithsmith22 said:
@P1nGu1n_ I can't wait for you to begin work. Can you make the first order to get this thing working again. This latest update doesn't work anymore. Just on stories. Good luck with it.
Click to expand...
Click to collapse
Working on it at the moment
Which latest update? The latest update is 5.0.38.2 as far as I know and everything is fully working on it.
P1nGu1n_ said:
Working on it at the moment
Which latest update? The latest update is 5.0.38.2 as far as I know and everything is fully working on it.
Click to expand...
Click to collapse
Yes. Release 3.6.3 for Snapchat 5.0.38.2 is not working. It does the stories but nothing else.
keithsmith22 said:
Yes. Release 3.6.3 for Snapchat 5.0.38.2 is not working. It does the stories but nothing else.
Click to expand...
Click to collapse
Works perfect for me
Sent from my SM-G900F using Tapatalk
keithsmith22 said:
Yes. Release 3.6.3 for Snapchat 5.0.38.2 is not working. It does the stories but nothing else.
Click to expand...
Click to collapse
Running 3.6.3 with Snapchat 5.0.38.2, several people confirmed it working. Probably something's not working on your side, can you enable debugging in settings, try to save a snap and post your log? Might give us a clue about what's going on and why it's not working for you.
P1nGu1n_ said:
Running 3.6.3 with Snapchat 5.0.38.2, several people confirmed it working. Probably something's not working on your side, can you enable debugging in settings, try to save a snap and post your log? Might give us a clue about what's going on and why it's not working for you.
Click to expand...
Click to collapse
Will do when I get home. Thanks for the quick response.
P1nGu1n_ said:
Running 3.6.3 with Snapchat 5.0.38.2, several people confirmed it working. Probably something's not working on your side, can you enable debugging in settings, try to save a snap and post your log? Might give us a clue about what's going on and why it's not working for you.
Click to expand...
Click to collapse
I did an uninstall/ fresh reinstall of both snapchat and the module and it is working fine. Not sure what the glitch was about I am good to go. Thanks.

[XPOSED][AD-BLOCKER] AdBlocker Reborn

This is the reborn version of Adblocker, which helps you block advertisements from various Ad-Network.
It can block advertisements in many aspects according to a pre-loaded-list, such as activities, views, hosts-based, webview-based, receivers and many many more.
It does not affect system hosts file, and does not conflict with it either. It also has whitelist feature so you can easily control it. You can also use it along with AdAway or other adblockers to extend its power, especially built-in app ads.
This module is being actively developed, and I will update it about every ten days. If you have any issues or want to contribute to the project, feel free to contact me via Github or XDA.
MOD EDIT
Numerous reports from users of certain devices that this module can disable things, cause erratic behaviour and other issues, have been reported.
Specifically, most of these seem to be related to users of Xiaomi's Mi-line of devices. In the case of these devices, the module can cause behaviour such as stopping the launcher and removing some options from settings, making the module difficult to remove.
Proceed with your own caution, and preferably a backup to restore if you encounter such erratic behaviours. This will also be posted in the OP of the thread.
There are varying alternatives that work well. This module has also NOT been updated at all lately, and it's recommended that users seek alternatives.
Download:
http://repo.xposed.info/module/com.aviraxp.adblocker.continued
Features:
- Activityies Block
- Views Block
- Hosts Block (Not affect system hosts file)
- WebView Block
- Services Block
- Receivers Block
- .............
Principle of Work:
I hook some fundamental classes and methods of Android system, check if they are included in a pre-loaded-list (maintained by me), and break the calling of these classes and methods if included. There might be some false positives so feel free to contact me.
FAQs:
- How does it work compared to AdAway and MinMinGuard?
AdAway modifies system hosts file to redirect some ad servers to local host, thus prevent from accessing them. MinMinGuard blocks some prebuilt app Ad providers from taking effect. My application have both of their features, and extends by blocking services and receivers.
- Where is the hosts' source?
Now, it covers Dan Pollock's hosts and some app specific blocking hosts. I am searching for good sources which is simple and effective. If you have some suggestions, feel free to let me know.
- Why does not it take effects to some browsers?
The reason is basically the same as unbeloved hosts. Some browsers have their own network solutions which conflict with the normal handling method. But for browsers which simply use original WebView loading method it works well.
- There are some false positives!
Contact me via Github or here. You can also use the whitelist feature. For element whitelist, just enable debug logging, find the element(activities, hosts, views...) according to a 'block success' line, and add them to the whitelist. Each element takes one line.
- I need to view ads for some reason.
Use the whitelist feature. However, some apps uses Android System WebView as an elements loader, so you should whitelist it too. But this will ramp down the power of blocking. I am working on a better whitelist feature.
- I want to donate to you for your work.
Use the PayPal donation option:https://www.paypal.me/wanghan1995315. But it will not make any difference or be a privilege for you. There is no such thing as advanced support.
- How can I contribute to you if I found something useful (hosts, Ad SDKs)?
I am working on a block list repo on Github. Feel free to open a pull request.
XDA:DevDB Information
AdBlocker Reborn, Xposed for all devices (see above for details)
Contributors
aviraxp
Source Code: https://github.com/aviraxp/AdBlocker_Reborn
Xposed Package Name: com.aviraxp.adblocker.continued
Version Information
Status: Stable
Current Stable Version: 1.5.1
Stable Release Date: 2017-03-13
Created 2017-02-11
Last Updated 2017-04-18
CHANGE LOG:
1.1.1:
- Fix an incremental bug which causes many false positives
- Add system apps protection
- Add shortcut block (all credits to apsun)
- Various Fixes
1.1:
- Add more builtin hosts
- Replace regular expression with Easylist rules to improve performance
- Tweak default preferences (Hiding is disabled and WebView Block is enabled)
- Introduce element whitelist
- Implement system framework apps protection
- Various fixes
1.0.2:
- Implement aggressive block toggle
- Add XDA link and PayPal donation
- Improve blocking effect by importing blacklist from AdScanner
- Address more false positives
Works flawlessly. Had some issues with MinMinGuard. I am currently using AdAway+Adblocker Reborn. Everything is perfect.
Version 1.0.2 has been updated. If you meet any issues feel free to contact me.
Sent from my OnePlus2 using XDA Labs
works perfect atm,thanks
works as expected. great
Thank you for your work. Could anyone confirm if this module impact (negatively) battery duration ?
IgorMarinho said:
Thank you for your work. Could anyone confirm if this module impact (negatively) battery duration ?
Click to expand...
Click to collapse
From my personal experience, it does not have any evident effect on battery. But to be honest, every exposed module will affect battery since the phone now has more work to do, which is implemented by the module. I will keep the battery consumption as low as possible.
Sent from my OnePlus2 using XDA Labs
Uhm what exactly is the reason I should use this. I just tested a website for adblock check, whereas adaway active lead to first pic.
Disable adblock and enable this tool and restart lead to the second one. So obviously the ad had not been blocked by this mod.
Is your mod for ads in games or how should i understand that?
Just a bit confused, sry
Awesome module
What can this xposed module/app do that THIS APP can't? Just curious, thanks!
@aviraxp thanks a ton!! Obviously does the trick especially when it comes to being redirected to a million other places then what I clicked on. In that sense, that is something that adway does not do no matter what host file/s I use as well as adguard and minminguard. There were a couple sites I just about swore off because it was impossible to do anything as far as a navigation goes but I can do as I like now thank you very much.
pieceofphil said:
Uhm what exactly is the reason I should use this. I just tested a website for adblock check, whereas adaway active lead to first pic.
Disable adblock and enable this tool and restart lead to the second one. So obviously the ad had not been blocked by this mod.
Is your mod for ads in games or how should i understand that?
Just a bit confused, sry
Click to expand...
Click to collapse
I guess you are using Opera, right? Opera has its own proxy solution and unfortunately it does not use the system web view, thus I cannot get it work with the same reason as UnbelovedHosts. I am still searching for more stable hooking methods.
Sent from my OnePlus2 using XDA Labs
@aviraxp Does this continuation of "pl.cinek.adblocker" ?
exodius48 said:
@aviraxp Does this continuation of "pl.cinek.adblocker" ?
Click to expand...
Click to collapse
Generally, yes. But his code only covers about 10% of this app. You can think this is a new app too.
Sent from my OnePlus2 using XDA Labs
aviraxp said:
Generally, yes. But his code only covers about 10% of this app. You can think this is a new app too.
Sent from my OnePlus2 using XDA Labs
Click to expand...
Click to collapse
Nice.
Just a feature request, hope this app can block all miui ads. :angel:
exodius48 said:
Nice.
Just a feature request, hope this app can block all miui ads. :angel:
Click to expand...
Click to collapse
Sadly I do not have xiaomi devices. For MIUI, you can use other tools like RootToolsNeo.
Sent from my OnePlus2 using XDA Labs
aviraxp said:
Sadly I do not have xiaomi devices. For MIUI, you can use other tools like RootToolsNeo.
Sent from my OnePlus2 using XDA Labs
Click to expand...
Click to collapse
Ah..ok, nevermind.
Just gave the module another go, still having the same issue.
I'm playing this game : Animation Throwdown the Quest for Cards, and i have minminguard installed and the game whitelisted, the game offers ads in exchange for some increased drop rates, and you have to click on the watch button for the ads to start, which in my setup works well.
When i install this module, activate, whitelist the game, reboot (exact steps), clicking the watch ads button in game does nothing, rebooting doesn't change anything.
Once i disable/remove the module and reboot i can run the ads again, haven't tried with other apps since i don't have any others with ads in them tbh.
ticktock666 said:
Just gave the module another go, still having the same issue.
I'm playing this game : Animation Throwdown the Quest for Cards, and i have minminguard installed and the game whitelisted, the game offers ads in exchange for some increased drop rates, and you have to click on the watch button for the ads to start, which in my setup works well.
When i install this module, activate, whitelist the game, reboot (exact steps), clicking the watch ads button in game does nothing, rebooting doesn't change anything.
Once i disable/remove the module and reboot i can run the ads again, haven't tried with other apps since i don't have any others with ads in them tbh.
Click to expand...
Click to collapse
I am addressing this issue, but I need more info. Does every time you click the ads it does nothing?
Sent from my OnePlus2 using XDA Labs

What about making Greenify Open Source?

See also https://forum.xda-developers.com/ap...e-greenify-t3704967/post76590137#post76590137.
The advantages:
1. others trust your project more because they can check the source code themselves
2. (optionally, you do not have to let others work on your project) others can not only report bugs & freature requests, they can also fix & implement things.
@oasisfeng What do you think? If you do not want, just tell me.
hcur said:
@oasisfeng What do you think? If you do not want, just tell me.
Click to expand...
Click to collapse
There's no plan in the recent future to open source Greenify, mainly due to the risk of app background control mechanism being gamed by bad apps.
There were already many apps tried to trick the working mode detection algorithm of Greenify to treat them as working in the background, thus not hibernated as expected.
Greenify has constantly improved the detection algorithm in the past, to defeat the ever advancing behaviors of bad apps. It's really a hard battle. Open sourcing Greenify will only make it more vulnerable to bad apps.

Two problem about creating shourcut and Wake-up Tracker

Thx for reading, and please forgive my poor English.
The Greenify is the best app I had been used for cut-off apps. But I found that there are two problem:
(My phone is Xiaomi MI MIX 2S running MIUI 10 8.6.18 [Android O], with Greenify Version 4.1)
1. Can not create hibernation shortcut
When I tried to create a hibernation shortcut, the Greenify noticed that the creating was succeed. But I can not find out the shortcut in my launcher. Neither type of shortcut can be created. And I don't know why and how to fix it.
An additional detail:
when I used the permission manager to make sure that the Greenify need to request my approval to create a shortcut and then I tried to create a hibernation shortcut, there was no prompt box for requesting approval (Under normal circumstances there should be a prompt box). It seemed that somehow the Greenify did not work properly in shortcut creating.
2. Wake-up Tracker often disabled for unknown reasons
I enabled Wake-up Tracker and after a while I found that Wake-up Tracker had been disabled. Then I enabled again, after a while it had been disabled again.
Please tell me how to fix these problem, any guidance is appreciated.
AnnAngela said:
Thx for reading, and please forgive my poor English.
The Greenify is the best app I had been used for cut-off apps. But I found that there are two problem:
(My phone is Xiaomi MI MIX 2S running MIUI 10 8.6.18 [Android O], with Greenify Version 4.1)
1. Can not create hibernation shortcut
When I tried to create a hibernation shortcut, the Greenify noticed that the creating was succeed. But I can not find out the shortcut in my launcher. Neither type of shortcut can be created. And I don't know why and how to fix it.
An additional detail: when I set the Greenify need to request permission to create a shortcut and tried to create a hibernation shortcut, there was no prompt box for requesting permission ( Under normal circumstances there should be a prompt box ). It seemed that somehow the Greenify did not work properly in shortcut creating.
2. Wake-up Tracker often disabled for unknown reasons
I enabled Wake-up Tracker and after a while I found that Wake-up Tracker had been disabled. Then I enabled again, after a while it had been disabled again.
Please tell me how to fix these problem, any guidance is appreciated.
Click to expand...
Click to collapse
I am surprised by the details furnished by you including device details, though it is your first post. Usually it is a case of "Unable to create shortcut, anyone has any idea" sort of posts that we encounter. Thanks for providing the details, though I may not be able to offer solutions.
I also faced the Wakeup Tracker issue before I uninstalled Greenify, so I have no solution for this.
Reg. the creation of shortcut, try clearing the data and cache of Greenify/uninstall and reinstall etc. If none of them work, MIUI may be an issue since it reportedly heavily modifies the Android OS.
Having said that, I would advice you to uninstall Greenify and use your phone for a couple of days. You may be surprised by the way the phone behaves even without Greenify.
I am one of the votaries of the belief (with reason) that apps like Greenify are not needed on Oreo since the OS itself behaves very well. Unless you specifically find some app misbehaving which can not be controlled without apps like Greenify, simply enjoy your device.
tnsmani said:
I am surprised by the details furnished by you including device details, though it is your first post. Usually it is a case of "Unable to create shortcut, anyone has any idea" sort of posts that we encounter. Thanks for providing the details, though I may not be able to offer solutions.
I also faced the Wakeup Tracker issue before I uninstalled Greenify, so I have no solution for this.
Reg. the creation of shortcut, try clearing the data and cache of Greenify/uninstall and reinstall etc. If none of them work, MIUI may be an issue since it reportedly heavily modifies the Android OS.
Having said that, I would advice you to uninstall Greenify and use your phone for a couple of days. You may be surprised by the way the phone behaves even without Greenify.
I am one of the votaries of the belief (with reason) that apps like Greenify are not needed on Oreo since the OS itself behaves very well. Unless you specifically find some app misbehaving which can not be controlled without apps like Greenify, simply enjoy your device.
Click to expand...
Click to collapse
Yes, You may not know that, a huge of apps which developed by Chinese companies and provided to Chinese are designed strangely, they are trying their best to stay in background, call up each other and push AD messages in notification bar (sorry if I misspelled), and the companies have some agreements with Chinese OS provider such as Xiaomi to avoid killing their apps in background in Chinese version Android OS.
One of them is Alibaba, which has three most popular app in China, Taobao, Tmall and Alipay. But these three apps are designed to keep alive as much as possible and call up each other very frequently, just for push messages to introduce goods on Taobao and Alibaba's wide range of services, applications and merchandise. (BTW, I believe that a big part of app keep-alive technologies are developed by the programmers in Chinese companies.)
So maybe You can understand my pain. _зゝ∠)_
Adb permission
I need a help. How can i turned on wakeup tracker. I don't know how to give adb permission to greenify. Please post a video. Or screenshot step by step. Please help me. Its urgent for me. I am using Samsung galaxy j200G lollipop 5.1.1 ?
AvishekOfficial said:
I need a help. How can i turned on wakeup tracker. I don't know how to give adb permission to greenify. Please post a video. Or screenshot step by step. Please help me. Its urgent for me. I am using Samsung galaxy j200G lollipop 5.1.1 ?
Click to expand...
Click to collapse
Greenify version? Rooted? Xposed?
For my device details see signature block.
I assume you don't require a video how to search the web. Such a serach with the keyworks "greenify", "help" and "adb" provides e.g. following page at the very top that most likely satisfies your needs.

[Discussion][LSPOSED][Unofficial] XPrivacyLua - Android privacy manager

Since M66B decided to discontinue support for XPrivacyLua and the official thread was closed I'm starting this unofficial thread to continue discussing the module.
It currently works up to android 13 with LSPosed.
Source code can be found at the author's github https://github.com/M66B/XPrivacyLua
FAQ https://github.com/M66B/XPrivacyLua/blob/master/FAQ.md
Please read the original thread as it contains a lot of useful information https://forum.xda-developers.com/t/...-android-privacy-manager-unsupported.3730663/
Disclaimer: I am not the developer of the module. I'm a long time user of XPrivacy/XPrivacyLua who wants to keep using it on future android versions. All credits for this module go to the developer and the people who made the custom hooks.
Best module to date
Thank you for creating new thread for XPL user.
is there a trick to get new apps automatically checked on lsposed? Otherwise, the option that new apps take all rights during installation does not work.
Conan179 said:
is there a trick to get new apps automatically checked on lsposed? Otherwise, the option that new apps take all rights during installation does not work.
Click to expand...
Click to collapse
Not with LSPosed but according to this post you can do it with tasker. I think there's also an LSPosed fork that does it too.
[CLOSED][APP][XPOSED][6.0+] XPrivacyLua - Android privacy manager [UNSUPPORTED]
XPrivacyLua Really simple to use privacy manager for Android 6.0 Marshmallow and later (successor of XPrivacy). Revoking Android permissions from apps often let apps crash or malfunction. XPrivacyLua solves this by feeding apps fake data...
forum.xda-developers.com
mythos_ said:
I think there's also an LSPosed fork that does it too.
Click to expand...
Click to collapse
There is, it's this LSPosed_mod.
I still haven't tried it myself though.
heinhuiz said:
There is, it's this LSPosed_mod.
I still haven't tried it myself though.
Click to expand...
Click to collapse
Yes, since v1.8.5 according the mod changelog:
now user can choose if set automatic add new installed packages to module
fix add column automatic_add when exist
Click to expand...
Click to collapse
@Oswald Boelcke the thread is about XPrivacyLua or about LSPosed ?
Lol
VD171 said:
@Oswald Boelcke the thread is about XPrivacyLua or about LSPosed ?
Lol
Click to expand...
Click to collapse
Hello and good morning, @VD171
I guess you need to address the OP @mythos_ with this question but as far as I understand it's about the Xposed module XPrivacyLua by @M66B and not about LSPosed. If my assumption is correct it's on the OP to decide if LSPosed related questions and contributions are off-topic (OT) or not. A moderator will never get involved to that unless a threadowner (and only the owner) reports something as OT.
Regards
Oswald Boelcke
Senior Moderator
The main focus should be on XPL but since LSPosed is needed to run XPL, I see nothing wrong with discussing it here.
QoL things like how to auto-add new apps to LSPosed are fine. Of course if people want a more in depth discussion (e.g. bugs, new features, etc.) they should post in the LSPosed threads as the developers don't read this.
VD171 said:
@Oswald Boelcke the thread is about XPrivacyLua or about LSPosed ?
Lol
Click to expand...
Click to collapse
Really? Wow...smh
exist an active fork of this app ?
xerves78 said:
exist an active fork of this app ?
Click to expand...
Click to collapse
According to github there is a whole bunch of people who forked it in the past month. How active they will be in the future and (more importantly) how much you can trust them is another issue.
when this project was abandoned by m66b did he opensource the "pro" app?
and is the code available now for free to be built from source?
or is there a link to the last version?
i hope someone keeps working on this, as privacy is more and more important the more stuff is kept on our phones.
nutzfreelance said:
when this project was abandoned by m66b did he opensource the "pro" app?
and is the code available now for free to be built from source?
or is there a link to the last version?
i hope someone keeps working on this, as privacy is more and more important the more stuff is kept on our phones.
Click to expand...
Click to collapse
[CLOSED][APP][XPOSED][6.0+] XPrivacyLua - Android privacy manager [UNSUPPORTED]
XPrivacyLua Really simple to use privacy manager for Android 6.0 Marshmallow and later (successor of XPrivacy). Revoking Android permissions from apps often let apps crash or malfunction. XPrivacyLua solves this by feeding apps fake data...
forum.xda-developers.com
(...) The pro companion app won't be open-sourced. If somebody wants to continue the project, (s)he can prove being a worthy developer by developing a new pro companion app, which can be done in at most a few days. As already offered, another developer can ask for the source code after a significant contribution to the source code as well.
Click to expand...
Click to collapse
I've already reported to @M66B about "MEW wallet" app which can't be restricted (tested on A10) to access camera (not sure is it was photo or video - app is handling QR codes) at https://forum.xda-developers.com/t/...acy-manager-unsupported.3730663/post-87416749.
Now I've installed LineageOS 20 (A13) and noticed default Camera app (which is new "Aperture" Lineage app) also can't be restricted to BOTH video and photo (but microphone restriction works okay and result in recording video without sound).
Looks like there are some new API to be restricted… so, @M66B, maybe you can update XPrivacyLua a bit to fix this? Or at least give some hint for someone who might wanna fork it?
mythos_ said:
Not with LSPosed but according to this post you can do it with tasker. I think there's also an LSPosed fork that does it too.
[CLOSED][APP][XPOSED][6.0+] XPrivacyLua - Android privacy manager [UNSUPPORTED]
XPrivacyLua Really simple to use privacy manager for Android 6.0 Marshmallow and later (successor of XPrivacy). Revoking Android permissions from apps often let apps crash or malfunction. XPrivacyLua solves this by feeding apps fake data...
forum.xda-developers.com
Click to expand...
Click to collapse
I've checked both Tasker methods to update LSPosed.
First one (UI automation) didn't work because there are no "LSPosed Manager" app (it's now started only as a widget, and I don't found a way in Tasker to start widget), so this unlikely can be fixed at all.
Second one (database editing) might work… but to me it looks unsafe: each time new app is installed it does kill `lspd` (LSPosed daemon, I suppose) after editing database for 1 second and then restarts it. I think this might result in allowing app apps to bypass XPrivacyLua restictions within that 1 second. No idea how to test this.
Also I've tried to replace original LSPosed with modified version https://github.com/mywalkb/LSPosed_mod - it works like a charm: installed as drop-in replacement over original one, keeps all configuration of original one after reboot and provide new UI to automatically add new apps to XPrivacyLua module! To me it looks like main and only actual way to continue using XPrivacyLua for now.
mythos_ said:
The main focus should be on XPL but since LSPosed is needed to run XPL, I see nothing wrong with discussing it here.
QoL things like how to auto-add new apps to LSPosed are fine. Of course if people want a more in depth discussion (e.g. bugs, new features, etc.) they should post in the LSPosed threads as the developers don't read this.
Click to expand...
Click to collapse
You might want to add that info to the OP of this thread in order to avoid any further confusion in the future
Cheers
powerman.asdf said:
I've already reported to @M66B about "MEW wallet" app which can't be restricted (tested on A10) to access camera (not sure is it was photo or video - app is handling QR codes) at https://forum.xda-developers.com/t/...acy-manager-unsupported.3730663/post-87416749.
Now I've installed LineageOS 20 (A13) and noticed default Camera app (which is new "Aperture" Lineage app) also can't be restricted to BOTH video and photo (but microphone restriction works okay and result in recording video without sound).
Looks like there are some new API to be restricted… so, @M66B, maybe you can update XPrivacyLua a bit to fix this? Or at least give some hint for someone who might wanna fork it?
Click to expand...
Click to collapse
@M66B won't care with that.
You should do what you want by yourself or wait and hope to someone else release that.
powerman.asdf said:
I've checked both Tasker methods to update LSPosed.
First one (UI automation) didn't work because there are no "LSPosed Manager" app (it's now started only as a widget, and I don't found a way in Tasker to start widget), so this unlikely can be fixed at all.
Second one (database editing) might work… but to me it looks unsafe: each time new app is installed it does kill `lspd` (LSPosed daemon, I suppose) after editing database for 1 second and then restarts it. I think this might result in allowing app apps to bypass XPrivacyLua restictions within that 1 second. No idea how to test this.
Also I've tried to replace original LSPosed with modified version https://github.com/mywalkb/LSPosed_mod - it works like a charm: installed as drop-in replacement over original one, keeps all configuration of original one after reboot and provide new UI to automatically add new apps to XPrivacyLua module! To me it looks like main and only actual way to continue using XPrivacyLua for now.
Click to expand...
Click to collapse
"auto-add" is a waste of time.
LSPosed is developed for avoiding something like "all-add" or "auto-add".
Since you are talking about something that is contrary to the official release, LSPosed developers will never read and care to the thread.
mythos_ said:
According to github there is a whole bunch of people who forked it in the past month. How active they will be in the future and (more importantly) how much you can trust them is another issue.
Click to expand...
Click to collapse
how / where can i find the forks on github ?

Categories

Resources