Xiaomi MI2 / MIUI

Discussions about running the rSAP app on Xiaomi phones
admin
Site Admin
Posts: 4128
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Fri Apr 05, 2013 10:14 pm

wombie wrote:Just one little issue - the status in the app is not shown correctly... e.g. "Normale Telefonfunktion" also if rSAP is connected in real. Bluetooth status is wrong also but this is only blemish to me.
Are you sure you had an rSAP connection and not via "Handsfree" profile? the status display should be correct, you can double-check the mobile's receiption which should disappear while rSAP is active.

wombie
Posts: 10
Joined: Tue Mar 19, 2013 2:39 pm

Re: Xiaomi MI2 / MIUI

Post by wombie » Sat Apr 06, 2013 12:47 am

Yes im sure that it was an rSAP connection.
As described by yourself the signal strengh bars dissappear on phone and comes up n my car.

During phone calls thr phone doesnt react like usually in handsfdee mode.

I try to make some more logging, one when it works, just after reboot and one when it not works.

admin
Site Admin
Posts: 4128
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Sat Apr 06, 2013 10:53 am

Then it may be that my app's internal state is confused. All kinds of strange things may happen in that case. It's impossible for me to fix this without the device. If maybe some more people show interest I may think about buying one ;)

wombie
Posts: 10
Joined: Tue Mar 19, 2013 2:39 pm

Re: Xiaomi MI2 / MIUI

Post by wombie » Sat Apr 06, 2013 1:00 pm

But interesting is that the trial version works fine.
Attachments
Screenshot_2013-04-06-10-53-14.png
Screenshot_2013-04-06-10-53-14.png (44.66 KiB) Viewed 2301 times

admin
Site Admin
Posts: 4128
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Sat Apr 06, 2013 2:30 pm

If you can create "main" and "radio" log with Catlog, starting directly after boot, with one successful and the next unsuccessful connection(s), perhaps I can see where the problem is. Please do also try with the trial version if you think it worked better. You can uninstall and install the full version as often as you want if you keep your Google account.

wombie
Posts: 10
Joined: Tue Mar 19, 2013 2:39 pm

Re: Xiaomi MI2 / MIUI

Post by wombie » Sun Apr 14, 2013 8:02 pm

Sorry for the delay, i was away in business....

Here the main log (rSAP connection worked one time and fails in the other time):

Code: Select all

--------- beginning of /dev/log/main
04-14 18:53:59.048 D/ActivityThread( 1974): setTargetHeapUtilization:0.25
04-14 18:53:59.048 D/ActivityThread( 1974): setTargetHeapIdealFree:8388608
04-14 18:53:59.048 D/ActivityThread( 1974): setTargetHeapConcurrentStart:2097152
04-14 18:53:59.078 I/RSAPBroadcastReceiver( 1974): ##### starting rSAP service #####
04-14 18:53:59.539 I/BluetoothRSAPPhone( 1974): RilThread created
04-14 18:53:59.539 I/BluetoothRSAPPhone( 1974): RilThread running
04-14 18:53:59.539 E/BluetoothRSAPPhone( 1974): java.io.IOException: No such file or directory
04-14 18:53:59.539 I/BluetoothRSAPPhone( 1974): BluetoothRSAPPhone.setState(ConnectError)
04-14 18:53:59.549 D/BluetoothRSAPClient( 1974): start
04-14 18:53:59.559 W/System.err( 1974): java.io.IOException: No such file or directory
04-14 18:53:59.559 W/System.err( 1974): 	at android.net.LocalSocketImpl.connectLocal(Native Method)
04-14 18:53:59.559 W/System.err( 1974): 	at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-14 18:53:59.559 W/System.err( 1974): 	at android.net.LocalSocket.connect(LocalSocket.java:98)
04-14 18:53:59.559 W/System.err( 1974): 	at com.android_rsap.rsap.tc.run(tc.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): listen failed
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): java.io.IOException: Address already in use
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.bluetooth.BluetoothSocket.throwErrnoNative(Native Method)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.bluetooth.BluetoothAdapter.listenUsingRfcommOn(BluetoothAdapter.java:970)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at java.lang.reflect.Method.invoke(Method.java:511)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.v.b(v.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.v.l(v.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.v.c(v.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.qc.a(qc.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.v.h(v.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.ab.h(ab.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android_rsap.rsap.BluetoothRSAPService.onCreate(BluetoothRSAPService.java)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:2384)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.app.ActivityThread.access$1600(ActivityThread.java:136)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.os.Handler.dispatchMessage(Handler.java:99)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.os.Looper.loop(Looper.java:137)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at android.app.ActivityThread.main(ActivityThread.java:4797)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at java.lang.reflect.Method.invokeNative(Native Method)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at java.lang.reflect.Method.invoke(Method.java:511)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
04-14 18:53:59.629 E/BluetoothRSAPClient( 1974): 	at dalvik.system.NativeStart.main(Native Method)
04-14 18:53:59.629 D/BluetoothRSAPClient( 1974): setState() STATE_NONE -> STATE_ERROR
04-14 18:53:59.629 D/RSAPPluginList( 1974): onServiceConnected ComponentInfo{com.android_rsap.simplugin/com.android_rsap.simplugin.SIMFixPluginService}
04-14 18:54:00.560 E/BluetoothRSAPPhone( 1974): java.io.IOException: No such file or directory
04-14 18:54:00.560 I/BluetoothRSAPPhone( 1974): BluetoothRSAPPhone.setState(ConnectError)
04-14 18:54:00.560 W/System.err( 1974): java.io.IOException: No such file or directory
04-14 18:54:00.560 W/System.err( 1974): 	at android.net.LocalSocketImpl.connectLocal(Native Method)
04-14 18:54:00.560 W/System.err( 1974): 	at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-14 18:54:00.560 W/System.err( 1974): 	at android.net.LocalSocket.connect(LocalSocket.java:98)
04-14 18:54:00.560 W/System.err( 1974): 	at com.android_rsap.rsap.tc.run(tc.java)
04-14 18:54:01.561 E/BluetoothRSAPPhone( 1974): java.io.IOException: No such file or directory
04-14 18:54:01.561 I/BluetoothRSAPPhone( 1974): BluetoothRSAPPhone.setState(ConnectError)
04-14 18:54:01.561 W/System.err( 1974): java.io.IOException: No such file or directory
04-14 18:54:01.561 W/System.err( 1974): 	at android.net.LocalSocketImpl.connectLocal(Native Method)
04-14 18:54:01.561 W/System.err( 1974): 	at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-14 18:54:01.561 W/System.err( 1974): 	at android.net.LocalSocket.connect(LocalSocket.java:98)
04-14 18:54:01.561 W/System.err( 1974): 	at com.android_rsap.rsap.tc.run(tc.java)
04-14 18:54:02.572 E/BluetoothRSAPPhone( 1974): java.io.IOException: No such file or directory
04-14 18:54:02.572 I/BluetoothRSAPPhone( 1974): BluetoothRSAPPhone.setState(ConnectError)
04-14 18:54:02.572 W/System.err( 1974): java.io.IOException: No such file or directory
04-14 18:54:02.572 W/System.err( 1974): 	at android.net.LocalSocketImpl.connectLocal(Native Method)
04-14 18:54:02.572 W/System.err( 1974): 	at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-14 18:54:02.572 W/System.err( 1974): 	at android.net.LocalSocket.connect(LocalSocket.java:98)
04-14 18:54:02.572 W/System.err( 1974): 	at com.android_rsap.rsap.tc.run(tc.java)
04-14 18:54:03.573 I/BluetoothRSAPPhone( 1974): ===== RilThread.run: connected
04-14 18:54:03.573 I/BluetoothRSAPPhone( 1974): BluetoothRSAPPhone.setState(Idle)
04-14 19:25:35.090 W/ResourceType( 1974): No package identifier when getting value for resource number 0x00000000
04-14 19:25:35.090 W/PackageManager( 1974): Failure retrieving resources forcom.android_rsap.rsap: Resource ID #0x0
04-14 19:25:35.270 I/Adreno200-EGL( 1974): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build:  (CL3068996)
04-14 19:25:35.270 I/Adreno200-EGL( 1974): Build Date: 03/07/13 Thu
04-14 19:25:35.270 I/Adreno200-EGL( 1974): Local Branch: au37
04-14 19:25:35.270 I/Adreno200-EGL( 1974): Remote Branch: 
04-14 19:25:35.270 I/Adreno200-EGL( 1974): Local Patches: 
04-14 19:25:35.270 I/Adreno200-EGL( 1974): Reconstruct Branch: 
04-14 19:25:37.262 W/ResourceType( 1974): No package identifier when getting value for resource number 0x00000000
04-14 19:25:37.262 W/PackageManager( 1974): Failure retrieving resources forcom.android_rsap.rsap: Resource ID #0x0
04-14 19:25:39.024 I/BluetoothRSAPService( 1974): ----- start Logger main
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): APK version: 2.2.1
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): RIL wrapper version: 8 Generic UIM SAP - V2.2.4
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): Bluetooth state: STATE_ERROR
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): SIM state: Idle
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): Model:   MI 2
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): Product: aries
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): Version: 4.1.1
04-14 19:25:39.044 I/RSAPPreferenceActivity( 1974): Build:   JRO03L
04-14 19:27:16.719 W/ResourceType( 1974): No package identifier when getting value for resource number 0x00000000
04-14 19:27:16.719 W/PackageManager( 1974): Failure retrieving resources forcom.android_rsap.rsap: Resource ID #0x0
04-14 19:29:16.286 W/IInputConnectionWrapper( 1974): getExtractedText on inactive InputConnection
04-14 19:29:16.286 W/IInputConnectionWrapper( 1974): getTextBeforeCursor on inactive InputConnection
04-14 19:29:16.286 W/IInputConnectionWrapper( 1974): getSelectedText on inactive InputConnection
04-14 19:29:16.286 W/IInputConnectionWrapper( 1974): getTextAfterCursor on inactive InputConnection
04-14 19:29:16.296 W/IInputConnectionWrapper( 1974): getExtractedText on inactive InputConnection
04-14 19:29:16.296 W/IInputConnectionWrapper( 1974): getTextBeforeCursor on inactive InputConnection
04-14 19:29:16.296 W/IInputConnectionWrapper( 1974): getExtractedText on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getTextBeforeCursor on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getSelectedText on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getTextAfterCursor on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getExtractedText on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getTextBeforeCursor on inactive InputConnection
04-14 19:29:16.306 W/IInputConnectionWrapper( 1974): getSelectedText on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): getTextAfterCursor on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): beginBatchEdit on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): endBatchEdit on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): getExtractedText on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): getTextBeforeCursor on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): getSelectedText on inactive InputConnection
04-14 19:29:16.316 W/IInputConnectionWrapper( 1974): getTextAfterCursor on inactive InputConnection

admin
Site Admin
Posts: 4128
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Mon Apr 15, 2013 9:19 am

Hmm... Whatever connection it was, there is not a trace of it in the log. There is a gap between 18:54 and 19:25.

BTW: it's better to mail me the logs (admin at ...) instead of putting them here for all to see...

Physikuss
Posts: 24
Joined: Mon Nov 12, 2012 3:36 pm

Re: Xiaomi MI2 / MIUI

Post by Physikuss » Sun May 12, 2013 7:15 pm

Hi,
is there any experience about the Mi2s (Snapdragon 600) in connection with VW Premium FSE? I'm going to buy a Mi2s but rSAP-Support is mandatory for me.

admin
Site Admin
Posts: 4128
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Sun May 12, 2013 7:46 pm

So far nobody could make it work, so I wouldn't count on it.

Physikuss
Posts: 24
Joined: Mon Nov 12, 2012 3:36 pm

Re: Xiaomi MI2 / MIUI

Post by Physikuss » Sat Jun 15, 2013 2:51 pm

Hi,
I now have a Mi2s for testing. I installed the system files. The /system/lib/libril-qc-qmi1.so obviously is there. However, it does not work right out of the box (as I expected :-)
On the other hand I would like to help to make it work. The first thing is, that after starting the rsap App there is a short notification, that system libraries are missing. But this disappears after a short time and the status is as in the following screenshot
Screenshot_2013-06-15-14-40-53.png
Screenshot_2013-06-15-14-40-53.png (50.83 KiB) Viewed 2208 times
When I try to connect to my VW HFP the pairing works fine but the connection to the phone cannot be established.
Any clue how we can proceed to find out, where is the problem? Additionally I made a HCl log. Don't know if it helps. I will send it separately.

Post Reply

Return to “Xiaomi”