This commit is contained in:
Romain Vimont 2023-11-03 11:51:41 +01:00
parent 29c305ca5f
commit 3d93a099b7

View file

@ -328,7 +328,9 @@ public final class Workarounds {
static Context retrieveSystemContext() {
try {
Method getSystemContextMethod = activityThreadClass.getDeclaredMethod("getSystemContext");
return (Context) getSystemContextMethod.invoke(activityThread);
Context ctx = (Context) getSystemContextMethod.invoke(activityThread);
Ln.i("===== " + ctx);
return ctx;
} catch (Exception e) {
Ln.e("Cannot retrieve system context", e);
return null;