From 828956b71d80db1dbf968a8a5c13b85a1b04281d Mon Sep 17 00:00:00 2001 From: Teclib Date: Thu, 19 Dec 2019 07:27:58 +0100 Subject: [PATCH] fix(bios): Set the accessible flag for this object Signed-off-by: Teclib --- inventory/src/main/java/org/flyve/inventory/categories/Bios.java | 1 + 1 file changed, 1 insertion(+) diff --git a/inventory/src/main/java/org/flyve/inventory/categories/Bios.java b/inventory/src/main/java/org/flyve/inventory/categories/Bios.java index 31022b3b8..6c93f7bcf 100644 --- a/inventory/src/main/java/org/flyve/inventory/categories/Bios.java +++ b/inventory/src/main/java/org/flyve/inventory/categories/Bios.java @@ -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");