su /system/bin/sh: su: can't execute: permission denied

1,279 views
Skip to first unread message

Akshay Mhaske

unread,
Jul 16, 2018, 10:51:28 AM7/16/18
to android-porting
I am building AOSP N source code for x86 based system. for superuser permision I added koush and cyanogenmod source code from x86 to AOSP. 
but I am getting following error :- 
su /system/bin/sh: su: can't execute: permission denied.


I am also attaching the log file which I captured after running su command from terminal.

Can someone please help me.

Thanks,
Akshay

su_log

Satish Patel

unread,
Jul 17, 2018, 2:53:51 PM7/17/18
to amha...@gmail.com, android-porting
On Mon, Jul 16, 2018 at 8:14 PM, Akshay Mhaske <amha...@gmail.com> wrote:
I am building AOSP N source code for x86 based system. for superuser permision I added koush and cyanogenmod source code from x86 to AOSP. 
but I am getting following error :- 
su /system/bin/sh: su: can't execute: permission denied.
​You have to apply patchset to system/core directory as well. I recommend  https://github.com/phhusson/Superuser - as it use sepolicy route to block and unblock the access. ​
 


I am also attaching the log file which I captured after running su command from terminal.

Can someone please help me.

Thanks,
Akshay

--
--
unsubscribe: android-porting+unsubscribe@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porting+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
satish patel
Reply all
Reply to author
Forward
0 new messages