[Android Apps and Games] JohnNAVI:
Hi there,

I am desperately trying to install PDroid on my Galaxy Y Duos (GT-S6102) for weeks. I have read thousands of posts on XDA and on other forums, without finding any solution. My problem is that I cannot apply the patch correctly to my rom. I tried PDroid Patcher v1.32 and v1.31 on my deodexed stock rom and on custom roms (i.e. TechnoDUOSv1.0 and v1.5, Chobits). I always get the same error:

PDroid Patcher v0.311 - Patch v1.31

Patching D:\Android\PDroid\TD1.5BDSkyN1502.zip

Extracting framework files from ROM
\décompressé : system/framework/core.jar
\décompressé : system/framework/services.jar
\décompressé : system/framework/framework.jar

\décompressé : META-INF/com/google/android/updater-script

\décompressé : META-INF/com/google/android/update-binary

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

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\app\ContextImpl.smali 1>framework.mod.jar.out\smali\android\app\ContextImpl.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\app\ContextImpl.smali.new framework.mod.jar.out\smali\android\app\ContextImpl.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\content\ContentResolver.smali 1>framework.mod.jar.out\smali\android\content\ContentResolver.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\content\ContentResolver.smali.new framework.mod.jar.out\smali\android\content\ContentResolver.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali 1>framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali.new framework.mod.jar.out\smali\android\telephony\PhoneStateListener.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali 1>framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali.new framework.mod.jar.out\smali\android\telephony\PhoneStateListener$1.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali 1>services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali.new services.mod.jar.out\smali\com\android\server\am\ActivityManagerService.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" services.mod.jar.out\smali\com\android\server\ServerThread.smali 1>services.mod.jar.out\smali\com\android\server\ServerThread.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y services.mod.jar.out\smali\com\android\server\ServerThread.smali.new services.mod.jar.out\smali\com\android\server\ServerThread.smali
1 fichier(s) d‚plac‚(s).

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>..\tools\sed "/^\s*\.\(line\s[0-9]\{1,\}\)\s*$/d" core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali 1>core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.new

C:\Users\xxx\AppData\Roaming\PDroidPatcher\tmp>move /Y core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.new core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali
1 fichier(s) d‚plac‚(s).

Applying PDroid patches
patching file smali/android/app/ContextImpl.smali
Hunk #2 succeeded at 149 (offset 2 lines).
Hunk #3 succeeded at 701 (offset 26 lines).
Hunk #4 succeeded at 1233 (offset 75 lines).
Hunk #5 succeeded at 1257 (offset 75 lines).
Hunk #6 succeeded at 1484 (offset 75 lines).
[COLOR=Red][B]Hunk #7 FAILED at 1737.[/B][/COLOR]
1 out of 7 hunks FAILED -- saving rejects to file smali/android/app/ContextImpl.smali.rej
patching file smali/android/content/ContentResolver.smali
Hunk #1 succeeded at 3116 (offset 7 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.smali
patching file smali/android/telephony/PhoneStateListener$1.smali
patching file smali/android/telephony/PhoneStateListener.smali

patching file smali/com/android/server/am/ActivityManagerService.smali
Hunk #1 succeeded at 12129 (offset -559 lines).
Hunk #2 succeeded at 17802 (offset -1031 lines).
patching file smali/com/android/server/ServerThread.smali
Hunk #2 succeeded at 414 (offset 31 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

failed to apply PDroid patches

I also tried to use Auto-Patcher from mateorod with all the different options, but it failed too. It seems that the problem comes from framework.jar. Does anybody have an idea of the way to solve this problem?

Thanx in adavance for your help.

EDIT:

I partially solved my problem by using PDroid Patcher 1.27 as I could see in the source code of v1.27 that the piece of code that was causing the problem was not present. However, v1.27 still has flaws as described in the "patch changelog".

It looks like GB 2.3.6 for the GT-S6102 has been modified compared to the GS2 for instance (I patched sucessfully the 2.3.6 deodexed stock rom of a GS2 with v1.31 and v1.32).

I hope that svyat will come back to continue the developpement of PDroid when he will have solved his stuff as this app is certainly a "must have". As NicholasQ said in previous posts, I would be happy to pay for an app with the functionalities of PDroid, especially if it was easier to install.