Closed diabl0w closed 2 months ago
EDIT: actually the demo gives that error without any changes for all of the functions in the demo
请附上工程文件
I don't think the demo exists anymore and the root issue was resolved using UserService:
public class UserService extends IUserService.Stub{
private Context context;
private DevicePolicyManager devicePolicyManager;
public UserService(Context context) {
this.context = context;
devicePolicyManager = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
}
@Override
public void set_time(long x) {
devicePolicyManager.setTime(DhizukuVariables.COMPONENT_NAME, x);
}
其它接口能否正常使用
其它接口能否正常使用
Sorry, I don't understand. If you are asking about method, I can only get it to work via UserService as it required DhizukuVariables.COMPONENT_NAME
& getSystemService(Context.DEVICE_POLICY_SERVICE)
Hi, running your demo-binder wrapper, I replaced one of the buttons to run the following code
but when executing I get the following error: