Android network time
Last updated : 16/8/2023
Introduction
This is my guide on configuring network time on Android devices, based off the older PrivMod guide.
Prerequisites
Required stuff :
- An Android device with either USB debugging enabled or Magisk installed
- For USB debugging approach (recommended regardless of root access)
- A computer with adb installed
- A USB cable to connect Android device & computer
- Termux / any latest Android terminal emulator that can use root (for Magisk approach - usable without computer, but less recommended - for example, Termux is rather shaky with ≥A12)
Preparation guide (USB debug) :
- Open terminal in computer
- Ensure Android device has USB debugging enabled by entering Developer options
- Connect computer & Android device
- Grant computer adb shell access with the command:
adb shell
Alternatively, when adb shell access is only required for each command, insert adb shell before inserting command.
Preparation guide (Magisk) :
- Ensure Android device has Magisk installed (both the Magisk-patched image & Magisk apk)
- Install & open terminal emulator app
- Type su in terminal & grant the terminal app root access when prompted
The prompt will not appear if Magisk apk is not installed, even if Magisk is already flashed.
Setting network time server
Here are the commands to change network time provider server :
- Change : settings put global ntp_server (your NTP provider of choice)
- Disable : settings put global ntp_server about:blank
Back to top
Android Privacy Mod - Basic
Index - cellphone
Main Page