[Android Software Development] el.mariachi:
Does not work on Galaxy S5 Lollipop

adbd-insecure 2.0.0 fails on my Galaxy S5 Lollipop ROM http://xdaforums.com/galaxy-s5/development/rom-t3078179:

adbd gets replaced but it still runs the shell as user shell:

$ adb shell
shell@klte:/ $ id
uid=2000(shell) gid=2000(shell)
groups=1003(graphics),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)
context=u:r:init:s0

shell@klte:/ $ su -

root@klte:/ # ls -l /sbin/adb*
-rwxr-x--- root root 281132 2015-04-29 08:42 adbd
-rw-r--r-- root root 655016 2015-04-29 08:42 adbd.original
-rwxr-x--- root root 157408 2015-04-29 08:42 adbdsh

root@klte:/ # busybox ps | grep adb
5957 0 0:02 /sbin/adbd --root_seclabel=u:r:su:s0
7592 2000 0:00 /sbin/adbdsh -
7717 0 0:00 grep adb

root@klte:/ # getprop | grep sel
[ro.build.selinux.enforce]: [1]
[ro.build.selinux]: [1]
[selinux.policy_version]: [SEPF_SM-G900F_5.0_0011]
[selinux.reload_policy]: [1]

root@klte:/ # getprop | grep adb
[init.svc.adbd]: [running]
[persist.service.adb.enable]: []
[persist.sys.usb.config]: [mtp,adb]
[ro.adb.secure]: [1]
[sys.usb.config]: [mtp,adb]
[sys.usb.state]: [mtp,adb]

USB debugging is enabled

The logcat output looks like that:

D/ResourcesManager( 4222): creating new AssetManager and set to /data/app/eu.chainfire.adbd-1/base.apk
E/Zygote ( 5413): MountEmulatedStorage()
E/Zygote ( 5413): v2
I/libpersona( 5413): KNOX_SDCARD checking this for 10230
I/libpersona( 5413): KNOX_SDCARD not a persona
I/ActivityManager( 849): Start proc eu.chainfire.adbd for broadcast eu.chainfire.adbd/.BootCompleteReceiver: pid=5413 uid=10230 gids={50230, 9997, 3003} abi=armeabi-v7a
I/SELinux ( 5413): Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G900F_5.0_0011
E/SELinux ( 5413): [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
D/TimaKeyStoreProvider( 5413): TimaSignature is unavailable
D/ActivityThread( 5413): Added TimaKeyStore provider
D/ResourcesManager( 5413): creating new AssetManager and set to /data/app/eu.chainfire.adbd-1/base.apk
W/ContextImpl( 5413): Implicit intents with startService are not safe: Intent { act=eu.chainfire.adbd.BootCompleteService } android.content.ContextWrapper.startService:533 android.content.ContextWrapper.startService:533 eu.chainfire.adbd.BootCompleteReceiver.onReceive:-1
E/CF-ADBD ( 5413): [CF-ADBD][SU+] getprop init.svc.adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU*] running
E/CF-ADBD ( 5413): [CF-ADBD][SU+] getprop ro.build.selinux
E/CF-ADBD ( 5413): [CF-ADBD][SU*] 1
E/CF-ADBD ( 5413): [CF-ADBD][SU+] getprop ro.build.selinux
E/CF-ADBD ( 5413): [CF-ADBD][SU*] 1
E/CF-ADBD ( 5413): [CF-ADBD][SU+] ls /sbin/adbd*
E/CF-ADBD ( 5413): [CF-ADBD][SU*] /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] stop adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] getprop init.svc.adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU*] stopped
E/CF-ADBD ( 5413): [CF-ADBD][SU+] mount -o rw,remount / /
E/CF-ADBD ( 5413): [CF-ADBD][SU+] rm /sbin/adbd.original
E/CF-ADBD ( 5413): [CF-ADBD][SU+] cat /sbin/adbd > /sbin/adbd.original
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chown 0.0 /sbin/adbd.original
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chmod 644 /sbin/adbd.original
E/CF-ADBD ( 5413): [CF-ADBD][SU+] rm /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] cat "/data/data/eu.chainfire.adbd/files/adbd.21.png" > /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chown 0.0 /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chmod 0750 /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU+] cat /system/bin/sh > /sbin/adbdsh
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chown 0.0 /sbin/adbdsh
E/CF-ADBD ( 5413): [CF-ADBD][SU+] chmod 0750 /sbin/adbdsh
E/CF-ADBD ( 5413): [CF-ADBD][SU+] mount -o ro,remount / /
E/CF-ADBD ( 5413): [CF-ADBD][SU+] /system/xbin/supolicy --live "permissive init_shell" "allow adbd adbd process setcurrent" "allow adbd init process dyntransition" "allow servicemanager { init_shell zygote } dir search" "allow servicemanager { init_shell zygote } file { read open }" "allow servicemanager { init_shell zygote } process getattr" "allow system_server init_shell binder { transfer call }" "allow zygote { servicemanager system_server } binder call"
E/CF-ADBD ( 5413): [CF-ADBD][SU+] start adbd
I/supolicy( 5934): allow adbd adbd process setcurrent
I/supolicy( 5934): allow adbd init process dyntransition
E/CF-ADBD ( 5413): [CF-ADBD][SU-] rm: /sbin/adbd.original: No such file or directory
E/CF-ADBD ( 5413): [CF-ADBD][SU*] supolicy v2.45 (ndk:armeabi-v7a) - Copyright (C) 2014-2015 - Chainfire
E/CF-ADBD ( 5413): [CF-ADBD][SU*]
E/CF-ADBD ( 5413): [CF-ADBD][SU*] Patching policy ...
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -permissive:init_shell=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:adbd:adbd:process:setcurrent=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:adbd:init:process:dyntransition=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:init_shell:dir:search=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:zygote:dir:search=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:init_shell:file:read=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:init_shell:file:open=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:zygote:file:read=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:zygote:file:open=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:init_shell:process:getattr=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:servicemanager:zygote:process:getattr=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:system_server:init_shell:binder:transfer=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:system_server:init_shell:binder:call=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:zygote:servicemanager:binder:call=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] -allow:zygote:system_server:binder:call=ok
E/CF-ADBD ( 5413): [CF-ADBD][SU*] - Success
E/CF-ADBD ( 5413): [CF-ADBD][SU+] ls /sbin/adbd*
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = false, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = false, functions = mtp,adb
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = false, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = false, functions = mtp,adb
E/CF-ADBD ( 5413): [CF-ADBD][SU*] /sbin/adbd
E/CF-ADBD ( 5413): [CF-ADBD][SU*] /sbin/adbd.original
E/CF-ADBD ( 5413): [CF-ADBD][SU*] /sbin/adbdsh
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = true, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = true, functions = mtp,adb
W/Settings( 6399): Setting adb_enabled has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = false, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = false, functions = mtp,adb
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = false, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = false, functions = mtp,adb
D/UsbDeviceManager( 849): updateUsbNotification : mConnected = true, mConfigured = true, mCurrentFunctions = mtp,adb
D/UsbDeviceManager( 849): sending intent : ACTION_USB_STATE : connected = true, configured = true, functions = mtp,adb
I/ActivityManager( 849): Killing 5413:eu.chainfire.adbd/u0a230 (adj 15): bgCount ##41
W/libprocessgroup( 849): failed to open /acct/uid_10230/pid_5413/cgroup.procs: No such file or directory
D/ResourcesManager( 6881): creating new AssetManager and set to /data/app/eu.chainfire.adbd-1/base.apk
W/Settings( 7061): Setting adb_enabled has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only global URI.

I'd appreciate your help!

Thanks!