[20150716][Android][4.2.2_r1]USB plugin type

AC/USB/Wireless charging type checker file: packages/apps/Settings/src/com/android/settings/Utils.java function: getBatteryStatus public static String getBatteryStatus(Resources res, Intent batteryChangedIntent) { final Intent intent = batteryChangedIntent; int plugType = intent.getIntExtra("plugged", 0); int status = intent.getIntExtra("status", BatteryManager.BATTERY_STATUS_UNKNOWN); String statusString; if (status == BatteryManager.BATTERY_STATUS_CHARGING) { statusString = res.getString(R.string.battery_info_status_charging); if (plugType > 0) { int resId; if (plugType == BatteryManager.BATTERY_PLUGGED_AC) { resId = R.string.battery_info_status_charging_ac; } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) { resId = R.string.battery_info_status_charging_usb; } else { resId = R....

<span title='2015-07-18 00:26:00 +0000 UTC'>2015/07/18 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;127 words&nbsp;·&nbsp;map[name:SCys uri:]

[Android][4.2.2_r1][Phone]添加重启按钮

直接上链接:长按电源键,为Android手机添加自动重启ItemMTKAndroid4.2.2添加重启功能

<span title='2015-07-15 02:36:00 +0000 UTC'>2015/07/15 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;word&nbsp;·&nbsp;map[name:SCys uri:]