Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ec85382 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Filter out "debug" pattern from display id

Indeed, Whatsapp was detecting our ROM as custom because the display id
contains the "debug" pattern.
parent c4d4ca3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -52,7 +52,9 @@ public class Build {
    public static final String ID = getString("ro.build.id");
    public static final String ID = getString("ro.build.id");


    /** A build ID string meant for displaying to the user */
    /** A build ID string meant for displaying to the user */
    public static final String DISPLAY = getString("ro.build.display.id");
    /* Whatsapp is detecting a custom ROMs when it detects the "debug" pattern.
       Filtering it out makes Whatsapp quiet. */
    public static final String DISPLAY = getString("ro.build.display.id").replaceAll("debug", "");


    /** The name of the overall product. */
    /** The name of the overall product. */
    public static final String PRODUCT = getString("ro.product.name");
    public static final String PRODUCT = getString("ro.product.name");