rorre / Flyme_X510-cm

Flyme 6 Device Tree for Infinix Hot 2 -- Project died
5 stars 5 forks source link

[HELP][NOT-X510] com.android.phone crashes #4

Closed aymende7 closed 7 years ago

aymende7 commented 7 years ago

i used cm as base bootloop after flashing fullota here is the log

--------- beginning of crash 01-01 14:09:21.196 728 2392 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui 01-01 14:09:21.196 728 2392 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'android.os.Bundle android.content.IContentProvider.call(java.lang.String, java.lang.String, java.lang.String, android.os.Bundle)' on a null object reference 01-01 14:09:21.196 728 2392 E AndroidRuntime: at cyanogenmod.providers.CMSettings$NameValueCache.getStringForUser(CMSettings.java:242) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at cyanogenmod.providers.CMSettings$System.getStringForUser(CMSettings.java:516) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at cyanogenmod.providers.CMSettings$System.getIntForUser(CMSettings.java:561) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at com.android.server.policy.PhoneWindowManager.updateKeyAssignments(PhoneWindowManager.java:1876) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java:1713) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at com.android.server.wm.WindowManagerService$4.run(WindowManagerService.java:906) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at android.os.Handler$BlockingRunnable.run(Handler.java:759) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:61) 01-01 14:09:21.196 728 2392 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:46)

thanks in advance

rorre commented 7 years ago

Please post full log.

aymende7 commented 7 years ago

logcat errors only.txt

rorre commented 7 years ago

https://github.com/Rendyindo/Flyme_X510-cm/blob/marshmallow-6.0/Makefile#L57

Take a look at the variable, and match it with yours.

aymende7 commented 7 years ago

TeleService added should i remove BluetoothExt Makefile.zip thanks a lot

rorre commented 7 years ago

No dont add TeleService. Probaly just test with adding CMSettingsProvider

aymende7 commented 7 years ago

solved but still stuck in bootloop logcat.txt thanks

rorre commented 7 years ago
01-03 08:36:31.945  3749  3751 I dex2oat : Verification error in void gnu.crypto.hash.Haval.transform(byte[], int)
01-03 08:36:31.945  3749  3751 I dex2oat : void gnu.crypto.hash.Haval.transform(byte[], int) failed to verify: void gnu.crypto.hash.Haval.transform(byte[], int): [0xB] Invalid reg type for array index (Precise Reference: byte[])
01-03 08:36:31.946  3749  3751 W dex2oat : Verification failed on class gnu.crypto.hash.Haval in FileManager.apk because: Verifier rejected class gnu.crypto.hash.Haval due to bad method void gnu.crypto.hash.Haval.transform(byte[], int)
01-03 08:36:35.831  3749  3750 W dex2oat : No verified method for method calling String.<init>: java.lang.String java.io.ByteArrayOutputStream.toString()
01-03 08:36:37.481  3749  3749 I dex2oat : Skipping compilation of byte[] gnu.crypto.util.Util.toReversedBytesFromString(java.lang.String): it contains a non natural loop

the log is still incomplete, please send tombstones too (avaible at /data/tombstones)

aymende7 commented 7 years ago

tombstones.zip

rorre commented 7 years ago

uh-oh! looks like libandroid_runtime.so is not working. Try to use vendor libandroid_runtime.so.

aymende7 commented 7 years ago

from vendor folder?

rorre commented 7 years ago

yeah, take it from /system/lib/ of the CM13 rom.

aymende7 commented 7 years ago

tombstones.zip same problem ;-; got this problem with miui patchrom too

rorre commented 7 years ago

try to ask in FlymeOS/manifest issues, sorry, but I cant help you more becouse I haven't experienced this.

aymende7 commented 7 years ago

ok thanks a lot.

aymende7 commented 7 years ago

how to fix this ? thank you out/obj/system/framework/services.WjA/smali/com/android/server/SystemServer.smali[3197,4] There is already a label with that name. Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/server/SystemServer.smali at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:75) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:59) at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36) at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:404) at brut.androlib.Androlib.buildSources(Androlib.java:335) at brut.androlib.Androlib.build(Androlib.java:291) at brut.androlib.Androlib.build(Androlib.java:263) at brut.apktool.Main.cmdBuild(Main.java:227) at brut.apktool.Main.main(Main.java:84) /mnt/WorkSpace/flyme/build/main.mk:451: recipe for target 'out/obj/system/framework/services.jar' failed make[1]: [out/obj/system/framework/services.jar] Error 161 make[1]: Leaving directory '/mnt/WorkSpace/flyme/devices/aokp_piccolo' /mnt/WorkSpace/flyme/build/main.mk:34: recipe for target 'ota' failed make: [ota] Error 2

<<< fullota failed

sostk commented 7 years ago

(RendyAK) Log mirrored: https://transfer.sh/f4IPT/log.txt

help me wit this please

rorre commented 7 years ago

@aymende7 check services.jar.out/smali/com/android/server/SystemServer.smali line 3197, make sure you don't have the double label (like :try_start_0) in a file.

@sostk Check https://github.com/FlymeOS/devices-base_cm/tree/marshmallow-6.0/SystemUI/smali/com/android/systemui/keyguard https://github.com/FlymeOS/devices-base_cm/tree/marshmallow-6.0/TeleService/smali/com/android/phone https://github.com/FlymeOS/devices-base_cm/tree/marshmallow-6.0/Telecom/smali/com/android/server/telecom these folders, I guess.

sostk commented 7 years ago

@Rendyindo please can you help me???

rorre commented 7 years ago

@sostk also https://github.com/FlymeOS/devices-base_cm/blob/marshmallow-6.0/Makefile#L110

sostk commented 7 years ago

I have that all. as you said

rorre commented 7 years ago

ok, dont take tombstones, try to take a logcat, and upload it somewhere, dont copy paste it here.

sostk commented 7 years ago

flyme6_2.txt

sostk commented 7 years ago

here is the logcat

sostk commented 7 years ago

there are 4 :try_start_0 in systemserver.smali

aymende7 commented 7 years ago

SystemServer.smali.zip :try_start_3b

rorre commented 7 years ago

I'll check out stuffs this night

aymende7 commented 7 years ago

help :/

rorre commented 7 years ago

@aymende7 can you give me the SystemServer.smali reject file? sorry for being late

sostk commented 7 years ago

I do not get any systemserver.smali reject .

rorre commented 7 years ago

I don't mean to you @sostk , I mean to @aymende7 . Also @sostk to prevent confusion, can you create another issue here?

sostk commented 7 years ago

Ok no worries.

aymende7 commented 7 years ago

@Rendyindo https://github.com/Rendyindo/Flyme_X510-cm/files/1184871/SystemServer.smali.zip

rorre commented 7 years ago

@aymende7 there, there's probaly a double :try_start_3b and you seems to apply the reject wrong.

aymende7 commented 7 years ago

ok i will try again thanks

aymende7 commented 7 years ago

(^o^)/YES ! booted thanks a lot s00105-165133 one problem com.andriod.phone FC

sostk commented 7 years ago

@aymende7 which device>??

rorre commented 7 years ago

@aymende7 nice, if you're using mediatek device, add https://github.com/Rendyindo/Flyme_X510-cm/tree/marshmallow-6.0/TeleService/smali/com/mediatek/phone and https://github.com/Rendyindo/Flyme_X510-cm/blob/marshmallow-6.0/Makefile#L111

aymende7 commented 7 years ago

soory i am using bq m5 (qualcomm snapdragon 615)

rorre commented 7 years ago

Oh ok, as always, capture logcat.

On Jul 30, 2017 16:05, "Aymen" notifications@github.com wrote:

soory i am using bq m5 (qualcomm snapdragon 615)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Rendyindo/Flyme_X510-cm/issues/4#issuecomment-318888484, or mute the thread https://github.com/notifications/unsubscribe-auth/AGPQhdFck0P2vcJOoWh2s3gh5lEO_bN0ks5sTEdCgaJpZM4OSs2L .

aymende7 commented 7 years ago

ok i will flash it again

aymende7 commented 7 years ago

https://hastebin.com/ponucofoya.cs

rorre commented 7 years ago

Full log plz

On Jul 30, 2017 5:27 PM, "Aymen" notifications@github.com wrote:

https://hastebin.com/ponucofoya.cs

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Rendyindo/Flyme_X510-cm/issues/4#issuecomment-318892526, or mute the thread https://github.com/notifications/unsubscribe-auth/AGPQhe-8Kt03TieLUMD99ILAwaKa_MWQks5sTFqigaJpZM4OSs2L .

aymende7 commented 7 years ago

logcat.txt

aymende7 commented 7 years ago

same problem :(

aymende7 commented 7 years ago

nvrm solved by adding telresource to vendor saved apps

aymende7 commented 7 years ago

thanks