public ClipBoardStub() { super(getInterface(), Context.CLIPBOARD_SERVICE); }
@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClip")); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR1) { addMethodProxy(new ReplaceLastPkgMethodProxy("setPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClipDescription")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("addPrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("removePrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasClipboardText")); } }
@Override public void inject() throws Throwable { super.inject(); if (isOreo()) { android.content.ClipboardManager cm = (android.content.ClipboardManager) VirtualCore.get().getContext().getSystemService(Context.CLIPBOARD_SERVICE); ClipboardManagerOreo.mService.set(cm, getInvocationStub().getProxyInterface()); } else { ClipboardManager.sService.set(getInvocationStub().getProxyInterface()); } }
addInjector(new LocationManagerStub()); addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub());
@Override public void inject() throws Throwable { super.inject(); if (BuildCompat.isOreo()) { android.content.ClipboardManager cm = (android.content.ClipboardManager) VirtualCore.get().getContext().getSystemService(Context.CLIPBOARD_SERVICE); ClipboardManagerOreo.mService.set(cm, getInvocationStub().getProxyInterface()); } else { ClipboardManager.sService.set(getInvocationStub().getProxyInterface()); } } }
private static IInterface getInterface() { if (isOreo()) { android.content.ClipboardManager cm = (android.content.ClipboardManager) VirtualCore.get().getContext().getSystemService(Context.CLIPBOARD_SERVICE); return ClipboardManagerOreo.mService.get(cm); } else { return ClipboardManager.getService.call(); } }
@Override public void inject() throws Throwable { super.inject(); if (isOreo()) { android.content.ClipboardManager cm = (android.content.ClipboardManager) VirtualCore.get().getContext().getSystemService(Context.CLIPBOARD_SERVICE); ClipboardManagerOreo.mService.set(cm, getInvocationStub().getProxyInterface()); } else { ClipboardManager.sService.set(getInvocationStub().getProxyInterface()); } }
public ClipBoardStub() { super(getInterface(), Context.CLIPBOARD_SERVICE); }
@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClip")); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR1) { addMethodProxy(new ReplaceLastPkgMethodProxy("setPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClipDescription")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("addPrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("removePrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasClipboardText")); } }
addInjector(new LocationManagerStub()); addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub());
private static IInterface getInterface() { if (isOreo()) { android.content.ClipboardManager cm = (android.content.ClipboardManager) VirtualCore.get().getContext().getSystemService(Context.CLIPBOARD_SERVICE); return ClipboardManagerOreo.mService.get(cm); } else { return ClipboardManager.getService.call(); } }
public ClipBoardStub() { super(getInterface(), Context.CLIPBOARD_SERVICE); }
@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClip")); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR1) { addMethodProxy(new ReplaceLastPkgMethodProxy("setPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("getPrimaryClipDescription")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasPrimaryClip")); addMethodProxy(new ReplaceLastPkgMethodProxy("addPrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("removePrimaryClipChangedListener")); addMethodProxy(new ReplaceLastPkgMethodProxy("hasClipboardText")); } }
addInjector(new LocationManagerStub()); addInjector(new WindowManagerStub()); addInjector(new ClipBoardStub()); addInjector(new MountServiceStub()); addInjector(new BackupManagerStub());