@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args[0] instanceof Integer) { args[0] = getRealUid(); } return super.beforeCall(who, method, args); } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean beforeCall(Object who, Method method, Object... args) { ShortcutInfo shortcutInfo = findFirstShortcutInfo(args); replaceShortcutInfo(shortcutInfo, getHostPkg(), getPM()); return super.beforeCall(who, method, args); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { List<ShortcutInfo> shortcutList = findFirstShortcutList(args); if (shortcutList != null) { String hostPkg = getHostPkg(); for (ShortcutInfo shortcutInfo : shortcutList) { replaceShortcutInfo(shortcutInfo, hostPkg, getPM()); } } return super.beforeCall(who, method, args); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args[0] instanceof Integer) { args[0] = getRealUid(); } return super.beforeCall(who, method, args); } }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args[0] instanceof Integer) { args[0] = getRealUid(); } return super.beforeCall(who, method, args); } }
@TargetApi(Build.VERSION_CODES.LOLLIPOP) @Override public boolean beforeCall(Object who, Method method, Object... args) { ShortcutInfo shortcutInfo = findFirstShortcutInfo(args); replaceShortcutInfo(shortcutInfo, getHostPkg(), getPM()); return super.beforeCall(who, method, args); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { List<ShortcutInfo> shortcutList = findFirstShortcutList(args); if (shortcutList != null) { String hostPkg = getHostPkg(); for (ShortcutInfo shortcutInfo : shortcutList) { replaceShortcutInfo(shortcutInfo, hostPkg, getPM()); } } return super.beforeCall(who, method, args); }