[Dev/App/Framework] PDroid 2.0 Touchwiz port for JB OTA

Search This thread

darkhawk3383

Senior Member
Feb 5, 2011
77
14
so this is me opening facebook successfully then opening pdroid and denying facebook gps location. then i try opening facebook again and it force closes:


I should also add that this happens with any app, not just facebook.

I am also having this issue, just clean flashed the newest Synergy 257 and reinstalled pdroid manager after re-downloading and still happens on any app any permission I deny. Will try to get a logcat sent if my computer will recognize my phone. has anyone found out what is going on?


EDIT
Someone in the Synergy thread mentioned the need to click the red X in force online state when setting permissions, I did this and it fixed my FC issues.
 
Last edited:

takota6

Senior Member
Oct 10, 2010
793
182
Google Pixel 4a 5G
What do you say treve?synergy doesn't play nice with my setup.. could you put out an update..I need it for my work and your the only man for the job
 

CollegeDev

Senior Member
Jun 28, 2012
270
778
Hey,

I'm the dev of PD2.0 and have some news for you guys.
I was able to port PD2.0 to the N7100 (Note 2). You can find in my OP at "STOCK ROM User".

Cheers
 
  • Like
Reactions: takota6

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    Thanks
    Thanks always have to go out first - Many thanks to Eschelon for the many hours of wiping/testing for me along with the rest of the Synergy team. I still don't have a gs3 so most of this was done blind and let me say that was a very difficult task. Of course thanks to all the original PDroid developers that made the base code available.

    If you want to use this prebuilt into a rom - starting tonight (01Jan13 r147) Synergy builds will have this framework already ported in. You will just need to load on an APK to start blocking perms. Other rom devs I have included just the framework in post 2 - just make sure to give credit back to me/this thread- this took awhile to port over :)

    What is it?
    PDroid is a (awesome) security framework similar to superuser but allows selective blocking of app permissions. It creates a "proxy" between the actual permissions and the PDroid framework which allow passing of different return data.
    Because of the proxy created this method is better than apps which just remove permissions from manifests because it should not cause any fcs- Apps will never know the difference. It also allows patching permissions such as location/android id/camera to return spoofed data.

    PDroid is a very complex mod across many parts of framework. I have not seen a proper port of this done as of yet - We have spent much time verifying that this port of PDroid 2.0 successfully works with various permissions. See below screenshots for proof.

    Framework Mods:
    The framework portion of this mod is a port of the 20121017 patch of pdroid2.0 for cyanogenmod rewritten by me to work on TW.
    The main patches are located here: https://github.com/mateor/auto-patcher/tree/master/patches/pd2.0/jellybean/cm/ I believe it is based off of CollegeDev's source from
    http://xdaforums.com/showthread.php?t=1923576

    Downloads section below contain the modded services.jar/core.jar/framework.jar from the JellyBean OTA.

    PDroid Application:
    The app I preferred and what most of our testing was done on is called PDroid Manager - This is one of the only GPL licensed PDroid apps I have seen. The original thread is up here - http://xdaforums.com/showthread.php?t=1994860
    I needed to make some changes to deal with exception errors the original source was throwing. The original code is GPL'ed, my source is up in the Downloads section

    If you do not want to use Pdroid Manager you can switch to the PDroid 2.0 App by installing it from original thread http://xdaforums.com/showthread.php?t=1923576
    **when switching apps you probably want to uninstall old one, delete /data/system/privacy.db reboot then install new app. I do not believe 2 can coexist**

    Verifying PDroid Works:
    A good test app is "Network Info II" from market. You can also use my Logging Test App to test some values such as android id. Other valid tests are items such as blocking Phone from Calls and verifying you get a call error or blocking maps from location.
    The one thing we did notice was the stock camera app was not able to be blocked, but any 3rd party app that uses camera blocking will work (probably due to samsung's app using some hidden calls in framework via reflection)
    14
    Downloads:
    PDroid 2.0 Framework + Application Zip (Its flashable, but untested. Really meant for rom devs) - http://www.androidfilehost.com/?fid=9390248398092763894
    PDroid Manager - TrevE Mod APK Only (you must have framework installed aleady to use) - http://www.androidfilehost.com/?fid=9390248398092763896
    PDroid Manager - TrevE Mod Source - http://www.androidfilehost.com/?fid=9390248398092763895

    Screenshots:
    Screenshots of PDroid 2.0 using PDroid Manager Application (Thanks Esch)




    10
    3
    I probably shouldn't have, but I flashed the patch in my new Samsung Galaxy Note II. US Cellular CDMA. Odin rooted.

    The flash said successful and then I installed the apk.

    Open it and it says there is no patch and gives link to XDA thread. (screenshot attached.)

    Oh well, seems like no harm done. It didn't break anything as far as I can tell.

    8e9e7a9e.jpg




    I'd love to have Pdroid working on this phone.

    Just a side note. I extracted the Permissions Manager .apk from a MIUI rom (evo 3d) and it installs and works just fine. (don't use the root manager leave that up to superSU)
    Its not as extensive as Pdroid but it does let you lock down all your installed apps.
    2
    Guess this means my GTalk will finally quiet down some. ;)

    Great work guys.


    Z