forked from vvb2060/KeyAttestation
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stub: add android.os.SystemProperties class
Signed-off-by: BlackMesa123 <giangrecosalvo9@gmail.com>
- Loading branch information
1 parent
745c556
commit 7b3a63b
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package android.os; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
|
||
public class SystemProperties { | ||
@NonNull | ||
public static String get(@NonNull String key) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
@NonNull | ||
public static String get(@NonNull String key, @Nullable String def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static int getInt(@NonNull String key, int def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static long getLong(@NonNull String key, long def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static boolean getBoolean(@NonNull String key, boolean def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static void set(@NonNull String key, @Nullable String val) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static void addChangeCallback(@NonNull Runnable callback) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static void removeChangeCallback(@NonNull Runnable callback) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static void reportSyspropChanged() { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static @NonNull String digestOf(@NonNull String... keys) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
private SystemProperties() { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
@Nullable public static Handle find(@NonNull String name) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public static final class Handle { | ||
@NonNull public String get() { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public int getInt(int def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public long getLong(long def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
public boolean getBoolean(boolean def) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
|
||
private Handle(long nativeHandle) { | ||
throw new RuntimeException("Stub!"); | ||
} | ||
} | ||
} |