It is currently Tue Sep 26, 2017 1:11 pm

rSAP for Android Forum

Support forum for Android rSAP App

Samsung S4 mini custom ROM

Discussions about rSAP installation
 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 10:19 am

Hi!

I am currently trying to get RSAP working with a custom ROM on a Galaxy S4 mini.
While it is based on CM, there seem to be some differences.
After installing the installer app (via sideload, no problems), the rSAP trial app says "Systembibliothek nicht vorhanden. Ist dies ein kompatibles Telefon?".
Can you tell me, what system files it is actually looking for? I am planing on taking the missing libs from the stock rom in order to integrate them into this system - but I don't know which ones to take (as a previously mentioned libsec-ril.so apparently isn't included with the stock rom - so what libs does the app need on this phone?)

Thanks,

Savek

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

Re: Samsung S4 mini custom ROM

Post by admin » Mon May 26, 2014 10:43 am

I'm not sure what RIL is used on the S4 mini, maybe the libril-qc-qmi-1.so? Don't forget to rename the original file!

When you check the recovery option in the installer app, and then cancel the reboot, you get a zip file on the SD card which installs the system files properly on your phone.

 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Re: Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 10:57 am

Hi!

The installer app was installed sucessfully - and created a "/system/lib/libril-qc-qmi-1.orig.so" before replacing the original lib.
Nonetheless the actual rSAP app keeps complaining about missing system libs - so what am I missing?
Attached is a list of all "lib*.so" files currently on the phone.
Attachments
libs.tgz
list of 'root@android:/ # find / -name "lib*.so"'
(2.5 KiB) Downloaded 68 times

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

Re: Samsung S4 mini custom ROM

Post by admin » Mon May 26, 2014 11:22 am

Does it work when you do run the installer app? Maybe you have to fix owner and permissions of the new file?

 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Re: Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 11:28 am

The installer app could not be run from within android (no root there), so I installed it via sideload in custom recovery (which did work just fine).
All libs on the system have the same permissions: (644, root:root)
-rw-r--r-- root root 3841740 2014-03-05 16:30 libril-qc-qmi-1.orig.so
-rw-r--r-- root root 19056 2008-08-01 14:00 libril-qc-qmi-1.so
-rw-r--r-- root root 5060 2014-03-05 16:30 libril-qcril-hook-oem.so
-rw-r--r-- root root 53488 2014-03-05 16:30 libril.so

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

Re: Samsung S4 mini custom ROM

Post by admin » Mon May 26, 2014 1:40 pm

You installed the zip file generated by the installer app via sideload? The installer app ran on the final ROM? It should be possible to create the zip file even without root.

Strange that my app doesn't recognize the file. Are you using a recent version of the rSAP app? Older versions used a socket in /dev/socket which also required root.

In your "find" run it is strange that all files look sorted, only the *.orig.so is near the end of the folder content. Maybe coincidence.

 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Re: Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 2:03 pm

looking at it again, it might have something to do with the SE-Android extensions present on the ROM - I will try to have a look at the required permissions - maybe that's all what's missing :roll: :idea:

 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Re: Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 4:16 pm

Apparently it's not that easy...
While the app actually does run and display all OK (including SIM test), the car (2014 Audi A6 with Audi Connect) does not list rsap mode as possible modes for the phone (only "Freisprechen" and "Audiowiedergabe", no "Autotelefon").
The lines matching "rsap" in the adb log are as follows:
W/PackageManager( 1479): Unknown permission android.permission.ACCESS_SUPERUSER in package com.android_rsap.rsapinstall
W/PackageManager( 1479): Not granting permission android.permission.READ_LOGS to package com.android_rsap.BluetoothRSAP (protectionLevel=50 flags=0x8be44)
W/PackageManager( 1479): Unknown permission android.permission.ACCESS_SUPERUSER in package com.android_rsap.BluetoothRSAP
W/PackageManager( 1479): Unknown permission android.permission.ACCESS_SUPERUSER in package com.android_rsap.rsapinstall
W/PackageManager( 1479): Not granting permission android.permission.READ_LOGS to package com.android_rsap.BluetoothRSAP (protectionLevel=50 flags=0x88be44)
W/PackageManager( 1479): Unknown permission android.permission.ACCESS_SUPERUSER in package com.android_rsap.BluetoothRSAP
I/ActivityManager( 1479): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android_rsap.BluetoothRSAP/.BluetoothRSAP bnds=[390,475][510,625]} from pid 1762
I/ActivityManager( 1479): Start proc com.android_rsap.BluetoothRSAP for activity com.android_rsap.BluetoothRSAP/.BluetoothRSAP: pid=3547 uid=10067 gids={50067, 3001, 3002, 1015, 1028}
I/ActivityManager( 1479): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android_rsap.BluetoothRSAP/.BluetoothRSAP bnds=[390,475][510,625]} from pid 1762
I/ActivityManager( 1479): START u0 {cmp=com.android_rsap.BluetoothRSAP/.RSAPPreferenceActivity} from pid 3547
I/ActivityManager( 1479): Displayed com.android_rsap.BluetoothRSAP/.RSAPPreferenceActivity: +204ms
I/ActivityManager( 1479): START u0 {cmp=com.android_rsap.BluetoothRSAP/.DiagSimAccessActivity} from pid 3547
I/BluetoothRSAPPhone( 3547): RIL state StateConnectingWaitPowerOff
I/BluetoothRSAPPhone( 3547): BluetoothRSAPPhone.setState(Connecting)
I/ActivityManager( 1479): Displayed com.android_rsap.BluetoothRSAP/.DiagSimAccessActivity: +192ms
I/BluetoothRSAPPhone( 3547): RIL state StateConnected
I/BluetoothRSAPPhone( 3547): BluetoothRSAPPhone.setState(Connected)
I/BluetoothRSAPPhone( 3547): RIL state StateDisconnectingWaitPowerOn
I/BluetoothRSAPPhone( 3547): BluetoothRSAPPhone.setState(Disconnecting)
I/BluetoothRSAPPhone( 3547): RIL state StateDisconnected
I/BluetoothRSAPPhone( 3547): BluetoothRSAPPhone.setState(Idle)
I/BluetoothRSAPService( 3547): ----- start Logger main
I/RSAPPreferenceActivity( 3547): APK version: 2.5 (trial)
I/RSAPPreferenceActivity( 3547): RIL wrapper version: 8 Generic UIM SAP - V2.4.4
I/RSAPPreferenceActivity( 3547): Socket creator: Android API
I/RSAPPreferenceActivity( 3547): Bluetooth state: STATE_LISTEN
I/RSAPPreferenceActivity( 3547): SIM state: Idle
I/RSAPPreferenceActivity( 3547): Model: 1.0.4
I/RSAPPreferenceActivity( 3547): Product: full_serranoltexx
I/RSAPPreferenceActivity( 3547): Device: serranoltexx
I/RSAPPreferenceActivity( 3547): Version: 4.2.2
I/RSAPPreferenceActivity( 3547): Build: full_serranoltexx-userdebug 4.2.2 JDQ39E eng.ruth.20140505.141330 test-keys

any clues or pointers what to try next?

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

Re: Samsung S4 mini custom ROM

Post by admin » Mon May 26, 2014 4:51 pm

Did you also install the /system/lib/hw/bluetooth.xxx.so or bplus.xxx.so? For xxx simply look at other drivers in the hw folder. This is an additional file and does not replace anything else.

If you know how the zip installations work, I suggest you check the scripts in the generated zip file for more possibly missing installation steps - although currently I can't remember any...

 
Posts: 11
Joined: Mon May 26, 2014 10:14 am

Re: Samsung S4 mini custom ROM

Post by savek » Mon May 26, 2014 6:28 pm

There are only two b* entries in /system/lib/hw:

drwxr-xr-x root root 2014-05-26 15:45 bluetooth.
-rw-r--r-- root root 753380 2008-08-01 14:00 bluetooth.default.so

so one directory and one file...
in the bluetooth. directory is another folder called "system" and within that "bin", "sh"

when I unzip the generated rsap-install zip, I get some wired stuff:
inflating: lib/hw/bluetooth./system/bin/sh: <stdin>[4]: /system/bin/getprop: not found.so

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest