code: function getContext() {
  	const ctx = java.lang.Class.forName("android.app.AppGlobals").getMethod("getInitialApplication", null).invoke(null, null);
  	if (ctx) { return ctx; }
  
  	return java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", null).invoke(null, null);
  }
docs: --------------------------------------------------------------- Getting android context ---------------------------------------------------------------