Skip to content

pwnlogs/cert-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cert-Fixer

Cert-Fixer is a Magisk module that installs custom CA certificates to Android's system certificate store. This module is tested/known to work on Android 10, 12, 13, 14, and 15 (API 33, 34, and 35).

A step-by-step guide for installing custom CA certificates on the system store of Android 15 (API 35).

Tested on AVD Emulators: Pixel 9 API 35 (Android 15), Pixel 8 API 35 (Android 15), Pixel 8 API 34 (Android 14)
Physical devices: Samsung S9 (Android 10), Samsung S10 (Android 12), Readme (Android 13), Pixel 8 (Android 14), Xiaomi Poco X3 (Linageos 21)
Note: Some of the above physical devices were tested and confirmed by community users.

How to

  1. Root your Android device using rootAVD (rootAVD uses Magisk).
  2. Complete any pending updates for Magisk, and make sure you have the latest Magisk version.
  3. Download Cert-Fixer.zip and install Cert-Fixer module in Magisk.
  4. Install your custom CA certificate under user certificate store.
  5. Reboot.
    Cert-Fixer copies all user certificates to the system store during boot-up.
  6. Your user certificates should now be available in the system store!

Notes

  1. Cert-Fixer copies all the CA certificates from the user store to the system store. Make sure you do not have any untrusted certificates in the user store before reboot.
  2. If there are multiple versions of the same certificate (same hash, but different extensions), only the latest certificate will be copied.
  3. You can install multiple certificates simultaneously.

Description and Credits

Since Android 14 (API 34), it has become too hard to add custom certificates to the system store. This is because the system certificates are now stored in APEX (Android Pony EXpress) containers which are immutable. Now, /apex/com.android.conscrypt/cacerts is the file location for the system CA certificates.

Tim Perry has discussed the changes and motivation behind them in his blog post. AdguardTeam has done a nice implementation of this in their adguardcert Magisk module. Adguardcert module copies their CA certificate at boot time, right after /data is decrypted and mounted (Refer to Android initialization stages). Cert-Fixer is an adoption of the Adguardcert implementation. All credit to Tim and Adguard for finding the technique.

About

Cert-Fixer is a Magisk module that copies all the user certificates to system certificate store.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages