mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
With reactive su prompting removed, root requests from UIDs without an existing policy in the database are rejected immediately. Previously, RootSettings defaulted log and notify to true, causing the daemon to notify the manager app whenever an unconfigured UID attempted to run su. Derive Default for RootSettings so that policy defaults to Deny with log and notify initialized to false, preventing unwanted notifications to the app when no database policy exists. Also simplify SuInfo::allow and SuInfo::deny to leverage Default. Assisted-by: Gemini 3.8 Flash