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

Commit 1910c071 authored by Zhi Dou's avatar Zhi Dou
Browse files

update SDK_INT in the fake

This change updates the fake SDK_INT from a fixed integer to a function
call. In this way this fake value won't be used during the compilation
time.

Test: m PermissionController and check the compiled code
Flag: EXEMPT REFACTOR
Change-Id: I16d140e2e78e3a3056f614ff75e285bd36d8cd5b
parent 47f65b9b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ package android.os;

public class Build {
    public static class VERSION {
        public static final int SDK_INT = 0;
        public static final int SDK_INT = placeholder();
        private static int placeholder() {
            throw new UnsupportedOperationException("Stub!");
        }
    }
}