It is currently Mon Oct 15, 2018 6:07 pm

rSAP for Android Forum

Support forum for Android rSAP App

Xiaomi MI2 / MIUI

Discussions about running the rSAP app on Xiaomi phones
 
Posts: 10
Joined: Tue Mar 19, 2013 2:39 pm

Xiaomi MI2 / MIUI

Post by wombie » Tue Mar 19, 2013 2:42 pm

Hello there!

I'm owning a Xiaomi MI2 and i'm very hard missing rSAP funktionality.

My car (Audi A4) provides connecting via rSAP in Menu, normally it is grey if not available. But it doesn't come to end.
The Phone hangs up - no more signal.

Maybe you can look after and make the MI2 supportet within your great app.

THANKS!

 
Posts: 4085
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Wed Mar 20, 2013 10:52 pm

If your phone uses the Qualcomm RIL, perhaps the Sony installation works.
viewtopic.php?f=57&t=764

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Wed Mar 27, 2013 11:19 am

The phone is based on Qualcomm Snapdragon APQ8064...

The installation with the provided Sony .pak works without error but rSAP doesn't work.
I downloaded the trial - i made some screenshots:

Image Image


EDIT:

Some mor information picked from logfiles:

Code: Select all
03-27 09:22:32.653 W/PackageManager(22986): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:22:32.753 I/BluetoothRSAPService(22986): onCreate
03-27 09:22:32.883 I/BluetoothRSAPPhone(22986): RilThread created
03-27 09:22:32.883 I/BluetoothRSAPPhone(22986): RilThread running
03-27 09:22:32.883 E/BluetoothRSAPPhone(22986): java.io.IOException: No such file or directory
03-27 09:22:32.883 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:22:32.883 W/System.err(22986):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:22:32.913 D/BluetoothRSAPClient(22986): start
03-27 09:22:33.013 D/BluetoothRSAPClient(22986): setState() STATE_NONE -> STATE_ERROR
03-27 09:22:33.013 D/BluetoothRSAPClient(22986): setState() STATE_ERROR -> STATE_NONE
03-27 09:22:33.013 I/BluetoothRSAPService(22986): onStartCommand
03-27 09:22:33.884 E/BluetoothRSAPPhone(22986): java.io.IOException: No such file or directory
03-27 09:22:33.884 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:22:33.894 W/System.err(22986):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:22:34.895 E/BluetoothRSAPPhone(22986): java.io.IOException: No such file or directory
03-27 09:22:34.895 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:22:34.895 W/System.err(22986):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:22:35.886 E/BluetoothRSAPPhone(22986): java.io.IOException: No such file or directory
03-27 09:22:35.886 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:22:35.886 W/System.err(22986):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:22:36.887 E/BluetoothRSAPPhone(22986): java.io.IOException: No such file or directory
03-27 09:22:36.887 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:22:36.887 W/System.err(22986):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:22:37.268 W/PackageManager(22986): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:22:37.888 I/BluetoothRSAPPhone(22986): ===== RilThread.run: connected
03-27 09:22:37.888 I/BluetoothRSAPPhone(22986): BluetoothRSAPPhone.setState(Idle)
03-27 09:22:49.270 W/PackageManager(22986): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:23:01.053 W/PackageManager(22986): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:23:03.886 W/PackageManager(22986): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:25:01.639 I/BluetoothRSAPService(24260): onCreate
03-27 09:25:01.649 I/BluetoothRSAPPhone(24260): RilThread created
03-27 09:25:01.649 I/BluetoothRSAPPhone(24260): RilThread running
03-27 09:25:01.659 I/BluetoothRSAPPhone(24260): ===== RilThread.run: connected
03-27 09:25:01.679 D/BluetoothRSAPClient(24260): start
03-27 09:25:01.830 D/BluetoothRSAPClient(24260): setState() STATE_NONE -> STATE_ERROR
03-27 09:25:01.830 D/BluetoothRSAPClient(24260): setState() STATE_ERROR -> STATE_NONE
03-27 09:25:01.840 I/BluetoothRSAPService(24260): onStartCommand
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260): ===== RilThread.run: disconnected
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection reset by peer
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260):    at android.net.LocalSocketImpl.readba_native(Native Method)
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260):    at android.net.LocalSocketImpl.access$400(LocalSocketImpl.java:29)
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260):    at android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:92)
03-27 09:25:01.950 E/BluetoothRSAPPhone(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:02.951 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection refused
03-27 09:25:02.951 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:25:02.951 W/System.err(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:03.952 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection refused
03-27 09:25:03.952 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:25:03.952 W/System.err(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:04.953 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection refused
03-27 09:25:04.953 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:25:04.953 W/System.err(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:05.954 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection refused
03-27 09:25:05.954 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:25:05.964 W/System.err(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:06.965 E/BluetoothRSAPPhone(24260): java.io.IOException: Connection refused
03-27 09:25:06.965 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(ConnectError)
03-27 09:25:06.965 W/System.err(24260):    at com.android_rsap.BluetoothRSAP.ib.run(ib.java)
03-27 09:25:07.966 I/BluetoothRSAPPhone(24260): ===== RilThread.run: connected
03-27 09:25:07.966 I/BluetoothRSAPPhone(24260): BluetoothRSAPPhone.setState(Idle)
03-27 09:25:08.697 W/PackageManager(24260): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:25:49.130 W/PackageManager(24260): Failure retrieving resources forcom.android_rsap.BluetoothRSAP: Resource ID #0x0
03-27 09:25:52.594 I/BluetoothRSAPService(24260): ----- start Logger main

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Thu Mar 28, 2013 3:07 pm

I think there is a problem as the App show up "Bluetooth Status - Ausgeschaltet", could this be the problem?

It would be very nice if you can look, if there are any informations you can work with. If you need further information i will give my best to provide.
Thanks!

 
Posts: 4085
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Mon Apr 01, 2013 11:04 am

At first glance this looks like the app cannot communicate with the system lib. Can you check if you have a folder /dev/socket with an entry 'rsap'? The entry may not be visible in a file manager like Root Explorer, you may use a root shell.

The folder and the socket should be read/write for everyone.

Did you check if you have a /system/lib/libril-qc-qmi-1.so?

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Thu Apr 04, 2013 10:27 am

Dear admin,

thanks for following up! :)

I have folder /dev/socket but the entry of rsap is missing :(
Maybe an error because of installation error caused by read/wirte issue? I have to check permissions...


But i can confirm that /system/lib/lilbril-qc-qmi-1.so exists :)

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Thu Apr 04, 2013 1:16 pm

Some more information:

"/dev/sockets" looks ok for me:
Rights: drwxr-xr-x
Owner: root:root

Is it maybe possible to do the necessary changs manually?

Thank you!

 
Posts: 4085
Joined: Wed Mar 23, 2011 4:12 pm

Re: Xiaomi MI2 / MIUI

Post by admin » Thu Apr 04, 2013 4:09 pm

/dev/sockets should be rw for all. My app tries to set this, so maybe you have a problem with root access?

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Thu Apr 04, 2013 8:23 pm

Hi Admin!

I set the rights manually to 777 - no it works. I bought your great App! Thanks for help.
You can put Xiamo MI2 on the List of compatibility. ;)

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.


But allow me one last question; is it not a security issue if /dev/socks is CHMOD 777?

Thanks again for good support, i'm very happy that i must not change my mobile contract for MultiSIM support. :D
I will make some promotion for your app :mrgreen:

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

Re: Xiaomi MI2 / MIUI

Post by wombie » Fri Apr 05, 2013 9:04 am

Hmm. Cheered too soon... :cry:

I'm actually experiencing the issue that i can connect the first time after rebooting the phone but next time it fails.
If i remember right i hadn't that issue in trial? hmm

As i own a Audi A4 (year 2012) i installed the fix you provided. It appears as plugin in rSAP settings but doesn't solve this case. Maybe the fix needs some special rights, too? Anything else i can check?

Thanks

EDIT:

Some more information (main log):
Code: Select all
--------- beginning of /dev/log/main
04-05 07:14:16.817 D/ActivityThread( 1915): setTargetHeapUtilization:0.25
04-05 07:14:16.817 D/ActivityThread( 1915): setTargetHeapIdealFree:8388608
04-05 07:14:16.817 D/ActivityThread( 1915): setTargetHeapConcurrentStart:2097152
04-05 07:14:16.867 I/RSAPBroadcastReceiver( 1915): ##### starting rSAP service #####
04-05 07:14:17.277 I/BluetoothRSAPPhone( 1915): RilThread created
04-05 07:14:17.287 D/BluetoothRSAPClient( 1915): start
04-05 07:14:17.297 I/BluetoothRSAPPhone( 1915): RilThread running
04-05 07:14:17.297 E/BluetoothRSAPPhone( 1915): java.io.IOException: No such file or directory
04-05 07:14:17.297 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(ConnectError)
04-05 07:14:17.297 W/System.err( 1915): java.io.IOException: No such file or directory
04-05 07:14:17.297 W/System.err( 1915):    at android.net.LocalSocketImpl.connectLocal(Native Method)
04-05 07:14:17.297 W/System.err( 1915):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-05 07:14:17.297 W/System.err( 1915):    at android.net.LocalSocket.connect(LocalSocket.java:98)
04-05 07:14:17.297 W/System.err( 1915):    at com.android_rsap.rsap.tc.run(tc.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915): listen failed
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915): java.io.IOException: Address already in use
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.bluetooth.BluetoothSocket.throwErrnoNative(Native Method)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.bluetooth.BluetoothAdapter.listenUsingRfcommOn(BluetoothAdapter.java:970)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at java.lang.reflect.Method.invokeNative(Native Method)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at java.lang.reflect.Method.invoke(Method.java:511)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.v.b(v.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.v.l(v.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.v.c(v.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.qc.a(qc.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.v.h(v.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.ab.h(ab.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android_rsap.rsap.BluetoothRSAPService.onCreate(BluetoothRSAPService.java)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2384)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.app.ActivityThread.access$1600(ActivityThread.java:136)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.os.Looper.loop(Looper.java:137)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at android.app.ActivityThread.main(ActivityThread.java:4797)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at java.lang.reflect.Method.invokeNative(Native Method)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at java.lang.reflect.Method.invoke(Method.java:511)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:804)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:571)
04-05 07:14:17.337 E/BluetoothRSAPClient( 1915):    at dalvik.system.NativeStart.main(Native Method)
04-05 07:14:17.337 D/BluetoothRSAPClient( 1915): setState() STATE_NONE -> STATE_ERROR
04-05 07:14:18.308 E/BluetoothRSAPPhone( 1915): java.io.IOException: No such file or directory
04-05 07:14:18.308 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(ConnectError)
04-05 07:14:18.308 W/System.err( 1915): java.io.IOException: No such file or directory
04-05 07:14:18.308 W/System.err( 1915):    at android.net.LocalSocketImpl.connectLocal(Native Method)
04-05 07:14:18.308 W/System.err( 1915):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-05 07:14:18.308 W/System.err( 1915):    at android.net.LocalSocket.connect(LocalSocket.java:98)
04-05 07:14:18.308 W/System.err( 1915):    at com.android_rsap.rsap.tc.run(tc.java)
04-05 07:14:19.309 E/BluetoothRSAPPhone( 1915): java.io.IOException: No such file or directory
04-05 07:14:19.309 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(ConnectError)
04-05 07:14:19.319 W/System.err( 1915): java.io.IOException: No such file or directory
04-05 07:14:19.319 W/System.err( 1915):    at android.net.LocalSocketImpl.connectLocal(Native Method)
04-05 07:14:19.319 W/System.err( 1915):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-05 07:14:19.319 W/System.err( 1915):    at android.net.LocalSocket.connect(LocalSocket.java:98)
04-05 07:14:19.319 W/System.err( 1915):    at com.android_rsap.rsap.tc.run(tc.java)
04-05 07:14:20.320 E/BluetoothRSAPPhone( 1915): java.io.IOException: No such file or directory
04-05 07:14:20.320 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(ConnectError)
04-05 07:14:20.320 W/System.err( 1915): java.io.IOException: No such file or directory
04-05 07:14:20.320 W/System.err( 1915):    at android.net.LocalSocketImpl.connectLocal(Native Method)
04-05 07:14:20.320 W/System.err( 1915):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-05 07:14:20.320 W/System.err( 1915):    at android.net.LocalSocket.connect(LocalSocket.java:98)
04-05 07:14:20.320 W/System.err( 1915):    at com.android_rsap.rsap.tc.run(tc.java)
04-05 07:14:21.322 E/BluetoothRSAPPhone( 1915): java.io.IOException: No such file or directory
04-05 07:14:21.322 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(ConnectError)
04-05 07:14:21.322 W/System.err( 1915): java.io.IOException: No such file or directory
04-05 07:14:21.322 W/System.err( 1915):    at android.net.LocalSocketImpl.connectLocal(Native Method)
04-05 07:14:21.322 W/System.err( 1915):    at android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
04-05 07:14:21.322 W/System.err( 1915):    at android.net.LocalSocket.connect(LocalSocket.java:98)
04-05 07:14:21.322 W/System.err( 1915):    at com.android_rsap.rsap.tc.run(tc.java)
04-05 07:14:22.323 I/BluetoothRSAPPhone( 1915): ===== RilThread.run: connected
04-05 07:14:22.323 I/BluetoothRSAPPhone( 1915): BluetoothRSAPPhone.setState(Idle)
04-05 07:44:25.255 W/ResourceType( 1915): No package identifier when getting value for resource number 0x00000000
04-05 07:44:25.255 W/PackageManager( 1915): Failure retrieving resources forcom.android_rsap.rsap: Resource ID #0x0
04-05 07:44:25.426 I/Adreno200-EGL( 1915): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build:  (CL3068996)
04-05 07:44:25.426 I/Adreno200-EGL( 1915): Build Date: 03/07/13 Thu
04-05 07:44:25.426 I/Adreno200-EGL( 1915): Local Branch: au37
04-05 07:44:25.426 I/Adreno200-EGL( 1915): Remote Branch:
04-05 07:44:25.426 I/Adreno200-EGL( 1915): Local Patches:
04-05 07:44:25.426 I/Adreno200-EGL( 1915): Reconstruct Branch:
04-05 07:44:28.719 W/ResourceType( 1915): No package identifier when getting value for resource number 0x00000000
04-05 07:44:28.719 W/PackageManager( 1915): Failure retrieving resources forcom.android_rsap.rsap: Resource ID #0x0
04-05 07:44:31.893 I/BluetoothRSAPService( 1915): ----- start Logger main
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): APK version: 2.2.1
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): RIL wrapper version: 8 Generic UIM SAP - V2.2.4
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): Bluetooth state: STATE_ERROR
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): SIM state: Idle
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): Model:   MI 2
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): Product: aries
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): Version: 4.1.1
04-05 07:44:31.923 I/RSAPPreferenceActivity( 1915): Build:   JRO03L

Next

Return to Xiaomi

Who is online

Users browsing this forum: No registered users and 1 guest