[Q] No implementation found for native ResampleInputStream;.fir21:([BI[BII)V - Android Q&A, Help & Troubleshooting

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!

Related

[WIP] Multiple TaskSwitchers PORT [XU]help needed ?

well i am trying to port the recents view from Ligux to Xperia U Stock ICS 6.1.1.B.1.10
Systemui works
and Stock Taskmanager as well but * WebOS and Sense4 ones doesnt *
in all smali i have changed the IDS to correct ones however
when i change to other taskmanager
* using Liguxsettings because i have ported it from ligux so code are also same as from ligux *
it Stops :/
and i get
Code:
[ 01-25 16:15:28.130 1916:0x77c E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.NullPointerException
at com.android.systemui.recent.RecentsVerticalScrollView.update(RecentsVerticalScrollView.java:117)
at com.android.systemui.recent.RecentsVerticalScrollView.access$300(RecentsVerticalScrollView.java:36)
at com.android.systemui.recent.RecentsVerticalScrollView$8.onInvalidated(RecentsVerticalScrollView.java:330)
at android.database.DataSetObservable.notifyInvalidated(DataSetObservable.java:47)
at android.widget.BaseAdapter.notifyDataSetInvalidated(BaseAdapter.java:59)
at com.android.systemui.recent.RecentsPanelView.refreshRecentTasksList(RecentsPanelView.java:607)
at com.android.systemui.recent.RecentsPanelView.show(RecentsPanelView.java:216)
at com.android.systemui.recent.RecentsPanelView.show(RecentsPanelView.java:208)
at com.android.systemui.statusbar.phone.PhoneStatusBar$H.handleMessage(PhoneStatusBar.java:1152)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4448)
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:823)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:590)
at dalvik.system.NativeStart.main(Native Method)
:/
however i now dunno what to edit anymore because when i compare it seems all right :/
if someone can please help me
my systemui + settings are attached

Cannot sign any apk in Ubuntu..

Hey guys, i just installed Ubuntu in a VirtualBox, everything is great but i cannot figure out why i can't sign any apks.. here is the error that is generated.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/crypto/EncryptedPrivateKeyInfo
at com.android.signapk.SignApk.decryptPrivateKey(SignApk.java:124)
at com.android.signapk.SignApk.readPrivateKey(SignApk.java:154)
at com.android.signapk.SignApk.main(SignApk.java:436)
Caused by: java.lang.ClassNotFoundException: javax.crypto.EncryptedPrivateKeyInfo
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 3 more
I have java version 1.7.0_21 installed.

[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] 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

[Q] Error when packing CrimeCity with abe.jar

I did a full backup using adb of my device before I began flashing ROMs this weekend, and now I am at a point where I want to reinstall some applications. I am trying to restore Crimecity, but I am receiving an error when I try to pack the game. I'm fairly new at all of this, so I don't even know where to begin to troubleshoot. Any help would be appreciated!
Blev:Android ablevins$ java -jar abe.jar pack crimecity.tar crimecity.ab crimecity
Strong AES encryption allowed
key bytes: 46F0C66079B12475BFECB838B003A3A98277AF856FF5D5E0F7E5A2325FE0D65B
salt bytes: 6EB663AED5E069DA4AE5B0174AE9B87FBDCDAB83357204503B8C2595A93EF6C81292FAA3F4751B13B32839CAD9D7BA8DCC57951B684C06C17C4CC3517B8654AF
MK as string: [F??`y?$u???8????w??o??????2_??[]
Key format: RAW
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoSuchMethodError: java.util.zip.DeflaterOutputStream.<init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;Z)V
at org.nick.abe.AndroidBackup.packTar(AndroidBackup.java:390)
at org.nick.abe.Main.main(Main.java:67)
... 5 more
Blev:Android ablevins$ java -jar abe.jar pack crimecity.tar crimecity.ab
Strong AES encryption allowed
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.NoSuchMethodError: java.util.zip.DeflaterOutputStream.<init>(Ljava/io/OutputStream;Ljava/util/zip/Deflater;Z)V
at org.nick.abe.AndroidBackup.packTar(AndroidBackup.java:390)
at org.nick.abe.Main.main(Main.java:67)
... 5 more
Blev:Android ablevins$

Categories

Resources