Patching sepolicy failed

tuiyaan

Senior Member
May 3, 2016
107
26
0
Dear friends
Good evening

i have honor 4x indian version che1-l04 model

when i try to use supersu.zip systemless version i get patching sepolicy--failure abort:crying:

i have attached sepolicy from unpacked boot.img

please help me patch this file
or
run following code in adb shell on your rooted phone and send me sepolicy_out file

Code:
adb push sepolicy /data/local/tmp/sepolicy
adb shell su -c "supolicy --file /data/local/tmp/sepolicy /data/local/tmp/sepolicy_out"
adb shell su -c "chmod 0644 /data/local/tmp/sepolicy_out"
adb pull /data/local/tmp/sepolicy_out sepolicy_out
thanks a lot:good:
 

Attachments

Oebbler1

Senior Member
Dec 9, 2016
137
178
43
You can easily get a patched sepolicy file by downloading a custom kernel that already includes SuperSU. Then you can extract the sepolicy file from that kernel to place it into your system.
 

danjac

Senior Member
Feb 4, 2012
193
121
73
Dear friends
Good evening

i have honor 4x indian version che1-l04 model

when i try to use supersu.zip systemless version i get patching sepolicy--failure abort:crying:

i have attached sepolicy from unpacked boot.img

please help me patch this file
or
run following code in adb shell on your rooted phone and send me sepolicy_out file

Code:
adb push sepolicy /data/local/tmp/sepolicy
adb shell su -c "supolicy --file /data/local/tmp/sepolicy /data/local/tmp/sepolicy_out"
adb shell su -c "chmod 0644 /data/local/tmp/sepolicy_out"
adb pull /data/local/tmp/sepolicy_out sepolicy_out
thanks a lot:good:
hey, i'm facing the same problem for my lenovo yoga book...can't flash su cause it fails patching sepolicy.
did you solve the problem? if yes, how did you do that?
thanks for your help.
 
Last edited:

tuiyaan

Senior Member
May 3, 2016
107
26
0
  • Like
Reactions: danjac
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone