[Galaxy Ace S5830 Q&A, Help & Troubleshooting] jimmijam07:
I would of posted this in the offical thread for "[Rom][Official CM7 based]Nitrogen [Android UnChained][PSN FireKernel MemMod V3]" at http://xdaforums.com/showthread.php?t=2205818 but being new to the forum, can't post to the Development area. Then again, this may be more of a Pdroid-related issue and, if need be, can be moved accordingly.

Have installed this ROM plus the most-recent patch with no issues, but am having issues when I try to apply the Pdroid patch that I've generated from this ROM. Will boot up to "Samsung Galaxy Cooper GT-S5830" screen and not proceed any futher beyond that point.

Samsung Galaxy Ace GT-S5830D

Nitrogen[Android Un-Chained] Patched Up-To-Date with Patch 3.

Did notice some warnings generated in the patcher app log that may be of concern:

Note: Win7 User Dir Name has been changed and warning messages have been bolded and highlighted in red,

---

PDroid Patcher v0.321 - Patch v1.32

Patching C:\Users\******\Documents\Droidz\XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip

Extracting framework files from ROM

inflated: system/framework/core.jar

inflated: system/framework/framework.jar

inflated: system/framework/services.jar

inflated: META-INF/com/google/android/updater-script

inflated: 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\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

C:\Users\******\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\******\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 file(s) moved.

Applying PDroid patches

patching file smali/android/app/ContextImpl.smali

Hunk #2 succeeded at 151 (offset 5 lines).

Hunk #3 succeeded at 683 with fuzz 3 (offset 40 lines).

Hunk #4 succeeded at 1166 with fuzz 2 (offset 61 lines).

Hunk #5 succeeded at 1190 with fuzz 3 (offset 64 lines).

Hunk #6 succeeded at 1466 (offset 123 lines).

Hunk #7 succeeded at 1714 (offset 129 lines).

patching file smali/android/content/ContentResolver.smali

Hunk #1 succeeded at 2850 with fuzz 3.

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

Hunk #2 succeeded at 64 (offset 1 line).

Hunk #3 succeeded at 173 with fuzz 1 (offset 23 lines).

patching file smali/com/android/server/am/ActivityManagerService.smali

Hunk #1 succeeded at 13018 with fuzz 1 (offset 962 lines).

Hunk #2 succeeded at 19142 with fuzz 2 (offset 1304 lines).

patching file smali/com/android/server/ServerThread.smali

Hunk #1 succeeded at 44 (offset 4 lines).

Hunk #2 succeeded at 396 (offset 44 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

Hunk #1 succeeded at 57 (offset 5 lines).

Hunk #2 succeeded at 79 (offset 5 lines).

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

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\telephony\PhoneStateListener.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.Instruction22c.writeInstruction(Instruction22c.java:77)

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

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

created: META-INF/

inflated: META-INF/MANIFEST.MF

updated manifest

Building modified core.jar

I: Checking whether sources has changed...

I: Smaling...

W: Unknown file type, ignoring: core.mod.jar.out\smali\java\lang\ProcessManager$ProcessImpl.smali.orig

W: Could not find resources

I: Building apk file...

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/Version.src

inflated: org/apache/xalan/processor/XSLProcessorVersion.src

inflated: org/apache/xalan/res/XSLTInfo.properties

inflated: org/apache/xml/serializer/XMLEntities.properties

inflated: org/apache/xml/serializer/output_text.properties

inflated: org/apache/xml/serializer/HTMLEntities.properties

inflated: org/apache/xml/serializer/Version.src

inflated: org/apache/xml/serializer/Encodings.properties

inflated: org/apache/xml/serializer/output_xml.properties

inflated: org/apache/xml/serializer/output_unknown.properties

inflated: org/apache/xml/serializer/output_html.properties

inflated: java/security/security.properties

inflated: java/util/logging/logging.properties

inflated: org/xml/ThirdPartyProject.prop

inflated: org/kxml2/ThirdPartyProject.prop

inflated: org/xmlpull/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/security/(in = 0) (out= 0)(stored 0%)

adding: java/security/security.properties(in = 5084) (out= 1837)(deflated 63%)

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: org/(in = 0) (out= 0)(stored 0%)

adding: org/apache/(in = 0) (out= 0)(stored 0%)

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

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/Encodings.properties(in = 11338) (out= 3094)(deflated 72%)

adding: org/apache/xml/serializer/HTMLEntities.properties(in = 4353) (out= 2220)(deflated 49%)

adding: org/apache/xml/serializer/output_html.properties(in = 1841) (out= 922)(deflated 49%)

adding: org/apache/xml/serializer/output_text.properties(in = 1525) (out= 832)(deflated 45%)

adding: org/apache/xml/serializer/output_unknown.properties(in = 1769) (out= 948)(deflated 46%)

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/XMLEntities.properties(in = 1086) (out= 647)(deflated 40%)

adding: org/kxml2/(in = 0) (out= 0)(stored 0%)

adding: org/kxml2/ThirdPartyProject.prop(in = 209) (out= 173)(deflated 17%)

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

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/core.jar(in = 1914926) (out= 1902928)(deflated 0%)

adding: system/framework/framework.jar(in = 12434) (out= 12293)(deflated 1%)

adding: system/framework/services.jar(in = 708944) (out= 708315)(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/update-binary(in = 228376) (out= 147107)(deflated 35%)

adding: META-INF/com/google/android/updater-script(in = 243) (out= 144)(deflated 40%)

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/core.jar(in = 1862816) (out= 1851862)(deflated 0%)

adding: system/framework/framework.jar(in = 3128765) (out= 3116139)(deflated 0%)

adding: system/framework/services.jar(in = 684964) (out= 684053)(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/update-binary(in = 228376) (out= 147107)(deflated 35%)

adding: META-INF/com/google/android/updater-script(in = 243) (out= 144)(deflated 40%)

Successfully created PDroid patch.

PDroid Patch: C:\Users\******Documents\Droidz\pdroid\PDroid-v1.32-XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip.

You can flash it through recovery (for example CWM).

To restore your ROM and remove PDroid, flash PDroid-RESTORE-XDA_Nitrogen[Android Un-Chained][Revision1]-20130322-183515.zip

---

Also used Android Debug Monitor and captured the following errors from LogCat:

---

04-10 07:39:55.689: E/AudioHardwareMSM72XX(213): audioeq library open failure

04-10 07:40:02.819: E/dalvikvm(330): too small to be DEX

04-10 07:40:02.819: E/dalvikvm(330): Optimization failed

04-10 07:40:02.819: E/dalvikvm(212): Unable to extract+optimize DEX from '/system/framework/framework.jar'

04-10 07:40:05.639: E/JNIHelp(212): Native registration unable to find class 'android/debug/JNITest'

04-10 07:40:05.639: E/AndroidRuntime(212): Unable to register all android natives

04-10 07:40:06.059: E/dalvikvm(352): too small to be DEX

04-10 07:40:06.069: E/dalvikvm(352): Optimization failed

04-10 07:40:06.069: E/dalvikvm(348): Unable to extract+optimize DEX from '/system/framework/framework.jar'

04-10 07:40:06.159: E/JNIHelp(348): Native registration unable to find class 'android/debug/JNITest'

04-10 07:40:06.159: E/AndroidRuntime(348): Unable to register all android natives

---

And this keeps going on until I dsconnected the phone from my system.

Any assistance with this would be appreciated.

Cheers