[Q] Help porting ROM - Android Q&A, Help & Troubleshooting

Hey all ,
I've been trying to port CM9 from Galaxy Y to s5830i, i know it's better to port from source, but since I don't know how, I'll have to do it this way. Problem is, that when I flash it, i get this error:
Code:
E/NetdConnector( 1455): at java.lang.Thread.run(Thread.java:856)
E/NetdConnector( 1455): Communications error
E/NetdConnector( 1455): java.io.IOException: No such file or directory
E/NetdConnector( 1455): at android.net.LocalSocketImpl.connectLocal(Native Method)
E/NetdConnector( 1455): at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
E/NetdConnector( 1455): at android.net.LocalSocket.connect(LocalSocket.java:98)
E/NetdConnector( 1455): at com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:119)
E/NetdConnector( 1455): at com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:88)
I've also been searching for solutions, and some people say its a bug of ICS, and others say that the real problem is in libsysutil.so, so I replaced it with the stock one, but still no luck. I've also replaced netd, but still... I have fixed all problems except that one, any ideas?

it's better to build from source rather than porting

speed_bot said:
it's better to build from source rather than porting
Click to expand...
Click to collapse
I know, but as I said I don't know how to, and I can't find any good guides out there. :S

ImSoBored said:
I know, but as I said I don't know how to, and I can't find any good guides out there. :S
Click to expand...
Click to collapse
there isnt a guide for developing there are guides for cooking... to get an idea start off with some kang builds look through device configs on github try to understand them then you can be called a developer

Related

[Q] Whatsapp Keep Crashing in MIUIv5 For Huawei Ascend P6.

Dear Sir,
I Am Using Huawei P6. Someone Recently Port MIUIV5 For Our Device ROM Is Working Properly Only This Missing Is Whatsapp Is Not Working. When We Open Whatsapp it Keep Crashing. I Installed Whatsapp+ Also Same Thing. i Clear Cache And Tried Everything i Can.
Older Version Of Whatsapp Is Working. But Older Version Will Work For More 10 Days Then It Will Ask For Update. Please Help Me If YOu Can.
Here Is Log :
java.lang.VerifyError: com/b
at com.whatsapp.App.onCreate(App.java:507)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1300(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)

[Q] No implementation found for native ResampleInputStream;.fir21:([BI[BII)V

I built my AOSP JB for a tablet, including all necessary customizations (project details discussed over here: https://groups.google.com/forum/#!forum/renesas-emev-osp).
I'm now in the clean-up stage, with a list of "minor" issues being debugged and hopefully removed. One of these is the use of Google Voice Search, which fails with this message:
Unfortunately, Voice Search has stopped
I've attached the complete logcat at http://pastebin.com/K1ces0Ai. Latest lines are those from the failure above.
I think these are the critical ones:
W/dalvikvm( 1130): No implementation found for native Lcom/google/android/voicesearch/endpointer/ResampleInputStream;.fir21[BI[BII)V
W/dalvikvm( 1130): threadid=16: thread exiting with uncaught exception (group=0x40a46300)
E/AndroidRuntime( 1130): FATAL EXCEPTION: Thread-122
E/AndroidRuntime( 1130): java.lang.UnsatisfiedLinkError: Native method not found: com.google.android.voicesearch.endpointer.ResampleInputStream.fir21[BI[BII)V
E/AndroidRuntime( 1130): at com.google.android.voicesearch.endpointer.ResampleInputStream.fir21(Native Method)
I found this in JB source code:
./frameworks/base/media/jni/android_media_ResampleInputStream.cpp
where fir21 is implemented, but it looks like it hasn't been compiled, or not correctly compiled. Could it be?
I looked at http://developer.android.com/training/articles/perf-jni.html#faq_ULE too, but it's been of little help.
Enabling debug logs I can see the library being loaded and methods registered:
I/MediaPlayerJNI( 72): JNI_OnLoad registering functions...
I/ResampleInputStream( 72): android/media/ResampleInputStream JNI registering
So I don't understand why, when java requires "fir21" from ResampleInputStream JNI, it can't find it. Naming should be correct, I guess... (this is all OOB AOSP code).
Any suggestions a bout how to debug this?
Thanks in advance!

[Q] troubles with apktool

hello there, i'm trying to add translations to MiuiExpress APK (http://xitong.xiaomi.com/index) decompile and recompile went well, but when i launch the APK on my phone it crash with the following fc log :
HTML:
{"platform":"4.4.2","exception_class":"java.lang.RuntimeException","error_type":"fc","build_version":"9a658b46e5","imei":"","package_name":"com.miui.miuilite","device":"Nexus 4","stack_track":"java.lang.RuntimeException: Unable to create service com.xiaomi.mms.transaction.SmsService: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.app.Application.getPackageName()' on a null object reference
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2602)
at android.app.ActivityThread.access$1800(ActivityThread.java:145)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1288)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5081)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)\nCaused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.app.Application.getPackageName()' on a null object reference
at com.xiaomi.mms.transaction.SmsService.onCreate(SmsService.java:36)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2592)
... 8 more\n","app_version":"1.0.1","network":"Orange F","exception_source_method":"android.app.ActivityThread.handleCreateService"}, processName is com.miui.miuilite
any idea what is the problem ? thanks you much
PS: even if i don't touch the APK after recompiling it i got the same error on my phone i use apktool 2.0.0 BETA 9

Cant restore whatsapp message

Hi all
I backed up my whatsapp message and when I trying to restore it on other phone got error
What I did is transfer database file to other phone and try to restore the messeges
here is the logcat
USER_COMMENT=
CUSTOM_DATA=
FILE_PATH=/data/data/com.gbwhatsapp/files
PHONE_MODEL=SM-G900FD
ANDROID_VERSION=4.4.2
APP_VERSION_NAME=2.12.246
APP_VERSION_CODE=450656
USER_CRASH_DATE=2015-11-09T01:39:28.000+03:00
USER_APP_START_DATE=2015-11-09T01:36:14.000+03:00
STACK_TRACE=java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:338)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:232)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:512)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:178)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:889)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:859)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:696)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:671)
at com.gbwhatsapp.av1.d(av1.java:763)
at com.gbwhatsapp.av1.c(av1.java:677)
at com.gbwhatsapp.am7.a(am7.java:177)
at com.gbwhatsapp.am7.a(am7.java:225)
at com.gbwhatsapp.av1.a(av1.java:2490)
at com.gbwhatsapp.a_g.a(a_g.java:39)
at com.gbwhatsapp.a_g.doInBackground(a_g.java:14)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:338)
at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:232)
at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:512)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:206)
at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:178)
at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:889)
at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:859)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:696)
at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:671)
at com.gbwhatsapp.av1.d(av1.java:763)
at com.gbwhatsapp.av1.c(av1.java:677)
at com.gbwhatsapp.am7.a(am7.java:177)
at com.gbwhatsapp.am7.a(am7.java:225)
at com.gbwhatsapp.av1.a(av1.java:2490)
at com.gbwhatsapp.a_g.a(a_g.java:39)
at com.gbwhatsapp.a_g.doInBackground(a_g.java:14)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Please how can I fix it ?
HELP

Problem with apps like instgram

Hello
I'm facing a problem while openning alot of apps or installing them for example instgram
Here's the report bug
java.lang.RuntimeException: Unable to instantiate application com.instagram.app.InstagramAppShell: java.lang.RuntimeException: java.io.IOException: cannot mkdir: /data/user/0/com.instagram.android/lib-main
at android.app.LoadedApk.makeApplication(LoadedApk.java:1073)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5916)
at android.app.ActivityThread.access$1200(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1673)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6806)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: java.lang.RuntimeException: java.io.IOException: cannot mkdir: /data/user/0/com.instagram.android/lib-main
at X.0DB.B9842)
at com.instagram.app.InstagramAppShell.attachBaseContext9514)
at android.app.Application.attach(Application.java:237)
at android.app.Instrumentation.newApplication(Instrumentation.java:1122)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1065)
... 9 more
Caused by: java.io.IOException: cannot mkdir: /data/user/0/com.instagram.android/lib-main
at X.0E1.C16718)
at X.0DN.E13847)
at X.0DN.B13783)
at X.0DB.B9823)
... 13 more
Click to expand...
Click to collapse
Ahmed1mohsen said:
Hello
I'm facing a problem while openning alot of apps or installing them for example instgram
Here's the report bug
Click to expand...
Click to collapse
Nobody can help !

Categories

Resources