Android production software changes (Continuous updates)

Source: Internet
Author: User

Keywords: android 4.0 default language Bluetooth name MTP name default time zone about tablet kernel version number platform information: kernel: linux2.6/linux3.0 system: android/android4.0 platform: S5PV310 (samsungexynos4210) 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. Change the information in "about Tablet". 8. Change the default time zone ;.................. It is based on the Samsung platform. If it is another platform, it is 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 machine logo many companies are now a leather bag company. They do not do research and development on their own, buy it outside, and make the boot screen unique to them, so this is also used in a lot of work. Chinese products are called "flood. The logo is described in detail in this article: android logo: kernel, android boot Animation 2. When the user mode and engineering mode products go out, the user mode should be used. At this time, the serial port terminal cannot operate, only. 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. It takes weeks to change the default language to provide product services, so it cannot be used in other countries, once the opportunity was opened, it would be a bit unfriendly. English is acceptable in many places, but Chinese is still not so 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/templates [html] PRODUCT_LOCALES: = zh_CN \ en_US \ zh_TW \ en_GB \ fr_FR \ it_IT \ cs_CZ \ de_DE \ da_DK \ el_GR \ language, put it in front of the system, for example, zh_CN: Chinese Simplified zh_TW: Chinese traditional en_US: English (United States) android region language and simplified description table 5. Change the bluetooth name android/external/bluetooth/bluez/src/main. c [cpp] static void init_defaults (void) {/* Default HCId settings */memset (& main_opts, 0, sizeof (main_opts); main_opt S. mode = MODE_CONNECTABLE; main_opts.name = g_strdup ("W42"); // change the name of this field; required = TRUE; main_opts.link_mode = HCI_LM_ACCEPT; main_opts.link_policy = 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. More MTP names: android/system/vold/Volume. cpp view plaincopyint 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 (partNod E), 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. Modify the information in "about Tablet" (1), android/device/samsung/smdk4x12/full_smdk4x12.mk [html] PRODUCT_MANUFACTURER: = full_smdk4x12 PRO DUCT_BRAND: = full_smdk4x12 PRODUCT_MODEL: = W42 (QuadCore) (2). the kernel version is a bit difficult to find. A colleague told me that the kernel path is: kernel/scripts/mkcompile_h [html] # 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), android/out/target/product/w42/system/build. prop [html] ro. build. display. id = w42.eng. tim.20121224.093047 ro. build. version. incremental = eng. tim.20121224.093047 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 except for the language. Find the corresponding system. prop and add the following statement. Android/device/samsung/smdk4x12/system. prop [html] # default time zone persist. sys. timezone = Asia/Shanghai 9. Place an icon on the desktop, click link to a specified URL 10, and 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.