Post Reply

[App] PDroidAddon Camera and Microphone Permission [Update: v1.2, 2012-08-08]

24th July 2012, 11:49 PM   |  #1  
CollegeDev's Avatar
OP Senior Member
Thanks Meter: 720
 
253 posts
Join Date:Joined: Jun 2012
Donate to Me
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:
  1. 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
  2. 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:
  1. Fixed leaking of privacy data
  2. 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.
  3. 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!
  4. Minor bugfixes of pdroid
  5. Added functions for voicemail number (some applications were able to get it via hidden methods) -> no leaking of data
  6. 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
  7. 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:
Quote:

patch -p1 < ~/build.diff
patch -p1 < ~/libcore.diff
patch -p1 < ~/frameworks.diff

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:
Quote:

# Secure Fake Image
PRODUCT_COPY_FILES += \
privacy/PDroid.jpeg:system/media/PDroid.jpeg

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

IF YOU LIKE MY WORK DONATE A BEER
Attached Thumbnails
Click image for larger version

Name:	PDroid.jpeg
Views:	1368
Size:	26.3 KB
ID:	1219856  
Attached Files
File Type: rar replacements.rar - [Click for QR Code] (45.0 KB, 314 views)
File Type: rar Apps.rar - [Click for QR Code] (216.2 KB, 543 views)
File Type: rar patch.rar - [Click for QR Code] (34.2 KB, 275 views)
Last edited by CollegeDev; 28th August 2012 at 12:36 PM.
The Following 21 Users Say Thank You to CollegeDev For This Useful Post: [ View ]
24th July 2012, 11:51 PM   |  #2  
CollegeDev's Avatar
OP Senior Member
Thanks Meter: 720
 
253 posts
Join Date:Joined: Jun 2012
Donate to Me
reserved
25th July 2012, 04:21 AM   |  #3  
pastime1971's Avatar
Senior Member
Flag Pasadena, CA
Thanks Meter: 1,084
 
1,883 posts
Join Date:Joined: Apr 2011
More
very nice !
25th July 2012, 11:07 AM   |  #4  
Senior Member
Flag 'schland
Thanks Meter: 17
 
163 posts
Join Date:Joined: Nov 2007
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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2012-07-25-12-01-16.jpg
Views:	1208
Size:	30.7 KB
ID:	1220844  
25th July 2012, 01:14 PM   |  #5  
CollegeDev's Avatar
OP Senior Member
Thanks Meter: 720
 
253 posts
Join Date:Joined: Jun 2012
Donate to Me
Wink
Yes, thank you for information. I've fixed it, will release it later.
26th July 2012, 12:26 AM   |  #6  
Senior Member
Thanks Meter: 74
 
247 posts
Join Date:Joined: Mar 2012
First THANKS for your nice work!

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?
26th July 2012, 08:40 AM   |  #7  
Senior Member
Flag 'schland
Thanks Meter: 17
 
163 posts
Join Date:Joined: Nov 2007
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.
26th July 2012, 08:43 AM   |  #8  
CollegeDev's Avatar
OP Senior Member
Thanks Meter: 720
 
253 posts
Join Date:Joined: Jun 2012
Donate to Me
Quote:
Originally Posted by testman86

First THANKS for your nice work!

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)
The Following User Says Thank You to CollegeDev For This Useful Post: [ View ]
26th July 2012, 09:26 AM   |  #9  
Px80's Avatar
Senior Member
Thanks Meter: 66
 
514 posts
Join Date:Joined: Feb 2012
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)
26th July 2012, 11:21 AM   |  #10  
Quote:
Originally Posted by CollegeDev

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 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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Apps and Games by ThreadRank