[Desire HD Android Development] krzych:
Yep, MADE IT at last.

Here it is, freshly made by PDroid Patcher Beta (of PDroid author which supposedly makes his own patches the same way) a patch for our LeeDroid 4.0.0 SE.

I flashed it already, all seems fine. I have successfully blocked few things and tested - blocked like I had broken GPS, heheh ;) - of course, only for choosen application, any other works fine. I cannot tell anything of stability as it is fresh as dinner rolls, so let us use it some time. I suppose that whatever would happen it will be still less than LBE Privacy Guard can do, so... :D Have a nice privacy :D

Build process seems to be quite clean, so I do not expect any problems. Here's the output:

[krzych@asus ~]$ ./patchpdroid LeeDrOiD_HD_V4.0.0-SE-3.0-BETA.zip
***************************************************
**** PDroid Patcher Beta 0.71 - Patch Version 1.27
***************************************************

Creating temp dirs

mkdir: created directory `/home/krzych/tmp1325458731'
mkdir: created directory `/home/krzych/tools1325458731'

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: system/framework/core.jar
inflated: system/framework/services.jar
inflated: system/framework/framework.jar
inflated: META-INF/com/google/android/updater-script
`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: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...
I: Baksmaling...
I: Copying assets and libs...

Cleaning up smali code

Applying PDroid patches

patching file smali/android/app/ContextImpl.smali
Hunk #1 succeeded at 37 (offset 4 lines).
Hunk #2 succeeded at 154 (offset 8 lines).
Hunk #3 succeeded at 651 (offset 8 lines).
Hunk #4 succeeded at 1237 (offset 132 lines).
Hunk #5 succeeded at 1258 (offset 132 lines).
Hunk #6 succeeded at 1475 (offset 132 lines).
Hunk #7 succeeded at 1796 (offset 211 lines).
patching file smali/android/content/ContentResolver.smali
Hunk #1 succeeded at 2913 (offset 63 lines).
patching file smali/android/privacy/IPrivacySettingsManager.smali
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub$Proxy.smali'
patching file 'smali/android/privacy/IPrivacySettingsManager$Stub.smali'
patching file smali/android/privacy/PrivacyFileObserver.smali
patching file smali/android/privacy/PrivacyPersistenceAdapter.smali
patching file 'smali/android/privacy/PrivacySettings$1.smali'
patching file smali/android/privacy/PrivacySettingsManagerService.smali
patching file smali/android/privacy/PrivacySettingsManager.smali
patching file smali/android/privacy/PrivacySettings.smali
patching file 'smali/android/privacy/surrogate/PrivacyAccountManager$PrivacyAccountManagerFuture.smali'
patching file smali/android/privacy/surrogate/PrivacyAccountManager.smali
patching file smali/android/privacy/surrogate/PrivacyActivityManagerService.smali
patching file smali/android/privacy/surrogate/PrivacyContentResolver.smali
patching file smali/android/privacy/surrogate/PrivacyCursor.smali
patching file 'smali/android/privacy/surrogate/PrivacyLocationManager$PrivacyLocationUpdater.smali'
patching file smali/android/privacy/surrogate/PrivacyLocationManager.smali
patching file 'smali/android/privacy/surrogate/PrivacyTelephonyManager$PrivacyPhoneStateListener.smali'
patching file smali/android/privacy/surrogate/PrivacyTelephonyManager.smali
patching file smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 13945 with fuzz 1 (offset 1889 lines).
Hunk #2 succeeded at 22025 (offset 4187 lines).
patching file smali/com/android/server/ServerThread.smali
Hunk #1 succeeded at 1141 with fuzz 1 (offset 1101 lines).
Hunk #2 succeeded at 1482 (offset 1130 lines).
patching file smali/java/lang/PrivacyInputStream.smali
patching file 'smali/java/lang/PrivacyProcessManager$PrivacyFileReader.smali'
patching file smali/java/lang/PrivacyProcessManager.smali
patching file 'smali/java/lang/ProcessManager$ProcessImpl.smali'

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/content/ContentResolver.smali.orig
W: Unknown file type, ignoring: framework.mod.jar.out/smali/android/app/ContextImpl.smali.orig
W: Could not find resources
I: Building apk file...
aapt: /lib/libz.so.1: no version information available (required by aapt)
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: preloaded-classes
adding: preloaded-classes(in = 65693) (out= 11977)(deflated 81%)
updated manifest

Building modified services.jar

I: Checking whether sources has changed...
I: Smaling...
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/ServerThread.smali.orig
W: Unknown file type, ignoring: services.mod.jar.out/smali/com/android/server/am/ActivityManagerService.smali.orig
W: Could not find resources
I: Building apk file...
aapt: /lib/libz.so.1: no version information available (required by aapt)
created: META-INF/
extracted: META-INF/MANIFEST.MF
updated manifest

Building modified core.jar

I: Checking whether sources has changed...
I: Smaling...
W: Could not find resources
I: Building apk file...
aapt: /lib/libz.so.1: no version information available (required by aapt)
created: META-INF/
inflated: META-INF/MANIFEST.MF
inflated: classes.dex
inflated: org/apache/harmony/dalvik/ddmc/README.txt
inflated: com/ibm/icu4jni/ThirdPartyProject.prop
inflated: org/apache/xalan/processor/XSLProcessorVersion.src
inflated: org/apache/xalan/res/XSLTInfo.properties
inflated: org/apache/xalan/Version.src
inflated: org/apache/xml/serializer/HTMLEntities.properties
inflated: org/apache/xml/serializer/output_text.properties
inflated: org/apache/xml/serializer/output_unknown.properties
inflated: org/apache/xml/serializer/Encodings.properties
inflated: org/apache/xml/serializer/output_html.properties
inflated: org/apache/xml/serializer/XMLEntities.properties
inflated: org/apache/xml/serializer/Version.src
inflated: org/apache/xml/serializer/output_xml.properties
inflated: java/security/security.properties
inflated: java/util/logging/logging.properties
inflated: org/xmlpull/ThirdPartyProject.prop
inflated: org/xml/ThirdPartyProject.prop
inflated: org/kxml2/ThirdPartyProject.prop
adding: com/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/(in = 0) (out= 0)(stored 0%)
adding: com/ibm/icu4jni/ThirdPartyProject.prop(in = 318) (out= 202)(deflated 36%)
adding: java/(in = 0) (out= 0)(stored 0%)
adding: java/util/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/(in = 0) (out= 0)(stored 0%)
adding: java/util/logging/logging.properties(in = 3123) (out= 1129)(deflated 63%)
adding: java/security/(in = 0) (out= 0)(stored 0%)
adding: java/security/security.properties(in = 5084) (out= 1837)(deflated 63%)
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/xml/(in = 0) (out= 0)(stored 0%)
adding: org/xml/ThirdPartyProject.prop(in = 224) (out= 178)(deflated 20%)
adding: org/xmlpull/(in = 0) (out= 0)(stored 0%)
adding: org/xmlpull/ThirdPartyProject.prop(in = 224) (out= 179)(deflated 20%)
adding: org/kxml2/(in = 0) (out= 0)(stored 0%)
adding: org/kxml2/ThirdPartyProject.prop(in = 209) (out= 173)(deflated 17%)
adding: org/apache/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/processor/XSLProcessorVersion.src(in = 4126) (out= 1696)(deflated 58%)
adding: org/apache/xalan/res/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xalan/res/XSLTInfo.properties(in = 1061) (out= 606)(deflated 42%)
adding: org/apache/xalan/Version.src(in = 4999) (out= 1909)(deflated 61%)
adding: org/apache/xml/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/(in = 0) (out= 0)(stored 0%)
adding: org/apache/xml/serializer/output_text.properties(in = 1525) (out= 832)(deflated 45%)
adding: org/apache/xml/serializer/HTMLEntities.properties(in = 4353) (out= 2220)(deflated 49%)
adding: org/apache/xml/serializer/output_unknown.properties(in = 1769) (out= 948)(deflated 46%)
adding: org/apache/xml/serializer/XMLEntities.properties(in = 1086) (out= 647)(deflated 40%)
adding: org/apache/xml/serializer/Encodings.properties(in = 11338) (out= 3094)(deflated 72%)
adding: org/apache/xml/serializer/output_xml.properties(in = 1818) (out= 943)(deflated 48%)
adding: org/apache/xml/serializer/Version.src(in = 4720) (out= 1869)(deflated 60%)
adding: org/apache/xml/serializer/output_html.properties(in = 1841) (out= 922)(deflated 49%)
adding: org/apache/harmony/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/(in = 0) (out= 0)(stored 0%)
adding: org/apache/harmony/dalvik/ddmc/README.txt(in = 78) (out= 69)(deflated 11%)
updated manifest

Creating flashable patch zip

added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/services.jar(in = 920787) (out= 919792)(deflated 0%)
adding: system/framework/framework.jar(in = 4641140) (out= 4611251)(deflated 0%)
adding: system/framework/core.jar(in = 1950511) (out= 1938506)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/updater-script(in = 252) (out= 152)(deflated 39%)
adding: META-INF/com/google/android/update-binary(in = 224244) (out= 143970)(deflated 35%)

Creating flashable restore zip

added manifest
adding: system/(in = 0) (out= 0)(stored 0%)
adding: system/framework/(in = 0) (out= 0)(stored 0%)
adding: system/framework/services.jar(in = 930339) (out= 929457)(deflated 0%)
adding: system/framework/framework.jar(in = 4628156) (out= 4544486)(deflated 1%)
adding: system/framework/core.jar(in = 1881327) (out= 1871005)(deflated 0%)
ignoring entry META-INF/
adding: META-INF/com/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/(in = 0) (out= 0)(stored 0%)
adding: META-INF/com/google/android/updater-script(in = 254) (out= 150)(deflated 40%)
adding: META-INF/com/google/android/update-binary(in = 224244) (out= 143970)(deflated 35%)

Removing temp dirs

Looks like everything went fine

PDroid patch: PDroid-v1.27-LeeDrOiD_HD_V4.0.0-SE-3.0-BETA.zip

MD5 hash: 612a978065594c329731fce39cfc5b9c

Flash it through CWM *OR* extract the files in /system/framework/ and push them via ADB

To restore your ROM and remove PDroid, flash PDroid-RESTORE-LeeDrOiD_HD_V4.0.0-SE-3.0-BETA.zip

[krzych@asus ~]$

And here are the files - first, a patch making PDroid working. Second, a recovery to original state.

Lee, you can append them to first post or even include in the ROM, I won't mind. Let us have some

PRIVACY

:P

ERM - i have problems with uploading files - I'll try again in edit mode...

SORRY - but this forum has REAL problems with uploading - uploaded somewhere else, here are the links:

PDroid-v1-27-LeeDrOiD-HD-V4-0-0-SE-3-0-BETA-zip

PDroid-RESTORE-LeeDrOiD-HD-V4-0-0-SE-3-0-BETA-zip

For those who does not know what PDroid does:

PDroid

It's in the Market. It works like LBE Security Guard, but seems to be much better (tested on ARHD shortly).

If you did not cleaned your ROM from Loggers and another s*it, its a MUST (and still after cleaning it's really great tool coz any app with oversized permissions can sell your data to be honest)

PS. Someone should really upload those with the forum tools - I could not - some technical problems reported to XDA admins - MTM? Help? :D (those are small files, should be here not to expire outside)