Remove All Ads from XDA

[Discontinued-ROM][[2013-03-31][Guhl] Andromadus Permission Spoofing Framework -CM11

455 posts
Thanks Meter: 568
By guhl99, Senior Member on 9th January 2014, 10:01 AM
Post Reply Email Thread
[Closing message]

I am discontinuing the work on the Android Permission Spoofing Framework as I am not using Android anymore.
If anybody is interested in taking over the development I would be very happy to help her or him getting started as much as possible.
Feel free to contact me if you would like to work on it.

Sorry and have fun - Guhl
[End closing message]

This ROM is based on Andromadus CM11 Alpha. Besides the deep integration of the permission spoofing functionality the ROM is unchanged from Flinnys Andromadus CM11 builds!

In addition to the original Andromadus rom it includes the permission spoofing framework enhancement that was originally developed by Plamen K. Kosseff for Android 2.3. The functionality has been rebased to Android 4.4 and enhanced (a lot) by me and is now available.

My work was/is originally done for the HTC vision (G2/DZ) for which i provide ROMs based on ASOP and CM10.1.
If you as a developer want to add the permission spoofing framework to your ROM please go ahead it should be portable easily. I will keep the commit list updated. If you need help don't hesitate to ask!
Actually the main motivation to publish this is to inspire other developers to integrate this with their work.

The source of the enhancement can be found on github in the repositories:

The current work is done in the cm-11.0 branch and the relevant commits are:

framework initial commit
framework bug fix 1
framework bug fix 2
frameworks telephony initial commit
app settings initial commit
framework permission spoofing - location
framework pff: infrastructure code cleanup
framework pff: infrastructure bug-fix in
framework pff: permission spoofing - contacts and phone log
framework pff: permission spoofing - calendar (Instances)
framework pff: permission spoofing - calendar (Instances - cleanup)
framework pff: permission revoking - initial commit
framework pff: add PFFInfoDatabase to make spoofed information persistent and changeable
framework pff: bug fix for permission revoking

What is permission spoofing
Permission spoofing means that the framework will return spoofed information to Apps instead of the original information based on permissions that the App requested during installation. The main motivation for the development of this functionality is the protection of the privacy of the phones owner.
Examples for spoofed information are:
  • Empty contact list instead of real contacts - READ_CONTACTS
  • False location instead of real location - ACCESS_COARSE_LOCATION / ACCESS_FINE_LOCATION
  • False Information for phone id and phone number - READ_PHONE_STATE
  • Empty log instead of real phone call log - READ_CALL_LOG
  • Empty calendar list instead of real calendar entries - READ_CALENDAR
  • ....

Current implementation
Currently the following permissions are available:
While this permission allows the App to read the state of the phone (in call, ...) it also allows the App to read information like the phone number or the IMEI of the phone. Instead of revoking the permission that has to be granted to an App, permission spoofing provides spoofed information for this sensitive data.
Instead of the real location a location that can be set using the PFF-GPSPath will be reporte (the default spoofed location is the top of Mt. Everest). The implementation is not perfect yet (Google maps and Latitude still seem to know the coarse location - working on that)
Instead of the contacts and the call log an empty list will be reported. The implementation sets the limit parameter of the query to 0 if the permission is spoofed.
The implementation changes the date for which the items will returned to the first week of 1970.

More permissions might be added in the future.

Spoofing can be enabled on a per App basis. To enable spoofing go to Settings - Apps, choose the App for which you want to spoof the permission. Below the spoofable permission will be a switch that can be set to On to enable spoofing or Off to disable spoofing for this App.

Optional Apps
The source of these apps is also available at

The PFF-GPSPath App can be used to set the spoofed location and in addition it can also be used to define a path the can then be simulated in the App (by effectively moveing the spoofed location)!
HowTo for PFF-GPSPath HowTo

The PFF-Settings app provides the same functionality as App - Settings but in a more comprehensive way.
It provides a list of all Apps (including system Apps) that have a spoofable permission and allows you to set spoofing On/Off for them

If you spoof a spoofable permission for the app PFF-Test you can check the info that the framework provides to PFF-Test

ROM (kind of stable version)
ROM (nightly)
Gapps are not included in the rom - they can be found at SLIM ROM 4.4 gapps page

I do not want to start a flame war on spoofing on XDA. Whiile spoofing is important for me I do understand people opposing it.
If you want to talk to me, the best way to do this is to look for me (Guhl) at #nexus4, #G2ROOT or #andromadus on freenode IRC.

  • Updated from Andromadus/CM - fixed SMS/MMS crash
  • Updated from Andromadus/CM
  • Updated from Andromadus/CM - no new spoofing
  • ROM is untested
  • Rebased from AOSP 4.4 to Andromadus CM11 - ALPHA !!!

  • Plamen K. Kosseff for the original framework changes
  • Flinny for his huge work on the Andromadus roms and supporting me with my original development for the vision
  • pierre_ja, Nipqer, Hymie and all the others at #G2ROOT for their endless help and entertainment
The Following 6 Users Say Thank You to guhl99 For This Useful Post: [ View ] Gift guhl99 Ad-Free
9th January 2014, 10:06 AM |#2  
OP Senior Member
Thanks Meter: 568
Keep in mind - this is ALPHA

at the moment the permission spoofing build that i posted today is based on Andromadus ALPHA.

Please have a look at [ROM][24-12-13][Flinny] Andromadus - CM10/11.0 - Vision [alpha2] to see what works and what does not.

There are problems with:
- installing gapps
- android standard browser
- GPS (maybe)
- ...

Have fun - Guhl
The Following 2 Users Say Thank You to guhl99 For This Useful Post: [ View ] Gift guhl99 Ad-Free
9th January 2014, 03:53 PM |#3  
So glad to see you are making this! Keep it up my man, love your work!

Sent from my Nexus 4 using XDA Premium 4 mobile app
The Following User Says Thank You to demkantor For This Useful Post: [ View ] Gift demkantor Ad-Free
20th January 2014, 10:43 PM |#4  
Account currently disabled
Thanks Meter: 44
fantastic work, running great
2nd February 2014, 07:27 AM |#5  
soadfan's Avatar
Senior Member
Flag Sofia
Thanks Meter: 5
G Sensor works!
But when i hit revoke network access it turns on but isn't saved, so next time i enter app info it's off again (i've tested the app i revoked had network access) I want to remove avast and use this (for many reasons)
And looks like i need to restore apps + data via titanium back and than to move to sd-ext using link2sd, because restoring sd-ext via recovery console isn't working. Link2sd don't recognize any program, but when print info there's about 1gb used space on sdext so apps are there.
Now i'm swapping back to 4.2, and when have time to play with TB will migrate completely.
2nd February 2014, 09:39 AM |#6  
robuser007's Avatar
Senior Member
Thanks Meter: 89
I use xprivacy (having another phone): works also great (you need the exposed framework).
15th February 2014, 10:49 PM |#7  
OP Senior Member
Thanks Meter: 568
Updated ROM from Andromadus/CM - Test-Build available

I did update the ROM from the Andromadus/CM sources and provides a test-build (see the OP).
As I am on holidays and ain't got a vision with me I can't test the ROM - but maybe someone wants to.

Have fun - Guhl
The Following 2 Users Say Thank You to guhl99 For This Useful Post: [ View ] Gift guhl99 Ad-Free
17th March 2014, 06:33 PM |#8  
OP Senior Member
Thanks Meter: 568
PFF-GPSPath Version 1.3

In my constant struggle to remove everything that involves the use of the closed source Google Play-Services from my devices I rewrote the PFF-GPSPath App.

Version 1.3:
- Switched to OpenStreetMap data using the MapQuest Android API
- Completely removed dependencies on Google play-services

- Draging Markers is not implemented yet

There is no functional improvement between version 1.2 and version 1.3 but it is all free!

Have fun - Guhl
The Following 2 Users Say Thank You to guhl99 For This Useful Post: [ View ] Gift guhl99 Ad-Free
18th March 2014, 01:33 PM |#9  
riahc3's Avatar
Senior Member
Thanks Meter: 231
Nice. Im still waiting for something to get a lot more stable.
22nd March 2014, 06:02 PM |#10  
OP Senior Member
Thanks Meter: 568
Updated ROM from Andromadus/CM

I updated the ROM from Andromadus/CM.
It's running fine for me.

Have fun - Guhl
The Following 3 Users Say Thank You to guhl99 For This Useful Post: [ View ] Gift guhl99 Ad-Free
23rd March 2014, 08:17 PM |#11  
Account currently disabled
Thanks Meter: 44
Originally Posted by guhl99


I updated the ROM from Andromadus/CM.
It's running fine for me.

Have fun - Guhl

text messages crashes when u try n open a massage or start a new one, part from that everything else seems fine

great work, huge thanks

Sent from my Desire Z using xda app-developers app
The Following User Says Thank You to Mince69Meat For This Useful Post: [ View ] Gift Mince69Meat Ad-Free
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes