[App] PDroidAddon Camera and Microphone Permission [Update: v1.2, 2012-08-08]
Hi,
here it is, the beta realase of PDroidAddon for managing Camera and Microphone permissions. First of all: Big thanks to Svyat who developed the main application.
Please note: I'm not responsible for any damages on your device if you use my software. The app is not fault tolerant, so don't use it if you do not know what to do and how to install it.
UPDATE to v1.1, PDroid goes more secure:
Fixed leaking of android_id for most applications, but not for google (they store the android_id in privacy db -> will fix that later, because it is much more work than I thought). Android_id will randomly generated. No, there is no option to block it, because otherwise your phone will not boot anymore You can fake your android_id in main PDroid application if you choose the option: "Sim Info" and then block it
Fixed leaking of cell location and signal strength. You can block this in main application if you choose: "Network Location" or "GPS location" option. If you check one of this options (random or block), cell location will be blocked.
UPDATE to v1.2, PDroid goes more and more secure:
Fixed leaking of privacy data
added feature for Wifi-Privacy. You can block all wifi information without any crashes of application if you use the option: "Network Info" and then select "block". Be aware of using this option! If you block system applications you can get problems with adding new wifi networks, because the system doesn't get any scan-results.
be also aware with android_id blocking, some apps will not start if you use this option! Implemented in option "Sim Info" in main application!
Minor bugfixes of pdroid
Added functions for voicemail number (some applications were able to get it via hidden methods) -> no leaking of data
Added feature to block phone_type and network_type (e.g. phone type: CDMA, SIP networ type: HSDPA, etc). It is also implemented in in option "Network Info" in main application
If you install v1.2 just use the patches in attachment, no filecopy needed anymore
UPDATE: PDROID and PDROIDADDON now supports JellyBean:
PDroid and my Addon now supports jellybean. Patches will come out later, build for galaxys 2 is available.
Requirements:
Rooted Phone
ClockworkMod Recovery
If you integrated sys Dalvik into ROM with Titanium Backup, you will have to undo it
knowlegde about compiling your own rom, until ready patcher is out
ICS based ROM (e.g. CM9, because patch based on CM9)
Installation Instruction(for own compiling)::
1) Do sync
Quote:
repo sync -j16
2) Apply the patches in attachment[files in patches.rar], Please note that patches not tested, if any failure -> contact me:
3) Copy the following files[Files in archive replacements.rar] and overwrite them:
Quote:
AudioRecord.java and MediaRecorder.java to -> yourdir/frameworks/base/java/android/media/AudioRecord.java & MediaRecorder.java Camera.java to -> yourdir/frameworks/base/core/java/android/hardware/Camera.java MicrophoneInputStream.java to -> yourdir/frameworks/base/core/java/android/speech/srec/MicrophoneInputStream.java
If you use v1.2, just apply patches
4) go to source tree: yourdir/device/your_manufacturer(e.g.samsung)/your_device_model/your_device.mk and edit the file(your_device.mk) adding following:
5) create directory in your source tree yourdir/privacy <- "privacy" is the new directory and copy the PDroid.jpeg (see ATTACHED THUMBNAILS) in this folder -> yourdir/privacy/PDroid.jpeg. For people who don't compile on their own, make sure that PDroid.jpeg is in system/media/ !
6) Compile the source:
Quote:
. build/envsetup.sh
brunch your_device
7) Flash the *.zip
8) Deinstall PDroid.apk if it already exist in your system (you can save all settings with Titanium Backup and after that restore it)
9) Install PDroid.apk and PDroidAddon.apk from archive Apps.rar
10) Restor settings from PDroid with Titanium Backup. If you don't have that app, just copy files manually!
11) Have fun!
About the Application:
This application allows you to block Camera and Microphone permission of all applications listed inside. It is an Addon app for PDroid and interacts with it. It works in black_list_mode, that means -> Above you can see camera and microphone icon. If you check the checkbox of an app you will block permissions
How to use the App:
1) Start the application from Launcher
2) Select preference button from your device and click "Reload Applications" (normally not needed)
3) Select all checkboxes from apps you want to revoke permissions
4) Select preference button from your device and click "Apply Rules"
5) Ready -> all settings are stored now and interacts with pdroid
Known Bugs::
After you change settings of the same application with original PDroid, settings for microphone and camera permission will be deleted -> go to addon application and click "Apply Rules" and all works fine.
Microphone Stream of origin Phone app can not interrupt with this version
Some Applications crash if you revoke Camera permission and it wants to take a video, but it depends on application and if dev surround his code with try/catch
If you revoke permissions of stock camera -> FC in Face-Unlock
Data access Toast doesn't show which permission blocked (camera, microphone)
READY BUILDS:
Until now there is only a ready build available for Samsung Galaxys S2 CM9. If you own that device, just flash the following *.zip from Recovery and skip the installation instructions to point 8(Deinstall origin PDroid.apk.....)
Quote:
Tons of downloads, no response if it works -> down!
JELLY BEAN BUILDS:
Just flash zip and install PDroid.apk and PDroidAddon.apk from this thread and have fun!
Quote:
Tons of downloads, no response if it works -> down!
BUG REPORT RULES:
Do not say : "it doesn't work, fix it!" -> post LogCat and I will have a look
This is a beta Version of the app, but works like a charm on my own device. I don't know if it works perfectly on all devices, so please test it
Hey
today i made a complete new flash of you distributed ready built for SG2 and tested pdroid with the app "Network Info II". In the settings I denied access to everything. But the result was this (see attachment) it was still able to get the android ID and the cell side information.
I only would like to know which version of PDroid did you use to start this work?
As far as I know Syvat only released the source code of 1.27 of his nice app and not the latest 1.32. Or did you manage to get the newest code from him?
it feels a bit as if the phone is a bit slowed down by pdroid. can someone confirm this? I mean especially if some that has to be granted is accessed, e.g. viewing contacts with stock contact-app is slower on the startup.
I only would like to know which version of PDroid did you use to start this work?
As far as I know Syvat only released the source code of 1.27 of his nice app and not the latest 1.32. Or did you manage to get the newest code from him?
It is based on v1.32 -> look at google code.
It seems to be that many people are not interested to this, right? I can't understand why, because privacy is very important for every android user of us.
Alright, does anyone of you want to have the fixed version with new framework changings of cell-phone-location and android_id random generator? (google can access android_id, because they store it in privacy database. That is one point i'm going to fix in the next few days, because it is much more work than I thought)
i like this app!
and i hope there will be more updates for it
will there ever be a method to install this app without doing this installation?
your instructions are very good but it still difficult (at least for me)
It seems to be that many people are not interested to this, right? I can't understand why, because privacy is very important for every android user of us.
Alright, does anyone of you want to have the fixed version with new framework changings of cell-phone-location and android_id random generator? (google can access android_id, because they store it in privacy database. That is one point i'm going to fix in the next few days, because it is much more work than I thought)
I was trying to get this up and running on Jellybean today, since LBE security isn't working, so Pdroid has a nice opportunity to get there first
Unfortunately I was getting null pointer exceptions on boot, due to being unable to find the privacy service (which was running though from what I see). The patches don't apply perfectly, but they're not far off (I refer to your patches in the OP, I didn't add the new files for camera and sound etc yet).
But yeah, it doesn't look too difficult to get it going, just needs a few tweaks where google rearranged stuff
Very interesting though, and quite keen to see this go further
If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?