yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] krzych:
Uhh, it's ugly, you know that ;P

Told you, no nandroid, just a db file.

That's dirty (what if db will be written in the same time when I'll copy anything? or read by modified framework). But it seems my only choice now.

Yeah ;) ;P More like chmod 000 ;P
[Android Apps and Games] frsp2:
I have no intention of insulting him, but it was not easy to figure out what should I download there. So I gave up quickly and asks for a helping hand, hehe.

I've jumped out from SE Tweaked due to boot loop problem.

Now I'm on Cyan FXP (Free Xperia Project) - it's way less smooth and little buggy but it works with PDroid at least.

What do you think about SE Tweaked incompatibility? Is it possible to solve this somehow? Should I trace a boot log? Is it a kernel incompatibility? There is no signs of problems till I install PDroid app. It boots fine till that, with patch applied.
[Android Apps and Games] Serviette:
Hi,

For HTC Desire :

GingerVillain 3.3 :

PDroid-v1.27-GingerVillain3.3.zip

PDroid-RESTORE-GingerVillain3.3.zip

Redux 1.2 :

PDroid-v1.27-Redux-v1.2-signed.zip

PDroid-RESTORE-Redux-v1.2-signed.zip
[Android Apps and Games] svyat:
Didn't have that one ^^. How far does it get in the patching process before the error occurs?

I didn't mean a nandroid backup. I meant updating to the latest PDroid version and then creating a backup within PDroid.

If you're so anxious about that, you can boot into recovery and then overwrite your privacy directory and privacy.db ;)
[Android Apps and Games] krzych:
But I have not already the system which created this db, now I have only clean one, with not much config onboard :).

Yep, this solves paralell access issue. But isn't the most convenient one :). Thanks anyways for this tip :).
[Android Apps and Games] simpty:
What about the LG 2x? Can you support it as well? Can you write a patch for it? Would be great!
[Android Apps and Games] svyat:
Try installing the JDK from here: http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-windows-i586.exe

I'll try to remove that requirement in a future release.
[Android Apps and Games] svyat:
Use the patcher and make it yourself ;)
[Android Apps and Games] frsp2:
svyat

What do you think of adding radio buttons right on the front screen?

[Icon] [PDroid]

Profile: (*) Trusted ( ) Untrusted ( ) Custom

[Icon] [Music]

Profile: ( ) Trusted (*) Untrusted ( ) Custom

When user push Custom, it opens detailed permission editor.

When user click Trusted, it enables all permissions for the app.

When user tap Untrusted, you know what it does ;)
[Android Apps and Games] moccor:
Right after selecting the ROM, it gives that error. I did it again, after installing that Java thing you linked to, and it still happened. It gave this error, not sure if it's the same one -

Description:

Stopped working

Problem signature:

Problem Event Name:	CLR20r3

Problem Signature 01:	pdroidpatcher.exe

Problem Signature 02:	1.0.0.0

Problem Signature 03:	4f17257e

Problem Signature 04:	System

Problem Signature 05:	2.0.0.0

Problem Signature 06:	4db90c9f

Problem Signature 07:	3aa1

Problem Signature 08:	394

Problem Signature 09:	System.ComponentModel.Win32

OS Version:	6.1.7601.2.1.0.256.1

Locale ID:	1033
[Android Apps and Games] Theraze:
I'm having the same problem trying to patch Valhalla Final for Galaxy S 4G.

This error happens on my Windows 7 64-bit after confirming the ROM every time regardless of compatibility settings. On my Windows 7 32-bit system, the PDroidPatcher.exe process runs for a while after selecting the rom and then closes silently without creating any patch files.
[Android Apps and Games] dreamsafari:
Hey man, thanks for the great app and patch. However i tried to apply the patch for liberty3X-2.0Gold and got a boot loop. Nothing changed even i re-flashed the rom and apply the patch directly.

I then tried to make the patch my self but kept receiving this error:

http://twitpic.com/88zm4p

For windows version, it just stopped working on my Windows 7 Enterprise.

Could anyone have a look into the problem or make another patch for the ROM? Thanks a lot.
[Android Apps and Games] catch33:
Is there somewhere a log saved of all the notifications that pop up?
[Android Apps and Games] krzych:
@svyat, I have a feature request - can you do a "global" master swicth on/off the privacy while releasing next version? It would be very helpful to mmit situations like you blocked something dependant on many services but you have to use it right now, and have no idea where to unblock. So you would unblock all, do the thing, block all again and then, when you'll have a time, search for the reason.

I had many times this issue, but I managed it differently - I was going from "allow all" to custom, but it's much better to walk like "deny all" and then to custom (by the way - "deny all" should be a button which deny's all in settings not to walk around clicking "deny for this app" everytime after rom flash - similarly, there could be a button to deny all for one app like someone here suggested).

And that would be really nice step forward for the app.
[Android Apps and Games] catch33:
@krzych:

If you switch everything to 'block' for every app (sys and user) and tick 'notify on data access' on under 'preferences' you can see what the different apps like to access.

(e.g. like WhatsApp want access to 'incoming call number', wtf :confused:)
[Android Apps and Games] krzych:
Man, I _just_said_ that the problem is "switching everything to 'block'" like you said itself! It's a clicking about 1000 times on the radios for 200 apps installed! Your advice does not change anything in this matter! (and more, I really know how to detect what is needed and what not and that's why I'm really denying ALL that much I sometimes do it one step too far :P).

Ow, since we are at this topic - anyone knows what and for which app have I blocked something that my clock cannot determine timezone? :D (no, allowing ALL to the clock does NOT repair this). It's a Sense's clock to be precise, but I think the system itself cannot determine timezone (notification about setting timezone shows up). I would be really happy to know this one, because after each reboot system asks to set timezone (but time is correct as it already knew this - don't really know why, maybe it's a time GMT but set up to my time here). When switching access notification in PDroid to ON, there's no request matching network/sim/etc. for anything clock related.
[Android Apps and Games] catch33:
Yeah, I thought so... sorry :(

I already set all to 'block' by hand, but I also like to have a "global" master switch in the future...
[Android Apps and Games] UnitedOceanic:
treid to patch CyanogenMod 7.1.2 for Milestone on Ubuntu did not really work for me.

***************************************************
**** PDroid Patcher Beta 0.71 - Patch Version 1.27
***************************************************

Creating temp dirs

mkdir: created directory `/home/oceanic/Downloads/test/tmp1326973261'
mkdir: created directory `/home/oceanic/Downloads/test/tools1326973261'

Extracting tools and resources

inflated: apktool.jar
inflated: apktool
inflated: pdroidpatcher.jar
inflated: services.patch
inflated: framework.patch
inflated: core.patch
inflated: framework.mod.jar
inflated: signapk.jar
extracted: updatekey.pk8
inflated: updatecert.pem
inflated: updaterB
extracted: updaterA
inflated: cleanupsmalimod
inflated: aapt

Extracting original files from ROM

inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar
`system/framework/core.jar' -> `./core.jar'
`system/framework/framework.jar' -> `./framework.jar'
`system/framework/services.jar' -> `./services.jar'
`META-INF/com/google/android/update-binary' -> `./update-binary'
`META-INF/com/google/android/updater-script' -> `./updater-script'

Decompiling original files

I: Copying assets and libs...
I: Copying assets and libs...
I: Copying assets and libs...

Cleaning up smali code

/home/oceanic/Downloads/test/tools1326973261/cleanupsmalimod: line 3: framework.mod.jar.out/smali/android/app/ContextImpl.smali.new: No such file or directory
mv: cannot stat `framework.mod.jar.out/smali/android/app/ContextImpl.smali.new': No such file or directory
/home/oceanic/Downloads/test/tools1326973261/cleanupsmalimod: line 6: framework.mod.jar.out/smali/android/content/ContentResolver.smali.new: No such file or directory
mv: cannot stat `framework.mod.jar.out/smali/android/content/ContentResolver.smali.new': No such file or directory
/home/oceanic/Downloads/test/tools1326973261/cleanupsmalimod: line 9: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.new: No such file or directory
mv: cannot stat `services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.new': No such file or directory
/home/oceanic/Downloads/test/tools1326973261/cleanupsmalimod: line 12: services.mod.jar.out/smali/com/android/server/ServerThread.smali.new: No such file or directory
mv: cannot stat `services.mod.jar.out/smali/com/android/server/ServerThread.smali.new': No such file or directory
/home/oceanic/Downloads/test/tools1326973261/cleanupsmalimod: line 15: core.mod.jar.out/smali/java/lang/ProcessManager$ProcessImpl.smali.new: No such file or directory
mv: cannot stat `core.mod.jar.out/smali/java/lang/ProcessManager$ProcessImpl.smali.new': No such file or directory

*** ERROR: failed to cleanup smali code
[Android Apps and Games] Serviette:
Install open jdk 6.
[Android Apps and Games] frsp2:
"Will only work with deodexed ROMs"

"CM 7.1.2 (2.3.7) odexed"

https://github.com/nadlabak/android/downloads
[Android Apps and Games] UnitedOceanic:
damn :mad: i should learn to read properly
[Android Apps and Games] tommytomatoe:
Just got to say your support on this thread is very nice and generous :-)

About to add this feature to my rom today. I will post a direct link to your thread. Thank you for this
[Android Apps and Games] chmodbot:
I have rebuilt several times to no avail and get boot loop myself. Need to do the log thing to see what is going on to send it to the developer.
[Android Apps and Games] krzych:
@Svyat

You wanted a screenshot, here it is. It is total CPU time since 20 hours ago with only about 50 apps installed. When I had more apps, this was multiplied few times.

The only two system processes which eat more than pdroid were:

- mediaserver - 9m (strange, it shouldn't)

- akmd - 6m (I suppose this one should stay quiet too)

Right after PDroid was:

- logcat2 - 2m 23s (possibly because logging _every_ privacy.db accesses along other things too)

- init - 53s (never knew that init does something after boot)

- wpa_supplicant - 41s

As I said, when I install twice more apps, PDroid goes crazy and it's at first place eating much more CPU time. Now I cannot afford to loose system stability, so I cannot paste the screen, but when I'll have a time, I'll do nandroid, install all the apps, do a screenshot and then recover from nandroid.
[Android Apps and Games] svyat:
Just a quick post. I fixed the patcher for Windows (hopefully). It should work in most cases ;).
[Android Apps and Games] Igthorn:
Nice. Windows patcher seems to be working perfectly.

Just patched a cut down "rom" zip I manually put together (no roms available for my tablet). Just had update-binary, update-script, the 3 jars, and build.prop. Patch creation went fine and everything is working.
[Android Apps and Games] deadf1sh:
ok the patcher is working for me (win7 64)

BUT!

When i try to apply it in CWM recovery, it give me an Error 06, installation aborted.

After a search, error 06 is related to encoding in wrong format:

http://www.droidforums.net/forum/droid-development/69912-clockwork-update-zip-error-status-6-a.html
[Android Apps and Games] Igthorn:
I got that too, I thought I caused that, since I put together the updater-script by hand before patching. Now after going back and looking at the original, it does seem like the patcher is changing updater-script from unix format to dos format.
[Android Apps and Games] Badd_blood:
I was looking for something like this but it looks like my device rom is not supported. MyTouch 4g using faux 2.3.5 AOSP atm.
[Android Apps and Games] moccor:
Still doesn't work for me haha. I uninstalled all my Java stuff and re-installed the package you linked to. I'm on windows 7, so I'm sure by default I have .net framework 3.5 or 4.
[Android Apps and Games] dreamsafari:
i tried to install openjdk and finally made a patch myself, and got a boot loop instead. i tried to pull a log by adb logcat but it kept telling me waiting for device and my DX just keep rebooting... :confused:
[Android Apps and Games] svyat:
You're right about the updater script format. Will fix that today probably. It didn't cause any trouble with my recovery though :p
[Android Apps and Games] DaBigFreak:
Hey, realy like to install this on my current used ROM "The End" for the Galaxy Ace.

But patching via Windows gives an error.

Spoiler content hidden.
[Android Apps and Games] dirtyreturn:
Would you add a patch for virtuous affinity or mt4g in general? Or could you point me in the right direction?
[Android Apps and Games] katmant:
Would it be possible to request a patch for the wildfire running cm7.1? Thanks in advance.:)
[Android Apps and Games] devrruti:
Could you explain this process? I would love to see this on Xperia devices
[Android Apps and Games] svyat:
It's up. Please test it and let me know if everything is running OK, since I don't own a Wildfire and cannot test it myself.

In order to make a PDroid ROM patch, you'll need to:

Make a clean AOSP build (2.3.4, assuming that your ROM is based on 2.3.x)

Make another build with PDroid sources added

Decompile the framework.jar, services.jar and core.jar files inside the system/framework directory (of both above builds) using apktool

Diff the output so that you know, which parts were changed by PDroid

Decompile the above three files from your ROM, you want to patch

Add the missing code to your ROM files based on the above diff

Recompile your patched ROM files using apktool

Some programming knowledge is required to patch those smali files, so it is not possible to create an easy step by step tutorial. If you've got the knowledge you need, the above list of necessary steps should be enough to get you going.

I'll look into patching MT4G and Xperia devices as soon as I can.
[Android Apps and Games] mvsteen:
Just found some time to look at this somewhat closer. Using an original DHD (2.3.3 and sense 2.1), not rooted. Would this work if temporary root is used for replacing /system/framework files, and PDroid is installed thereafter?

If so: would it be possible repost the script used for manually updating these file using ADB? Seems since my first look you have updated the instructions :)
[Android Apps and Games] katmant:
Hi. That was fast. Have dld and just tried to install but getting error status 0 in cwm. Am I doing something wrong?
[Android Apps and Games] svyat:
Most likely an incompatible CWM verison. What's your CWM version? 3.0.2.6 or higher is required. Try updating your CWM.
[Android Apps and Games] mvsteen:
Mmm... And just found out that that doesn't work due to security... That's a pitty!
[Android Apps and Games] katmant:
Thanks for reply. CWMD version I am running is 3.1.0.2.
[Android Apps and Games] VerizonKoolaid:
Patch request Motorola Droid X, cm4dx-gb && MIUI, 2.3.x

Please add support for the Motorola Droid X on these two wildly popular GB kernel ROMs:

Motorola Droid X, cm4dx-gb

http://rootzwiki.com/topic/10191-updated-info-on-revnumbers-cm4dx-gb/

http://revnumbers.synik4l.net/CM4DX-GB-20111105.zip

Motorola Droid X, MIUI

http://rootzwiki.com/topic/7909-rom-miuius-defx-11021/

http://roms.miui.us/shadow/MIUI.us_Shadow_1.10.21_Eng_Deo_ZipA_Signed_DXC.zip

/PM
[Android Apps and Games] svyat:
That's weird. Please try updating it anyway through ROM Manager or get the latest version from here: http://www.clockworkmod.com/rommanager
[Android Apps and Games] NicholasQ:
Svyat although I haven't been able to try your app yet I will say this looks very promising. I think it's awesome to have control over permissions for apps like how you've implemented it. I'm surprised it hasn't seem to be done like how you've done it. All in all, if this works great it should become a standard rom tweak the chefs add to roms. I don't see why somebody wouldn't want this kind of control.
[Android Apps and Games] vasiaeva:
HTC EVO 4G MIUI 1.18.5. PLEASE DUDE
[Android Apps and Games] katmant:
Updated it to 5.0.2.0 and dld patch again just in case. But same result I'm afraid. Error in .zip status 0.
[Android Apps and Games] svyat:
If someone was having problems with the Desire HD 2.3.5 patch, please re-download, I just fixed it.

I'll see if I can find out what the problem is.

I'm glad you like it :)
[Android Apps and Games] jb789:
So, is CIQ beyond the reach of PDroid?

What about the leaks NC State found?

Do either of these issues even apply to CyanogenMod based ROMs in the first place?
[Android Apps and Games] svyat:
Try flashing this one: http://db.tt/8UOcJ12i . I have signed it and replaced the update binary with the one from Wildfire CM7.1 ROM. If that doesn't work, then there's definitely something wrong on your side.
[Android Apps and Games] svyat:
Never heard of that and never had it on my device. Looks like a US-only thing to me. Can't tell you if PDroid would block it, since I don't know if it is implemented as a simple app or hardcoded into the ROM (according to the article it's rather the latter). However, I don't see a major issue either way. If you have rooted your phone anyway (which is required to install PDroid), you might as well install a custom ROM, which does not include that CIQ ****.

From what I understand after quickly looking at the researchers' paper, all they need to do in order to illegally use some permission, is broadcast a specifically constructed Intent, which triggers some action of the poorly designed pre-installed applications. If the researchers published the exact Intents, which can lead to this "privilege escalation", I could actually easily filter them with PDroid. If you're concerned about this, you could try asking them for detailed information on those Intents and I would add a feature to PDroid for blocking them, but I think it's very unlikely they would publish all of those exploits before they are fixed.

Don't think so, since it is based on AOSP and as researchers state in their paper "For example, those smartphones with system images (i.e., the Motorola Droid) close to the reference Android design (i.e., the Nexus One and Nexus S) seem to be largely free of capability leaks [...]". And AOSP is THE reference design ;)
[Android Apps and Games] katmant:
Thanks for all your help. Tried the new patch .zip with different results. Now I get :

assert failed:mount ("ext3,"EMMC", "/dev/block/mmclk0p25", "/system") || mount("ext4", "EMMC", "dev/block/mmcblk0p25", "/system")

E.Error in /sdcard/Download/PDroid-HTC-Wildfire-CM-7.1.CM7binary.signed.zip

(status 7). No idea why. Never had issues with flashing other zip files. I have rooted and am s-off. Sorry its not straightforward.
[Android Apps and Games] svyat:
Damn it :D. I really have no idea what the issue is. You could try mounting /system and /data manually. In CWM, go to mounts and storage and choose mount /data, then mount /system. Then try flashing again.

It might also be helpful if you could post the contents of your recovery.log (located in the root of your SD card). Post it to pastebin.com and link it here ;)
[Android Apps and Games] jaibar:
Getting error when trying to run the windows patcher. xp sp3.

Sent from my HTC Glacier using Xparent Cyan Tapatalk
[Android Apps and Games] Haraldr Blaatand:
I only get a flick of the hour glass, and it exits. Tried the command line to see if there was some debug output, and nothing. It exits immediately.

Win7 x32 Enterprise.

FYI, the previous would show the GUI, but choked on the "file not found" exception others posted.
[Android Apps and Games] Igthorn:
W/System.err( 996): PrivacyProcessManager: could not find package name or UID
W/System.err( 996): java.io.FileNotFoundException: /proc/self/cgroup (No such file or directory)
W/System.err( 996):	at org.apache.harmony.luni.platform.OSFileSystem.open(Native Method)
W/System.err( 996):	at dalvik.system.BlockGuard$WrappedFileSystem.open(BlockGuard.java:232)
W/System.err( 996):	at java.io.FileInputStream.<init>(FileInputStream.java:80)
W/System.err( 996):	at java.lang.PrivacyProcessManager$PrivacyFileReader.<init>(PrivacyProcessManager.java:123)
W/System.err( 996):	at java.lang.PrivacyProcessManager.getUid(PrivacyProcessManager.java:101)
W/System.err( 996):	at java.lang.PrivacyProcessManager.hasPrivacyPermission(PrivacyProcessManager.java:33)
W/System.err( 996):	at java.lang.ProcessManager$ProcessImpl.<init>(ProcessManager.java)
W/System.err( 996):	at java.lang.ProcessManager.exec(ProcessManager.java:231)
W/System.err( 996):	at java.lang.Runtime.exec(Runtime.java:189)
W/System.err( 996):	at java.lang.Runtime.exec(Runtime.java:275)
W/System.err( 996):	at java.lang.Runtime.exec(Runtime.java:210)
W/System.err( 996):	at com.ghisler.android.TotalCommander.il.a(SourceFile:108)
W/System.err( 996):	at com.ghisler.android.TotalCommander.hr.run(SourceFile:8455)
W/System.err( 996):	at java.lang.Thread.run(Thread.java:1019)

I get a similar error when I run any root app. Root apps are taking longer to load and cause the system to slow down. No pdroid toast notifications of what is allowed/blocked, so it's probably not doing anything.

PDroid is working fine for non-root apps. It is allowing/blocking what it should.
[Android Apps and Games] svyat:
Your ROM is odexed. PDroid patcher only works with deodexed ROMs.
[Android Apps and Games] svyat:
From your screenshot it looks like you have installed multiple applications recently. In this case, PDroid uses your CPU since it checks the installed applications' permissions and displays the privacy configuration notification if necessary. Did you try logging the PDroid's CPU usage when you do not install/uninstall applications repeatedly?
[Android Apps and Games] svyat:
PDroid patcher for Windows updated with some bugfixes. Try 0.22 if you had trouble running 0.2 :)
[Android Apps and Games] moccor:
Awesome, I'll give it a try some time tonight, thank's for the hard work of trying to fix it and make it more convenient for Window's users.
[Android Apps and Games] deadf1sh:
Successfully patched and apply with windows patcher!

Thanks!
[Android Apps and Games] frsp2:
Are you sure that system log protection is fully functional?

I've downloaded this app to check PDroid abilities and it opens system log with no problem

https://market.android.com/details?id=com.electricsheep.asi
[Android Apps and Games] krzych:
Downloaded same app, no logs. Are you sure you denied access to them before running the app?
[Android Apps and Games] frsp2:
Yes.

1) Install

2) Deny all

3) First run

I've checked IMEI - it's empty so PDroid works for that.
[Android Apps and Games] revo420:
Are there any plans to port this to honeycomb?
[Android Apps and Games] moccor:
wit the latest .22 version, I get a .NET Framework unhandled exception. I then click continue, and it lets me see and use the nice new GUI. But upon loading the MIUI ROM, it says it is not a android ROM haha.
[Android Apps and Games] Looki75:
Thanks Svyat for the Windows patcher!

I could not make it work, and I guess it is because I'm lacking some instructions.

I installed everything needed (JDK) and downloaded the patcher.

I though I just need to run the patcher which will then ask me to point to the ROM zip, etc... but when I run it, nothing happen and after a while I get a windows message reporting a crash...

In OP, I see instructions for the LINUX patcher, but not for the Windows patcher; could anybody help?

Thanks