Skip to main content
deleted 1 character in body
Source Link

Your best choice would be Runtime class, it can be used like:

String yourCommand = "adb shell dpm set-device-owner com.test/.AdminReceiver";
Runtime.getRuntime().exec(commandToRunyourCommand);

Your best choice would be Runtime class, it can be used like:

String yourCommand = "adb shell dpm set-device-owner com.test/.AdminReceiver";
Runtime.getRuntime().exec(commandToRun);

Your best choice would be Runtime class, it can be used like:

String yourCommand = "adb shell dpm set-device-owner com.test/.AdminReceiver";
Runtime.getRuntime().exec(yourCommand);
Source Link

Your best choice would be Runtime class, it can be used like:

String yourCommand = "adb shell dpm set-device-owner com.test/.AdminReceiver";
Runtime.getRuntime().exec(commandToRun);