Synchronization of network time with command line in Android

1、 Introduction

Android is an open source mobile phone operating system based on Linux platform.

2、 Principle

Since it is Linux, it should support various command lines of Linux and be highly configurable. However, the experiment found that Android is a highly castrated version of Google's Linux, and many commands are not supported, such as rdate command (network synchronization time command). Since I don't support it, it's over if I don't support it.

III Busy@R_ 393_ 2419@

Busy@R_ 393_ 2419 @ is a single executable implementation of standard Linux tools. Busy@R_ 393_ 2419 @ includes some simple tools, such as cat and echo, as well as some larger and more complex tools, such as grep, find, mount and telnet. Some people will Busy@R_ 393_ 2419 @ called the Swiss Army knife in Linux tools. Simply put Busy@R_ 393_ 2419 @ is like a big toolbox, which integrates and compresses many tools and commands of Linux.

4、 Download Busy@R_ 393_ 2419@

After a rough search on the Internet, many tutorials teach you to cross compile first Busy@R_ 393_ 2419 @ Yes, but I found that this has been compiled. Just download it and put it into the system. You can download it from this website or from the attachment: http://benno.id.au/blog/2007/11/14/android-busybox

Note that the mobile phone must have root permission and file management software such as root manager.

5、 Push into mobile phone

1. Mobile phone: use software such as root manager to be writable. 2. Computer: open the command line (start - > Run - > Enter CMD. If it is Vista or win7, run it as an administrator) 3. Computer: ADB push busy@R_ 393_ 2419 @ / system / APP 4. Use root manager to enter / system / APP and find busy@R_ 393_ 2419 @ cut to / system / SBIN 5, computer: ADB shell 6, computer: Su 7, computer: Chmod 777 / system / SBIN/ busy@R_ 393_ 2419@

After the above steps, it has been completed busy@R_ 393_ 2419 @ in the system. You can type: busy@R_ 393_ 2419 @, the supported command line will appear. As shown below

6、 Use rdate network to synchronize time. 1. Turn on GPRS or wif of the mobile phone. Anyway, the mobile phone can be connected to the network. 2. This step is a test, not necessary. The computer inputs the command: busy@R_ 393_ 2419 @ rdate - P 203.129.68.14, the current time will be printed. 3. Enter a command to synchronize the network time to the mobile phone time: busy@R_ 393_ 2419@ rdate -s 203.129.68.14

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>