So... I've been tooling around with my updated Tab 10.1 LE from IO and just updated to the 3.1 OTA -- it's missing libOpenSLES.so and libwilhelm.so (/system/lib).
These libraries among other missing ones are required by the Google CTS documentation.
Did anyone buy a Tab 10.1 at bestbuy on the 8th (or since) and can confirm whether their image has the libraries properly.
The missing libraries break apps that use the NDK and rely on things such as OpenSL, etc.
why didn't you just update it over the air?
Wow, are you blind? That *was* an OTA update--it's missing libraries required by the CTS
I'm not seeing these either. Quite concerning.
Can you give an example of an app that doesn't run ?
Any app that uses OpenSL will fail to run. In my specific case, Mirage Beta fails to run.
For now, I've worked around it by rooting and pulling the missing libraries from a 3.1 AVD
pfn said:
So... I've been tooling around with my updated Tab 10.1 LE from IO and just updated to the 3.1 OTA -- it's missing libOpenSLES.so and libwilhelm.so (/system/lib).
These libraries among other missing ones are required by the Google CTS documentation.
Did anyone buy a Tab 10.1 at bestbuy on the 8th (or since) and can confirm whether their image has the libraries properly.
The missing libraries break apps that use the NDK and rely on things such as OpenSL, etc.
Click to expand...
Click to collapse
Android Development is not for Questions or Problems
Moving to General
This is most certainly a problem for any developer wishing to use the NDK on a 3.1 Galaxy Tab 10.1
A workaround I sent to a developer of an app that requires OpenSL:
Ok, this is how /I/ worked around it (installed su via clockworkmod [fastboot boot clockworkmod...img] -- I couldn't seem to select an update.zip using the stock recovery):
I created an honeycomb 3.1 avd,
adb -e pull /system/lib/libOpenSLES.so .
adb -e pull /system/lib/libwilhelm.so .
push said files to /sdcard on the galaxy
adb -d shell; su
* mount -o remount,rw /system
* cat /sdcard/libOpenSLES.so > /system/lib/libOpenSLES.so
* cat /sdcard/libwilhelm.so > /system/lib/libwilhelm.so
* mount -o remount,ro /system
Suggestions on how you could work around it:
include libOpenSLES.so as libmyappOpenSLES.so and libwilhelm.so as libmyappwilhelm.so with your app
try {
System.loadLibrary("jni_code_using_OpenSL");
} catch (UnsatisfiedLinkError) {
System.loadLibrary("myappwilhelm");
System.loadLibrary("myappOpenSLES");
System.loadLibrary("jni_code_using_OpenSL");
}
It sucks, I hope samsung ships a new update to fix this...
Click to expand...
Click to collapse
From what I've read here, none of the Accessory support is there either.
Yup, I can confirm this is an issue. An example of an app that fails to launch because of it would be Age of Zombies by Halfbrick. Attached is a log of the app failing. This is a stock image of the Samsung Galaxy Tab 10.1 that I purchased from BestBuy two days ago.
problem with manual loading of libwilhelm.so
I am attempting to run the sdk native-audio example on Galaxy Tab 10.1.
I have attempted to implement the workaround by manually loading libwilhelm.so. I created an Android 3.1 virtual device and copied libwilhelm.so and libOpenSLES.so. I renamed them libMyWilhelm.so and libMyOpenSLES.so. I adjusted permissions to be rwxr-xr-x, matching the permissions on the project-generated lib. I created an and unpacked it, verifying that the libs were in the same directory. I modified the source to be:
try
{
System.loadLibrary("native-audio-jni");
}
catch (UnsatisfiedLinkError e)
{
System.loadLibrary("MyWilhelm");
System.loadLibrary("MyOpenSLES");
System.loadLibrary("jni_code_using_OpenSL");
}
When I run the app on the Galaxy Tab it crashes. Single stepping through the code, logcat shows:
I/DEBUG (27045): debuggerd: Jun 6 2011 09:10:57
D/dalvikvm(27018): Trying to load lib /data/data/com.example.nativeaudio/lib/libnative-audio-jni.so 0x408ace20
D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-4ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
W/ActivityManager( 282): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 282): Activity idle timeout for ActivityRecord{40c9a348 com.example.nativeaudio/.NativeAudio}
D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-4ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
^[[17~D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-4ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
D/dalvikvm(24008): GC_EXPLICIT freed 12K, 6% free 6315K/6659K, paused 2ms+2ms
D/UNA (24008): [PackageAgent] Finalizing
D/UNA (24008): [PackageAgent] Finalizing
D/dalvikvm(27018): Trying to load lib /data/data/com.example.nativeaudio/lib/libMyWilhelm.so 0x408ace20
I/DEBUG (27045): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG (27045): Build fingerprint: 'samsung/GT-P7510/GT-P7510:3.1/HMJ37/UEKF3:user/release-keys'
I/DEBUG (27045): pid: 27018, tid: 27018 >>> com.example.nativeaudio <<<
I/DEBUG (27045): signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 80c081b4
I/DEBUG (27045): r0 80c081b4 r1 00000000 r2 00000e40 r3 c0000000
I/DEBUG (27045): r4 00000000 r5 00000000 r6 00000000 r7 00000000
I/DEBUG (27045): r8 b0014bc8 r9 000001b4 10 00008000 fp 80c00000
I/DEBUG (27045): ip 00000000 sp be9a8d40 lr 00000000 pc b000159c cpsr 80000010
I/DEBUG (27045): d0 4320000042700000 d1 cf000000000000a0
I/DEBUG (27045): d2 4e19dec642bd43f3 d3 4320000000680ff0
I/DEBUG (27045): d4 3f8000003f800000 d5 3fe9999943200000
I/DEBUG (27045): d6 3fe8000000000000 d7 000000a04f000000
I/DEBUG (27045): d8 0000000000000000 d9 0000000000000000
I/DEBUG (27045): d10 0000000000000000 d11 0000000000000000
I/DEBUG (27045): d12 0000000000000000 d13 0000000000000000
I/DEBUG (27045): d14 0000000000000000 d15 0000000000000000
I/DEBUG (27045): scr 60000012
I/DEBUG (27045):
D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-3ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
I/DEBUG (27045): #00 pc b000159c /system/bin/linker
I/DEBUG (27045): #01 lr 00000000 <unknown>
I/DEBUG (27045):
I/DEBUG (27045): libc base address: aff00000
I/DEBUG (27045):
I/DEBUG (27045): code around pc:
I/DEBUG (27045): b000157c e213301c 0a000008 e1530002 8202301c
I/DEBUG (27045): b000158c e0422003 e1b03e03 28a04002 28a04002
I/DEBUG (27045): b000159c 48a04002 e1b03103 24801004 e2522020
I/DEBUG (27045): b00015ac e1a03001 4a000002 e2522020 e8a050fa
I/DEBUG (27045): b00015bc 2afffffc e2822020 e1b02e02 28a0500a
I/DEBUG (27045):
I/DEBUG (27045): code around lr:
I/DEBUG (27045): 00000000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG (27045): 00000010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG (27045): 00000020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG (27045): 00000030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG (27045): 00000040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG (27045):
I/DEBUG (27045): stack:
I/DEBUG (27045): be9a8d00 00000000
I/DEBUG (27045): be9a8d04 b0005dfb /system/bin/linker
I/DEBUG (27045): be9a8d08 ffffffff
I/DEBUG (27045): be9a8d0c 00000000
I/DEBUG (27045): be9a8d10 00000005
I/DEBUG (27045): be9a8d14 b000e740
I/DEBUG (27045): be9a8d18 b000950c
I/DEBUG (27045): be9a8d1c b0003daf /system/bin/linker
I/DEBUG (27045): be9a8d20 ffffffff
I/DEBUG (27045): be9a8d24 00000000
I/DEBUG (27045): be9a8d28 00140fd7
I/DEBUG (27045): be9a8d2c 00000118
I/DEBUG (27045): be9a8d30 00000007
I/DEBUG (27045): be9a8d34 00000024
I/DEBUG (27045): be9a8d38 df002777
I/DEBUG (27045): be9a8d3c e3a070ad
I/DEBUG (27045): #00 be9a8d40 80c081b4
I/DEBUG (27045): be9a8d44 b000e740
I/DEBUG (27045): be9a8d48 b0014c3c
I/DEBUG (27045): be9a8d4c 80c08000
I/DEBUG (27045): be9a8d50 80c08000
I/DEBUG (27045): be9a8d54 b0004e29 /system/bin/linker
I/DEBUG (27045): be9a8d58 00000024
I/DEBUG (27045): be9a8d5c 00007000
I/DEBUG (27045): be9a8d60 00000045
I/DEBUG (27045): be9a8d64 00e8d941
I/DEBUG (27045): be9a8d68 ad9f5758
I/DEBUG (27045): be9a8d6c fffffde0
I/DEBUG (27045): be9a8d70 adedd008
I/DEBUG (27045): be9a8d74 ad9b0201 /system/lib/libicui18n.so
I/DEBUG (27045): be9a8d78 0010002d
I/DEBUG (27045): be9a8d7c b00094e8
I/DEBUG (27045): be9a8d80 00000024
I/DEBUG (27045): be9a8d84 00000002
I/DEBUG (27045): dumpstate /data/log/dumpstate_app_native.txt
I/BootReceiver( 282): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
I/dumpstate(27047): begin
D/dalvikvm( 282): GC_CONCURRENT freed 1815K, 25% free 17850K/23687K, paused 3ms+6ms
D/dalvikvm(26279): GC_EXPLICIT freed 2K, 8% free 7372K/7943K, paused 2ms+2ms
D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-3ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
D/HierarchicalStateMachine( 282): handleMessage: E msg.what=83
D/HierarchicalStateMachine( 282): processMsg: ConnectedState
D/WifiStateMachine( 282): ConnectedState{ what=83 when=-4ms arg1=48 }
D/HierarchicalStateMachine( 282): handleMessage: X
D/VoldCmdListener( 221): asec list
I/dumpstate(27047): done
D/Zygote ( 225): Process 27018 terminated by signal (7)
I am an Android newbie, so perhaps I am missing something. Any advice?
Thanking all in advance.
No idea why it's failing... only guess could be that the .so you chose isn't actually compatible...
Oh, and it appears current shipping versions of the 10.1 (3.1 w/o TW even) properly have the necessary NDK libraries
what is libwilhelm.so supposed to be ? is it opensource ? if not is there a header ?
I'm helping a friend to port a rom and now we stuck on this error
can someone share some lights on this please??
Code:
--------- beginning of /dev/log/system
I/Vold ( 193): Vold 2.1 (the revenge) firing up
D/Vold ( 193): Volume usbdisk state changing -1 (Initializing) -> 0 (No-Media)
--------- beginning of /dev/log/main
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/mm-camera-intf( 1755): mm_camera_open: dev name = /dev/video2, cam_idx = 2
I/mm-camera-sensor( 214): module_sensor_start_session:577 session 2
I/mm-camera( 214): gyro_module_start_session: Enter
I/mm-camera( 214): gyro_module_start_session: Init DSPS
I/mm-camera( 214): gyro_module_start_session: Exit successful
I/mm-camera( 214): gyro_module_get_port: Exit successful
I/mm-camera( 214): cpp_module_start_session:352, info: starting session 2
I/mm-camera( 214): cpp_module_start_session:425, info: session 2 started.
I/mm-camera( 214): c2d_module_start_session:246, info: starting session 2
I/mm-camera( 214): c2d_module_start_session:306, info: session 2 started.
I/mm-camera-sensor( 214): module_module_set_session_data:2435 max delay 2 report dSelay 1
D/mm-camera( 214): module_faceproc_set_session_data:1826] Per frame control 2 1
D/mm-camera-intf( 1755): mm_camera_open: opened, break out while loop
I/mm-camera( 214): mct_pipeline_process_set:command=800000b
E/mm-camera( 214): mct_pipeline_get_stream: no children
E/mm-camera( 214): mct_pipeline_process_set:1370: Couldn't find stream
I/mm-camera-sensor( 214): module_sensor_stop_session:630 session 2
I/mm-camera( 214): stats_module_stop_session: list =0xb8da77f0, remove port =0xb8d9f8c8 name=stats_sink from module=0xb8d8d778, name=stats
I/mm-camera( 214): stats_module_stop_session: 1 port =0xb8d9f8c8 name=stats_sink
I/mm-camera( 214): stats_module_stop_session: 2 port =0xb8d9f8c8 name=stats_sink
I/mm-camera( 214): gyro_module_stop_session: Enter
I/mm-camera( 214): gyro_module_stop_session: Deinit DSPS
I/mm-camera( 214): gyro_module_stop_session: Exit successful
I/mm-camera( 214): stats_module_stop_session: 3 port =0xb8d9f8c8 name=stats_sink
I/mm-camera( 214): cpp_module_stop_session:453, info: stopping session 2 ...
I/mm-camera( 214): cpp_module_stop_session:495, info: session 2 stopped.
I/mm-camera( 214): c2d_module_stop_session:322, info: stopping session 2 ...
I/mm-camera( 214): c2d_module_stop_session:361, info: session 2 stopped.
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
D/QCamera3HWI( 1755): static int8_t qcamera::QCamera3HardwareInterface::lookupFwkName(const qcamera::QCamera3HardwareInterface::QCameraMap*, int, int): Cannot find matching framework type
I/AudioPolicyManagerBase( 1755): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
D/audio_hw_primary( 1755): adev_open: enter
I/ServiceManager( 192): service 'media.audio_flinger' died
I/ServiceManager( 192): service 'media.player' died
I/ServiceManager( 192): service 'media.camera' died
I/Netd ( 1844): Netd 1.0 starting
W/InterfaceController( 1844): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
I/mediaserver( 1846): ServiceManager: 0xb77e0460
I/AudioFlinger( 1846): Using default 3000 mSec as standby time.
I/CameraService( 1846): CameraService started (pid=1846)
I/CameraService( 1846): Loaded "QCamera Module" camera module
D/mm-camera-intf( 1846): mm_camera_open: dev name = /dev/video1, cam_idx = 1
I/mm-camera-sensor( 214): module_sensor_start_session:577 session 1
I/mm-camera( 214): gyro_module_start_session: Enter
I/mm-camera( 214): gyro_module_start_session: Init DSPS
I/mm-camera( 214): gyro_module_start_session: Exit successful
I/mm-camera( 214): gyro_module_get_port: Exit successful
I/mm-camera( 214): cpp_module_start_session:352, info: starting session 1
I/mm-camera( 214): cpp_module_start_session:425, info: session 1 started.
I/mm-camera( 214): c2d_module_start_session:246, info: starting session 1
I/mm-camera( 214): c2d_module_start_session:306, info: session 1 started.
I/mm-camera-sensor( 214): module_module_set_session_data:2435 max delay 2 report dSelay 1
D/mm-camera( 214): module_faceproc_set_session_data:1826] Per frame control 2 1
D/mm-camera-intf( 1846): mm_camera_open: opened, break out while loop
I/mm-camera( 214): mct_pipeline_process_set:command=800000b
E/mm-camera( 214): mct_pipeline_get_stream: no children
E/mm-camera( 214): mct_pipeline_process_set:1370: Couldn't find stream
I/mm-camera-sensor( 214): module_sensor_stop_session:630 session 1
D/AndroidRuntime( 1845):
D/AndroidRuntime( 1845): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 1845): CheckJNI is OFF
D/dalvikvm( 1845): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1845): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1845): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1845): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 1845): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
E/dalvikvm( 1845): ERROR: couldn't find native method
E/dalvikvm( 1845): Requested: Landroid/content/res/AssetManager;.addOverlayPath:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
E/dalvikvm( 1845): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...
I/dalvikvm( 1845): "main" prio=5 tid=1 NATIVE
I/dalvikvm( 1845): | group="main" sCount=0 dsCount=0 obj=0x41597cc0 self=0x414d1410
I/dalvikvm( 1845): | sysTid=1845 nice=0 sched=0/0 cgrp=default handle=1074164052
I/dalvikvm( 1845): | state=R schedstat=( 240528748 6300576 47 ) utm=16 stm=8 core=1
I/dalvikvm( 1845): #00 pc 0000132e /system/lib/libcorkscrew.so (unwind_backtrace_thread+29)
I/dalvikvm( 1845): #01 pc 0006064e /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+33)
I/dalvikvm( 1845): #02 pc 0005463c /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+395)
I/dalvikvm( 1845): #03 pc 000546aa /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25)
I/dalvikvm( 1845): #04 pc 000490c0 /system/lib/libdvm.so
I/dalvikvm( 1845): #05 pc 00001fd2 /system/lib/libnativehelper.so (jniRegisterNativeMethods+81)
I/dalvikvm( 1845): #06 pc 0004d8b6 /system/lib/libandroid_runtime.so
I/dalvikvm( 1845): #07 pc 0004dba4 /system/lib/libandroid_runtime.so (android::AndroidRuntime::startReg(_JNIEnv*)+23)
I/dalvikvm( 1845): #08 pc 0004e5f4 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+183)
I/dalvikvm( 1845): #09 pc 0000105a /system/bin/app_process
I/dalvikvm( 1845): #10 pc 0000e398 /system/lib/libc.so (__libc_init+47)
I/dalvikvm( 1845): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 1845): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 1845):
E/dalvikvm( 1845): VM aborting
F/libc ( 1845): Fatal signal 6 (SIGABRT) at 0x00000735 (code=-6), thread 1845 (zygote)
I/DEBUG ( 196): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 196): Build fingerprint: 'google/hammerhead/hammerhead:4.4.4/KTU84P/1227136:user/release-keys'
I/DEBUG ( 196): Revision: '11'
I/DEBUG ( 196): pid: 1845, tid: 1845, name: zygote >>> zygote <<<
I/DEBUG ( 196): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 196): r0 00000000 r1 00000735 r2 00000006 r3 00000000
I/DEBUG ( 196): r4 00000006 r5 00000016 r6 00000735 r7 0000010c
I/DEBUG ( 196): r8 00000004 r9 bec36ba4 sl 00000000 fp bec36b83
I/DEBUG ( 196): ip 401f44b4 sp bec36628 lr 4008f035 pc 4009dfe0 cpsr 000f0010
I/DEBUG ( 196): d0 0000000000000000 d1 0000000000000000
I/DEBUG ( 196): d2 0000000000000000 d3 0000000000000000
I/DEBUG ( 196): d4 0000000000000000 d5 000000006e736c40
I/DEBUG ( 196): d6 3f0000004158f720 d7 000000000000007f
I/DEBUG ( 196): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 196): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 196): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 196): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 196): d16 2065766974614e28 d17 0a29646f6874654d
I/DEBUG ( 196): d18 65747379732f2020 d19 696c2f62696c2f6d
I/DEBUG ( 196): d20 64696f72646e6162 d21 656d69746e75725f
I/DEBUG ( 196): d22 646e6128206f732e d23 6e413a3a64696f72
I/DEBUG ( 196): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 196): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 196): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 196): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 196): scr 60000010
I/DEBUG ( 196):
I/DEBUG ( 196): backtrace:
I/DEBUG ( 196): #00 pc 00021fe0 /system/lib/libc.so (tgkill+12)
I/DEBUG ( 196): #01 pc 00013031 /system/lib/libc.so (pthread_kill+48)
I/DEBUG ( 196): #02 pc 00013245 /system/lib/libc.so (raise+10)
I/DEBUG ( 196): #03 pc 00011f7b /system/lib/libc.so
I/DEBUG ( 196): #04 pc 00021894 /system/lib/libc.so (abort+4)
I/DEBUG ( 196): #05 pc 00045cc7 /system/lib/libdvm.so (dvmAbort+78)
I/DEBUG ( 196): #06 pc 00001fd5 /system/lib/libnativehelper.so (jniRegisterNativeMethods+84)
I/DEBUG ( 196): #07 pc 0004d8b9 /system/lib/libandroid_runtime.so
I/DEBUG ( 196): #08 pc 0004dba5 /system/lib/libandroid_runtime.so (android::AndroidRuntime::startReg(_JNIEnv*)+24)
I/DEBUG ( 196): #09 pc 0004e5f5 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+184)
I/DEBUG ( 196): #10 pc 0000105b /system/bin/app_process
I/DEBUG ( 196): #11 pc 0000e39b /system/lib/libc.so (__libc_init+50)
I/DEBUG ( 196): #12 pc 00000d7c /system/bin/app_process
I/DEBUG ( 196):
I/DEBUG ( 196): stack:
I/DEBUG ( 196): bec365e8 401e17cd /system/lib/libandroid_runtime.so
I/DEBUG ( 196): bec365ec 00000035
I/DEBUG ( 196): bec365f0 401f44b4 /system/lib/libandroid_runtime.so
I/DEBUG ( 196): bec365f4 00000004
I/DEBUG ( 196): bec365f8 bec36ba4 [stack]
I/DEBUG ( 196): bec365fc 00000000
I/DEBUG ( 196): bec36600 bec36b83 [stack]
I/DEBUG ( 196): bec36604 400a2501 /system/lib/libc.so (snprintf+80)
I/DEBUG ( 196): bec36608 36333138
I/DEBUG ( 196): bec3660c 30203020
I/DEBUG ( 196): bec36610 bec36684 [stack]
I/DEBUG ( 196): bec36614 00000000
I/DEBUG ( 196): bec36618 00000000
I/DEBUG ( 196): bec3661c 20302030
I/DEBUG ( 196): bec36620 00004000
I/DEBUG ( 196): bec36624 bec36692 [stack]
I/DEBUG ( 196): #00 bec36628 00000006
I/DEBUG ( 196): bec3662c 00000016
I/DEBUG ( 196): bec36630 00000735
I/DEBUG ( 196): bec36634 401f44b4 /system/lib/libandroid_runtime.so
I/DEBUG ( 196): bec36638 401f44b4 /system/lib/libandroid_runtime.so
I/DEBUG ( 196): bec3663c 4008f035 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 196): #01 bec36640 00000006
I/DEBUG ( 196): bec36644 00000000
I/DEBUG ( 196): bec36648 00000035
I/DEBUG ( 196): bec3664c 4008f249 /system/lib/libc.so (raise+14)
I/DEBUG ( 196): #02 bec36650 bec3665c [stack]
I/DEBUG ( 196): bec36654 4008df7f /system/lib/libc.so
I/DEBUG ( 196):
I/DEBUG ( 196): memory near r9:
I/DEBUG ( 196): bec36b84 746f6779 622f0065 612f6e69 705f7070
I/DEBUG ( 196): bec36b94 65636f72 2d007373 67797a58 0065746f
I/DEBUG ( 196): bec36ba4 7379732f 2f6d6574 006e6962 797a2d2d
I/DEBUG ( 196): bec36bb4 65746f67 732d2d00 74726174 7379732d
I/DEBUG ( 196): bec36bc4 2d6d6574 76726573 50007265 3d485441
I/DEBUG ( 196): bec36bd4 6962732f 762f3a6e 6f646e65 69622f72
I/DEBUG ( 196): bec36be4 732f3a6e 65747379 62732f6d 2f3a6e69
I/DEBUG ( 196): bec36bf4 74737973 622f6d65 2f3a6e69 74737973
I/DEBUG ( 196): bec36c04 782f6d65 006e6962 4c5f444c 41524249
I/DEBUG ( 196): bec36c14 505f5952 3d485441 6e65762f 2f726f64
I/DEBUG ( 196): bec36c24 3a62696c 7379732f 2f6d6574 0062696c
I/DEBUG ( 196): bec36c34 52444e41 5f44494f 544f4f42 4f474f4c
I/DEBUG ( 196): bec36c44 4100313d 4f52444e 525f4449 3d544f4f
I/DEBUG ( 196): bec36c54 7379732f 006d6574 52444e41 5f44494f
I/DEBUG ( 196): bec36c64 45535341 2f3d5354 74737973 612f6d65
I/DEBUG ( 196): bec36c74 41007070 4f52444e 445f4449 3d415441
I/DEBUG ( 196):
I/DEBUG ( 196): memory near fp:
I/DEBUG ( 196): bec36b60 bec36b7f 00000000 00000000 ce000000
I/DEBUG ( 196): bec36b70 4935fbfb a3627a42 6cb16c8e 76cab2c1
I/DEBUG ( 196): bec36b80 7a006c37 746f6779 622f0065 612f6e69
I/DEBUG ( 196): bec36b90 705f7070 65636f72 2d007373 67797a58
I/DEBUG ( 196): bec36ba0 0065746f 7379732f 2f6d6574 006e6962
I/DEBUG ( 196): bec36bb0 797a2d2d 65746f67 732d2d00 74726174
I/DEBUG ( 196): bec36bc0 7379732d 2d6d6574 76726573 50007265
I/DEBUG ( 196): bec36bd0 3d485441 6962732f 762f3a6e 6f646e65
I/DEBUG ( 196): bec36be0 69622f72 732f3a6e 65747379 62732f6d
I/DEBUG ( 196): bec36bf0 2f3a6e69 74737973 622f6d65 2f3a6e69
I/DEBUG ( 196): bec36c00 74737973 782f6d65 006e6962 4c5f444c
I/DEBUG ( 196): bec36c10 41524249 505f5952 3d485441 6e65762f
I/DEBUG ( 196): bec36c20 2f726f64 3a62696c 7379732f 2f6d6574
I/DEBUG ( 196): bec36c30 0062696c 52444e41 5f44494f 544f4f42
I/DEBUG ( 196): bec36c40 4f474f4c 4100313d 4f52444e 525f4449
I/DEBUG ( 196): bec36c50 3d544f4f 7379732f 006d6574 52444e41
I/DEBUG ( 196):
I/DEBUG ( 196): memory near ip:
I/DEBUG ( 196): 401f4494 401d6831 401b20e9 401e1520 401e1485
I/DEBUG ( 196): 401f44a4 401b2145 401dcec4 401dad34 401b2081
I/DEBUG ( 196): 401f44b4 401e17f6 401db373 401b4f19 401e1800
I/DEBUG ( 196): 401f44c4 401e180c 401b4ec1 401e1844 401e1857
I/DEBUG ( 196): 401f44d4 401b4e49 401e186f 401e1884 401b4de1
I/DEBUG ( 196): 401f44e4 401e18bd 401e18c2 401b5019 401e18ea
I/DEBUG ( 196): 401f44f4 401d6b39 401b3a05 401e18f7 401d71ad
I/DEBUG ( 196): 401f4504 401b39d5 401e1905 401e190f 401b3925
I/DEBUG ( 196): 401f4514 401e1918 401e1922 401b38e1 401e1929
I/DEBUG ( 196): 401f4524 401ded38 401b38b5 401e1938 401ded38
I/DEBUG ( 196): 401f4534 401b3889 401e1950 401df0e7 401b4d8f
I/DEBUG ( 196): 401f4544 401e1963 401e1972 401b4c9f 401e19d0
I/DEBUG ( 196): 401f4554 401d70d3 401b4c87 401e19e4 401d88cf
I/DEBUG ( 196): 401f4564 401b4c41 401e19f7 401d88cf 401b4c01
I/DEBUG ( 196): 401f4574 401e1a12 401d71ad 401b4be5 401e1a23
I/DEBUG ( 196): 401f4584 401e1a2f 401b4b17 401e1a7c 401d6a6a
I/DEBUG ( 196):
I/DEBUG ( 196): memory near sp:
I/DEBUG ( 196): bec36608 36333138 30203020 bec36684 00000000
I/DEBUG ( 196): bec36618 00000000 20302030 00004000 bec36692
I/DEBUG ( 196): bec36628 00000006 00000016 00000735 401f44b4
I/DEBUG ( 196): bec36638 401f44b4 4008f035 00000006 00000000
I/DEBUG ( 196): bec36648 00000035 4008f249 bec3665c 4008df7f
I/DEBUG ( 196): bec36658 00000000 ffffffdf 400c62c4 400c622c
I/DEBUG ( 196): bec36668 00000000 40090b3f 415811f0 415811f0
I/DEBUG ( 196): bec36678 401e17cd 4009d898 00000000 41517ccb
I/DEBUG ( 196): bec36688 400d4324 6c756e28 0000296c 00000000
I/DEBUG ( 196): bec36698 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366a8 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366b8 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366c8 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366d8 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366e8 00000000 00000000 00000000 00000000
I/DEBUG ( 196): bec366f8 00000000 00000000 00000000 00000000
I/DEBUG ( 196):
I/DEBUG ( 196): code around pc:
I/DEBUG ( 196): 4009dfc0 e8bd00f0 e3700a01 912fff1e e2600000
I/DEBUG ( 196): 4009dfd0 ea006e20 e92d50f0 e3a07f43 ef000000
I/DEBUG ( 196): 4009dfe0 e8bd50f0 e3700a01 912fff1e e2600000
I/DEBUG ( 196): 4009dff0 ea006e18 e92d50f0 e3a070ee ef000000
I/DEBUG ( 196): 4009e000 e8bd50f0 e3700a01 912fff1e e2600000
I/DEBUG ( 196): 4009e010 ea006e10 f200429a bf0080b9 f040f891
I/DEBUG ( 196): 4009e020 4001e92d f2c02a04 2a1080a5 8093f2c0
I/DEBUG ( 196): 4009e030 f2c02a20 2a408088 ea4fdb7f f1bc1c92
I/DEBUG ( 196): 4009e040 dd6c0f0a 0600e92d 0f40f1bc f500dd4a
I/DEBUG ( 196): 4009e050 f5016e80 ebae7920 ea4f0e09 ea4f5e4e
I/DEBUG ( 196): 4009e060 f50e5e5e ebbc7e20 dd3b1f9e f04fbfc4
I/DEBUG ( 196): 4009e070 ebd9090a dd35199e 0a0eeb01 0a3ff02a
I/DEBUG ( 196): 4009e080 1c9eebac bfd245e1 0c09ebac f04f46e1
I/DEBUG ( 196): 4009e090 f8910c00 f891f240 f921f280 f921028d
I/DEBUG ( 196): 4009e0a0 f8da428d f1b93000 f9000901 f900028d
I/DEBUG ( 196): 4009e0b0 f10a428d d1ee0a40 0f00f1bc f5bcd02b
I/DEBUG ( 196):
I/DEBUG ( 196): code around lr:
I/DEBUG ( 196): 4008f014 447b4b13 42b3e010 6a1ed10e 44784811
I/DEBUG ( 196): 4008f024 ec84f7fb ea0ef00d 46224631 efd0f00e
I/DEBUG ( 196): 4008f034 d00a3001 e00b2400 2b00681b 480ad1eb
I/DEBUG ( 196): 4008f044 44782403 ec72f7fb f001e002 6804fa23
I/DEBUG ( 196): 4008f054 fa20f001 46206005 bf00bd70 0003b38e
I/DEBUG ( 196): 4008f064 0003b382 0003b37a 0003b356 bf7ef7ff
I/DEBUG ( 196): 4008f074 4a3e4b3d e92d447b b08b43f0 4606589c
I/DEBUG ( 196): 4008f084 6823460d 930946a1 fa04f001 8000f8d0
I/DEBUG ( 196): 4008f094 d0482d00 f0104628 280ff96d d8444604
I/DEBUG ( 196): 4008f0a4 ffe4f7ff d1064286 4629200f e8d8f00d
I/DEBUG ( 196): 4008f0b4 d03c2800 482ee02e f7fb4478 482debb6
I/DEBUG ( 196): 4008f0c4 e0154478 d11342b0 482b6a06 f7fb4478
I/DEBUG ( 196): 4008f0d4 4a2aec2e 46332120 a801447a f9e6f013
I/DEBUG ( 196): 4008f0e4 a8012101 fd00f01a 46061c42 e011d104
I/DEBUG ( 196): 4008f0f4 28006800 e02cd1e6 46294630 f00d4622
I/DEBUG ( 196): 4008f104 1c43e914 d11e4607 f9c4f001 29046801
I am trying to port Cyanogenmod 12 to Trend 2 SM-G313HN, but there is a problem loading the video driver and it is stuck in a infinite bootloop. Looks like the library has some unknown calls or something. With CM11 the video worked.
Here is what logcat shows:
Code:
I/SurfaceFlinger( 2277): SurfaceFlinger is starting
I/SurfaceFlinger( 2277): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/libEGL ( 2277): load_driver(/system/lib/egl/libGLES_hawaii.so): dlopen failed: cannot locate symbol "ucnv_convertEx_51" referenced by "libGLES_hawaii.so"...
F/libEGL ( 2277): couldn't find an OpenGL ES implementation
F/libc ( 2277): Fatal signal 6 (SIGABRT), code -6 in tid 2277 (surfaceflinger)
I/DEBUG ( 1596): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1596): Build fingerprint: 'samsung/cm_vivaltonfc3g/vivaltonfc3g:5.0.2/LRX22G/7bc057ecca:userdebug/test-keys'
I/DEBUG ( 1596): Revision: '1'
I/DEBUG ( 1596): ABI: 'arm'
I/DEBUG ( 1596): pid: 2277, tid: 2277, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
I/DEBUG ( 1596): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 1596): Abort message: 'couldn't find an OpenGL ES implementation'
I/DEBUG ( 1596): r0 00000000 r1 000008e5 r2 00000006 r3 00000000
I/DEBUG ( 1596): r4 40012114 r5 00000006 r6 00000002 r7 0000010c
I/DEBUG ( 1596): r8 41a11550 r9 00000000 sl 00000000 fp be93da6c
I/DEBUG ( 1596): ip 000008e5 sp be93d4d8 lr 4002f539 pc 40054c6c cpsr 600f0010
I/DEBUG ( 1596):
I/DEBUG ( 1596): backtrace:
I/DEBUG ( 1596): #00 pc 00038c6c /system/lib/libc.so (tgkill+12)
I/DEBUG ( 1596): #01 pc 00013535 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 1596): #02 pc 00014293 /system/lib/libc.so (raise+10)
I/DEBUG ( 1596): #03 pc 00010a75 /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG ( 1596): #04 pc 0000f244 /system/lib/libc.so (abort+4)
I/DEBUG ( 1596): #05 pc 00007611 /system/lib/libcutils.so (__android_log_assert+88)
I/DEBUG ( 1596): #06 pc 00043565 /system/lib/libEGL.so
I/DEBUG ( 1596): #07 pc 00010a75 /system/lib/libEGL.so
I/DEBUG ( 1596): #08 pc 00011259 /system/lib/libEGL.so (eglGetDisplay+24)
I/DEBUG ( 1596): #09 pc 000189b3 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+70)
I/DEBUG ( 1596): #10 pc 000007e1 /system/bin/surfaceflinger
I/DEBUG ( 1596): #11 pc 0000f101 /system/lib/libc.so (__libc_init+44)
I/DEBUG ( 1596): #12 pc 000008d8 /system/bin/surfaceflinger
D/AT_Distributor( 1615): try to connect RIL
E/AT_Distributor( 1615): connection fail & retry connect(62)
I/DEBUG ( 1596):
I/DEBUG ( 1596): Tombstone written to: /data/tombstones/tombstone_01
SOLVED: I had to patch external/icu/icu4c/source/common/ucnv.c
Code:
diff --git a/external/icu/icu4c/source/common/ucnv.c b/external/icu/icu4c/source/common/ucnv.c
index bb4c068..3078368 100755
--- a/external/icu/icu4c/source/common/ucnv.c
+++ b/external/icu/icu4c/source/common/ucnv.c
@@ -2984,6 +2984,74 @@ U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP_48 (
reason, err);
}
+U_CAPI void U_EXPORT2 ucnv_setToUCallBack_51 (UConverter * converter,
+ UConverterToUCallback newAction,
+ const void* newContext,
+ UConverterToUCallback *oldAction,
+ const void** oldContext,
+ UErrorCode * err) {
+ ucnv_setToUCallBack(converter, newAction, newContext,
+ oldAction, oldContext, err);
+}
+
+U_CAPI void U_EXPORT2 ucnv_close_51 (UConverter * converter) {
+ ucnv_close (converter);
+}
+
+U_CAPI void U_EXPORT2
+ucnv_setFromUCallBack_51 (UConverter * converter,
+ UConverterFromUCallback newAction,
+ const void* newContext,
+ UConverterFromUCallback *oldAction,
+ const void** oldContext,
+ UErrorCode * err) {
+
+ ucnv_setFromUCallBack(converter, newAction, newContext, oldAction,
+ oldContext, err);
+}
+
+U_CAPI void U_EXPORT2
+ucnv_convertEx_51 (UConverter *targetCnv, UConverter *sourceCnv,
+ char **target, const char *targetLimit,
+ const char **source, const char *sourceLimit,
+ UChar *pivotStart, UChar **pivotSource,
+ UChar **pivotTarget, const UChar *pivotLimit,
+ UBool reset, UBool flush,
+ UErrorCode *pErrorCode) {
+ ucnv_convertEx(targetCnv, sourceCnv, target, targetLimit, source,
+ sourceLimit, pivotStart, pivotSource,
+ pivotTarget, pivotLimit, reset, flush,
+ pErrorCode);
+}
+
+U_CAPI UConverter* U_EXPORT2
+ucnv_open_51 (const char *name,
+ UErrorCode * err) {
+ return ucnv_open(name, err);
+}
+
+U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP_51 (
+ const void *context,
+ UConverterFromUnicodeArgs *fromUArgs,
+ const UChar* codeUnits,
+ int32_t length,
+ UChar32 codePoint,
+ UConverterCallbackReason reason,
+ UErrorCode * err) {
+ return UCNV_FROM_U_CALLBACK_STOP(context, fromUArgs, codeUnits,
+ length, codePoint, reason, err);
+}
+
+U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP_51 (
+ const void *context,
+ UConverterToUnicodeArgs *toUArgs,
+ const char* codeUnits,
+ int32_t length,
+ UConverterCallbackReason reason,
+ UErrorCode * err) {
+ return UCNV_TO_U_CALLBACK_STOP(context, toUArgs, codeUnits, length,
+ reason, err);
+}
#endif
/*
good job
hello friend, you managed to finish the CM12?​:good:
Nikiz, keep going!
Where can we found your CM11 build for Trend 2 or just a local_manifest?! I would like to compile AOSP 5.1. after I had found 8Gb archive with sources.
Any progress?
TokRa said:
Any progress?
Click to expand...
Click to collapse
I am working on CM11 for this phone. (I have CM12 sources and I am downloading Omnirom 4.4 & 5.1 sources right now) We might have a beta build soon. There are some issues I need to work on. Wifi is not working right now and the RIL has some issues. (Everything else seems to work, but there is no phone number on incoming calls and calling someone kills the audio on the device for some reason)
Thank you! Looking forward to test it.
Nikiz said:
I am working on CM11 for this phone. (I have CM12 sources and I am downloading Omnirom 4.4.4 & 5.2 sources right now) We might have a beta build soon. There are some issues I need to work on. Wifi is not working right now and the RIL has some issues. (Everything else seems to work, but there is no phone number on incoming calls and calling someone kills the audio on the device for some reason)
Click to expand...
Click to collapse
Hey, could you please share a device folder (this one that's boardconfig.mk etcetc)?
Btw i've tried to build aosp 4.4.4_r1 and it compiled fine but sadly it gets stuck on loading (bootloop). Did you use the stock kernel or compiled it from source?
itigr said:
Hey, could you please share a device folder (this one that's boardconfig.mk etcetc)?
Btw i've tried to build aosp 4.4.4_r1 and it compiled fine but sadly it gets stuck on loading (bootloop). Did you use the stock kernel or compiled it from source?
Click to expand...
Click to collapse
At first I used the stock kernel and now I compile it from source. (Kernel configuration is the same as stock, but "Samsung MTP" is disabled, with it MTP does not work correctly) The device configuration is here, I'll update it today.
The device will not boot if your boot.img does not have the device tree-file as a "secondary bootloader" or you aren't using the /init executable from the stock boot.img. vivaltonfc3g is weird.. I am working on reverse engineering some binaries so we can use our own files compiled from source.
Nikiz said:
At first I used the stock kernel and now I compile it from source. (Kernel configuration is the same as stock, but "Samsung MTP" is disabled, with it MTP does not work correctly) The device configuration is here, I'll update it today.
The device will not boot if your boot.img does not have the device tree-file as a "secondary bootloader" or you aren't using the /init executable from the stock boot.img. vivaltonfc3g is weird.. I am working on reverse engineering some binaries so we can use our own files compiled from source.
Click to expand...
Click to collapse
Thanks
I am currently having fun with vivaltods5m (gm313hu. same as yours, an nfc support is the only difference, even stock kernel images are same).
Successfuly downloaded and built omnirom today and it boots fine tho wifi doesn't work and dialer has the same issues that you've had.
But also sound doesn't work, here's a logcat dump
Code:
E/HAL ( 2307): load: module=/system/lib/hw/audio.primary.hawaii.so
E/HAL ( 2307): dlopen failed: cannot locate symbol "pcm_drain" referenced by "audio.primary.hawaii.so"...
E/AudioFlinger( 2307): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.primary (Invalid argument)
E/AudioPolicyManagerBase( 2307): Not output found for attached devices 00000003
E/AudioPolicyManagerBase( 2307): Failed to open primary output
E/AudioPolicyManagerBase( 2307): getDeviceForStrategy() speaker device not found
maybe i'm missing some proprietary lib or should modify some code. no idea
itigr said:
Thanks
I am currently having fun with vivaltods5m (gm313hu. same as yours, an nfc support is the only difference, even stock kernel images are same).
Successfuly downloaded and built omnirom today and it boots fine tho wifi doesn't work and dialer has the same issues that you've had.
But also sound doesn't work, here's a logcat dump
Code:
E/HAL ( 2307): load: module=/system/lib/hw/audio.primary.hawaii.so
E/HAL ( 2307): dlopen failed: cannot locate symbol "pcm_drain" referenced by "audio.primary.hawaii.so"...
E/AudioFlinger( 2307): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.primary (Invalid argument)
E/AudioPolicyManagerBase( 2307): Not output found for attached devices 00000003
E/AudioPolicyManagerBase( 2307): Failed to open primary output
E/AudioPolicyManagerBase( 2307): getDeviceForStrategy() speaker device not found
maybe i'm missing some proprietary lib or should modify some code. no idea
Click to expand...
Click to collapse
Oh, I forgot add the patches. You need to modify tinyalsa. Add these anywhere. I put them between pcm_start and pcm_stop.
external/tinyalsa/pcm.c
Code:
int pcm_drain(struct pcm *pcm)
{
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN) < 0)
return oops(pcm, errno, "drain failed");
return 0;
}
external/tinyalsa/include/tinyalsa/asoundlib.h
Code:
int pcm_drain(struct pcm *pcm);
Nikiz said:
Oh, I forgot add the patches. You need to modify tinyalsa. Add these anywhere. I put them between pcm_start and pcm_stop.
external/tinyalsa/pcm.c
Code:
int pcm_drain(struct pcm *pcm)
{
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN) < 0)
return oops(pcm, errno, "drain failed");
return 0;
}
external/tinyalsa/include/tinyalsa/asoundlib.h
Code:
int pcm_drain(struct pcm *pcm);
Click to expand...
Click to collapse
Still no luck. now i'm getting this
Code:
I/AudioFlinger( 2038): loadHwModule() Loaded primary audio interface from BRCM audio HW HAL (audio) handle 1
V/audio_hw( 2038): ENTERING adev_open_output_stream() devices = 0x2 Fs = 44100
V/audio_hw( 2038): dump.audio.pcm = OFF
V/audio_hw( 2038): Data Dump is disabled
D/audio_out( 2038): soundsolution_init sample_rate = 48000
I/wrap_soundbooster( 2038): [wrap_soundbooster] CreateSoundBooster entered
I/wrap_soundbooster( 2038): [wrap_soundbooster] SoundBoosterInit entered
V/alsa_pcm( 2038): PCM INIT
V/alsa_pcm( 2038): PCM OPEN
V/alsa_pcm( 2038): alsa_pcm_open: handle = 0x40f292e8,pcm_handle->handle =0x0
V/alsa_pcm( 2038): alsa_pcm_open:(After)pcm_handle->handle =0x40f292e8
V/alsa_pcm( 2038): buffersize_samples = 4096
D/alsa_pcm( 2038): channels = 2, Fs = 48000, period_size = 0x800, periods = 2
D/alsa_pcm( 2038): pcm_handle->bufSize_bytes = 0x2000 samples = 0x1000
V/alsa_pcm( 2038): (After Norm)pcm_handle->bufSize_bytes =8192
V/alsa_pcm( 2038): PCM CLOSE
V/alsa_pcm( 2038): alsa_pcm_close: handle = 0x40f292e8
V/alsa_hal_controller( 2038): ENTERING select_output_device out_devices = 0x2
V/alsa_hal_controller( 2038): select_output_device out cur dev = 0 device = 2 cur_device_count = 0 new_device_count = 1
V/alsa_hal_controller( 2038): new device to be selected device = 2
V/alsa_hal_controller( 2038): get_playback_device returning driver_device[0] = 4, driver_device[1] = 4
V/alsa_hal_controller( 2038): select_output_device calling set_output_device with SELECT_DEV
V/alsa_hal_controller( 2038): ENTERING set_output_device() driver_device[0] = 4 driver_device[1] = 4
V/alsa_hal_controller( 2038): set_output_device called for cfg_device = 0
V/alsa_hal_controller( 2038): set_stereo_speaker() set to 1
V/alsa_hal_controller( 2038): set_output_device() for P1-SEL & P2-SEL - 4
V/alsa_hal_controller( 2038): LEAVING set_output_device()
V/alsa_hal_controller( 2038): update currentDevice = 2
V/alsa_hal_controller( 2038): LEAVING select_output_device ret
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_hw( 2038): LEAVING adev_open_output_stream() out = 0x40f29008 out_stream = 0x40f29008
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): ENTERING out_get_buffer_size()
V/audio_out( 2038): LEAVING out_get_buffer_size() Buffer size = 8192
I/AudioFlinger( 2038): HAL output buffer size 2048 frames, normal mix buffer size 2048 frames
I/AudioMixer( 2038): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
V/audio_out( 2038): ENTERING out_get_buffer_size()
V/audio_out( 2038): LEAVING out_get_buffer_size() Buffer size = 8192
V/audio_out( 2038): ENTERING out_get_format()
V/audio_out( 2038): ENTERING out_get_sample_rate()
V/audio_out( 2038): LEAVING out_get_sample_rate() : sample rate = 48000
V/audio_out( 2038): ENTERING out_get_channels()
V/audio_out( 2038): entering out_get_latency()
V/audio_out( 2038): leaving out_get_latency() : 148
V/audio_out( 2038): entering out_get_latency()
V/audio_out( 2038): leaving out_get_latency() : 148
I/AudioFlinger( 2038): Using module 1 has the primary audio interface
V/audio_hw( 2038): ENTERING adev_set_mode() 0 <- 0
V/audio_hw( 2038): LEAVING adev_set_mode() 0
V/AudioPolicyManagerBase( 2038): setOutputDevice() output 2 device 0002 force 1 delayMs 0
I/AudioFlinger( 2038): AudioFlinger's thread 0x4102f008 ready to run
F/libc ( 2038): Fatal signal 11 (SIGSEGV) at 0xbe9d3000 (code=1), thread 2038 (mediaserver)
V/audio_out( 2038): ENTERING out_standby()
V/audio_out( 2038): ENTERING do_output_standby()
V/audio_out( 2038): dump.audio.pcm = OFF
V/audio_out( 2038): Data Dump is disabled
V/audio_out( 2038): LEAVING do_output_standby()
V/audio_out( 2038): LEAVING out_standby()
I/DEBUG ( 1571): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1571): Build fingerprint: 'unknown'
I/DEBUG ( 1571): Revision: '1'
I/DEBUG ( 1571): pid: 2038, tid: 2038, name: mediaserver >>> /system/bin/mediaserver <<<
I/DEBUG ( 1571): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr be9d3000
I/DEBUG ( 1571): r0 40f29fa8 r1 be9d2fe8 r2 079e2f18 r3 44494f52
I/DEBUG ( 1571): r4 4f52505f r5 54524550 r6 4f575f59 r7 50534b52
I/DEBUG ( 1571): r8 3d454341 r9 40f29708 sl 00000008 fp be9d2748
I/DEBUG ( 1571): ip 00302c39 sp be9d2704 lr 7379732f pc 4008e212 cpsr 200f0070
I/DEBUG ( 1571): d0 734d79616c656420 d1 0000000000000002
I/DEBUG ( 1571): d2 69206f6964756120 d3 656361667265746e
I/DEBUG ( 1571): d4 0000000000000000 d5 0000000000000000
I/DEBUG ( 1571): d6 0000080000000000 d7 40a0000000000000
I/DEBUG ( 1571): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 1571): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 1571): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 1571): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 1571): d16 417349cc01020c4a d17 0000000000000002
I/DEBUG ( 1571): d18 41aad90c7e000000 d19 0000000000000000
I/DEBUG ( 1571): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 1571): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 1571): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 1571): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 1571): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 1571): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 1571): scr 80000010
I/DEBUG ( 1571):
I/DEBUG ( 1571): backtrace:
I/DEBUG ( 1571): #00 pc 00022212 /system/lib/libc.so (__memcpy_base_aligned+69)
I/DEBUG ( 1571): #01 pc 00010645 /system/lib/libutils.so (android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+48)
I/DEBUG ( 1571): #02 pc 00008e2b /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #03 pc 0000b6b3 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #04 pc 0000f367 /system/lib/libaudiopolicy_sec.so (android::AudioPolicyManagerBase::setOutputDevice(int, unsigned int, bool, int)+50)
I/DEBUG ( 1571): #05 pc 0000f775 /system/lib/libaudiopolicy_sec.so (android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)+712)
I/DEBUG ( 1571): #06 pc 00004a0d /system/lib/hw/audio_policy.hawaii.so (android::AudioPolicyManagerALSA::AudioPolicyManagerALSA(android::AudioPolicyClientInterface*)+4)
I/DEBUG ( 1571): #07 pc 00004a81 /system/lib/hw/audio_policy.hawaii.so (createAudioPolicyManager+16)
I/DEBUG ( 1571): #08 pc 00003c55 /system/lib/hw/audio_policy.hawaii.so
I/DEBUG ( 1571): #09 pc 000296e1 /system/lib/libaudioflinger.so (android::AudioPolicyService::AudioPolicyService()+428)
I/DEBUG ( 1571): #10 pc 00001cdd /system/bin/mediaserver
I/DEBUG ( 1571): #11 pc 00001eab /system/bin/mediaserver
I/DEBUG ( 1571): #12 pc 0000e413 /system/lib/libc.so (__libc_init+50)
I/DEBUG ( 1571): #13 pc 00001920 /system/bin/mediaserver
I/DEBUG ( 1571):
I/DEBUG ( 1571): stack:
I/DEBUG ( 1571): be9d26c4 00000002
I/DEBUG ( 1571): be9d26c8 40b6ac30
I/DEBUG ( 1571): be9d26cc 4003264f /system/lib/libaudioflinger.so
I/DEBUG ( 1571): be9d26d0 40a6b508
I/DEBUG ( 1571): be9d26d4 400343f9 /system/lib/libaudioflinger.so
I/DEBUG ( 1571): be9d26d8 00000002
I/DEBUG ( 1571): be9d26dc 00000000
I/DEBUG ( 1571): be9d26e0 00000000
I/DEBUG ( 1571): be9d26e4 00000001
I/DEBUG ( 1571): be9d26e8 40f29008
I/DEBUG ( 1571): be9d26ec 40a6b51c
I/DEBUG ( 1571): be9d26f0 00000002
I/DEBUG ( 1571): be9d26f4 40a6b53c
I/DEBUG ( 1571): be9d26f8 0000bb80
I/DEBUG ( 1571): be9d26fc 00000003
I/DEBUG ( 1571): be9d2700 00000001
I/DEBUG ( 1571): #00 be9d2704 00000000
I/DEBUG ( 1571): be9d2708 40b6a360
I/DEBUG ( 1571): be9d270c 00000000
I/DEBUG ( 1571): be9d2710 00000000
I/DEBUG ( 1571): be9d2714 00000000
I/DEBUG ( 1571): be9d2718 40f29708
I/DEBUG ( 1571): be9d271c 40139647 /system/lib/libutils.so (android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+50)
I/DEBUG ( 1571): #01 be9d2720 be9d2748 [stack]
I/DEBUG ( 1571): be9d2724 40b6a360
I/DEBUG ( 1571): be9d2728 00000002
I/DEBUG ( 1571): be9d272c 00000000
I/DEBUG ( 1571): be9d2730 00000000
I/DEBUG ( 1571): be9d2734 00000002
I/DEBUG ( 1571): be9d2738 00000001
I/DEBUG ( 1571): be9d273c 40f4bed4 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): be9d2740 40f48568 /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): be9d2744 40f3ce2f /system/lib/libaudiopolicy_sec.so
I/DEBUG ( 1571): #02 be9d2748 00000002
I/DEBUG ( 1571): be9d274c 00000002
I/DEBUG ( 1571): be9d2750 f750e65e
I/DEBUG ( 1571): be9d2754 40f3f6b7 /system/lib/libaudiopolicy_sec.so
...
I/DEBUG ( 1571): memory map around fault addr be9d3000:
I/DEBUG ( 1571): be9b2000-be9d3000 rw- [stack]
I/DEBUG ( 1571): (no map for address)
I/DEBUG ( 1571): ffff0000-ffff1000 r-x [vectors]
I/ServiceManager( 1567): service 'media.audio_flinger' died
I/ServiceManager( 1567): service 'media.player' died
I/ServiceManager( 1567): service 'media.camera' died
D/hawaii.hwcomposer( 1572): FBDevice::vsync called 61 times
W/AudioSystem( 1972): AudioPolicyService not published, waiting...
Code:
-----------------------------------------------------
signal 11 (SIGSEGV) at 0xbeee0000 (code=1), thread 2194 (mediaserver)
pid: 2194, tid: 2194, name: mediaserver >>> /system/bin/mediaserver <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr beee0000
r0 40f29fa8 r1 beedffe8 r2 079f2f18 r3 44494f52
r4 4f52505f r5 54524550 r6 4f575f59 r7 50534b52
r8 3d454341 r9 40f29708 sl 00000008 fp beedf748
ip 00302c39 sp beedf704 lr 7379732f pc 4008e212
Stack Trace:
RELADDR FUNCTION FILE:LINE
00022212 __memcpy_base_aligned+70 /home/kotek/wdir/android/bionic/libc/arch-arm/cortex-a9/bionic/memcpy_base.S:191
00010645 android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+48 /home/kotek/wdir/android/system/core/libutils/VectorImpl.cpp:577
00008e2b <unknown> /system/lib/libaudiopolicy_sec.so
0000b6b3 <unknown> /system/lib/libaudiopolicy_sec.so
0000f367 android::AudioPolicyManagerBase::setOutputDevice(int, unsigned int, bool, int)+50 /system/lib/libaudiopolicy_sec.so
0000f775 android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)+712 /system/lib/libaudiopolicy_sec.so
00004a0d android::AudioPolicyManagerALSA::AudioPolicyManagerALSA(android::AudioPolicyClientInterface*)+4 /system/lib/hw/audio_policy.hawaii.so
00004a81 createAudioPolicyManager+16 /system/lib/hw/audio_policy.hawaii.so
00003c55 <unknown> /system/lib/hw/audio_policy.hawaii.so
000296e1 android::AudioPolicyService::AudioPolicyService()+428 /home/kotek/wdir/android/frameworks/av/services/audioflinger/AudioPolicyService.cpp:89
00001cdd android::BinderService<android::AudioPolicyService>::publish(bool)+36 /home/kotek/wdir/android/frameworks/native/include/binder/BinderService.h:41
v------> android::BinderService<android::AudioPolicyService>::instantiate() /home/kotek/wdir/android/frameworks/native/include/binder/BinderService.h:49
00001eab main+382 /home/kotek/wdir/android/frameworks/av/media/mediaserver/main_mediaserver.cpp:130
0000e413 __libc_init+50 /home/kotek/wdir/android/bionic/libc/bionic/libc_init_dynamic.cpp:112
00001920 _start+96 register.cpp:?
Stack Data:
ADDR VALUE FUNCTION FILE:LINE
beedf6c4 00000002
beedf6c8 40b6ac30
beedf6cc 4003264f <unknown> /system/lib/libaudioflinger.so
beedf6d0 40a6b508
beedf6d4 400343f9 <unknown> /system/lib/libaudioflinger.so
beedf6d8 00000002
beedf6dc 00000000
beedf6e0 00000000
beedf6e4 00000001
beedf6e8 40f29008
beedf6ec 40a6b51c
beedf6f0 00000002
beedf6f4 40a6b53c
beedf6f8 0000bb80
beedf6fc 00000003
beedf700 00000001
beedf704 00000000
beedf708 40b6a360
beedf70c 00000000
beedf710 00000000
beedf714 00000000
beedf718 40f29708
beedf71c 40139647 android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+50 /system/lib/libutils.so
beedf720 beedf748 [stack]
beedf724 40b6a360
beedf728 00000002
beedf72c 00000000
beedf730 00000000
beedf734 00000002
beedf738 00000001
beedf73c 40f4ded4 <unknown> /system/lib/libaudiopolicy_sec.so
beedf740 40f4a568 <unknown> /system/lib/libaudiopolicy_sec.so
beedf744 40f3ee2f <unknown> /system/lib/libaudiopolicy_sec.so
beedf748 00000002
beedf74c 00000002
beedf750 0fe7c7b2
beedf754 40f416b7 <unknown> /system/lib/libaudiopolicy_sec.so
Nevermind, got it, i shouldn't use audio_policy.hawaii from stock.
Seems like wifi is barely working for me (slider doesn't grey out). it gets stuck on finding networks
it does not detect rfkill iface
logcat
Code:
I/wpa_supplicant( 2037): wpa_supplicant v2.1-devel-4.4.22014-08-06/01:01:21
I/wpa_supplicant( 2037): [wpa_supplicant_init]: use SECRIL
I/wpa_supplicant( 2037): Successfully initialized wpa_supplicant
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[B]E/wpa_supplicant( 2037): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 2037): p2p0: Failed to initialize driver interface[/B]
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
[B]I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[/B]I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: initialized channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): wlan0: Setting scan request: 0 sec 0 usec
I/wpa_supplicant( 2037): Skip scan - bUseNetwork false
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
itigr said:
Nevermind, got it, i shouldn't use audio_policy.hawaii from stock.
Seems like wifi is barely working for me (slider doesn't grey out). it gets stuck on finding networks
it does not detect rfkill iface
logcat
Code:
I/wpa_supplicant( 2037): wpa_supplicant v2.1-devel-4.4.22014-08-06/01:01:21
I/wpa_supplicant( 2037): [wpa_supplicant_init]: use SECRIL
I/wpa_supplicant( 2037): Successfully initialized wpa_supplicant
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[B]E/wpa_supplicant( 2037): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 2037): p2p0: Failed to initialize driver interface[/B]
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
I/wpa_supplicant( 2037): >>>>> Not GET KEY, IV <<<<<
[B]I/wpa_supplicant( 2037): rfkill: Cannot open RFKILL control device
[/B]I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: initialized channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00.00.00 SSID=
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): wlan0: Setting scan request: 0 sec 0 usec
I/wpa_supplicant( 2037): Skip scan - bUseNetwork false
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
I/wpa_supplicant( 2037): P2P: updated channels: 81:1,2,3,4,5,6,7,8,9,10,11,12,13
Click to expand...
Click to collapse
My wifi is not working either. I get the same error too. There is the same error on the stock rom too, but wifi is working on that, so that might not be the problem.. This has bugged me a long time. And the calling someone "kills the audio" does not actually kill the audio, it is unable to stop the call for some reason and there is no system sounds during a call. It might be because the RIL does not send the UNSOL_CALL_RING-command. I'll try if this patch makes a difference.
Nikiz said:
My wifi is not working either. I get the same error too. There is the same error on the stock rom too, but wifi is working on that, so that might not be the problem.. This has bugged me a long time. And the calling someone "kills the audio" does not actually kill the audio, it is unable to stop the call for some reason and there is no system sounds during a call. It might be because the RIL does not send the UNSOL_CALL_RING-command. I'll try if this patch makes a difference.
Click to expand...
Click to collapse
Yeah, i noticed that too. Just tried out this patch but calls still don't stop.
UPD: incoming calls work fine. i can hang up and speaker/mic works. outgoing call problem still remains, maybe this happens due to dualsim/ril idk.
itigr said:
Yeah, i noticed that too. Just tried out this patch but calls still don't stop.
UPD: incoming calls work fine. i can hang up and speaker/mic works. outgoing call problem still remains, maybe this happens due to dualsim/ril idk.
Click to expand...
Click to collapse
Vivaltonfc3g is actually a single SIM phone. Well, technically it is a dual sim phone with a single SIM slot.. But the patch did not work for me either. Btw, do you get a phone number when receiving an incoming call? I don't.
Nikiz said:
Vivaltonfc3g is actually a single SIM phone. Well, technically it is a dual sim phone with a single SIM slot.. But the patch did not work for me either. Btw, do you get a phone number when receiving an incoming call? I don't.
Click to expand...
Click to collapse
Oh, thought that phone has 2 sim slots . Well, i'm downloading cm11 sources right now since omni got no multisim support and its kinda hard to implement.
No i don't. I just see "+" instead of number, nothing more. But i can see incoming sms numbers.
Also, does "recent apps" button work for you? I can't get it to work, tried changing keymaps but it didn't help.
Code:
E/KeyLayoutMap( 1987): /system/usr/keylayout/bcm_keypad_v2.kl:15: Expected key code label, got 'RECENTAPPS'.
I modified initscript to start wpa_supplicant with detailed debug and found this kinda interesting
Code:
D/wpa_supplicant( 2066): random: Got 1/1 bytes from /dev/random
D/wpa_supplicant( 2066): Get randomness: len=20 entropy=0
D/wpa_supplicant( 2066): random from os_get_random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): mixed random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant( 2066): EAPOL: disable timer tick
D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B]
D/wpa_supplicant( 2066): EAPOL: disable timer tick
[B]D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B][/B]
I wonder why its using 00:00: plaplapla insteada actual macaddr
itigr said:
I modified initscript to start wpa_supplicant with detailed debug and found this kinda interesting
Code:
D/wpa_supplicant( 2066): random: Got 1/1 bytes from /dev/random
D/wpa_supplicant( 2066): Get randomness: len=20 entropy=0
D/wpa_supplicant( 2066): random from os_get_random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): random_mix_pool - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random from internal pool - hexdump(len=16): [REMOVED]
D/wpa_supplicant( 2066): mixed random - hexdump(len=20): [REMOVED]
D/wpa_supplicant( 2066): random: Updated entropy file /data/misc/wifi/entropy.bin (own_pool_ready=2)
D/wpa_supplicant( 2066): EAPOL: disable timer tick
D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B]
D/wpa_supplicant( 2066): EAPOL: disable timer tick
[B]D/wpa_supplicant( 2066): EAPOL: Supplicant port status: Unauthorized
[B]D/wpa_supplicant( 2066): nl80211: Set supplicant port unauthorized for 00:00:00:00:00:00[/B][/B]
I wonder why its using 00:00: plaplapla insteada actual macaddr
Click to expand...
Click to collapse
Interesting.. I have to look into that. I made some changes to telephone related stuff, hopefully it makes some difference. Too bad my computer is really slow so recompiling the whole thing takes hours. And my recent apps-button does not work either. :/
Nikiz said:
Interesting.. I have to look into that. I made some changes to telephone related stuff, hopefully it makes some difference. Too bad my computer is really slow so recompiling the whole thing takes hours. And my recent apps-button does not work either. :/
Click to expand...
Click to collapse
Fixed recent apps-button. https://github.com/TheNikiz/android...mmit/904756156584da6a9cecb37afa2d5a6b56dafb19
Great.
Did these changes that you've made to phone stuff work?