Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messaging Application Does not work. #11

Open
deb8 opened this issue Aug 12, 2013 · 26 comments
Open

Messaging Application Does not work. #11

deb8 opened this issue Aug 12, 2013 · 26 comments

Comments

@deb8
Copy link

deb8 commented Aug 12, 2013

Auto-Patcher : ApG 2.6.0.1
ROM: FXP231-cm-10-20130805-UNOFFICIAL-anzu

Patch is created successfully.

After applying patch, messaging app cannot start.
Clearing cache and dalvik-cache and fixing permissions did not solve the problem.
Installing mms.apk from the ROM.zip after applying patch also did not solve the problem.

LOGS

ApG.log

Pulling latest changes of autopatcher from GitHub...
error: could not lock config file /home/ndiama/.gitconfig: No such file or directory
No local changes to save
Already up-to-date.
Running autopatcher with the following arguments:
ROM_PATH: /cygdrive/d/Downloads/ApG/FXP231-cm-10-20130805-UNOFFICIAL-anzu.zip
PATCH_TYPE: openpdroid
ROM_TYPE: cm

The Auto-Patcher v3.0.19

verify tools

verify ROM

unzip patch tools

unzip patch patches

inflated: system/build.prop
... result of ROM check: RIL= SemcRIL

probe rom type

... result of ROM check: version= 4.1.2 rom= cm ...
... Using cm patches ...
... openpdroid patch date has been set to: 20130209 ...

unzip rom

inflated: system/app/Mms.apk
inflated: system/framework/core.jar
inflated: system/framework/framework.jar
inflated: system/framework/services.jar

create updater script

inflated: META-INF/com/google/android/update-binary
inflated: META-INF/com/google/android/updater-script
... using Clockworkmod installer ...

create restore.zip

decompile system files

... decompile framework.jar ...
... extract preloaded-classes ...
... decompile core.jar ...
... decompile services.jar ...
... installing framework files ...
I: Framework installed to: C:\Users\ndiama\apktool\framework\1.apk
... decompile Mms.apk ...

copy patch openpdroid/4.1/cm/20130209

... copying system/media/PDroid.jpeg ...
... overwriting system/media/PDroid.jpeg from openpdroid ...
... overwriting GsmServiceStateTracker.smali ...

jar patch openpdroid/4.1/cm/20130209

... apply framework.patch ...
... apply preloaded.patch ...
... apply core.patch ...
... apply services.patch ...

apk patch openpdroid/4.1/cm/20130209

... apply Mms.apk.patch ...

rebuild jar

... rebuild framework.jar ...
... rebuild core.jar ...
... rebuild services.jar ...

rebuild apk

... rebuild Mms.apk ...

create update-cm-anzu-20130805-openpdroid.zip

finished

Congratulations, the patching was successful.
Any errors you may have seen were succesfully handled!

!!! Only file a bug report if the software is not behaving as expected !!!

to install patched files, flash:
---update-cm-anzu-20130805-openpdroid.zip

to restore original system, flash:
---restore-cm-anzu-20130805.zip

AP.log

ROOT= /cygdrive/d/Downloads/ApG/ApGPackages/ap
TOOL= /cygdrive/d/Downloads/ApG/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/d/Downloads/ApG/FXP231-cm-10-20130805-UNOFFICIAL-anzu.zip
ROMX= D:\DOWNLO1\ApG\FXP2313.ZIP

verify tools

/cygdrive/d/Downloads/ApG/ApGPackages/cygwin/bin/tar
/cygdrive/d/Downloads/ApG/ApGPackages/Java/bin/jar
/cygdrive/d/Downloads/ApG/ApGPackages/Java/bin/java
/cygdrive/d/Downloads/ApG/ApGPackages/cygwin/bin/cpio

verify ROM

running ./auto_patcher /cygdrive/d/Downloads/ApG/FXP231-cm-10-20130805-UNOFFICIAL-anzu.zip openpdroid cm

PATH= /cygdrive/d/Downloads/ApG/ApGPackages/ap/tmp20130812181825:/cygdrive/d/Downloads/ApG/ApGPackages/Java/bin:/cygdrive/d/Downloads/ApG/ApGPackages/cygwin/bin:/cygdrive/d/Downloads/ApG/ApGPackages/cygwin/usr/sbin

unzip patch tools

unzip patch patches

... result of ROM check: RIL= SemcRIL

probe rom type

Standard Build Query

... openpdroid patch date has been set to: 20130209 ...

VER= v3.0.19

OS= cygwin 32bit

VID= 4.1.2

PID= openpdroid

MID= cm_anzu-userdebug

RID= cm

ANDR= 4.1

BDID= 20130805

DID= anzu

BID= 20130209

Current HEAD: 16dad8d1fedb578f6d87ed00ad52a42fd449c719 Merge pull request #145 from Urinophoria/master
5fab7e56d421b08fa0f3326b79857959714179c2 Added slim patches, and "latest" symlink. incremented auto_patcher ver and date. Think I got it all this time!

DELETE FILES=

COPY FILES= system/media/PDroid.jpeg

JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar

APK FILES= system/app/Mms.apk

IMG FILES=

TXT FILES=

unzip rom

create updater script

... using Clockworkmod installer ...

generated updater-script

ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("* ");
ui_print("
* The Auto-Patcher * ");
ui_print("
* * * * ");
ui_print("
* by mateor * ");
ui_print("
*");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print(" Attention");
ui_print(" ************************************");
ui_print("");
ui_print(" There is nothing that can go wrong here");
ui_print(" that reflashing your ROM won't fix.");
ui_print("");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

... extract preloaded-classes ...
inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...
inflated: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\ndiama\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Done.
I: Copying assets and libs...

copy patch openpdroid/4.1/cm/20130209

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...
patches/openpdroid/4.1/cm/20130209/system/media/PDroid.jpeg' ->./system/media/PDroid.jpeg'

... overwriting GsmServiceStateTracker.smali ...

delete patch openpdroid/4.1/cm/20130209

jar patch openpdroid/4.1/cm/20130209

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE=
GARBAGE=

... apply core.patch ...
GARBAGE=
GARBAGE=

... apply services.patch ...
GARBAGE=
GARBAGE=

apk patch openpdroid/4.1/cm/20130209

... apply Mms.apk.patch ...

The text leading up to this was:

|diff -Npru stock-mms/smali/com/android/mms/transaction/HttpUtils.smali pdroid-mms/smali/com/android/mms/transaction/HttpUtils.smali
|--- stock-mms/smali/com/android/mms/transaction/HttpUtils.smali 2013-07-14 11:42:04.274437468 -0500

|+++ pdroid-mms/smali/com/android/mms/transaction/HttpUtils.smali 2013-07-14 11:41:52.386437820 -0500

File to patch:
Skip this patch? [y]
4 out of 4 hunks ignored
GARBAGE=
GARBAGE=

img patch openpdroid/4.1/cm/20130209

text patch openpdroid/4.1/cm/20130209

rebuild jar

... rebuild framework.jar ...
adding: classes.dex(in = 8785584) (out= 3538095)(deflated 59%)
adding: preloaded-classes(in = 84887) (out= 14594)(deflated 82%)

... rebuild core.jar ...
adding: classes.dex(in = 2512356) (out= 1045997)(deflated 58%)

... rebuild services.jar ...
adding: classes.dex(in = 1818176) (out= 815814)(deflated 55%)

rebuild apk

... rebuild Mms.apk ...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

create update-cm-anzu-20130805-openpdroid.zip

added manifest
adding: system/framework/framework.jar(in = 3553274) (out= 3529681)(deflated 0%)
adding: system/framework/core.jar(in = 1050235) (out= 1043560)(deflated 0%)
adding: system/framework/services.jar(in = 816273) (out= 815222)(deflated 0%)
adding: system/app/Mms.apk(in = 2220697) (out= 2094119)(deflated 5%)
adding: system/media/PDroid.jpeg(in = 26898) (out= 25744)(deflated 4%)
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 = 193136) (out= 124459)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 2266) (out= 515)(deflated 77%)

finished

Congratulations, the patching was successful.

Any errors you may have seen were succesfully handled!

!!! Only file a bug report if the software is not behaving as expected !!!

---update-cm-anzu-20130805-openpdroid.zip

to restore original system, flash:

---restore-cm-anzu-20130805.zip

==========================================================

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

I have updated the Mms patch and I believe this error has been fixed. Thanks for the log, and let us know if it works for you. Updated as of auto-patcherv3.0.2

@deb8
Copy link
Author

deb8 commented Aug 13, 2013

I do not think that something has changed.
I downloaded and used the latest auto-patcher (3.0.2) in ubuntu.
The update and restore patches were built successfully.
I patched the phone and at first try the Messaging app could not start.
I rebooted and deleted cache, dalvik-cache and fixed the permissions.
Nothing changed.
Except from the auto-patcher log, which you will find below, is there something else I can contribute in ?
Note: Similar thread is opened in auto-patcher repo.
Link: mateor/auto-patcher#143

LOG

ROOT= /home/deb8/Downloads/auto-patcher-master
TOOL= /home/deb8/Downloads/auto-patcher-master/patch_tools.tgz
ROM= /home/deb8/Downloads/auto-patcher-master/FXP231.zip
ROMX= /home/deb8/Downloads/auto-patcher-master/FXP231.zip

checking for updates

Updater: Auto-Patcher is already up to date

verify tools

/usr/bin/patch
/bin/tar
/usr/bin/jar
/usr/bin/java
/bin/cpio

verify ROM

running ./auto_patcher FXP231.zip openpdroid cm

PATH= /home/deb8/Downloads/auto-patcher-master/tmp20130813094555:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

unzip patch tools

unzip patch patches

... result of ROM check: RIL= SemcRIL

probe rom type

Standard Build Query

... openpdroid patch date has been set to: 20130209 ...

VER= v3.0.2

OS= linux-gnu 32bit

VID= 4.1.2

PID= openpdroid

MID= cm_anzu-userdebug

RID= cm

ANDR= 4.1

BDID= 20130805

DID= anzu

BID= 20130209

Current HEAD: 514d153f827500490bd36b645f0f2536e26f1ce4 Add remade Mms.apk patch to Cm10

DELETE FILES=

COPY FILES= system/media/PDroid.jpeg

JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar

APK FILES= system/app/Mms.apk

IMG FILES=

TXT FILES=

unzip rom

create updater script

... using Clockworkmod installer ...

generated updater-script

ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("* ");
ui_print("
* The Auto-Patcher * ");
ui_print("
* * * * ");
ui_print("
* by mateor * ");
ui_print("
*");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print(" Attention");
ui_print(" ************************************");
ui_print("");
ui_print(" There is nothing that can go wrong here");
ui_print(" that reflashing your ROM won't fix.");
ui_print("");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
unmount("/system");
ui_print(" .");
ui_print(" .");
ui_print(" done!");

create restore.zip

decompile system files

... decompile framework.jar ...

... extract preloaded-classes ...
inflated: preloaded-classes

... decompile core.jar ...

... decompile services.jar ...
inflated: system/framework/framework-res.apk

... installing framework files ...

... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/deb8/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values / XMLs...
I: Done.
I: Copying assets and libs...

copy patch openpdroid/4.1/cm/20130209

... copying system/media/PDroid.jpeg ...

... overwriting system/media/PDroid.jpeg from openpdroid ...
'patches/openpdroid/4.1/cm/20130209/system/media/PDroid.jpeg' -> './system/media/PDroid.jpeg'

... overwriting GsmServiceStateTracker.smali ...

delete patch openpdroid/4.1/cm/20130209

jar patch openpdroid/4.1/cm/20130209

... apply framework.patch ...

... apply preloaded.patch ...
GARBAGE=
GARBAGE=

... apply core.patch ...
GARBAGE=
GARBAGE=

... apply services.patch ...
GARBAGE=
GARBAGE=

apk patch openpdroid/4.1/cm/20130209

... apply Mms.apk.patch ...

The text leading up to this was:

|diff -Npru stock-mms/smali/com/android/mms/transaction/HttpUtils.smali opd-mms/smali/com/android/mms/transaction/HttpUtils.smali
|--- stock-mms/smali/com/android/mms/transaction/HttpUtils.smali 2013-08-12 20:59:18.285263280 -0500

|+++ opd-mms/smali/com/android/mms/transaction/HttpUtils.smali 2013-08-12 20:59:27.273263015 -0500

File to patch:
Skip this patch? [y]
4 out of 4 hunks ignored
GARBAGE=
GARBAGE=

img patch openpdroid/4.1/cm/20130209

text patch openpdroid/4.1/cm/20130209

rebuild jar

... rebuild framework.jar ...
adding: classes.dex(in = 8785132) (out= 3585477)(deflated 59%)
adding: preloaded-classes(in = 84887) (out= 14594)(deflated 82%)

... rebuild core.jar ...
adding: classes.dex(in = 2512356) (out= 1057818)(deflated 57%)

... rebuild services.jar ...
adding: classes.dex(in = 1818176) (out= 823288)(deflated 54%)

rebuild apk

... rebuild Mms.apk ...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

create update-cm-anzu-20130805-openpdroid.zip

added manifest
adding: system/framework/framework.jar(in = 3600656) (out= 3577571)(deflated 0%)
adding: system/framework/core.jar(in = 1062056) (out= 1056033)(deflated 0%)
adding: system/framework/services.jar(in = 823747) (out= 822897)(deflated 0%)
adding: system/app/Mms.apk(in = 2218586) (out= 2088713)(deflated 5%)
adding: system/media/PDroid.jpeg(in = 26898) (out= 25744)(deflated 4%)
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 = 193136) (out= 124459)(deflated 35%)
adding: META-INF/com/google/android/updater-script(in = 2266) (out= 515)(deflated 77%)

finished

�[1m�[31mCongratulations�(B�[m, the patching was �[1m�[31msuccessful�(B�[m.

Any errors you may have seen were succesfully handled!

!!! Only file a bug report if the software is �[1m�[32mnot�(B�[m behaving as expected !!!

---�[1m�[32mupdate-cm-anzu-20130805-openpdroid.zip�(B�[m

to restore original system, flash:

---�[1m�[32mrestore-cm-anzu-20130805.zip�(B�[m

@JustMyGithub
Copy link

Same for the tapioca_ss build. Let me know if I can help with log files or anything else.

@deb8
Copy link
Author

deb8 commented Aug 13, 2013

This is the log before patching
http://codepad.org/gLPE8ZlQ

No FATAL exceptions

This is the log after patching
http://codepad.org/hOTtaePL

2 FATAL exceptions (identical)

1.

08-13 12:02:31.260 E/AndroidRuntime( 1352): FATAL EXCEPTION: main
08-13 12:02:31.260 E/AndroidRuntime( 1352): java.lang.NoClassDefFoundError: com.google.android.mms.util.PduCache
08-13 12:02:31.260 E/AndroidRuntime( 1352): at com.android.mms.util.PduLoaderManager.(PduLoaderManager.java:69)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at com.android.mms.MmsApp.onCreate(MmsApp.java:87)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.app.ActivityThread.access$1300(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.os.Handler.dispatchMessage(Handler.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.os.Looper.loop(Looper.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at android.app.ActivityThread.main(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at java.lang.reflect.Method.invokeNative(Native Method)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at java.lang.reflect.Method.invoke(Method.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at dalvik.system.NativeStart.main(Native Method)

2.

08-13 12:04:22.870 E/AndroidRuntime( 2116): FATAL EXCEPTION: main
08-13 12:04:22.870 E/AndroidRuntime( 2116): java.lang.NoClassDefFoundError: com.google.android.mms.util.PduCache
08-13 12:04:22.870 E/AndroidRuntime( 2116): at com.android.mms.util.PduLoaderManager.(PduLoaderManager.java:69)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at com.android.mms.MmsApp.onCreate(MmsApp.java:87)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.app.ActivityThread.access$1300(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.os.Handler.dispatchMessage(Handler.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.os.Looper.loop(Looper.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at android.app.ActivityThread.main(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at java.lang.reflect.Method.invokeNative(Native Method)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at java.lang.reflect.Method.invoke(Method.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at dalvik.system.NativeStart.main(Native Method)

@JustMyGithub
Copy link

A fatal exception BEFORE patching?

Or do you mean todays change by the word "patch" ? A bit cofusing if
you patch a patch and talk about before & after the patch :)

Zitat von deb8 [email protected]:

This is the log before patching
http://codepad.org/gLPE8ZlQ

No FATAL exceptions

This is the log after patching
http://codepad.org/hOTtaePL

2 FATAL exceptions (identical)

1.

08-13 12:02:31.260 E/AndroidRuntime( 1352): FATAL EXCEPTION: main
08-13 12:02:31.260 E/AndroidRuntime( 1352):
java.lang.NoClassDefFoundError: com.google.android.mms.util.PduCache
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
com.android.mms.util.PduLoaderManager.(PduLoaderManager.java:69)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
com.android.mms.MmsApp.onCreate(MmsApp.java:87)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.app.ActivityThread.access$1300(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.os.Handler.dispatchMessage(Handler.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.os.Looper.loop(Looper.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
android.app.ActivityThread.main(ActivityThread.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
java.lang.reflect.Method.invokeNative(Native Method)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
java.lang.reflect.Method.invoke(Method.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
08-13 12:02:31.260 E/AndroidRuntime( 1352): at
dalvik.system.NativeStart.main(Native Method)

2.

08-13 12:04:22.870 E/AndroidRuntime( 2116): FATAL EXCEPTION: main
08-13 12:04:22.870 E/AndroidRuntime( 2116):
java.lang.NoClassDefFoundError: com.google.android.mms.util.PduCache
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
com.android.mms.util.PduLoaderManager.(PduLoaderManager.java:69)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
com.android.mms.MmsApp.onCreate(MmsApp.java:87)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.app.ActivityThread.access$1300(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.os.Handler.dispatchMessage(Handler.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.os.Looper.loop(Looper.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
android.app.ActivityThread.main(ActivityThread.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
java.lang.reflect.Method.invokeNative(Native Method)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
java.lang.reflect.Method.invoke(Method.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
08-13 12:04:22.870 E/AndroidRuntime( 2116): at
dalvik.system.NativeStart.main(Native Method)


Reply to this email directly or view it on GitHub:
#11 (comment)

@deb8
Copy link
Author

deb8 commented Aug 13, 2013

As I said,

log BEFORE patching, NO FATAL EXCEPTIONS

log AFTER patching, 2 IDENTICAL FATAL EXCEPTIONS

with patching i mean installing the openpdroid patch.

@JustMyGithub
Copy link

Ups, I'm sorry - my bad.

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

Okay guys...I will look at this today. The problem is (at this point)
Auto-patcher related, not OpenPdroid. The Autopatcher log is what is
important right now. It cannot find the smali file to be patched, which
is quite new. But Autopatcher problems are fixable problems.

I just tested the evita and I am see the same issue, so I will check it
out. Thanks.

@JustMyGithub
Copy link

Dont know whether this helps, but heres my patcher log:

http://pastebin.com/Nc40YVYA

Zitat von mateor [email protected]:

Okay guys...I will look at this today. The problem is (at this point)
Auto-patcher related, not OpenPdroid. The Autopatcher log is what is
important right now. It cannot find the smali file to be patched, which
is quite new. But Autopatcher problems are fixable problems.

I just tested the evita and I am see the same issue, so I will check it
out. Thanks.


Reply to this email directly or view it on GitHub:
#11 (comment)

@JustMyGithub
Copy link

And corresponding ApG log:
http://pastebin.com/Lp0Le2Rf

Zitat von mateor [email protected]:

Okay guys...I will look at this today. The problem is (at this point)
Auto-patcher related, not OpenPdroid. The Autopatcher log is what is
important right now. It cannot find the smali file to be patched, which
is quite new. But Autopatcher problems are fixable problems.

I just tested the evita and I am see the same issue, so I will check it
out. Thanks.


Reply to this email directly or view it on GitHub:
#11 (comment)

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

I responded in the other thread about this issue #11 (comment).

We have our repo spread out, so I understand it is hard to find others with the same issues. But this particular problem should now be resolved.

@JustMyGithub
Copy link

sry, sms app still crashing on tapioca. If you can tell me how to
obtain crash report/stack trace I would be happy to post it.

cache+dalvik cache cleaned as usual. Is it necessary to wipe dalvik
cache if wipe cache is used anyway? If not I can skip this step in the
future :)

what do you mean by "larger picture CM10 problems" ?

Zitat von mateor [email protected]:

I responded in the other thread about this issue
#11 (comment).

We have our repo spread out, so I understand it is hard to find
others with the same issues.


Reply to this email directly or view it on GitHub:
#11 (comment)

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

Could you post your auto-patcher log?

As for larger CM10 problems..the addition of the FM radio commits in Cm10 broke our patches. I was initially advising to use builds from before that commit (0201 or so) especially since the development was basically stoppped at around that point. But I was told that the source patches were working. So I rebuilt the Cm10 patches as a test several months ago. You two are the first response I have had about that.

The Mms problems from the logs you two were originally showing had a definite cause...the Mms.apk was not getting patched at all. Now if the patches are successfully applying, then we the larger problem returns (or perhaps, remains).

@JustMyGithub
Copy link

sure,

http://pastebin.com/BE04xYM8

The non-patched app crashes?! How is that possible?! ^^
Is this a cm10 issue or a fxp-cm10 issue?!

Zitat von mateor [email protected]:

Could you post your auto-patcher log?

As for larger CM10 problems..the addition of the FM radio commits in
Cm10 broke our patches. I was initially advising to use builds from
before that commit (0201 or so) especially since the development was
basically stoppped at around that point. But I was told that the
source patches were working. So I rebuilt the Cm10 patches as a test
several months ago. You two are the first response I have had about
that.

The Mms problems from the logs you two were originally showing had a
definite cause...the Mms.apk was not getting patched at all. Now if
the patches are successfully applying, then we the larger problem
returns (or perhaps, remains).


Reply to this email directly or view it on GitHub:
#11 (comment)

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

Well, I will have to take a look at the earlier logs that were posted to see the problem, but this looks like it may just be the same old Cm10 issue. Android 4.1 shipped with a ton of bugs, one of the most trooublesome from our point of view was the fact that the framework.jar was shipped JUST below the hard-coded method limit proscribed by dx. That is why you see things like framework2.jar in custom roms, there was no room for extra code. The upstream addition of CM10's fm radio was a huge addition and is still, I guess, causing us problems. I didn't know that was what was happening, because in my earlier tests, the FCs were in the phone process, not SMS.

And as for your question, well, I am not certain it is possible. But we inject a ton of API into the other jar files, and if they were calling a process in SMS and not receiving the proper response, that is what a FC generally starts as. Also, the Mms app was being decompiled and recompiled, mixed with a failed patching process. So there is a lot of potential failures there, and since I could see the patching process failing in a unique way, it was not unreasonable to expect it might be the cause of a unique reported error.

You can use ROMs from 0201 or before, but this looks to need greater investigation, sorry.

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

also, I don't know what a fxp is, is that your build? We only officially support builds from the CM servers, although many kangs do work, we don't support that officially. But looking at your log, I don't necessarily think that the build is the problem.

Send me the manifest to build for your rom, if you know where to find it. I just looked in the Cm lunch menu, but did not see it. I will build a source-patched build, and we will see if the errors continue. I have heard that the source patches work fine now, but in that case experience teaches me that these auto-patched builds can work. If we want to investigate further, building a patched rom from source is probably the next step.

@JustMyGithub
Copy link

FCs? dx?
I'm not that deep into Android, but I'd like to learn.

FXP is unofficial, but afaik its just a port of CM to sony devices.
http://freexperiaproject.com/

Even the source code is in the official repository.

Is there any reason why the cm team itself does not use/support a framework2?
I don't know how those files are connected..... (or even why there is
a limit of procedures/entry points)

Zitat von mateor [email protected]:

Well, I will have to take a look at the earlier logs that were
posted to see the problem, but this looks like it may just be the
same old Cm10 issue. Android 4.1 shipped with a ton of bugs, one of
the most trooublesome from our point of view was the fact that the
framework.jar was shipped JUST below the hard-coded method limit
proscribed by dx. That is why you see things like framework2.jar in
custom roms, there was no room for extra code. The upstream addition
of CM10's fm radio was a huge addition and is still, I guess,
causing us problems. I didn't know that was what was happening,
because in my earlier tests, the FCs were in the phone process, not
SMS.

And as for your question, well, I am not certain it is possible. But
we inject a ton of API into the other jar files, and if they were
calling a process in SMS and not receiving the proper response, that
is what a FC generally starts as. Also, the Mms app was being
decompiled and recompiled, mixed with a failed patching process. So
there is a lot of potential failures there, and since I could see
the patching process failing in a unique way, it was not
unreasonable to expect it might be the cause of a unique reported
error.

You can use ROMs from 0201 or before, but this looks to need greater
investigation, sorry.


Reply to this email directly or view it on GitHub:
#11 (comment)

@mateor
Copy link
Collaborator

mateor commented Aug 13, 2013

Yeah, sorry. It is a lot of back information, to be sure. CM used the same
trick we used, and added the framework2.jar. You can see it in your ROM.
For 4.2, AOSP spun most of the telephony code out into telephony-common.jar
to solve this problem.

The problem for us came again when CM added the FM radio. That again filled
up the rest of the available space. We use a BUNCH of workarounds to make
code-injection possible, but as you see, something is wrong with 4.1. The
above is the cause, but I don't know where yet. I will build a test ROM for
either of your devices if you guys can point me to the code. Does
freexperia host the manifest? I will follow that link later tonight.

@deb8
Copy link
Author

deb8 commented Aug 14, 2013

I quote from their site,
"Source code is on main CyanogenMod repo
http://github.com/CyanogenMod and patches can be submitted through http://review.cyanogenmod.com/"

so there is a repo here on github, but i clearly do not know where to look, except this repo "android_packages_apps_Mms" which is the only relevant to the Messaging app.
Relevant link for 4.1 should be the jellybean-stable here,
https://github.com/CyanogenMod/android_packages_apps_Mms/tree/jellybean-stable

Q: When you say you will built a test ROM, you mean a test patch for our ROM ?

@mateor
Copy link
Collaborator

mateor commented Aug 16, 2013

I meant the actual rom [edit: I mean a device tree and even better a full manifest) for your device...CyanogenMod does not support any of the devices your logs were from officially (as far as I could tell). That just means someone else is maintaining the tree, I was just hoping you knew who it was.

But yes, I would like to build a OpenPDroid-patched rom for your device and see if it works for you...then we will know if we have an Autopatcher problem or a OpenPDroid problem. The distinction matters, for me to know best how to fix it. Think of the Autopatcher as merely a complicated installation method. I will search for a device tree this weekend.

@deb8
Copy link
Author

deb8 commented Aug 20, 2013

FreeXperia Team are the maintainers of CyanogenMod for Sony Xperia Devices
I quote from their site
"2011 we had an new meber Defer from Cyanogen and we became part of Cyanogen as Sony device maintainers"
So, i think that Mms.apk is the same in both roms.
CyanogenMod supports my device up to CM9. CM10 are nigthlies for CyanogenMod.
Are you saying that for CM10 this problem does not occur and occurs only for FXP233 ?
Last update is that for auto-patcher v3.0.214 along with FXP233-cm-10-20130819-UNOFFICIAL-anzu, the problem still exists.

@mateor
Copy link
Collaborator

mateor commented Aug 20, 2013

No what I was trying to do was find out if the issue was coming from
installing OpenPdroid with the Auto-patcher...or if the exact problem
persists when OpenPdroid is built into the roms with source patches. I was
asking if you had a manifest for your ROM because I did not see any of the
devices from this thread in the CyanogenMod 'lunch menu' (where you pick a
supported device to build for when building from source).

I have not forgotten about the issue...it is being looked into. I decided
that I couldn't justify trying to port or build for an unsupported
device...I didn't want the question open. I have tracked down an original
Nexus 7 grouper, that has 4.1.2 support, where previously I did not have a
device that supported CM10. I have built, but not yet flashed, a CM10 ROM
and should know more shortly.

@deb8
Copy link
Author

deb8 commented Sep 4, 2013

As you stated in this Link: mateor/auto-patcher#143
this is an openpdroid issue and that fixing it for 4.1 is a lowest priority.
You also mentioned that we can use pdroid.
Did you mean pdroid2.0 as pdroid supports up to 4.0 ?
Thanks.

@mateor
Copy link
Collaborator

mateor commented Sep 4, 2013

No I meant regular Pdroid. PDroid2.0 likely has the same issue that
OpenPDroid has with CyanmogenMod, ParanoidAndroid and any other rom that
merged the FM radio into Android 4.1. Not to get too too technical, but
Google shipped a framework.jar that was very nearly over the hard cap of
number of methods in the code. We found several ways around this, but it
broke again around 02/08/13 when CM merged the FM radio.

You can use OpenPDroid on 4.1 with a rom made from 02/01/13 or before
(you lose almost nothing except some bug fixes and the radio,
development on 4.1 early that year) or you can use the Autopatcher to
apply regular PDroid, which still works well on 4.1.

I have looked at the issue, as I said, but I do not have a solution
currently, and the bug list/TODO for 4.3 and beyond gets priority.

@JustMyGithub
Copy link

Why does PDroid 1.0 work?!
Isnt it possible to simply rip the fm radio out of a newer ROM?
I have sometimes Network Problems (no wlans detected or all mobile Providers listed as unknown) Is it possible, that this is also an issue with the OpenPDroid patch?!

thx

@mateor
Copy link
Collaborator

mateor commented Oct 25, 2013

The issue isn't the fm radio, it is the changes they made to allow the fm radio to work in CM10. I had to do some really crazzy stuff to allow PDroid and OpenPDroid support to CM10 due to a bug from upstream AOSP in the dx tool.

Put simply, the dx tool has a hardcap limit on how many java methods can be placed in jarfiles of 65,000-ish. Adding Pdroid or OpenPDroid makes the framework.jar too full. We were able to install the PDroid framework by either working with, or creating, the framework2.

When CM added the FM radio to CM10 around 020813, they moved around somethings in the framework2.jar and the framework.jar. Something they did is incompatible with our OpenPDroid patches, I have not discovered which. I am sure someone who was willing to investigate it fully could find the issue. I investigated just enough to determine that it was an overall OpenPDroid issue and not an Auto-patcher issue.

I am marking it "won'tfix" because I just don't have the time. Generally speaking, the only people who are stuck on 4.1 are those with stock software, and since we only support custom roms, I moved my support forward to the latest version of Android. I realize that there might be some users like you who may only have custom rom support for 4.1, and I do feel guilty about that. But I am maintaining three arms of this project already, my time is simply limited. And I don't feel you are left unprotected, since original PDroid is still working for your rom.

The issue isn't the FM radio, but the moving around of framework pieces they did to allow the FM radio to work. You can use a rom from before 020812, development of 4.1 stopped at about that time. OpenPdroid was written d for 4.2. We were able to backport it to 4.1 for awhile, but it wasn't written for 4.1. When upstream changed 4.1 sufficiently, support was lost. I would accept pull requests if someone fixes it, however I cannot fix it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants