[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....

2015/07/180 Jul · 1 min · map[name:SCys uri:]

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

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

2015/07/150 Jul · 1 min · map[name:SCys uri:]