Skip to content

4accccc/vivo-4.x-kernel-autopatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

well, I have to admit that AI is much better at writing readme.md than me LOL


vivo-4.x-kernel-autopatch

An automated kernel patching tool for vivo / iQOO devices running Linux 4.x kernels.
This tool is designed to simplify the process of patching restricted kernels so that Magisk and root solutions can function properly.


Release Status

English UI Chinese UI After patch result

👉 Downloads:
GitHub Releases


⚠️ WARNING

Modifying a device kernel is inherently dangerous.
Incorrect patching may result in a hard brick.

If you:

  • do not fully understand what this tool does, or
  • believe the tool may contain malware, or
  • are unwilling to accept the risks

DO NOT USE THIS TOOL.

You have been warned.


System requirements

(For legacy)

  • Windows 10 (x64) / 11
  • Android 9+

(For CSharp release/debug)

  • Windows XP x86/x64 (with OCA) +
  • .net 4.0.30319
  • Android 9+

Kernel Version Compatibility

Kernel Version 4.9.77+ 4.14.94+ 4.14.98 4.14.141+ 4.14.186 4.14.190 4.19.191+
Status ❓³ ✔️ ✔️¹² ❓¹ ✔️¹²
  • ✔️ Tested and working
  • ❓ Needs more user feedback
  • ❌ Failed

Notes:

  1. Mount fix caused a bootloop
  2. vivo do_mount_check patch required
  3. Works normally on Android 9 and above

👉 Feedback welcome:
#1


Features

✔ Automatically unpack boot.img
✔ Automatically extract and patch kernel
✔ Automatically repack boot.img

Additional functionality

  • Automatically detects Linux kernel major version
    • Warns user if kernel is not 4.x
  • Automatically decompresses compressed kernels
  • Mount fix patch is optional
  • Optional patch for
    /system → /syswxl
    required for Magisk on some models

Project Status

This tool is feature-complete and no longer under active development (except debug).

⚠️ Important:

  • This tool ONLY patches the kernel
  • It does NOT fix issues caused by:
    • SELinux
    • init scripts
    • vendor framework restrictions
    • non-kernel components

If the patch does not work for your device, consider using Magisk SUU instead.

fxxk you vivo, fxxk you bbk, look at what you've done


How to compile?

CSharp

For release:

csc /optimize+ /out:main.exe main.cs   
csc /optimize+ /out:patch.exe patch.cs   

For Debug:

csc /define:DEBUG /optimize- /debug /out:main.exe main.cs   
csc /define:DEBUG /optimize- /debug /out:patch.exe patch.cs   

Legacy (PowerShell)

(Use ps2exe)

ps2exe -inputfile main.ps1 -outputfile main.exe
ps2exe -inputfile patch.ps1 -outputfile patch.exe

IMPORTANT SAFETY NOTICE

During execution, this tool will:

  • Unpack boot.img
  • Generate temporary kernel files
  • Create multiple temporary files
  • Automatically clean up the current directory after completion

Therefore:

STRONGLY RECOMMENDED

Please run this tool ONLY inside an independent temporary folder!

For example:
D:\temp\
C:\Users\xxx\Desktop\temp\
......

Do NOT:

  • Run it directly from the desktop
  • Run it inside a directory containing important files
  • Run it from the system drive root directory
  • Run it directly inside the downloads folder

Otherwise, important files in the current directory may be accidentally deleted!


Credits

Disclaimer

This project does NOT provide or distribute any proprietary exploits, confidential information, or undisclosed vulnerabilities.

All patching methods used by this tool are:

  • Publicly known
  • Independently researched
  • Previously published in open communities

This project merely automates an existing manual process using publicly available tools and techniques.

The author:

  • Does not claim ownership of the underlying methods
  • Does not bypass any server-side or account-based protections
  • Does not provide any commercial service

This tool is provided for research and educational purposes only.

Users are solely responsible for:

  • How they use this tool
  • Any damage to their devices
  • Any legal consequences resulting from misuse

If this project violates any policy or local regulation, please open an issue for discussion.

About

patch vivo kernel(4.x).

Resources

Stars

Watchers

Forks

Packages

No packages published