设置机器名称和型号

DeviceNamePreferenceController.java

private void initializeDeviceName() {
    //mDeviceName = Settings.Global.getString(mContext.getContentResolver(), 
           // Settings.Global.DEVICE_NAME);
       //注释掉上面,直接赋值
       mDeviceName = "name";     
    if (mDeviceName == null) {
        mDeviceName = Build.MODEL;
    }
}

DeviceModelPreferenceController.java

public static String getDeviceModel() {
   //return Build.MODEL + DeviceInfoUtils.getMsvSuffix();
     //注释掉上面,直接赋值
   return "HA763"
}

你可能感兴趣的:(andriod,setting)