Java 类android.content.pm.IPackageDeleteObserver2 实例源码

项目:VirtualHook    文件:MethodProxies.java   
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkgName = (String) args[0];
    try {
        VirtualCore.get().uninstallPackage(pkgName);
        IPackageDeleteObserver2 observer = (IPackageDeleteObserver2) args[1];
        if (observer != null) {
            observer.onPackageDeleted(pkgName, 0, "done.");
        }
    } catch (Throwable e) {
        // Ignore
    }
    return 0;
}
项目:TPlayer    文件:MethodProxies.java   
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkgName = (String) args[0];
    try {
        VirtualCore.get().uninstallPackage(pkgName);
        IPackageDeleteObserver2 observer = (IPackageDeleteObserver2) args[1];
        if (observer != null) {
            observer.onPackageDeleted(pkgName, 0, "done.");
        }
    } catch (Throwable e) {
        // Ignore
    }
    return 0;
}
项目:container    文件:DeletePackage.java   
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
    String pkgName = (String) args[0];
    try {
           VirtualCore.get().uninstallApp(pkgName);
           IPackageDeleteObserver2 observer = (IPackageDeleteObserver2) args[1];
           if (observer != null) {
               observer.onPackageDeleted(pkgName, 0, "done.");
           }
       } catch (Throwable e) {
           // Ignore
       }
    return 0;
}