Android production software changes (Continuous updates)

Source: Internet
Author: User
Tags comparison table

Keywords: Android 4.0 default language Bluetooth name
MTP name default time zone about tablet kernel version
Platform information:
Kernel: linux2.6/linux3.0
System: Android/android4.0
Platform: s5pv310 (samsungexynos4210)

Author: xubin341719 (You are welcome to reprint it. Please note the author)

1. Switch host logo;

2. User Mode and engineering mode;

3. Change the default language;

5. Change the Bluetooth name;

6. Change the MTP name;

7. Modify the information in "about tablet;

8. Change the default time zone;

..................

It is based on the Samsung platform. If it is another platform, only for reference.

The following are some of the things that need to be changed frequently during the order process. There is no technical content, but I think this part is also very important. The developed things are sold for exchange of money, it is our greatest return. This part will continue to be updated. It is not certain that a "best" customer wants to change something unreliable, record it, save everyone's time, and know where to change it.

1. Switch host logo

Nowadays, many companies are leather bag companies. They do not do research and development on their own, buy them on the outside, and make the boot screen unique to them. Therefore, this is also widely used in their work. Chinese products are called "flood.

The logo is described in detail in this article: Android logo: kernel, Android boot Animation

2. User Mode and engineering mode

When the product goes out, the user mode is used. At this time, the serial port terminal cannot operate and can only be displayed. One problem with the Samsung platform is that, in engineering mode, if the system has a DOT card, there will be a red border. Our boss calls it a "bug ", this cannot be discussed with him. In short, all things that should not occur are bugs, so we can switch to the user mode and solve this problem.

This article describes USR Eng: Android 4.0 compilation mode Eng --> User problems.

3. Change the default language

It takes weeks to make product services, so it cannot be used in other countries. Once the opportunity is set to Chinese, it will be a little unfriendly. It is acceptable in many places in English, however, Chinese is still not widely used. In fact, Android is en by default, and our internal order is changed. The following describes how to change the default English to Chinese to serve students who have not passed CET4.

Android/device/Samsung/smdk4x12/full_smdk4x12.mk

PRODUCT_LOCALES := zh_CN \       en_US \       zh_TW \       en_GB \       fr_FR \       it_IT \       cs_CZ \       de_DE \       da_DK \       el_GR \

In that language, you can put it in the early stage, such:

Zh_cn: Simplified Chinese

Zh_tw: Traditional Chinese

En_us: English (USA)

In this article, there is a comparison table between the android language and the simplified write language.

5. Change the Bluetooth name

Android/external/Bluetooth/bluez/src/Main. c

Static void init_defaults (void) {/* default hcid settings */memset (& main_opts, 0, sizeof (main_opts); Attributes = mode_connectable; main_opts.name = g_strdup ("w42 "); // change the name region = Beijing; region = true; region = hci_lm_accept; region = hci_lp_rswitch | hci_lp_sniff | hci_lp_hold | hci_lp_park; if (gethostname (main_opts.host_name, sizeof (main_opts.host_name)-1) <0) strcpy (main_opts.host_name, "noname ");}

6. Change the MTP name

Android/system/vold/volume. cpp

Int volume: formatvol () {If (getstate () = volume: state_nomedia) {errno = enodev; Return-1;} else if (getstate ()! = Volume: state_idle) {errno = ebusy; Return-1;} If (ismountpointmounted (getmountpoint ())) {slogw ("volume is idle but appears to be mounted-fixing"); setstate (volume: state_mounted); // mcurrentlymountedkdev = xxx errno = ebusy; Return-1 ;} bool formatentiredevice = (mpartidx =-1); char devicepath [255]; char * label = NULL; dev_t disknode = getdiskdevice (); dev_t partnode = mkdev (Major (Disk Node), (formatentiredevice? 1: mpartidx); setstate (volume: state_formatting); int ret =-1; // only initialize the MBR if we are formatting the entire device if (formatentiredevice) {sprintf (devicepath, "/dev/block/vold/% d: % d", Major (disknode), minor (disknode); If (initializembr (devicepath )) {sloge ("failed to initialize MBR (% s)", strerror (errno); goto err ;}} sprintf (devicepath, "/dev/block/vold/% d: % d ", Major (partnode), minor (partnode); If (mdebug) {slogi (" formatting volume % s (% s) ", getlabel (), devicepath);} label = "w42"; // change the name if (fat: Format (devicepath, 0, label) {sloge ("failed to format (% s) ", strerror (errno); goto err;} ret = 0; err: setstate (volume: state_idle); return ret ;}

7. Change the information in "about Tablet"

(1) Model

Android/device/Samsung/smdk4x12/full_smdk4x12.mk

PRODUCT_MANUFACTURER := full_smdk4x12PRODUCT_BRAND := full_smdk4x12PRODUCT_MODEL := W42(QuadCore)

(2) kernel version

This is a bit difficult to find. A colleague told me that the kernel path is:

Kernel/scripts/mkcompile_h

# Generate a temporary compile. H (echo/\ * this file is auto generated, version $ version \ */if [-n "$ config_flags"]; then Echo "/* $ config_flags */"; FI echo \ # define uts_machine \ "$ arch \" Echo \ # define uts_version \ "'echo $ uts_version | $ uts_truncate '\" Echo \ # define linux_compile_by \ "'echo $ linux_compile_by | $ uts_truncate '\ "// echo \ # define linux_compile_host \" 'echo $ linux_compile_host | $ uts_truncate' \ "Echo \ # define linux_compiler \" '$ CC -V 2> & 1 | tail-N 1' \ ")>. tmpcompile

(3) version number

Android/out/target/product/w42/system/build. Prop

ro.build.display.id=w42.eng.tim.20121224.093047ro.build.version.incremental=eng.tim.20121224.093047

In fact, the build. Prop directory contains a lot of information about the system. If you are interested, you can check it.

8. Change the default time zone

In addition to the language, the default time zone of a single product must be changed. Find the corresponding system. Prop and add the following statement.

Android/device/Samsung/smdk4x12/system. Prop

#default time zonepersist.sys.timezone=Asia/Shanghai

9. Place an icon on the desktop and click link to a specified URL.

10. Place the application icon on the desktop by default.

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.