[MOD][4.1.2 or 4.2.1][GPL] OpenPDroid [v1.0, 2013-01-14]

Search This thread

Mika83AC

Senior Member
Apr 5, 2012
715
304
I can understand why you think this, and it is possible that in the longer run this may happen (but I wouldn't hold my breath).
I'll just very briefly explain why:
  • Right now there is no clear way of submitting code (or even issues, in any structured way) to PDroid 2.0, whereas in OpenPDroid you can fork on github and then add a push request. You can lodge issues in github along with details, and that allows feedback to be provided. If people post suggestions in here, then we can add them to github as 'enhancements', they can be discussed there, and those discussions can be entirely visible to users. The basic idea is that the whole process is 'open' and visible - and open to further discussion.
  • The development life-cycle for PDroid 2.0 is that CollegeDev does a bunch of development, then releases a monolithic patch with all those changes and without anyone seeing the code before. This pattern means that code review is not possible before release, that compatibility changes can not be made in other apps (e.g. PDroid Manager, and any other pdroid-interfacing apps that may appear) prior to release, so compatibility will inevitably be broken at time of release.
  • There are aspects of the direction of PDroid 2.0 which are not consistent with what we have in mind for OpenPDroid. For example, the current PDroid 2.0 App suggests that 'task killing' will be integrated into the framework changes for PDroid 2.0. Currently (acknowledging we have not seen the framework code changes), we have no desire to include this functionality in OpenPDroid. There are very good task killer apps out there, and it doesn't really fit in the purview of a privacy management mod. Similarly, there has been discussion of incorporating encryption/authentication of manager apps, and of the data. This may seem like a good idea, and may even be a good idea - but it may have side-effects which outweigh the benefits, and without having an alternative like OpenPDroid no-one has any option but to accept it.
Because both OpenPDroid and PDroid 2.0 are GPL v3 (as a result of being derived from PDroid, which is GPL v3 licensed) good ideas and code can move between them. I like to think of it like CyanogenMod and AOKP - there is a lot of cross-over but some differences; good ideas and code can be ported from one to the other, and the variants suit different people's needs.

Thanks for this clearification of your sights and reasons to do what you do :good:

I hope CollegeDev will see the advantages of the "open" source way (github, code reviews etc.) and join it. Within such an important and even sytem critical app like PDroid, it's not a good idea to have only one dev who has a real life and can't react to serious bugs etc. as fast as it could be nessesary. Here the power of some more dev's all working on the same codebase would be a perfect situation. Four our six eyes can see more than two, which would be a good thing hunting difficult bugs or discussing new features. How fast can you be stuck in an dead end you haven't foreseen ;)

I hope this will become true ;)
 

MindCrawler

Member
May 31, 2007
7
0
Vienna
Thank you for the answer.

I switched from LBE Security to OpenPDroid and haven't used PDroid or PD2 before.

As of only the gallery app is listed.. Thats ok for me.
I only noticed it in search of any settings that maybe would fix the lag (if settings related)

A quick question - were you previously using PDroid 2.0, and if so has there been any change in the transition to OpenPDroid?

Since Pdroid 2.0 has no 4.2.1 support, i started with OPD, so cann't compare it, sorry.
 
Last edited:

FFU5y

Senior Member
Feb 3, 2011
173
423
Since Pdroid 2.0 has no 4.2.1 support, i started with OPD, so cann't compare it, sorry.
That's ok. I've actually tracked down the reason for the slow-down in the camera: I fixed a bug which had been around since the original PDroid, but the 'correct' behaviour was to open and close the database which stores the privacy settings a lot (which is very slow). I'm working what the behaviour should be, as well as adding caching which will reduce database load anyway.
In brief, you can expect an improvement in camera performance in the next release, which I imagine will be fairly soon.

Thanks for this clearification of your sights and reasons to do what you do :good:

I hope CollegeDev will see the advantages of the "open" source way (github, code reviews etc.) and join it. Within such an important and even sytem critical app like PDroid, it's not a good idea to have only one dev who has a real life and can't react to serious bugs etc. as fast as it could be nessesary. Here the power of some more dev's all working on the same codebase would be a perfect situation. Four our six eyes can see more than two, which would be a good thing hunting difficult bugs or discussing new features. How fast can you be stuck in an dead end you haven't foreseen ;)

I hope this will become true ;)

I agree that it would be better to have more developers on board, because having one mission critical developer is risky. (With OpenPDroid, mateor and wbedard are both involved so if I were to spontaneously combust it wouldn't be so bad). Also, as you suggest there is great value in being able to bounce ideas off each other. Where I program as a day job, I am currently the sole developer and I really do miss that 'collaboration' - luckily here I've got mateor and wbedard.
Whether PDroid 2.0 and OpenPDroid will continue separate long-term I don't know. From the PDroid 2.0 thread, it looks like CollegeDev may have been (or be?) planning to adopt a more collaborative development approach, and if that happens then the need for both projects may disappear a bit. I think there will probably remain two forks, just because I think CollegeDev and we have different ideas about what should be included in a privacy control system.
However, if we are both drawing on bugfixes from each other's codebase, and the code remains largely similar we gain a lot of the advantages of having a single line of development anyway (in my opinion). Time will tell, I suppose, but hopefully the outcome will be great PDroid implementations for users =)
 

nsmart

Senior Member
Sep 3, 2011
490
220
Hi nsmart: thanks for the feedback. I'm not sure why your phone would become so unresponsive, but if you could post a logcat that would be helpful. That way, we can see what is going on under the covers.
If anyone else is trying this same ROM, it would be really helpful to hear if they are having the same problems.
Mateor may also have some more insight into this.
I did some more testing. Phone becomes slow when I start "GPS Status" and compass rotation is very slow. alogcat is attached. I am using cm-10.1-20130111-NIGHTLY-mako.zip.
 

Attachments

  • alogcat.2013-01-15-15-24-10+0100.txt
    3.9 KB · Views: 11
  • alogcat.2013-01-15-15-29-58+0100.txt
    3.9 KB · Views: 8

g.armour

Senior Member
May 25, 2010
79
3
I've been running this for the past day or so on AOKP Mr1 with Toro and I'm impressed. It seems as though everything is working flawlessly. I think there was a bug though when I first installed, I installed ROM, flashed gapps, flashed patch, booted ROM, and my MMS app was MIA. So, I wiped, reflashed ROM and GAPPs, rebooted, set up phone, went back to recovery and applied patch and everything was there. Odd, but anyway, thanks for this!

I'm curious, is there a way that we can make an app think we are on WiFi when we are really on a network connection with this?
 
Last edited:

tonyp

Inactive Recognized Developer
Feb 3, 2011
5,019
34,902
This does look great indeed! Thanks FFU5y, mateorod & Wbedard!
I really love the github approach.
As the topic of including PDroid Manager came up - another way to include it would be to add the source to the manifest (or local manifest) and change the makefile to build & include it as well.

I will wait a little while longer until it stabilizes, but then I'm going to include it in my releases as well.
 

TamCore

Senior Member
Jul 8, 2010
665
649
31
Düsseldorf
tamcore.eu
local_manifest.xml
Code:
  <project name="wsot/pdroid-manager" path="packages/apps/PDroidManager" revision="master" />

vendor/cm/config/common.mk
Code:
PRODUCT_PACKAGES += \
    PDroidManager

Already included in OpenSensation2. But it fails to compile currently (fix is submitted via github)
 

FFU5y

Senior Member
Feb 3, 2011
173
423
Current pdroid2.0 user here. There is an issue with PD2.0 blocking all requestions to get location via cell tower:
http://xdaforums.com/showpost.php?p=36312056&postcount=523

Has this been fixed in OpenPDroid?

No, it hasn't.
I've lodged it as a bug against OpenPDroid here so it doesn't get lost.

Thanks for the report.


I did some more testing. Phone becomes slow when I start "GPS Status" and compass rotation is very slow. alogcat is attached. I am using cm-10.1-20130111-NIGHTLY-mako.zip.

Thanks for that notification. I believe that this problem is related to the 'lagging camera' problem, and so will be resolved by the same fix.
I've lodged an issue at Github here so you can track it.
 
Last edited:

M66B

Recognized Developer
Aug 1, 2010
26,751
57,998
local_manifest.xml
Code:
  <project name="wsot/pdroid-manager" path="packages/apps/PDroidManager" revision="master" />

vendor/cm/config/common.mk
Code:
PRODUCT_PACKAGES += \
    PDroidManager

Already included in OpenSensation2. But it fails to compile currently (fix is submitted via github)
You won't have market updates this way, because the signatures will be different.
 

wbedard

Senior Member
Jul 22, 2010
479
411
That's really useful feedback, thanks! Unfortunately I don't have any of those devices (got a Nexus 7 grouper, but it is probably too different) but I think one of the team does. If you have a build of the ROM you used and noticed the problem on and could post it, that would be great - then we may be able to run up exactly what you were using and check it out.

Hey FFU5y,

I just tested this out on my Nexus7 while recording an extended logcat. After reviewing same, I wonder if this issue is related to the GPS and camera issues by all going back to the database hammering you described. When I turned on notifications for Play Store and Play Services, just starting up the Play Store and bringing up my installed app caused the toast for accessing Account List to basically stay on continuously. When I went into the logcat, sure enough, there were huge runs of the following:
Code:
V/PDroidAlternative(32624): NotificationHandler: Notification for: com.android.vending:accountsList:0
Even when it wasn't logging 4-5 events in a row, that line was present in at least every 3-5 lines throughout the relevant sections of the logcat (i.e. when I was using the store). If this is true, a caching solution would probably help here, as well. Oh...and yes, the Market was very sluggish while I was conducting this test.

R/
wbedard
 
  • Like
Reactions: FFU5y

FFU5y

Senior Member
Feb 3, 2011
173
423
Hey FFU5y,

I just tested this out on my Nexus7 while recording an extended logcat. After reviewing same, I wonder if this issue is related to the GPS and camera issues by all going back to the database hammering you described. When I turned on notifications for Play Store and Play Services, just starting up the Play Store and bringing up my installed app caused the toast for accessing Account List to basically stay on continuously. When I went into the logcat, sure enough, there were huge runs of the following:
Code:
V/PDroidAlternative(32624): NotificationHandler: Notification for: com.android.vending:accountsList:0
Even when it wasn't logging 4-5 events in a row, that line was present in at least every 3-5 lines throughout the relevant sections of the logcat (i.e. when I was using the store). If this is true, a caching solution would probably help here, as well. Oh...and yes, the Market was very sluggish while I was conducting this test.

R/
wbedard

Hi,

Yeah, every line on which you see a notification there in your log, the database is being opened, and closed. I ran some performance testing, and discovered that while using the camera OpenPDroid core was eating ~30% of the CPU time, and (literally) 99% of this was opening the database repeatedly.
I've added caching code to the openpdroid-devel branches of all 4.2.1-based roms in github (http://github.com/wsot/platform_frameworks_base) and am doing test builds now. I've already done some very basic testing of it, and the camera went from unusable to working just fine, and I think the impact will be the same on Google Play and GPS/compass.
 

wian

Senior Member
Dec 10, 2005
108
93
Did you guys see the paper presented at the ACSAC 2012 conference on android permissions? It doesn't mention pdroid, but it does show that pdroid is a real necessity!

Unfortunately I'm not allowed to post links, but if you google for "ACSAC 2012 Permission Evolution in the Android Ecosystem" you'll find it.
 

L30nh4rt

Senior Member
Aug 8, 2012
54
23
Current pdroid2.0 user here. There is an issue with PD2.0 blocking all requestions to get location via cell tower:
http://xdaforums.com/showpost.php?p=36312056&postcount=523

Has this been fixed in OpenPDroid?

I did some more testing. Phone becomes slow when I start "GPS Status" and compass rotation is very slow. alogcat is attached. I am using cm-10.1-20130111-NIGHTLY-mako.zip.

Hi, i have the same issues as you guys using openpdroid on Paranaoid Android. I belive the both issues are releated together.
Hopefully it will be fixed soon.
After flashing the restore zip, both gps and location through cell network are back to normal
 
Last edited:

FFU5y

Senior Member
Feb 3, 2011
173
423
Hi, i have the same issues as you guys using openpdroid on Paranaoid Android. I belive the both issues are releated together.
Hopefully it will be fixed soon.
After flashing the restore zip, both gps and location through cell network are back to normal

Some user feedback suggests Paranoid Android may be having a wider range of issues than other roms (because the source only just became available, there was less extensive testing on it), and I am presently investigating this.

Updates to very substantially improve the performance of the camera are in testing, and will almost certainly affect GPS/compass as well (and Google Play store).
(For those who are building themselves or experimenting, the updates are changes in 'http://github.com/wsot/platform_frameworks_base' - they are currently in the *-openpdroid-devel branches for all 4.2.1-based ROMs: cm-10.1, aokp-jb-mr1, pa-jellybean, and jb-mr1-release; although PA may have other bugs).
 
Last edited:

M66B

Recognized Developer
Aug 1, 2010
26,751
57,998
...
Updates to very substantially improve the performance of the camera are in testing, and will almost certainly affect GPS/compass as well (and Google Play store).
(For those who are building themselves or experimenting, the updates are changes in 'http://github.com/wsot/platform_frameworks_base' - they are currently in the *-openpdroid-devel branches for all 4.2.1-based ROMs: cm-10.1, aokp-jb-mr1, pa-jellybean, and jb-mr1-release; although PA may have other bugs).
I would like to test for CM10 ...
 

FFU5y

Senior Member
Feb 3, 2011
173
423
I would like to test for CM10 ...

Cool. Just cherry-picked the relevant patches onto the CM10 branch (i.e. cm-jellybean-openpdroid-devel). That is the cutting edge: for CM10 'stable', there is the cm-jellybean-stable-openpdroid-devel which matches the jellybean-stable branch in the CM repositories.

You can pull from http://github.com/wsot/platform_frameworks_base to get the changes.

Also, you can download my experimental 'OpenPDroid debug setting' app, which basically just allows you to switch on and off a couple of settings inside the current OpenPDroid development version: http://digitalfeed.net/android/OpenPDroid_Debug.apk
Source for that is at https://github.com/wsot/openpdroid_debug_control
If you want to build the openpdroid_debug_control, you either need to remove the android/privacy files from it, or make sure they are up to date from the frameworks/base/privacy/... used in your framework. I've just included them for convenience so that I can build without having to always update my frameworks.jar file on Eclipse.
If the pre-built version is crashing, you'll probably need to build it yourself. I just slapped it up last night, so it isn't exactly robust (the debug controller tool, that is).

Let me know how it goes.
 

M66B

Recognized Developer
Aug 1, 2010
26,751
57,998
Cool. Just cherry-picked the relevant patches onto the CM10 branch (i.e. cm-jellybean-openpdroid-devel). That is the cutting edge: for CM10 'stable', there is the cm-jellybean-stable-openpdroid-devel which matches the jellybean-stable branch in the CM repositories.

You can pull from http://github.com/wsot/platform_frameworks_base to get the changes.
Thank you very much for this prompt action!
How can I generate a patch set from cm-jellybean-openpdroid-devel?
Maybe it is an idea to document this in the start post.
 

FFU5y

Senior Member
Feb 3, 2011
173
423
Thank you very much for this prompt action!
How can I generate a patch set from cm-jellybean-openpdroid-devel?
Maybe it is an idea to document this in the start post.

Good question: if you pull the cm-jellybean-openpdroid-devel branch into an existing repository you have, you can then create a patch file using the command:
git diff <SHA of earlier commit> <SHA of later commit> but that does require you to pull into your repository, or clone your repository and then pull into that.

I've basically done exactly that to create the attached patch. In practice, the best way to get out development-stage code will be by having a repository you can pull OpenPDroid code into. If you already have a clone of the CM10.1 android_frameworks_base repository, you can make a clone off that and then checkout the 'cm-10.1-openpdroid' and '...-openpdroid-devel' branches from the OpenPDroid platform_frameworks_base.

Hope that helps.

Edit: (I wish there were a good way to do it in github, but there isn't).
Edit2: that patch is to go from cm-10.1-openpdroid to cm-10.1-openpdroid-devel - that is, you need to use this patch on code you've already patched with the previous OpenPDroid patches.
 

Attachments

  • cm-10.1-openpdroid-devel.diff
    26.9 KB · Views: 8

Top Liked Posts

  • There are no posts matching your filters.
  • 113
    What is OpenPDroid?
    OpenPDroid is a set of modifications to the Android framework and libraries which allows fine-tuning of the data which applications are able to retrieve about your device, your account, your messages, and more. Specifically, it is a Privacy service provider (using the PDroid 1.51 interface) forked from CollegeDev's PDroid 2.0, which is itself an extension of Syvat's PDroid.

    A word to the wise
    I'm just adding this for those who are just looking at OpenPDroid, or are trying to work out how to get involved.
    Mateor, wbedard and I are currently in the process of moving repositories etc to a github 'organisation' in order to make it much easier for users to know which are the latest patches, where to report issues, etc. I expect this will be done soon (in the next day or so), and I'll post more information then.
    Thanks for your suggestions on ways of managing repositories, patches, etc.


    What does it do?
    When configured using either FFU5y's PDroid Manager or CollegeDev's PDroid 2.0 App (up to v1.52), OpenPDroid intervenes in API interactions by apps (e.g. when an app attempts to retrieve your location, phone number, or contacts) and provides either real data, empty data, fake data, or random data, depending on the user setting. Unlike apps which actually remove permissions, OpenPDroid does not actually modify the permissions that an app has and so is much less likely to cause the app to crash as a result of data access being denied.
    Note that CollegeDev's PDroid 2.0 App does not officially support OpenPDroid, so please don't contact CollegeDev for support if you're having problems with PDroid 2.0 App with OpenPDroid. You can post here, and we may be able to help you.
    PDroid Manager does officially support OpenPDroid.
    The complete list of data and functions controlled by OpenPDroid can be found at the end of this post, in What (specifically) can I control with OpenPDroid?, but at present it is identical to that offered by PDroid 2.0
    For a list of issues which have been identified, please see below the Known Issues.

    What makes OpenPDroid different to CollegeDev's PDroid 2.0 or Syvat's PDroid
    There are a few differentiators, some technical, and some are philosophical or pragmatic. Both are important
    Technical
    • Two major security issues are fixed, which allow apps to bypass many or all PDroid or PDroid 2.0 settings. (We are in the process of notifying CollegeDev of these issues, and sample code will not be released for at least a week to give him a chance to fix the problems in PDroid 2.0. Fixes have been added to PDroid in auto-patcher, so if you are using PDroid please consider re-patching your ROM).
    • It is available for Android 4.2.1
    • Database access threading has been rewritten, as the implementation actually caused bottlenecks and didn't protect from simultaneous read-writes (which is generally the goal of this type of code)
    • A bug which was causing 'null pointer exceptions' to occur (but not a crash) is fixed.
    • Other code tidy-up or restructuring which doesn't change functionality
    Non-technical
    • The intention of OpenPDroid is to have a PDroid version which is developed in the open, and which welcomes (although doesn't necessarily always adopt) user input - especially code. This means that the source for OpenPDroid versions in progress is on a public repository (Github at the moment), that changes are put into the Github as they are made, and that other people can contribute code to it. We also hope that by having engaging people more in the development process, there will be more eyes trying to understand the code, and so security-related issues will be identified and address more efficiently.
    • We also want to make the discussion/decision making processes for what is in and what is out transparent, so that users can understand why some things are included and others are not, and actually influence the decision-making process.

    How do I install it?
    There are two 'supported' ways to install OpenPDroid:
    • mateor's auto-patcher (available for OS X, Linux and Windows) is the recommended way if you are not familiar with building from source, and have a supported ROM (CM10, CM10.1, AOKP Jellybean 4.1.2, AOKP Jellybean 4.2.1, AOSP 4.1.2, and AOSP 4.2.1).
    • Patch and build a ROM from source (see How do I compile a ROM with OpenPDroid). Patches are provided for: CM10, CM10.1, AOKP jb, AOKP jb-mr1, AOSP 4.1.2, AOSP 4.2.1
    If you are using a stock ROM, then someone may have implemented OpenPDroid into that ROM - and if they have, they deserve huge credit because it is a difficult and unpleasant job.
    Currently we are not aware of any ROMs which include OpenPDroid: if you are aware of one, please notify us and we'll list it here.
    There are several reasons your preferred ROM may not currently be supported. First, adding support for a ROM in auto-patcher requires building the ROM with the OpenPDroid patches. We are only able to do this if the source is available for the ROM. (Note: strictly speaking, it is possible to build patches for ROMs where source is not available, as for stock ROMs. However, for non-stock ROMs the rate of change makes this fairly unmaintainable).
    Second, there are a great many ROMs out there and it is not possible for us to build for all these ROMs. However, if you are able to patch source and build, then you may be able to build a version of your preferred ROM with OpenPDroid support - and even better, contribute patches for your preferred ROM to auto-patcher. For more details about contributing patches to auto-patcher, please contact Mateor.

    How do I get the source?
    The source is available as patches, or in complete form, from the OpenPDroid repositories
    • The source-code patches from the OpenPDroidPatches repository: . Note that there are two branches: 4.2.1 and 4.1.2. These source patches presently work against numerous roms (including CM 10/10.1, AOKP 4.1.2/4.2.1, AOSP 4.1.2/4.2.1, and potentially others)
      [*] Complete repositories for the modified sections of the system are likewise located in the [URL=https://github.com/OpenPDroid/]OpenPDroid github
      . There are several repositories and branches; see the section 'What are all these repos and branches?' for more details about the content of the github.

      What is the licence?
      PDroid was under under the GPL v3 licence (as shown on the Google Code page), and as a result all derivative works (e.g. OpenPDroid) are likewise under the GPL v3 (or later) licence. Thus, OpenPDroid is under the GPL v3 licence, with no additional special conditions. The only way a PDroid derivative can be under any other licence is if the author contacts Syvat, gets him to agree provide PDroid under another licence, and then the author extends it.

      Who's work is it?
      PDroid was original developed by Syvat (with contributions and ports from others such as Pastime1971 and Mateor), and then CollegeDev extended it to created PDroid 2.0 (previously called PDroid Addon, then PDroid Extension). PDroid 2.0 has been forked by FFU5y, Mateor and wbedard to create OpenPDroid. Thus, OpenPDroid is the product of the work of many.
      The following list includes all the contributors I know of for any of these version of the core (in alphabetical order):
      • CollegeDev (PDroid 2.0)
      • FFU5y (OpenPDroid)
      • Mateor (Porting PDroid to 4.x, porting PDroid 2.0 to 4.1.2, OpenPDroid)
      • Pastime1971 (Porting PDroid to 4.x, porting PDroid 2.0 to 4.1.2)
      • Syvat (PDroid)
      • Wbedard (OpenPDroid)

      How do I report issues?
      The best way to report an issue is to lodge it in github, although you may want to also post in this thread to let others know that the issue exists (and has been lodged). Please ensure you provide details of the issue you are experiencing (i.e. under what circumstances does it happen, what do you observe, etc) and please include a logcat: see how to get a logcat.
      If you don't have a Github account, you can post the issue here (and note that you haven't lodged it in Github) so one of the team can add the issue to Github.

      I want to contribute
      Great! The whole point of OpenPDroid is to encourage community contribution in the form of ideas, testing, code, etc.
      Presently, there isn't really a lot (read: any) documentation about how OpenPDroid works. However, this will be forthcoming, as will an API specification for the Privacy service, which will allow you to write your own management application (like PDroid Manager or the PDroid 2.0 App) if you so desire.
      Right now, these are the particular areas of the service which would benefit from developer/code contributions.
      • Transient caching of privacy settings read from the database, ideally with destruction of cache entries when they are too old or memory conditions are low
      • Refining the locking code to ensure that reads are not unduly held up by write locks (note: this isn't a problem *yet*, but will be with the inclusion of batch support. More details soon).
      • Other performance optimisations
      • Adding good quality code comments - mainly function descriptions, etc
      • Back-porting of OpenPDroid to pre-4.1.2, so users currently only able to use PDroid can move to OpenPDroid and get the new features.
      There are many other things you can work on, including adding whole new options (i.e. security features). If you are planning on creating new security features, however, please lodge the enhancement in github first so it can be discussed. Not every feature which seems like a good idea will be a good fit for OpenPDroid, and it may save some time if a prospective feature can be refined before it is fully coded.

      How do I compile a ROM with OpenPDroid
      To build a ROM with OpenPDroid, you will need to patch the source code using the provided patches, and then build as you normally would.
      To patch the source:
      • Download the most relevant of the source code patch packages attached to this post
      • Extract the patch files from the package
      • On the command line, go to the root of your Android source code: it will contain folders such as 'build', 'frameworks', 'vendor', etc.
      • Patch the source code with each patch file using the following command
        Code:
        patch -p1 < <patch_filename>
      You can then build your ROM as you would normally.
      If you have previously built the ROM in the folder you are using, or you have previously built PDroid 2.0, Syvat's original PDroid, etc it can be helpful to delete the following directories:
      • out/target/common/obj/JAVA_LIBRARIES/framework_intermediates
      • out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates
      • out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates
      Not all of these directories will exist for all ROMs, so if you try to delete one and it is missing that is not cause for concern.

      What (specifically) can I control with OpenPDroid?
      Currently, access to the following data and functions can be controlled (note this list exactly matches PDroid 2.0):
      Code:
      [b]Data access:[/b]
      Device ID (IMEI/MEID/ESN)
      Phone/voicemail number
      Sim Card Serial (ICCID)
      Subscriber ID (IMSI)
      Source number of incoming calls
      Destination number of outgoing calls
      Network location
      GPS location
      Authentication credentials
      List of accounts, including identifiers (e.g. gmail e-mail address)
      Contact list and details
      Call log
      Calendar
      Read and send SMS
      Read and send MMS
      Record audio (not phone calls)
      Camera
      Browser bookmarks and history
      System logs
      Wifi Info, such as current access point, IP address
      Network information (detailed network information such as connection state, IP address, etc)
      Android ID (a unique installation ID for your Android installation)
      SIM information (your phone operator and country)
      Restrict access to iptables command
      ICC Access (reading or writing SMS on the SIM or R-UIM)
      
      [b]Actions:[/b]
      Make phone calls
      Start on Boot (or more accurately, get notified when the boot is complete)
      Switch Wifi State (turn wifi on and off, change access points)
      Switch network state (turn off or on mobile data)
      
      [b]Other[/b]
      Force online state (always tell the app that the device is online: only needed if denying Wifi info and/or Network info)

      Known Issues
      Thanks to those users who have posted bug details, we now have a list of known issues. I have tried to indicate which will be fixed in the next release, but it is tentative. These issues can also be found (and discussed) on the github issues list
      What are all these repos and branches?
      In the github account containing the OpenPDroid repositories, there are numerous repositories. Many of these are OpenPdroid related: but not quite all of them. In addition, not all of them are relevant to each ROM.
      The main repositories to be aware of are:
      platform_frameworks_base
      This contains the framework/base/* code, which constitutes the most important guts of OpenPDroid in 4.1.2 and 4.2.1. Other projects sometimes use the name android_frameworks_base for this.
      platform_frameworks_opt_telephony
      This contains the framework/opt/telephony code, which was split out from framework/base/* in 4.2.1.
      platform_build
      This contains the build code, mostly makefiles, and is present in 4.1.2 and 4.2.1.
      platform_libcore
      This contains core operational code outside of the framework (e.g. executing shell tasks, etc).
      platform_packages_apps_mms
      This contains the code for the Mms app, for 4.1.2 and 4.2.1.
      platform_packages_apps_mms
      This contains the code for the Mms app, which is modified to affect the ability of apps to send and receive MMS.
      platform_packages_apps_videoeditor
      This contais the code for the VideoEditor app. The only change here is including 'framework2', which is only required for AOSP 4.1.2.
      platform_system_core
      This contais a range of important core code, and is modified only for AOSP 4.1.2 to include 'framework2.jar' in the paths included at boot time.

      The branches used include two key naming components. First, the rom:
      e.g.
      cm-10.1* = CyanogenMod 10.1
      cm-jellybean* = CyanogenMod 10, cutting edge
      cm-jellybean-stable* = CyanogenMod 10, stable release
      aokp-jb-mr1* = AOKP 4.2.1-based
      aokp-jb* (without the mr1) = AOKP 4.1.2-based
      jb-mr0* = AOSP 4.1.2
      jb-mr1* = AOSP 4.2.1
      pa-jellybean* = ParanoidAndroid (currently buggy)

      then the OpenPDroid version:
      -openpdroid = the current stable release of OpenPDroid
      -openpdroid-devel = the current development line of OpenPDroid

      For development, the jb-mr1-release-openpdroid-devel is where I do my initial development, and I think expand it to be on the other -devel branches once I've tested it a bit.

      FAQ
      How do I include PDroid Manager in the ROM I am building so it can update from Google Play: see here
      How do I include PDroid Manager in the ROM I am building so it is compiled during build: see here: TamCore provided a fix for the problem he mentioned, and it has been merged.
      How do I build using the bleeding-edge (devel) code: see here, although there is a bit more to it than that. I'll provide extra details when time permits, but the important stuff is in this thread.


      I have a question or issue not covered in this post
      We'll be adding more to this post in the next day or two. Please be patient =)

      Note to mods
      I wasn't sure if this belonged in this forum, or in 'Apps and Games' but since it is not trivial to install I figured this was a safer bet.
    56
    As some of you have reported, OpenPDroid has been broken for the last week or so. Unfortunately, I am posting here to say that this will be the end of support ( at least with me as maintainer).

    This has been long coming. Android moves so quickly, and it has been a year since we did anything but simply maintain the project. I almost didn't port it to Android 4.4, but the lack of better options convinced me at the time. I did what I could to maintain functionallity, but as more time passses, it became more and more likely that things might be leaking behind the scenes. I would rather end it now as opposed to watching it become less and less reliable.

    I have implemented a EXPIRATION date function to the auto-patcher. Essentially, it will refuse to patch Android 4.4 builds older than 20140120. Earlier builds will continue to work as always while you decide your next step.

    Privacy and security has jumped to the forefront of the national discussion, it has felt good to be a part of the fight. I have heard from revolutionaries in the Ukraine and student activists from China who have used the project to secure their mobile phones. It has been a humbling experience.

    We know that data collection is cheap and easy. The only effective solution is to make the data more expensive to collect. This best done by applying technical subversion and limiting the required technical know-how. OpenPDroid was great at the first, we never quite got there with the second, my big regret. Still, I believe the net result of the project to be a huge positive. It has inspired similar implementations from CyanogenMod and Google itself, among several others.

    I am sorry that I am ending this now, I wanted to give you guys a little more lead time to migrate to another solution. But I can't give the time to audit the current problem, just to shut it down for good again in a couple months whenever 4.5 drops.

    Consider donating to the EFF or hosting a Tor relay. Tor brings pain, Tails brings them pain.

    Thanks to everyone. I especially need to thank Svyat, CollegeDev, FFU5Y, kobik77 and pastime1971. Hug 'em if you see 'em. A special thanks to @inportb who gave so much of his time to me personally.

    I am working on a replacement router firmware project in my spare time as well as something reducing noise from rotorcopters. I am very infrequently on XDA these days. I can be contacted at github or on twitter.

    We fought hard to keep everything in this project completely open source. OpenPDroid patches are available, the source code for the PDroid Manager app is available. The auto-patcher is of course available. My hope is that they were of use.
    23
    Full OpenPdroid project history

    Well, I am here to let any interested party know that I finally finished a pretty huge archival project for OpenPdroid.



    • In the OpenPDroid github page, you can now find build patches for all the iterations of Pdroid/OpenPdroid. The patches go from 2.3 to 4.2.2, and all have been reformatted so as to be applied in the same manner as recommended for the 4.2 patches in the first post.
      • You can see all the build patches here.
      • The patches were originally worked on by svyat, but have been contributed to by CollegeDev, FFU5y, pastime1971, me and wbedard among several others.
    • I have also finished converting and moving the original PDroid project tree I have from Svyat. I consider this something worth rescuing and representing, the full commit history of the Pdroid project is preserved. I also pushed that to the OpenPDroid page, you can see the PDroidHistory here.

    The whole thing was incredibly tedious. I had to convert the repos and checkout and remake every patch by hand to have it fit our current structure...plus custom READMEs for each branch...I expect at least one person here to care, if only for a second. I don't think many people have ever seen the commit history for PDroid, so hopefully there is something to be learned there.
    12
    Announcement: OpenPDroid build patches, as well as the entire history of the PDroid framework, have been rebuilt and restructured and pushed to our github page. There are build patches for all Android versions from 2.3 to current. You can also take a look at the commit history of the original PDroid framework by svyat, from initial commit to the point where he halted development, 1.32 for gingerbread.


    OpenPdroid for Android 4.2.1/4.2.2

    These are the current build patches for Android 4.2.1 and 4.2.2 and should generally reflect the current state of the jb-mr1-release-openpdroid branch. The latest commist are not always reflected in the build patches, bleeding-edge development is in the -devel branches.

    We realize that the patch/branch situation is not perfect, it is work in progress.

    These build patches should work for most roms. As of their creation (1/17/13) they applied cleanly to AOKP, AOSP, Cyanogenmod, ParanoidAndroid and others.

    The current best advice as to how to apply/remove them is below. Some easier application methods are being discussed.
    To Apply

    Code:
    cd ~/android/system/build; git checkout -b pdroid; patch -p1 < ~/openpdroid_4.2.1_build.patch
    cd ~/android/system/libcore; git checkout -b pdroid; patch -p1 < openpdroid_4.2.1_libcore.patch
    cd ~/android/system/packages/apps/Mms; git checkout -b pdroid; patch -p1 < openpdroid_4.2.1_Mms.patch
    cd ~/android/system/frameworks/base; git checkout -b pdroid; patch -p1 < openpdroid_4.2.1_frameworks_base.patch
    cd ~/android/system/frameworks/opt/telephony; git checkout -b pdroid; patch -p1 < ~/openpdroid_4.2.1_frameworks_opt_telephony.patch
    cd ~/android/system; . build/envsetup.sh; brunch <DEVICE_TARGET>
    To Remove
    Code:
    cd ~/android/system
    rm -rf out/target/common/obj/JAVA_LIBRARIES/framework_intermediates \
    out/host/common/obj/JAVA_LIBRARIES/layoutlib_intermediates \
    out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates \
    out/target/common/obj/APPS/Mms_intermediates
    [OR]
    Code:
    cd ~/android; make clobber
    and to reset your source tree**

    Code:
    cd ~/android/system/build; git checkout . ; git clean -df
    cd ~/android/system/libcore; git checkout . ; git clean -df
    cd ~/android/system/frameworks/base; git checkout . ; git clean -df
    cd ~/android/system/frameworks/opt/telephony; git checkout . ; git clean -df
    cd ~/android/system/packages/apps/Mms; git checkout . ; git clean -df
    cd ~/android/system; repo abandon pdroid

    If OpenPDroid intrigues you, yet the thought of applying all these patches gives you pause, there is a tool that can attempt to patch the framework of an already compiled rom called The Auto-Patcher.

    OpenPDroid is an open source fork of the PDroid framework, as written by Svyat and expanded by CollegeDev. We are always looking for contributors, come see us on XDA or submit a pull request.
    11
    Hey mateorod. How does the issue with GPS/openpdroid look? Would you need a tester of some sort?

    Hey thanks for the offer, that time is coming and I will add you to the testers list, since I know you have been using the program for a long time now.

    I know we are behind schedule, guys, I apologize for that. The workflow issues from our end have been solved for now, and I am putting in regular hours on the update. It is by far our most ambitious update since PDroid2.0 came out, so it has taken me some work. But the outcome will be the merging of the OpenPdroid and PDroid2.0 forks as we add CollegeDev as an official full member. He is responsible for most of the improvements since PDroid for gingerbread, so getting everyone on the same page is a great feeling.

    I have all of the code I need, but organizing and committing it in a sane and debuggable manner is a task. You can see my progress at our github page in the openpdroid-pdroid2-merge branch. It is moving along finally, and you can see that. I know that the number of branches is intimidating, I am planning on nuking all branches without original development on them when we release the next update.

    Thanks go out to people like autopatcher team members karamelos , Caldair and wbedard along with all the various people offering help to users in the threads. I had to step back from the day to day support or else this update would never get released. I do my best to monitor from a distance.

    I will be adding features to the branch tonight. We will get there.