Remove All Ads from XDA

[ROM] pffmod Revoke permissions and Privacy mode. New permissions supported

66 posts
Thanks Meter: 21
By username666, Retired Recognized Developer on 17th March 2011, 11:12 AM
Post Reply Email Thread
New permissions with privacy mode support

Any way there is a new build this one is based on the latest and greatest from CM 7.1. the download link is below.

Privacy mode permissions:
  1. NEW! READ_LOGS - If enabled attempts to read logs will return nothing but will not crash the app.
  2. NEW! READ_HISTORY_BOOKMARKS - If enabled it will return the default bookmarks as you have never changed them and empty history.
  3. READ_PHONE_STATE - You can now make your device return anonymized data from the methods protected with READ_PHONE_STATE permission.

There is a demo app you can use to see the effect of the privacy mode and revoking. Run the app revoke or make private run the app again.
Currently there is no READ_LOGS demo.

ROM info:
  1. Some applications may not work properly with revoked permissions.
  2. You CAN'T revoke permission of SYSTEM applications!
  3. If an application is running changing some permissions like say INTERNET will not be fully applied until the application is restarted.
  4. Google apps are not included. You need to download them separately and flash them right after the ROM.
  5. You uses it at your own risk and I cannot be held responsible for the consequences.

Some technical stuff:
If an application checks for its permissions it will appear that all required permissions are granted. This is done to keep some ad networks code happy. As far as I've tested this is safe since the permission check is done at the remote end of the call when protected method is invoked. Please report your findings.


Old builds:
direct link: storage provided by:
direct link: storage provided by: - broken don't use
Attached Thumbnails
Click image for larger version

Name:	edit-permissions.jpg
Views:	3064
Size:	36.6 KB
ID:	544532  
The Following 10 Users Say Thank You to username666 For This Useful Post: [ View ] Gift username666 Ad-Free
17th March 2011, 01:41 PM |#2  
OP Retired Recognized Developer
Thanks Meter: 21
Donate to Me
I need you opinion.
Please comment if you are interested in continued development of this ROM.

Please report ANY success or failure!
20th March 2011, 07:34 AM |#3  
Thanks Meter: 61
This is ingenious, please submit it to the cyanogenmod gerrit if you can.
20th March 2011, 05:20 PM |#4  
+1, Using it now, brilliant. It has made me aware of some dodgy permissions out there, although it may cause severe paranoia! Great idea, and think you should continue, a Pure Aosp build would be amazing.
Thanks , and keep going!
21st March 2011, 10:20 PM |#5  
OP Retired Recognized Developer
Thanks Meter: 21
Donate to Me
I've submitted it to the cyanogenmod gerrit. However this does not mean that it will be accepted.

So for the now I'll try to make daily builds.
21st March 2011, 10:23 PM |#6  
Thanks Meter: 11
lol! nice idea. it'd be great if they'd accept it into the cyanogen nighties. great feature.
21st March 2011, 11:52 PM |#7  
Good luck. Cracking feature.
22nd March 2011, 12:48 AM |#8  
phunkycow's Avatar
Senior Member
Flag London, UK
Thanks Meter: 350
Fantastic, hope it gets approved. Good job!
23rd March 2011, 10:57 AM |#9  
OP Retired Recognized Developer
Thanks Meter: 21
Donate to Me
I've uploaded new build. GPS seams more reliable now.
26th March 2011, 06:22 PM |#10  
Thanks Meter: 61
Is there any kind of delay with re-granting a permission once its been revoked? I've found that re-granting permission is buggy with certain apps.
26th March 2011, 10:58 PM |#11  
Thanks Meter: 61
I've also had some issues building this mod into roms for Inc and Evo, I get this error:

make: *** [out/target/product/inc/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
make: *** Waiting for unfinished jobs....
external/bluetooth/bluez/audio/liba2dp.c: In function 'a2dp_write':
external/bluetooth/bluez/audio/liba2dp.c:1204: warning: passing argument 6 of 'sbc_encode' from incompatible pointer type
external/bluetooth/bluez/audio/../sbc/sbc.h:94: note: expected 'ssize_t *' but argument is of type 'unsigned int *'
frameworks/base/services/audioflinger/AudioFlinger.cpp: In member function 'android::status_t android::AudioFlinger::moveEffectChain_l(int, android::AudioFlinger::PlaybackThread*, android::AudioFlinger::PlaybackThread*, bool)':
frameworks/base/services/audioflinger/AudioFlinger.cpp:4986: warning: 'strategy' may be used uninitialized in this function
frameworks/base/services/audioflinger/AudioFlinger.cpp: In member function 'virtual android::sp<android::IEffect> android::AudioFlinger::createEffect(pid_t, effect_descriptor_t*, const android::sp<android::IEffectClient>&, int32_t, int, int, android::status_t*, int*, int*)':
frameworks/base/services/audioflinger/AudioFlinger.cpp:4842: warning: 'd.effect_descriptor_s::flags' may be used uninitialized in this function
Post Reply Subscribe to Thread

permissions edit, rom

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes