Z5 Nougat

Discussions about running the rSAP app on Sony Xperia phones
Wisi
Posts: 38
Joined: Fri Oct 30, 2015 6:48 pm

Z5 Nougat

Post by Wisi » Thu Feb 16, 2017 6:42 pm

Installation of RSAP under Z5 Nougat firmware is successful but there is no connectivity to the socket. What do you need to analyze?
Root is working and installation of files is without error.

Wether MKII nor MKIII is working.

edit: sent you a logcat file, maybe you can see what the problem is.

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

Re: Test for 64 bit Qualcomm

Post by admin » Thu Feb 16, 2017 8:28 pm

Did it work with Marshmallow?

Wisi
Posts: 38
Joined: Fri Oct 30, 2015 6:48 pm

Re: Test for 64 bit Qualcomm

Post by Wisi » Thu Feb 16, 2017 8:41 pm

Yes, without any problem on every version. Root and MKII.

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

Re: Test for 64 bit Qualcomm

Post by admin » Thu Feb 16, 2017 11:16 pm

It looks like a permission problem. Since SELinux the root user is no longer automatically allowed to do everything like in the old Linux days. The SELinux permissions must be adjusted immediately after boot. Usually SuperSU does that by patching the boot image. Do you use SuperSU? Are you using a stock/Sony firmware?

Wisi
Posts: 38
Joined: Fri Oct 30, 2015 6:48 pm

Re: Test for 64 bit Qualcomm

Post by Wisi » Fri Feb 17, 2017 2:08 am

Yep, stock Sony and SuperSu. Could try phh SuperUser instead of SuperSu.

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

Re: Test for 64 bit Qualcomm

Post by admin » Fri Feb 17, 2017 8:34 am

Could you please try to create a kernel and logcat log at the same time? Then check if there are SELinux messages ("avc") when the logcat shows the rSAP socket permission error.

Wisi
Posts: 38
Joined: Fri Oct 30, 2015 6:48 pm

Re: Test for 64 bit Qualcomm

Post by Wisi » Fri Feb 17, 2017 12:38 pm

Used this one for logging: logcat -v time | cat /proc/kmsg > /mnt/sdcard/log.txt

sent you the files I logged. Or do you need another output? System ist not writable automatically on Z5 since Nougat update... maybe this is the problem.

tried recovery installation of rsap -> usage of sim cards not possible anymore because no pin input is accepted.

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

Re: Z5 Nougat

Post by admin » Sat Feb 18, 2017 5:29 pm

Is it possible that the system files "magically" disappear after some time or a reboot? This happened with HTC phones and it was a setting in the kernel which could either be removed by compiling a new kernel without the setting or a kernel module. For Sonys this seems to be called "RIC".

In the link you sent me there is a hint that the Z5 no longer boots with a modified system partition. You have to switch off "dm-verity" to prevent that. Maybe this is the reason why the recovery installation does not work?

I found all that info here: https://forum.xda-developers.com/xperia ... m-t3301605

Did you use that stuff?

This all seem to be Sony "enhancements", since I remember testing my installer app on some Nexus with Android 7.0. Maybe this all was introduced with 7.1? Needless to say that LineageOS (former CyanogenMod) doesn't have such problems...

Wisi
Posts: 38
Joined: Fri Oct 30, 2015 6:48 pm

Re: Z5 Nougat

Post by Wisi » Wed Feb 22, 2017 7:17 pm

I use a custom kernel (sunkernel) where these patches should be implemented. Also flashing root changes it normally.
Changed to another root method today but same problem like before. No access to socket.
There is another user on Nougat which has the same problem after upgrading. Maybe a Nougat issue?

Is there nothing helpful in my logs?

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

Re: Z5 Nougat

Post by admin » Fri Feb 24, 2017 6:19 pm

Did you check if the system files are really installed? Does the installer app offer "uninstall" after a reboot?

Post Reply

Return to “Sony Xperia”