Hide UserDebug, Test-Keys and LineageOS

ez-me

Magisk
v1
Version
3.33 KB
Size
Oct 17, 2022
Updated

Module Info

  • Contributors ez-me
  • Source Code View Repository
  • Tags
    #UserDebug #Test-Keys #LineageOS #Android Properties #resetprop #Magisk Module

About this module

Hide UserDebug, Test-Keys and LineageOS changes selected property values exposed by a custom ROM, replacing visible userdebug and test-keys strings while deleting a fixed set of LineageOS properties.

Boot-Time Property Rewriting

A small resetprop-based module for reducing common custom-ROM identifiers visible through Android properties.

Build Variant

Properties containing userdebug are collected and rewritten with user in a generated system.prop.

Build Tags

Visible test-keys strings are replaced with release-keys; this does not re-sign the ROM or change its cryptographic trust.

Lineage Properties

The boot service deletes several named ro.lineage.* entries and removes lineage_ fragments from matched values.

Scope and Compatibility

The author confirmed the module on LineageOS 19, Android 12L, with Magisk 25 or newer. The service builds its replacement list from the current device properties, waits 30 seconds, and reapplies the generated file through resetprop.

This is property masking, not a complete integrity or root-hiding solution. Applications may inspect signing certificates, boot state, filesystem artifacts, hardware attestation, or other signals that this module does not change.

Installation

  1. Download the release ZIP using the page controls.
  2. Install it through Magisk and reboot.
  3. Inspect the relevant properties after boot rather than assuming every custom-ROM identifier has been hidden.
  4. Disable the module and reboot before applying a LineageOS over-the-air update.