As I said, this is not possible. You need SET_TIME permission, and this permission is provided by the system only for applications that are in the Android system image. If you can get this privilege, you can easily change it using the AlarmManager. SystemClock.setCurrentTimeMillis write file / dev / allarm
adb shell ls -l /dev/alarm crw-rw-r-- system radio 10, 46 2013-06-12 10:46 alarm
c remains for Character special file (stored in /dev).- the system is the owner of the file
- radio is a group
the system and the radio have read and write permissions (rw-, tree bits, int 6 value), the rest have only read permission (r, int 4 value). Thus, the resolution of the file is 664 . If you can get the root user (running su ), you can change the resolution of this file and write a new value in it. An error report was completed to ask Google to allow applications to programmatically change the date of the mobile connection, but it was rejected. Here is the link
source share