Hi,I've just finished building AOSP from source for the Nexus 5. Everything works, no issues there. I'm sincerely hoping that someone can help me with the issue I'm having with Superuser/su-binary. I've successfully embedded koush's Superuser app into the Settings app with no problem. My issue is with the actual su binary. I cannot seem to get it working. I open Terminal and type su, but the prompt stays the same. I run 'adb shell' then type su and still nothing. My logcat reads:[ 05-31 16:22:59.631 3728: 3728 D/su ]su invoked.[ 05-31 16:22:59.631 3728: 3728 D/su ]starting daemon client 2000 0[ 05-31 16:22:59.631 3728: 3728 E/su ]connect failed with 2: No such file or directoryBut, ls /system/xbin/su shows that the file is there and ls /system/bin/su shows the symlink for /system/xbin/su. Here's what's currently in my updater-script:
set_metadata("/system/xbin/su", "uid", 0, "gid", 0, "mode", 06755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
so it "appears" as thought the perms are being set properly. I've even written an init script to ensure that the permissions are correct at each boot, but still nothing. I've also written the following init script to try and start 'su --daemon': [mmc] cat 91-busybox_linkage.sh
for cmd in $(busybox --list);do ln -s /system/xbin/$cmd $cmd; done; chmod ug+s /system/xbin/su; ln -s /system/xbin/su su; /system/xbin/su --daemon;
but still no SU access. Can someone PLEASE PLEASE tell me what I'm doing wrong here? I'd really appreciate it.
Thanks in advance.