程序想实现修改系统时间的功能
在其他手机上申请root权限后可以通过
SystemClock.setCurrentTimeMillis(when);
来更改系统时间。
在MIUI8(ANDROID 6.0.1)中报错
Unable to set RTC
java.lang.SecurityException: setTime: Neither user 10118 nor current process has android.permission.SET_TIME.
在AndroidManifest中添加 **android.permission.SET_TIME **权限后
又说Permission is only granted to system apps,权限只供系统APP使用。
请问各位前辈有没有什么解决方案???改不了系统时间啊