[Android Apps and Games] Completely_Clueless:
Re: Diagnosing Errors: Samsung Galaxy S II i777, UnNamed ROM

I decided to try this again with the updated patcher script (v0.71). I'm still using UnNamed ROM, still using a Samsung Galaxy S II (AT&T), and I still have root access.

I booted up my Ubuntu machine and ran the patcher script. It told me everything went fine. But after I flashed the PDroid ZIP, I got a boot loop, again :(! But this time, I created a log file with ddms.

This is the ddms log...

12-30 11:11:44.435: E/macloader(2519): wifi.mac_addr: check_wifi_address()
12-30 11:11:44.470: E/macloader(2519): wifi.mac_addr: .mac.info already exist!
12-30 11:11:44.470: E/macloader(2519): wifi.cid_info: .cid.info already exist!
12-30 11:11:44.520: E/DataRouter(2516): Main entered
12-30 11:11:44.520: E/DataRouter(2516): Data Router: INIT+
12-30 11:11:44.520: E/DataRouter(2516): dr_pcsync_init
12-30 11:11:44.520: E/DataRouter(2516): dr_init_pcsync_ipc
12-30 11:11:44.525: E/DataRouter(2516): dr_pcsync_launch
12-30 11:11:44.525: E/DataRouter(2516): dr_pcsync_monitor
12-30 11:11:44.525: E/DataRouter(2516): Waiting for connection request
12-30 11:11:44.525: E/DataRouter(2516):
[*] dr_smd_ril_open_client sucess 364b8
12-30 11:11:44.525: E/DataRouter(2516): Value of server socket is 11
12-30 11:11:44.525: E/DataRouter(2516): [dr_smd_ril_init] dr_smd_ril_open_client successful
12-30 11:11:44.525: E/DataRouter(2516):
[*] RegisterUnsolicitedHandler() successfully done
12-30 11:11:44.525: E/DataRouter(2516): [dr_smd_ril_init] dr_smd_ril_register_UnSol_Hdlr successful
12-30 11:11:44.525: E/DataRouter(2516):
[*] Connect_RILD() returns 4 retrycount 0
12-30 11:11:45.160: E/Netd(2512): -------- Create Direct Instance(1) -----------
12-30 11:11:45.475: E/Zygote(2517): setreuid() failed. errno: 2
12-30 11:11:45.650: E/yamaha::media::ParamFile(2518): readVolume(/data/system/volume.dat) Error.
12-30 11:11:45.735: E/yamaha::media::MixerCtrl(2518): setVolume() DIR#0:, vol=0.000000dB
12-30 11:11:45.760: E/yamaha::media::MixerCtrl(2518): setVolume() DIR#0 ATT:, vol=0.000000dB
12-30 11:11:45.775: E/yamaha::media::MixerCtrl(2518): setVolume() Master:, vol=0.000000dB
12-30 11:11:45.805: E/yamaha::media::MixerCtrl(2518): setVolume() AD Analog:, vol=0.000000dB
12-30 11:11:45.805: E/yamaha::media::MixerCtrl(2518): setVolume() Mic 1 Gain:, vol=15.000000dB
12-30 11:11:45.805: E/yamaha::media::MixerCtrl(2518): setVolume() Mic 2 Gain:, vol=15.000000dB
12-30 11:11:45.805: E/yamaha::media::MixerCtrl(2518): setVolume() Mic 3 Gain:, vol=15.000000dB
12-30 11:11:45.830: E/AudioHardwareYamaha(2518): Connect_RILD() error
12-30 11:11:46.525: E/DataRouter(2516):
[*] Connect_RILD() returns 4 retrycount 1
12-30 11:11:48.240: E/Zygote(2517): setreuid() failed. errno: 17
12-30 11:11:48.525: E/DataRouter(2516):
[*] Connect_RILD() returns 4 retrycount 2
12-30 11:11:48.625: E/libEGL(2825): eglSetSwapRectangleANDROID:1919 error 3008 (EGL_BAD_DISPLAY)
12-30 11:11:48.690: E/SurfaceFlinger(2825): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
12-30 11:11:48.710: E/PowerOnSound(2841): # int PlaySound()
12-30 11:11:48.710: E/AudioPolicyManager(2518): getParamFromPolicy
12-30 11:11:48.710: E/AudioPolicyManager(2518): getSituationVolume
12-30 11:11:48.780: E/OsclDirectFileIO(2518): [LargeFileSupport] OsclDirectFileIO::OpenFileOrSharedFd Error = -1
12-30 11:11:48.780: E/PlayerDriver(2518): Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported
12-30 11:11:48.780: E/PlayerDriver(2518): Player Driver, CommandCompleted, NO URL
12-30 11:11:48.780: E/MediaPlayer(2841): error (-4, -4)
12-30 11:11:48.780: E/PowerOnSound(2841): PoweronPlayerListener::Error -4, -4 occurred
12-30 11:11:48.780: E/MediaPlayer(2841): start called in state 0
12-30 11:11:49.585: E/PackageManager(2825): setPackageList() configFilename:/system/etc/enforcecopyinglibpackages.txt, packageList:[]
12-30 11:11:49.585: E/PackageManager(2825): There has no files. :/system/etc/enforcecopyinglibpackages.txt
12-30 11:11:50.525: E/DataRouter(2516):
[*] Connect_RILD() done
12-30 11:11:50.525: E/DataRouter(2516): [dr_smd_ril_init] dr_smd_ril_Connect successful
12-30 11:11:50.525: E/DataRouter(2516): [dr_smd_ril_init] dr_smd_ril_Connect successful
12-30 11:11:50.525: E/DataRouter(2516): [dr_smd_ril_init] successful
12-30 11:11:50.525: E/DataRouter(2516): Data Routerdr_smd_ril_init Successfully done
12-30 11:11:50.525: E/DataRouter(2516): this is the 1th MAR build
12-30 11:11:50.525: E/DataRouter(2516): +
12-30 11:11:50.525: E/DataRouter(2516): open_socket: channel 57
12-30 11:11:50.525: E/DataRouter(2516): -
12-30 11:11:50.525: E/DataRouter(2516): +
12-30 11:11:50.525: E/DataRouter(2516): Pipe Created
12-30 11:11:50.525: E/DataRouter(2516): Pipe Created sucessfully
12-30 11:11:50.525: E/DataRouter(2516): Pipe Created
12-30 11:11:50.525: E/DataRouter(2516): Launching MassStorage Monitor Thread
12-30 11:11:50.525: E/DataRouter(2516): Data Router: INIT-
12-30 11:11:50.525: E/DataRouter(2516): __initialize_usb_ipc
12-30 11:11:50.525: E/DataRouter(2516): Before the Modem Read select
12-30 11:11:50.525: E/DataRouter(2516): Initialise USB and start the thread
12-30 11:11:50.525: E/DataRouter(2516): +
12-30 11:11:50.525: E/DataRouter(2516): USB Interface is open with 0x16
12-30 11:11:50.525: E/DataRouter(2516): USB interface is now configured for usb_fd = 0x16
12-30 11:11:50.525: E/DataRouter(2516): -
12-30 11:11:50.525: E/DataRouter(2516): THREAD LAUNCH
12-30 11:11:50.525: E/DataRouter(2516): +
12-30 11:11:50.525: E/DataRouter(2516): +
12-30 11:11:50.525: E/DataRouter(2516): USB monitor thread launched, usb_fd= 0x16
12-30 11:11:50.525: E/DataRouter(2516): Before the while loop
12-30 11:11:50.525: E/DataRouter(2516): Before the usb select
12-30 11:11:54.720: E/PrivacySettingsManager(2825): getSettings - PrivacySettingsManagerService is null
12-30 11:11:54.725: E/PrivacySettingsManager(2825): deleteSettings - PrivacySettingsManagerService is null
12-30 11:11:54.755: E/BatteryService(2825): TMU status = 0
12-30 11:11:54.760: E/lights(2825): Command name ==>backlight
12-30 11:11:54.760: E/lights(2825): Command name ==>keyboard
12-30 11:11:54.760: E/lights(2825): Command name ==>buttons
12-30 11:11:54.760: E/lights(2825): Command name ==>battery
12-30 11:11:54.760: E/lights(2825): Command name ==>notifications
12-30 11:11:54.760: E/lights(2825): Command name ==>attention
12-30 11:11:54.760: E/lights(2825): Command name ==>bluetooth
12-30 11:11:54.760: E/lights(2825): Command name ==>wifi
12-30 11:11:54.780: E/AlarmManagerService(2825): android_server_AlarmManagerService_set to type=1, 1325265120.000000000
12-30 11:11:54.810: E/dalvikvm(2825): Invalid debug info stream. class Lcom/android/server/ServerThread;; proto ()V
12-30 11:11:54.835: E/wifi(2825): android_net_wifi_set_talk_battery() connect=1
12-30 11:11:54.835: E/WifiHW(2825): module is murata
12-30 11:11:55.045: E/EventHub(2825): could not get driver version for /dev/input/mice, Not a typewriter
12-30 11:11:55.345: E/WifiHW(2825): wifi_connect_to_supplicant:IFACE_DIR(/data/misc/wifi), iface(eth0), ifname(/data/misc/wifi/eth0)
12-30 11:11:55.345: E/WifiHW(2825): wifi_connect_to_supplicant: ifname(/data/misc/wifi/eth0)
12-30 11:11:55.545: E/WifiHW(2825): wifi_connect_to_supplicant:ctrl_conn is NULL!!
12-30 11:11:55.645: E/WifiHW(2825): wifi_connect_to_supplicant: ctrl_conn(0x18bc28)
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 0 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 2 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 3 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 4 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 5 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): not failing over to mobile type 10 because Mobile Data Disabled
12-30 11:11:55.660: E/ConnectivityService(2825): Network failover failing.
12-30 11:11:55.795: E/AlarmManagerService(2825): android_server_AlarmManagerService_set to type=0, 1325268761.033000000
12-30 11:11:55.800: E/TvoutStatusObserver(2825): HDMI status observer init
12-30 11:11:55.800: E/TvoutStatusObserver(2825): HDMI driver is not support the init state value
12-30 11:11:55.800: E/TvOut-Observer(2825): TvOutService
12-30 11:11:55.805: E/TvOut-Observer(2825): TvoutSetWakeMode is called SCREEN_O

... and this is the Terminal output log, just to show that the patcher seemed to find everything OK.

***************************************************

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

***************************************************
Creating temp dirs

mkdir: created directory `/home/jay/tmp1325263006'

mkdir: created directory `/home/jay/tools1325263006'

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 #2 succeeded at 154 (offset 8 lines).

Hunk #3 succeeded at 663 (offset 20 lines).

Hunk #4 succeeded at 1215 (offset 110 lines).

Hunk #5 succeeded at 1236 (offset 110 lines).

Hunk #6 succeeded at 1501 (offset 158 lines).

Hunk #7 succeeded at 1743 (offset 158 lines).

patching file smali/android/content/ContentResolver.smali

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 12060 (offset 4 lines).

Hunk #2 succeeded at 17854 (offset 16 lines).

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

Hunk #1 succeeded at 40 with fuzz 1.

Hunk #2 succeeded at 480 (offset 128 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/app/ContextImpl.smali.orig

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: Could not find resources

I: Building apk file...

created: META-INF/

inflated: META-INF/MANIFEST.MF

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/output_html.properties

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

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

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

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

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

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

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

inflated: java/security/security.properties

inflated: java/util/logging/logging.properties

inflated: org/kxml2/ThirdPartyProject.prop

inflated: org/xml/ThirdPartyProject.prop

inflated: org/xmlpull/ThirdPartyProject.prop

inflated: classes.dex

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

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

adding: org/apache/xml/serializer/output_xml.properties(in = 1818) (out= 943)(deflated 48%)

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

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/Version.src(in = 4720) (out= 1869)(deflated 60%)

adding: org/apache/xml/serializer/Encodings.properties(in = 11338) (out= 3094)(deflated 72%)

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

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

adding: org/apache/xalan/processor/XSLProcessorVersion.src(in = 4126) (out= 1696)(deflated 58%)

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

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

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 = 1926997) (out= 1915627)(deflated 0%)

adding: system/framework/services.jar(in = 857581) (out= 856823)(deflated 0%)

adding: system/framework/framework.jar(in = 4051087) (out= 4027159)(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 = 251) (out= 150)(deflated 40%)

adding: META-INF/com/google/android/update-binary(in = 224244) (out= 144717)(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/core.jar(in = 1925955) (out= 1917532)(deflated 0%)

adding: system/framework/services.jar(in = 843800) (out= 843194)(deflated 0%)

adding: system/framework/framework.jar(in = 3880763) (out= 3863032)(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 = 253) (out= 149)(deflated 41%)

adding: META-INF/com/google/android/update-binary(in = 224244) (out= 144717)(deflated 35%)

Removing temp dirs

Looks like everything went fine

PDroid patch: PDroid-v1.27-update-unnamed-v2.2.1-full.zip

MD5 hash: 85be8da417c74b70f76a102bc56aecff

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-update-unnamed-v2.2.1-full.zip

Any clues as to what might be the problem? Here is the thread for UnNamed ROM, the ROM I'm using.