yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DirkStorck:
Hi,

when I try to patch the CM7.2 ROM from 19.0.2012 I get the following error

Creating updater script
Building modified framework.jar
I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: framework.mod.jar.out\smali\android\app\ContextImpl.smali.orig
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at org.jf.dexlib.Util.ByteArrayAnnotatedOutput.ensureCapacity(ByteArrayAnnotatedOutput.java:577)
at org.jf.dexlib.Util.ByteArrayAnnotatedOutput.writeShort(ByteArrayAnnotatedOutput.java:180)
at org.jf.dexlib.Code.Format.Instruction21s.writeInstruction(Instruction21s.java:65)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:116)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(DexFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)

Error encountered, trying to build modified framework.jar again
I: Checking whether sources has changed...
W: Could not find resources
I: Building apk file...

But at the end it says that the patch was successfull. When I than flash the I patch I get a bootloop.

Any help please ?

Thanks :)
[Android Apps and Games] pastime1971:
if you are using CM9, i ported PDroid source patch to ICS (source only, no smali patching)

for other ROMs, you can compile it as long as you have access to the ROM source code.

see http://xdaforums.com/showthread.php?t=1554960
[Android Apps and Games] wkwkwk:
I can confirm PDroid working with CM9 on i9100 by compiling the source.
[Android Apps and Games] verszipo:
I've installed the patch on an LG Optimus Black P970 (with the Zeus 5.03 ROM) and it works great.

It was a little bit tricky until i understood how I'm supposed to get the ZIP file for patching, but after that it was a breeze.

The scary part is seeing what kind of access some of the apps require, especially games.

I would have a few suggestions (might have been suggested before):

- add an ability to quickly set a program as trusted or untrusted (for example a menu shown if you long click on an item)

- ability to filter the applications according to whether they are trusted/untrusted and also maybe a more advance filter, show all apps that require a certain access (for example "Network location").

- add a paid version, for some people it's easier to buy an app through the market than to donate through paypal

Thanx for the great work.

This should definitelly be a standard feature of Android, not a patch, but that's another story :)
[Android Apps and Games] wkwkwk:
Agree with the above suggestions, it would make it much easier to use the app.

I donated through paypal so the third one doesn't really apply.

Cheers
[Android Apps and Games] DividedByZer0:
Thanks NobbyNoo. I tried on another machine like you suggested and it worked. Kind of odd because the systems are very similar like you said but oh well, I'm just glad it worked.

Now to flashing the patch.
[Android Apps and Games] DividedByZer0:
Success

Finally! w00t!

I've got PDroid working on my HTC Incredible.

I was previously running a nightly of CM 7 (pre 7.1). I couldn't get the patch to work so I decided to try out 7.2 RC1. I was able to upgrade without a hitch and SUCCESSFULLY patch PDroid onto that.

The app loaded up and now I've got real privacy.

Thanks to everyone who worked on this. Also thanks to NobbyNoo for his reply to my post.
[Android Apps and Games] acocalypso:
hey great tool,

i did as in the description, but im not successfull, becaus my android network adapter is in a undefined network and i dont know how to change it.
[Android Apps and Games] ballmead:
So this doesn't work with ICS LPQ on Samsung Galaxy S2?
[Android Apps and Games] Px80:
Hi,

i wanted to install Pdroid, but i don't want to set up my whole Device.

I hoped i can make a Nandroid backup and apply the patch on my Backup so i can flash this one. I've got the EnergyRom by NRGZ28.
[Android Apps and Games] Theraze:
If you're building your copy from source, there's posts above about how to add PDroid in. If you're using a precompiled ROM, then you're stuck for now.
[Android Apps and Games] DividedByZer0:
You should try to obtain the ROM.zip you used flash your phone. I tried a few things to build the patch from my phone's system folder without success. The nandroid backup cannot be used to create a patch (as far as I understand).

Run the tool on the rom once you find it and that should produce two zip files. One to apply the patch and one to remove it.

Be sure to make a Nandroid backup before you apply any patches to your phone in case you need to roll everything back.
[Android Apps and Games] pastime1971:
nandroid backup

can

be used (not directly though). see post # 997 (and 996)
[Android Apps and Games] verszipo:
You're correct, you can use a Nandroid backup, it's a little bit harder than just a point and click but it works.

I did exactly what @pastime1971 and @alessia3 said, look at Post 996 and Post 997 (i gave direct links for people who don't know how to search)
[Android Apps and Games] pastime1971:
i used up all my thanks button... so literally, thanks ~ ;)
[Android Apps and Games] Px80:
I got troubles patching my rom.

The ROM i used http://xdaforums.com/showthread.php?p=23140997#post23140997
[Android Apps and Games] wooki:
Where did the linux patcher go? It always worked like a dream..
[Android Apps and Games] p4nts:
svyat said last week that he will only support Windows for the moment.
[Android Apps and Games] [1up]:
This is a must have app, it really should be built into android as a feature.
[Android Apps and Games] casacristo:
Here is the patch for MIUI XJ 2.3.16 X-PART for the HTC DESIRE
[Android Apps and Games] gdwy89:
Let's try this again (thanks to Mike for the help).

Again, if you have an Incredible 2, this patch may cause your softkey backlight to stop working. If anyone has a solution to this problem (i.e. all patches/mods causing the softkey backlight to stop working on the Inc2), I'd love to hear it.
[Android Apps and Games] adxgrave:
How do you guys configure options for each app? I'm in doubt whether to allow, random or block. How do you determine whether certain app need to access things it need or not. I know it's easy for the obvious one but what about others not so obvious? Will mistakenky blocking those needed render the app not fully functional? I've read the permission thingy explanation and quite confuse because it's not the same as the options in pdriod. We need documentation or do we have one already?
[Android Apps and Games] wooki:
Ok, thanks for your reply!

Sadly, because the linux version never produced errors, with the windows version i could never make a patch (since its first release).
[Android Apps and Games] dave198803:
can you give me a link to the pre-built patch for cyanogenmod 7? it was here before but i can't find it anymore. I never had to make a patch i just downloaded the pre-built one and it worked flawlessly. I have no computer so i can't make a patch. Can you please give me a link to the pre-built patch for htc evo 4g cyanogenmod7.1.0?
[Android Apps and Games] Px80:
It seems to me that the patcher does not work properly with windows.

Why must it be patched at all?

Will it be possible to install it without patch for any rom in future?

Seems to me like a realy nice app, much better than LBE :)

Anyway, many thanks for this app and i hope i will get it run as soon as possible
[Android Apps and Games] ukanth:
I think you should mount /system before install the patch. That should resolve the problem.
[Android Apps and Games] grej:
Working on X10 mini pro (U20i)

This is not the case, all folders/partitions are mounted :)

What solved my problem was new version of Patch.

I can confirm that PDroid Patcher version 1.32 is working on X10 mini pro (U20i) on MiniCM7 Pro V21 ROM.
[Android Apps and Games] pastime1971:
@ svyat,

wfd reported that yandex map force-closes w/ PDroid on CM7, P990.

his logcat is at http://pastebin.com/myDzVUrY

in particular, the following exception occurs

D/ru.yandex.OpenKODE( 5049): FileCache: createCache: cacheLocation: /tmp/cache/ru-RU/default
W/dalvikvm( 5049): threadid=13: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 5049): FATAL EXCEPTION: Thread-15
E/AndroidRuntime( 5049): java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
E/AndroidRuntime( 5049): at android.os.Handler.<init>(Handler.java:121)
E/AndroidRuntime( 5049): at android.telephony.PhoneStateListener$2.<init>(PhoneStateListener.java:299)
E/AndroidRuntime( 5049): at android.telephony.PhoneStateListener.<init>(PhoneStateListener.java:299)
E/AndroidRuntime( 5049): at android.privacy.surrogate.PrivacyTelephonyManager$PrivacyPhoneStateListener.<init>(PrivacyTelephonyManager.java:283)
E/AndroidRuntime( 5049): at android.privacy.surrogate.PrivacyTelephonyManager.listen(PrivacyTelephonyManager.java:266)
E/AndroidRuntime( 5049): at eu.run(Unknown Source)
E/AndroidRuntime( 5049): at java.lang.Thread.run(Thread.java:1019)
W/ActivityManager( 1163): Force finishing activity ru.yandex.yandexmaps/.MapActivity

does anybody else have issues w/ yandex map ?
[Android Apps and Games] gumnaam.sur:
Linux Patcher ?

Why was the Linux patcher removed ?

Secondly the windows patcher, has a bug, in that it selects the first JDK it finds, and there is no way to override that.

I have JDK5, / 6/ 7 installed on my windows box, with JAVA_HOME env. variable pointing to JDK 6.

But yet the patcher uses jdk 5's jar command, and fails.

I don't want to uninstall JDK 5 as I use it for some old project testing.

Can you provide a way to specify which JDK to use , may be as an option in the windows binary ?
[Android Apps and Games] svyat:
I'll take a look.

Thanks for info, will take a look.

Really? I thought I fixed it in 1.31. At least yandex maps does not FC on me anymore...

Thanks for your suggestion. I'll consider adding such an option in the future.
[Android Apps and Games] pastime1971:
it was using patch source 1.27, which is the only version available in the first post.

can you link the latest source ?

thank you very much.
[Android Apps and Games] svyat:
FAILED patching errors should be fixed now.

Will do, tomorrow :)
[Android Apps and Games] Theraze:
Still fail with the .321 patcher. Tried it both on Windows 7 64-bit with JDK 1.7.1 and Windows 7 32-bit with JDK 1.6.31 and when trying to install the zip, same

System is mounted (mounts are UMUU) and... I guess I'll wait for the next version. Anything else I can do to help increase the chance of it working? :)
[Android Apps and Games] romracer:
For me, the patcher expects the JDK to be in the default path (Program Files). By putting the path to my $JDK\bin directory in the PATH environment variable, I was able to get the patcher to work. Maybe you can do similiar with your JDKs? Put the path to the JDK 6\bin directory in your PATH environment variable (before 5 or 7)?
[Android Apps and Games] romracer:
"adb shell cat /tmp/recovery.log" while still in recovery and after the install has failed. Maybe the log gives more detail.
[Android Apps and Games] Theraze:
Attached is that piped into a log text, to avoid spamming people unnecesarily.

Also attached the PDroid patch zip.
[Android Apps and Games] romracer:
Sorry, what kind of phone is that? Is that the only recovery available for it? The interesting part of the logs is:

-- Installing: /sdcard/PDroid-v1.32-Final-Fixed.zip

Finding update package...

I:Update location: /sdcard/PDroid-v1.32-Final-Fixed.zip

Opening update package...

Installing update...

Starting AROMA INSTALLER version 1.00

© 2011 by amarullz xda-developers

Starting AROMA INSTALLER version 1.00

© 2011 by amarullz xda-developers

minzip: Opening archive '/sdcard/PDroid-v1.32-Final-Fixed.zip' 0xf9478

minzip: numEntries=8 cdOffset=7015512

minzip: Closing archive 0xf9478

minzip: munmap(0x40001000, 7016126) succeeded

E:Error in /sdcard/PDroid-v1.32-Final-Fixed.zip

I don't know what Aroma Installer is. And the minzip is a little odd (though CWM uses minzip AFAIK). It seems like it doesn't like the zip file itself (though there are 8 files in the zip = numEntries=8) or it doesn't like the updater-script syntax. Maybe you can find another update-binary from another ROM or recovery for your phone? Place it in the PDroid zip and overwrite the current one and try re-flashing.
[Android Apps and Games] Theraze:
This is a Samsung Galaxy S 4G, which unfortunately still doesn't have CM7 or a true AOSP rom yet.

Aroma Installer is a GUI in CWM that it seems most of the newer (last month or so) roms in its forum have been using.

The rom I'm using for this is the Valhalla-Black final-fixed version, from http://xdaforums.com/showthread.php?t=1404863.

Suppose I could try using an older version and see if that works... hopefully it'll be close enough to avoid bootloops, or if it does cause, to have the restore file still work. :D
[Android Apps and Games] HerrKomissar:
Getting a failed patch against the latest stable "Swagged out Stock Rom" (SWAG=on, HTC Evo 4G[/URL]).
[Android Apps and Games] vault1965:
I can confirm that patch is working for me now, i have managed to create patch for Bindroid 1.26 and Pdroid also works fine on rom after flashing patch zip, no problems with programs that i use.

Great work Svyat!

P.S This is on Win7 64 bit with Java 7
[Android Apps and Games] chrootz:
@Svyat- I have a question, Are you going include ICS 4.0.3 support for the pdroid privacy protection?

My Galaxy Tab 8.9 and 10.1 went ICS but darn your PDroidPatcher said not supported for 4.0.3. ARGGH

Keep it up good job and Looking forward get the ICS support soon as possible.
[Android Apps and Games] pastime1971:
love the first post w/ updated screenshots of app.

---------- Post added at 11:34 AM ---------- Previous post was at 11:33 AM ----------

if you have an access to ICS source code, you can try http://xdaforums.com/showthread.php?t=1554960
[Android Apps and Games] Sjonnie-Doe:
Mouting /system doesnt solve the problem, keep getting the error message that PDroid isn't installed :(
[Android Apps and Games] svyat:
I've succesfully patched the current version: http://d-h.st/Tv0
[Android Apps and Games] dqb:
Nice work.

I patched GingerVillain 3.3 /showthread.php?t=880465 a few weeks ago with the linux patcher, and it works perfectly !

Thank you.

I'm patient and I wait the port to ICS for using ICS. I can't use a rom without Pdroid now. :D
[Android Apps and Games] chrootz:
I would love download AOKP source and patch with this ics supported pdroid patch. I am having bunch problem on my computer right now so I cant compile the aosp source till i get my kindle fire usb driver problem need to be fix first.

thanks for the link.
[Android Apps and Games] pen²:
Hi,

is there any way to disable an Application's access to the MAC of the WLAN accesspoint the device is connected? I tried supplying Google Maps with random data (GPS and network) and disabled all other data sources. However, after some seconds where it showed me being in Antarctica, it positioned me correctly - but only when I was connected to my WLAN.

Best regards and thanks a lot for PDroid,

pen²
[Android Apps and Games] Borosin:
Weird stuff...

Hi,

I didn't know if the Restore-Backup problem described in post #1086 was already fixed in ver 0.321, so i decided to just try it out :)

But here's where things get weird:

With 0.321, my i9100 hangs at the boot screen...it's as if the /system partition didn't even exist.

So, to sum it up:...everything worked with 1.27, Restoring Backups didn't with 1.32/0.32, and it won't even boot with 1.32/0.321 :confused:

And it's _exactly_ the same rom.zip i'm patching, even using the same version of JDK :)
[Android Apps and Games] IvanNCase:
Quick request. I know a lot of games and music players want to have acces to the incoming number so that they can pause whats playing but that means that if you block it the apps can't autopause and if you leave the permission turned on they could in theory build there own call log. Anyway's just wondering if you could add a custom and/or random incoming call number like you have for GPS so that an app could know you have a call but it wouldn't know the real number?
[Android Apps and Games] pastime1971:
could anyone test if your google map still finds you after both disabled, with wifi on ?

thank you very much in advance.
[Android Apps and Games] rogier666:
In recent versions of LBE Privacy Guard the phone state permission is split from the phone identity permission. If LBE can do it there's no reason why it can't be part of PDroid too.
[Android Apps and Games] pen²:
Hi,

the problem is, if you disable gps and network location, google maps only tells you "please enable gps in order to be located" (or something similar) and refuses to show any location for you.

So, I disabled everything for google maps (incl. network location) and set gps to random. Start google maps. Bam, I'm in the atlantic ocean. Wait some seconds (Wifi on and connected) and I'm back home with approx. 30m inaccuracy - so I guess it has to do with the Wifi MAC.
[Android Apps and Games] mrhurn:
just checking because you don't mention it, did you tick "allow mock locations" in developer settings?
[Android Apps and Games] pen²:
Yes, I did; btw is there any detailed documentation on the permissions PDroid is able to block? (i.e. what do they mean, why would apps (legitimately) want to have them (like "see incoming phone number" => be notified if call is incoming so that game can be paused), what is needed so that disabling this permission actually works as intended).

Thanks for your help so far ;-)
[Android Apps and Games] gongoscho:
Same problem with boot! ROM: Android Revolution HD™ 7.0.2

Is there a plan to make the app multilingual? :cool:

DDMS Log:

03-30 18:46:05.562: E/AndroidRuntime(3030): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
03-30 18:46:05.562: E/AndroidRuntime(3030): java.lang.NoClassDefFoundError: android.app.ContextImpl$ApplicationContentResolver
03-30 18:46:05.562: E/AndroidRuntime(3030):	at android.app.ContextImpl.init(ContextImpl.java)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at android.app.ContextImpl.createSystemContext(ContextImpl.java)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at android.app.ActivityThread.getSystemContext(ActivityThread.java:1580)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at android.app.ActivityThread.attach(ActivityThread.java:4311)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at android.app.ActivityThread.systemMain(ActivityThread.java:4360)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at com.android.server.am.ActivityManagerService.main(ActivityManagerService.java)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at com.android.server.ServerThread.run(SystemServer.java)
03-30 18:46:05.562: E/AndroidRuntime(3030): Error reporting crash
03-30 18:46:05.562: E/AndroidRuntime(3030): java.lang.NullPointerException
03-30 18:46:05.562: E/AndroidRuntime(3030):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:97)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:854)
03-30 18:46:05.562: E/AndroidRuntime(3030):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:851)
03-30 18:46:06.232: E/HTC Acoustic(3063): Cannot open audience_2051 device (-1)
03-30 18:46:06.682: E/rmt_storage(3085): rmt_storage wait event ioctl failed
03-30 18:46:06.922: E/HTC Acoustic(3063): read receiver state fail. -1
03-30 18:46:06.922: E/TDAS Acoustic(3063): Fail to open /data/dolby/DM2_TDAS_CONFIG.csv
03-30 18:46:07.341: E/AudioHardwareMSM7X30(3063): msm_set_voice_rx_vol(100) failed errno = 1
03-30 18:46:09.690: E/Zygote(3084): setreuid() failed. errno: 17
03-30 18:46:10.130: E/BatteryService(3094): wirelessOnlinePath not found
03-30 18:46:10.240: E/libEGL(3094): eglSetSwapRectangleANDROID:1995 error 3008 (EGL_BAD_DISPLAY)
03-30 18:46:10.440: E/SurfaceFlinger(3094): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find width.
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find height.
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find framerate.
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find part1.
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find part2.
03-30 18:46:10.460: E/HtcBootAnimation(3113): Could not find part3.
[Android Apps and Games] ido:
this is the only thing keeping me from upgrading to ICS....
[Android Apps and Games] gongoscho:
Have anybody the v1.31 or 1.30 Patcher for Windows?
[Android Apps and Games] svyat:
If you block access to the incoming phone number, the app will still get the incoming call event, however it won't be able to read the number. So it is able to autopause and cannot build its own call log ;)
[Android Apps and Games] IvanNCase:
Ok, I didn't realize that you already had it set up to work that way. Thanks
[Android Apps and Games] ryanjoehere:
there 2 files created. 1 original and the other restore.zip.

for the restore.zip, is it for the use if the patch doesnt work?

does it revert to the state before patch? what it does?
[Android Apps and Games] svyat:
The PDroid Patch source is now available at http://pdroid.googlecode.com. Download instructions in the first post.

It restores your original ROM's files. Flash it if your device doesn't boot after flashing the patch.
[Android Apps and Games] ryanjoehere:
ok thanks. my device doesnt reboot after the patch. me on SgS2 android2.3.6
[Android Apps and Games] Borosin:
Good to see PDroid is on googlecode now...i think it also might be a good idea to host older versions of the public binaries there, since in theory, one needs only one working version per rom, and patching is always a tricky endeavour that can lead to looking at bootscreens.

For example, if i didn't keep the earlier version, i would now be the equivalent of "being nude in public", and on the other hand, to paraphrase another poster here...."using a rom incompatible with PDroid is not an option anymore" :D
[Android Apps and Games] bimasakti85:
Patching doesn't work with my rom that using aroma installer. I'm using atrix 4g with nottachtrix rom.

Sent from my MB860
[Android Apps and Games] shmodaddy:
Eclipse

Ok been working on this for couple of weeks on and off again. When I make a patch for eclipse 2.1 for my x2 I get my patch and restore zips but when I try to flash the patch I get an error and installation aborted. Any ideas???
[Android Apps and Games] pastime1971:
thanks for testing it.
[Android Apps and Games] Eric.Draven:
JW4

Hi,

I'm trying this with JW4 for SGS without success. Is there someone who already got that rom patched?

Thanks
[Android Apps and Games] bimasakti85:
I'm getting bootloop with patched nottachtrix rom. The flashable file from pdroid isnt flashable if we have a rom with aroma installer. So Ive manage to combine the "update-binary" in the flash file from another rom that isnt use aroma installer.

Sent from my MB860
[Android Apps and Games] XdaProNoob:
Many Thanks

So far your source code contribution is best thing ever happened in XDA!!!

I thank you for that big time.
[Android Apps and Games] IvanNCase:
Had a bit of a problem. I made a patch for the rom ThunderShed 1.5 and decided to grab the newest patcher to do it(1.32) but the patch made it bootloop so I went back to using PDroid 1.3 and everythings fine. I'm good with 1.3 but just figuerd I'd let you know that there might be some issue that sprung up between 1.3 and 1.32.