public MountServiceStub() { super(getInterfaceMethod(), "mount"); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args == null || args.length == 0) { return super.beforeCall(who, method, args); } if (args[0] instanceof Integer) { args[0] = getRealUid(); } MethodParameterUtils.replaceFirstAppPkg(args); return super.beforeCall(who, method, args); }
addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub()); addInjector(new TelephonyStub());
public MountServiceStub() { super(getInterfaceMethod(), "mount"); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args == null || args.length == 0) { return super.beforeCall(who, method, args); } if (args[0] instanceof Integer) { args[0] = getRealUid(); } MethodParameterUtils.replaceFirstAppPkg(args); return super.beforeCall(who, method, args); }
addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub()); addInjector(new TelephonyStub());
public MountServiceStub() { super(getInterfaceMethod(), "mount"); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (args == null || args.length == 0) { return super.beforeCall(who, method, args); } if (args[0] instanceof Integer) { args[0] = getRealUid(); } MethodParameterUtils.replaceFirstAppPkg(args); return super.beforeCall(who, method, args); }
addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub()); addInjector(new TelephonyStub());