Modify Android system settings Android version

Source: Internet
Author: User

http://blog.csdn.net/haplwd/article/details/10226039

settings in Android changes to the model number in your phone

1.apps-->settings-->about Phone-->model number

found by model number

./res/values/strings.xml:1738: <string name= "Model_number" >model number</string>

2. finding an XML file by defining Model_number

./res/xml/device_info_settings.xml:103:android:title= "@string/model_number"

<!--Device Hardware model--
<preference android:key= "Device_model"
Style= "? Android:preferenceinformationstyle"
android:title= "@string/model_number"
android:summary= "@string/device_info_default"/>

3. Find the/src/com/android/settings/deviceinfosettings.java:58 via Android Key,device_model:

private static final String key_device_model= "Device_model";

4. Find by Key_device_model

setstringsummary (Key_device_model, Build.model + getmsvsuffix ());

is to get the value of model number by Build.model

5. To find Build.model to find in the global Frameworks/base/core/java/android/os

frameworks/base/core/java/android/os/build.java:56:

public static final String MODEL = getString ("Ro.product.model");

6.Ro.product.model is generally defined in the build directory

Build/tools/buildinfo.sh:18:echo "ro.product.model= $PRODUCT _model"

7. Find ro.product.model= $PRODUCT _model is assigned by $product_model

Well, let's go back to settings and see how it's defined.

8. Find by Product_model

./android.mk:2:ifeq ($ (Product_model), T73)

This is a long project, the definition of the compilation script, colleagues also give Product_model assignment,

This place can't be changed, so go back to build/tools/buildinfo.sh .

Write this echo "ro.product.model=************" to death .

more directly on the phone, these values can also be found in buildinfo.sh :

(1). Make sure the phone is rooted, download the file Manager that can modify the phone file (such as the re file browser) and install it on the Android phone.
(2). Enter the RE manager and it will prompt for permission. Click Allow.
(3). Go to the system "/system/" path and locate "Build.prop" in this directory. Press and hold the file and select Open with a text editor from the pop-up menu.
(4) Find "ro.product.model= ..." this line, "=" After the number is your phone model, modified to other can, find "ro.product.brand= ..." line, modify the "=" number after the parameter, that is, modified the phone brand.
(5) Click "Save" in the function menu, then go back to the main screen, after restarting the phone, all the changes will take effect.
(6) After restarting the phone, open "system settings", look for "about the phone" word, enter the mobile phone information interface, your phone model has been changed, when the phone connected to the computer after the computer-side display of the phone model will also change.
The following is an explanation of the CM system's Build.prop file:
# Begin Build Properties (Start setting system performance)
# Autogenerated by buildinfo.sh (via Setup to form system information)
RO.BUILD.ID=GRI40 (Version ID)
RO.BUILD.DISPLAY.ID=GRJ22 (version number)
ro.build.version.incremental=eng.buildbot.20110619.060228 (version increment)
ro.build.version.sdk=10 (SDK Version)
Ro.build.version.codename=rel (Version code)
ro.build.version.release=2.3.4 (Android 2.3.4 system without modification, can also be changed to 3.0)
Ro.build.date=sun June 06:02:58 UTC 2011 (Producer's time, can be modified 2011 x month X Day of a certain production)
Ro.build.date.utc=0

Modify Android system settings Android version

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.