Skip to content

Commit

Permalink
fix(bios): Set the accessible flag for this object
Browse files Browse the repository at this point in the history
Signed-off-by: Teclib <skita@teclib.com>
  • Loading branch information
stonebuzz committed Dec 19, 2019
1 parent 67a13ac commit 828956b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ private String getSerialFromPrivateAPI() {
try {
Class<?> c = Class.forName("android.os.SystemProperties");
Method get = c.getMethod("get", String.class);
get.setAccessible(true);

// (?) Lenovo Tab (https://stackoverflow.com/a/34819027/1276306)
serialNumber = (String) get.invoke(c, "gsm.sn1");
Expand Down

0 comments on commit 828956b

Please sign in to comment.