APISonar


de.robv.android.xposed.XposedBridge.log

> de > robv > android > xposed > XposedBridge > log
de APIs robv APIs android APIs xposed APIs XposedBridge APIs log APIs

Example 1
public static void log(String msg) {
        if (msg == null) {
            return;
        }

        if (xposedExist) {
            XposedBridge.log(msg);
        } else {
            Log.i("Xposed", "[WechatEnhancement] " + msg);
        }
    }
Example 2
public Bundle call(@NonNull String method, @Nullable String arg, @Nullable Bundle extras) {
        try {
            Log.i(TAG, "Call " + arg +
                    " uid=" + android.os.Process.myUid() +
                    " cuid=" + android.os.Binder.getCallingUid());
            return XProvider.call(getContext(), arg, extras);
        } catch (RemoteException ex) {
            Log.e(TAG, Log.getStackTraceString(ex));
            XposedBridge.log(ex);
            return null;
        }
    }
Example 3
public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, @Nullable String[] selectionArgs, @Nullable String sortOrder) {
        try {
            Log.i(TAG, "Query " + projection[0].split("\\.")[1] +
                    " uid=" + android.os.Process.myUid() +
                    " cuid=" + android.os.Binder.getCallingUid());
            return XProvider.query(getContext(), projection[0].split("\\.")[1], selectionArgs);
        } catch (RemoteException ex) {
            Log.e(TAG, Log.getStackTraceString(ex));
            XposedBridge.log(ex);
            return null;
        }
    }
Example 4
public static void d(String tag, String msg) {
        if (sEnable) {
            Log.d(TAG + ":" + tag, msg);
            XposedBridge.log(TAG + ":" + msg);
        }
    }
Example 5
private static Object createResourcesKey(String resDir, int displayId, Configuration overrideConfiguration, float scale) {
		try {
			if (HAS_THEME_CONFIG_PARAMETER)
				return newInstance(CLASS_RESOURCES_KEY, resDir, displayId, overrideConfiguration, scale, false, null);
			else if (HAS_IS_THEMEABLE)
				return newInstance(CLASS_RESOURCES_KEY, resDir, displayId, overrideConfiguration, scale, false);
			else
				return newInstance(CLASS_RESOURCES_KEY, resDir, displayId, overrideConfiguration, scale);
		} catch (Throwable t) {
			XposedBridge.log(t);
			return null;
		}
	}
Example 6
private static Object createResourcesKey(String resDir, String[] splitResDirs, String[] overlayDirs, String[] libDirs, int displayId, Configuration overrideConfiguration, CompatibilityInfo compatInfo) {
		try {
			return newInstance(CLASS_RESOURCES_KEY, resDir, splitResDirs, overlayDirs, libDirs, displayId, overrideConfiguration, compatInfo);
		} catch (Throwable t) {
			XposedBridge.log(t);
			return null;
		}
	}
Example 7
static boolean isAvailable(Context context) {
        try {
            PackageInfo pi = context.getPackageManager().getPackageInfo(BuildConfig.APPLICATION_ID, 0);
            Bundle result = context.getContentResolver()
                    .call(XProvider.getURI(), "xlua", "getVersion", new Bundle());
            return (result != null && pi.versionCode == result.getInt("version"));
        } catch (Throwable ex) {
            Log.e(TAG, Log.getStackTraceString(ex));
            XposedBridge.log(ex);
            return false;
        }
    }
Example 8
protected Bitmap getImage(String path) {
        String str = null;
        try {
            str = (String) callMethod(callStaticMethod(mImgClss, w.imageMethod1),
                    w.imageMethod2, path, "", "");
        } catch (Exception e) {
            XposedBridge.log(e);
        }

        if (TextUtils.isEmpty(str))
            return null;

        return BitmapFactory.decodeFile(str);
    }
Example 9
public static void callAll(Param param) {
		if (param.callbacks == null)
			throw new IllegalStateException("This object was not created for use with callAll");

		for (int i = 0; i < param.callbacks.length; i++) {
			try {
				((XCallback) param.callbacks[i]).call(param);
			} catch (Throwable t) { XposedBridge.log(t); }
		}
	}
Example 10
private static int translateAttrId(String attrName, XResources origRes) {
		String origPackage = origRes.mPackageName;
		int origAttrId = 0;
		try {
			origAttrId = origRes.getIdentifier(attrName, "attr", origPackage);
		} catch (NotFoundException e) {
			XposedBridge.log("Attribute " + attrName + " not found in original resources");
		}
		return origAttrId;
	}
Example 11
public InspeckageReceiver(Object obj) {
        if (obj instanceof Activity) {
            this.activity = (Activity) obj;
        } else if (obj instanceof Fragment) {
            activity = ((Fragment) obj).getActivity();
        }else{
            XposedBridge.log(Module.ERROR + " >>>> Receiver");
        }
    }