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
diff --git a/tools/aconfig/fake_device_config/src/android/os/Build.java b/tools/aconfig/fake_device_config/src/android/os/Build.java
index 8ec72fb..790ff82 100644
--- a/tools/aconfig/fake_device_config/src/android/os/Build.java
+++ b/tools/aconfig/fake_device_config/src/android/os/Build.java
@@ -18,6 +18,9 @@
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!");
+ }
}
}