/WIPE_flashable

Primary LanguageShellGNU General Public License v3.0GPL-3.0

WIPE_flashable

A script for flash Project_WIPE into your device

Version 0603.2

好用的话记得给颗Star~

Thanks to

@yc9559

How to use

刷入 (Flash)

  • 下载zip到你的设备中 (Download zip to your device.)
  • 重启到Recovery模式下并刷入zip (Reboot to recovery mode and flash it.)
    • 如果不想安装为magisk模块,可以执行这个命令后重新刷入
    	touch /wipe_no_magisk
    • 如果以传统模式安装后没有成功应用,可以执行这个命令后重新刷入
    	touch /wipe_no_apply_once

更改模式 (Change Mode)

自动应用 重启后生效 (Apply on boot)
  • 在终端以root身份执行命令 (Run command as root in terminal):
    echo "powersave" > /data/wipe_mode #省电
    echo "balance" > /data/wipe_mode #平衡(默认)
    echo "performance" > /data/wipe_mode #性能
    echo "fast" > /data/wipe_mode #低延迟
    echo "disabled" > /data/wipe_mode #停用
临时应用 立即生效 (Temporary Apply (NOW))
  • 在终端以root身份执行命令 (Run command as root in terminal):
    powercfg powersave #省电
    powercfg balance #平衡
    powercfg performance #性能
    powercfg fast #低延迟

SELinux问题 (SELinux problem)

如果这个脚本导致了SELinux问题(例如不正确的SELinux permissive),请按以下步骤操作
  • 安装为magisk模块
    • 使用文本编辑器打开这些文件(如果存在) , 将 RestoreSELinux=false 改为 RestoreSELinux=true, 然后保存
      • /sbin/.core/img/prjWIPE/service.sh
  • SuperSU Systemless
    • 使用文本编辑器打开这些文件(如果存在) , 将 RestoreSELinux=false 改为 RestoreSELinux=true, 然后保存
      • /su/su.d/99prjwipe
  • 传统安装方式
    • 使用文本编辑器打开这些文件(如果存在) , 将 RestoreSELinux=false 改为 RestoreSELinux=true, 然后保存
      • /system/etc/init.qcom.post_boot.sh
      • /vendor/bin/init.qcom.post_boot.sh
      • /system/su.d/99prjwipe
      • /system/etc/init.d/99prjwipe
      • /system/addon.d/99prjwipe
      • /system/etc/install-recovery.sh
      • /system/bin/sysinit
      • /system/bin/install-recovery.sh

卸载 (Uninstall)

  • 下载 WIPE_Flashable Remover (Download WIPE_Flashable Remover.)
  • 重启到Recovery模式下并刷入 (Reboot to recovery mode and flash it.)