package com.lody.virtual.client.hook.patchs.am;
import android.os.IBinder;
import com.lody.virtual.client.hook.base.Hook;
import com.lody.virtual.client.ipc.VActivityManager;
import java.lang.reflect.Method;
/**
* @author Lody
*
*/
/* package */ class GetCallingPackage extends Hook {
@Override
public String getName() {
return "getCallingPackage";
}
@Override
public Object call(Object who, Method method, Object... args) throws Throwable {
IBinder token = (IBinder) args[0];
return VActivityManager.get().getCallingPackage(token);
}
@Override
public boolean isEnable() {
return isAppProcess();
}
}