Cyanogenmod privacy guard port - Android Q&A, Help & Troubleshooting

Has someone ported CM's privacy guard to other androids, to non custom roms? AppOps isn't as good, tried several ones from playstore and even appopsxposed, not as feature rich as privacy guard. Xprivacy is better but complex and overkill, also would require xposed. The built is app permission on Android, doesn't work in some cases and not nearly as functional. Google lies that their apps won't work if you don't enable contacts, call logs etc. I've seen them working fine when disabled those permissions with privacy guard or xposed as rather than blocking permission, they'd give empty contacts or call logs. Anybody has ported apks? I couldn't find anything even after searching a lot. Is it too complex to port or something?

Related

Outrageous App Permissions and Can I Block Them at Will?

There's apps I want to use but I don't see why they need to have access to read my records and have network access.
Is there something that I can control the permissions of apps so I can install what I want and not let it have the permissions it wants?
I thought I had found something before I replace my phone but I can't remember... When I first got the Rezound it was my first smartphone and I installed a lot of apps and didn't pay too much attention to permissions, but this time, on my replacement I'm being more careful and it's interesting to see how many apps ask for permission that they definitely do not need.
Avast! will let you firewall apps, preventing them from getting network access.
PDroid allows you to invidually control each individual permission for every app. However it needs to be baked into the rom.
More info on PDroid 2.0: http://forum.xda-developers.com/showthread.php?t=1923576
Info on Auto-Patching PDroid into a ROM: http://forum.xda-developers.com/showthread.php?t=1719408
Windows tool to patch PDroid into a ROM: http://forum.xda-developers.com/showpost.php?p=31648393&postcount=690
LBE Privacy Guard is what you're thinking of I think
https://play.google.com/store/apps/details?id=com.lbe.security.lite&feature=search_result
CharliesTheMan said:
LBE Privacy Guard is what you're thinking of I think
https://play.google.com/store/apps/details?id=com.lbe.security.lite&feature=search_result
Click to expand...
Click to collapse
Thanks, that's the sort of thing I need. That particular one is getting a lot of bad reviews but they seem to be due to it not working with Jelly Bean. Might give it a go or try one of the other suggestions that come up.
avast! is good as well for blocking network connections, I like that. But there was an app I was looking at that wanted to read my personal stuff and I couldn't see why it should do that so I need something that I can set that sort of thing with.

How to read app's Privacy Guard status (Rom/AppOps integrated version)

Hi guys, I've recently started a personal project to extend the Privacy Guard feature of several custom roms to block certain methods of READ_PHONE_STATE when enabled (eg. getLine1Number)
Since I last looked at the Privacy Guard code it seems to have been integrated into the AppOpsService, and I'm at a loss as how to read the privacy guard status of an app inside framework code to block specific framework methods (blocking the READ_PHONE_STATE permission entirely isn't desirable as there are genuinely useful methods such as detecting phone calls etc)
Given the application context (context.getApplicationContext()) is available in the TelephonyManager class I should be able to check whether privacy guard is enabled for that app in methods I'd like to mask, but I don't know app ops well enough to do this. Does anyone have any examples or pointers? Thanks!
I'm currently working with the Simroms KitKat source, but IIRC the Privacy Guard code was merged from CM.

List of Xposed security related modules.

I am a security conscious guy and am glad I found Xposed and Xprivacy.
Basically I want to make a list of anti spy, anti malware, reverse engineering and log keeping modules for Xposed.
I especially want a log keeping app so that I can find out targeted spyware which warn or keep logs when an app accesses the mic or Camera.
Privacy and antispy:
Xprivacy
ropehanger said:
I am a security conscious guy and am glad I found Xposed and Xprivacy.
Basically I want to make a list of anti spy, anti malware, reverse engineering and log keeping modules for Xposed.
I especially want a log keeping app so that I can find out targeted spyware which warn or keep logs when an app accesses the mic or Camera.
Privacy and antispy:
Xprivacy
Click to expand...
Click to collapse
Use maxlock. An app lock alternative. Extremely awesome app lock app.

[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

is there a device that allows privacy control and hardware keyboard?

First I am looking for a device where I have full privacy control.
This means: If I install something like Skype or Whatsapp I could select manually which contacts should be available for that app. If I deny some rights, the app should be provided with fake data so that it still will run.
Which software and OS will do the job?
The next request unfortunately makes everything more difficult: I'd prefer a device with hardware keyboard.
Unfortunately the Blackberry Priv and Keyone cannot be rooted, so i guess I won't be able to get the privacy control I wish there.
The Galaxy S6/7/8 support a NFC keyboard cover, which won't work with custom ROMs (like Lineage OS). Maybe it would be possible to install Xprivacy on the standard ROM?
Any other ideas?

Categories

Resources