How to show high temperature warning pictures when Android is powered off

Source: Internet
Author: User

 

 

 

 

Alpsmediatekexternalipodootlogo. in cpp1.bootlogo _ show_charging (), modify the high-temperature warning image in the if (get_ov_status () {mt65xx_disp_show_charger_ov_logo (); return ;} add if (get_ot_status () {mt65xx_disp_show_battery_ot_logo (); return;} void upload (void) {XLOGD ([ChargingAnimation % s % d] show battery_ot logo, index = x, __function __,__ LINE _); mt_show_logo (x); // here, x is your choice.} 2. alpsmediatekexternalipodipodcommon. cpp is added with # define BATTERY_TEMPERATURE_PATH/sys/class/power_supply/battery/batt_temp # define BATTERY_OVER_TEMP 500int get_ov_status () function followed by int get_ot_status () {int temp = get_int_value (BATTERY_TEMPERATURE_PATH); SXLOGI (battery temperature: % d, temp); if (temp> = BATTERY_OVER_TEMP) {return 1;} return 0 ;}


 

Related Article

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.