FORUMS

PSA: You Can Optimize Your Note 4’s Recents Menu & RAM

The Note 4 never had the fastest Recents Menu, and despite its 3GB of RAM, … more

XDA Picks: Best Apps of the Week (July 25 – Aug 1)

Apps are at the front and center of any smartphone experience, and with over a … more

Voices Of XDA: Orbiting The Earth With Android

Editor’s note: This week’s feature has been written by forum … more

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

[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 Subscribe to Thread 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.

Download:
update-pffmod-7.1.0-DesireHD-20111013-signed.zip

Old builds:
update-pffmod-7.1.0-DesireHD-KANG-signed.zip
direct link: update-pffmod-0.9.1-DesireHD-DEV-20110418-signed.zip storage provided by: http://onlinestoragesolution.com
direct link: update-pffmod-0.9.0-DesireHD-DEV-20110328.2-signed.zip storage provided by: http://onlinestoragesolution.com
update-pffmod-0.9.0-DesireHD-DEV-20110327-signed.zip - broken don't use
update-pffmod-0.9.0-DesireHD-DEV-20110323-signed.zip
update-pffmod-0.9.0-DesireHD-DEV-20110321-signed.zip
update-pffmod-0.9.0-DesireHD-DEV-20110318-signed.zip
update-pffmod-0.9.0-DesireHD-DEV-signed.zip
Attached Thumbnails
Click image for larger version

Name:	edit-permissions.jpg
Views:	3056
Size:	36.6 KB
ID:	544532  
Last edited by username666; 13th October 2011 at 06:57 AM. Reason: Added new build
The Following 10 Users Say Thank You to username666 For This Useful Post: [ View ]
 
 
17th March 2011, 01:41 PM |#2  
OP Retired Recognized Developer
Thanks Meter: 21
 
Donate to Me
More
I need you opinion.
Please comment if you are interested in continued development of this ROM.

Please report ANY success or failure!
Last edited by username666; 17th March 2011 at 03:49 PM.
20th March 2011, 07:34 AM |#3  
Member
Thanks Meter: 61
 
More
This is ingenious, please submit it to the cyanogenmod gerrit if you can.
20th March 2011, 05:20 PM |#4  
buzzboy's Avatar
Senior Member
Flag Canterbury
Thanks Meter: 984
 
Donate to Me
More
+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
More
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  
Member
Thanks Meter: 8
 
More
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  
buzzboy's Avatar
Senior Member
Flag Canterbury
Thanks Meter: 984
 
Donate to Me
More
Good luck. Cracking feature.
22nd March 2011, 12:48 AM |#8  
phunkycow's Avatar
Senior Member
Flag London, UK
Thanks Meter: 350
 
More
Fantastic, hope it gets approved. Good job!
23rd March 2011, 10:57 AM |#9  
OP Retired Recognized Developer
Thanks Meter: 21
 
Donate to Me
More
I've uploaded new build. GPS seams more reliable now.
26th March 2011, 06:22 PM |#10  
Member
Thanks Meter: 61
 
More
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  
Member
Thanks Meter: 61
 
More
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

Read More
Post Reply Subscribe to Thread

Tags
permissions edit, rom
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes