phhusson / Superuser

Keeping koush's Superuser fresh
GNU General Public License v3.0
423 stars 50 forks source link

Does it support systemless root? #36

Closed yilksd closed 8 years ago

yilksd commented 8 years ago

Several months ago Samsung note 5 needs custom kernel to root ,but then Chainfire's SuperSU provides a feature called "systemless root" (http://forum.xda-developers.com/showpost.php?p=64161125&postcount=3), which can root note 5 without custom kernel .Does this Superuser support it ?

phhusson commented 8 years ago

Yes it supports system-less root since october. Though the relevant part is in https://github.com/phhusson/super-bootimg

yilksd commented 8 years ago

http://forum.xda-developers.com/note5/general/how-to-root-note-5-t3205073
This page says I can just flash twrp then flash SuperSU.zip to root my note 5 with systemless root feature . I flashed twrp-2.8.7.1-nobleltezt.img using heimdall ,and then I stuck in boot loop.I could enter twrp and download mode ,but could not boot normally .Then I entered twrp and flashed your superuser.zip ,but I got only "kernel is not seandroid enforcing" on start up screen top .Still boot loop . Can you provide some extra information to help me root my note 5 ? Thanks .

phhusson commented 8 years ago

Edit the zip's config.txt, change eng to user Le 23 janv. 2016 16:34, "yilksd" notifications@github.com a écrit :

http://forum.xda-developers.com/note5/general/how-to-root-note-5-t3205073

This page says I can just flash twrp then flash SuperSU.zip to root my note 5 with systemless root feature . I flashed twrp-2.8.7.1-nobleltezt.img using heimdall ,and then I stuck in boot loop.I could enter twrp and download mode ,but could not boot normally .Then I entered twrp and flashed your superuser.zip ,but I got only "kernel is not seandroid enforcing" on start up screen top .Still boot loop . Can you provide some extra information to help me root my note 5 ? Thanks .

— Reply to this email directly or view it on GitHub https://github.com/phhusson/Superuser/issues/36#issuecomment-174194101.

yilksd commented 8 years ago

Just changed "eng" to "user" in the zip's config.txt ,and then flashed the superuser.zip .Still boot loop and "kernel is not seandroid enforcing" on start up screen top . Do I need to flash stock rom before flashing the new superuser.zip ?

phhusson commented 8 years ago

Well you just need to restore boot.img to its state before having applied my superuser.zip Do you have a link to the kernel sources?

yilksd commented 8 years ago

When you boot into twrp for the first time ,it will ask you if you want to keep the system partition read-only . I chose "no" when I booted into twrp ,then I tryed to boot normally and got boot loop . I think this was the reason . Then I restored everything and flashed twrp again. When twrp asked me ,I chose "yes' .This time I could boot into system successfully . Kernel source: http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=n9200 It seems my rom version is too new so there is no kernel source for my rom but only for previous versions.

yilksd commented 8 years ago

I changed "verity" to "noverity" in config.txt in superuser.zip and flashed it to my note5 ,then I can modify system partition without boot loop.Unfortunately I still cannot get root access.

phhusson commented 8 years ago

Can you test with http://phhusson.free.fr/superuser-tmp.zip ? You'll have to delete the content of /data/security from TWRP after applying the zip

yilksd commented 8 years ago

After flashing superuser-tmp.zip, there was no file in /data/security ,just 2 empty folders : "aasa" and "spota". I deleted /data/security and rebooted to system .The result is the same as superuser.zip's. I rebooted to twrp ,and found the folders "aasa" and "spota" are still there . They were automatically regenerated by samsung .

yilksd commented 8 years ago

I have flashed superuser-r197.zip ,rebooted to twrp,delete /data/security ,and created a new file named "security", so samsung cannot regenerate the folder. But nothing changed .The root function still doesn't work ,and sim cards are still not detected . How about your S6? Does the root function work on it after flashing the zip ?Can it detect sim cards?