Android implements synchronous network time with command line _android

Source: Internet
Author: User
Tags current time root access

First, Introduction

Android Linux platform based open source mobile OS.

Second, the principle

Since Linux, it should support a variety of Linux command line, highly configurable, but the experiment found that Android is a highly castrated version of Linux, many commands are not supported, such as the Rdate command (Network Synchronization Time command). Since I don't support it, I'm not going to get him to support it.

Third, BusyBox

BusyBox is a single executable implementation of standard Linux tools. BusyBox contains a few simple tools, such as Cat and Echo, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people call BusyBox the Swiss Army Knife in the Linux tool. Simply put, BusyBox is like a large toolbox that integrates many of the tools and commands that compress Linux.

Four, download BusyBox

A rough search on the internet, a lot of tutorials are taught you to cross compile BusyBox, but I found this has been compiled, direct download into the system can be.
Can download to this website, also can download to the attachment:
Http://benno.id.au/blog/2007/11/14/android-busybox

Note that you must already have root access to the phone and have file management software such as root manager.

Five, push into the mobile phone

1, mobile phone: With the root manager, such as software, hanging in for writable
2, Computer: Open the command line (start-> run-> input cmd, if it is Vista or Win7 Run as Administrator)
3. Computer: ADB push Busybox/system/app
4, with the root manager into the/system/app, find BusyBox cut to/system/sbin
5. Computer: adb shell
6. Computer: su
7. Computer: chmod 777/system/sbin/busybox

After a few steps above, have finished putting the busybox into the system.
You can knock at the command line on your computer: BusyBox, a supported command line will appear. The following figure

Vi. using Rdate Network synchronization time
1, open the mobile phone GPRS or WIF, anyway, mobile phone connected to the network can be.
2, this step is tested, not necessary, computer input command: BusyBox rdate-p 203.129.68.14, will print the current time
3, the input command, the network time synchronization to the mobile phone time: BusyBox rdate-s 203.129.68.14

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.