设为首页收藏本站

移动叔叔

搜索
查看: 2171|回复: 0
打印 上一主题 下一主题

修改1%电池电量方法(转)

[复制链接]
跳转到指定楼层
楼主
发表于 2011-5-24 15:47:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
其它类
其它: 其它
修改1%电池图标方法:转HIAPK
1、需要用apktool工具解开framework-res.apk
2、然后在drawable-mdpi中替换电池图标,可以在网上找。比如stat_sys_battery_xx文件
3、修改drawable中stat_sys_battery.xml这个文件,主要是对应上面的电池图标
stat_sys_battery.xml 改成这样:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <level-list
  3. xmlns:android="http://schemas.android.com/apk/res/android">
  4. <item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
  5. <item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
  6. <item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
  7. <item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
  8. <item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
  9. <item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
  10. <item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="6" />
  11. <item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="7" />
  12. <item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="8" />
  13. <item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="9" />
  14. <item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
  15. <item android:drawable="@drawable/stat_sys_battery_11" android:maxLevel="11" />
  16. <item android:drawable="@drawable/stat_sys_battery_12" android:maxLevel="12" />
  17. <item android:drawable="@drawable/stat_sys_battery_13" android:maxLevel="13" />
  18. <item android:drawable="@drawable/stat_sys_battery_14" android:maxLevel="14" />
  19. <item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
  20. <item android:drawable="@drawable/stat_sys_battery_16" android:maxLevel="16" />
  21. <item android:drawable="@drawable/stat_sys_battery_17" android:maxLevel="17" />
  22. <item android:drawable="@drawable/stat_sys_battery_18" android:maxLevel="18" />
  23. <item android:drawable="@drawable/stat_sys_battery_19" android:maxLevel="19" />
  24. <item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
  25. <item android:drawable="@drawable/stat_sys_battery_21" android:maxLevel="21" />
  26. <item android:drawable="@drawable/stat_sys_battery_22" android:maxLevel="22" />
  27. <item android:drawable="@drawable/stat_sys_battery_23" android:maxLevel="23" />
  28. <item android:drawable="@drawable/stat_sys_battery_24" android:maxLevel="24" />
  29. <item android:drawable="@drawable/stat_sys_battery_25" android:maxLevel="25" />
  30. <item android:drawable="@drawable/stat_sys_battery_26" android:maxLevel="26" />
  31. <item android:drawable="@drawable/stat_sys_battery_27" android:maxLevel="27" />
  32. <item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="28" />
  33. <item android:drawable="@drawable/stat_sys_battery_29" android:maxLevel="29" />
  34. <item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
  35. <item android:drawable="@drawable/stat_sys_battery_31" android:maxLevel="31" />
  36. <item android:drawable="@drawable/stat_sys_battery_32" android:maxLevel="32" />
  37. <item android:drawable="@drawable/stat_sys_battery_33" android:maxLevel="33" />
  38. <item android:drawable="@drawable/stat_sys_battery_34" android:maxLevel="34" />
  39. <item android:drawable="@drawable/stat_sys_battery_35" android:maxLevel="35" />
  40. <item android:drawable="@drawable/stat_sys_battery_36" android:maxLevel="36" />
  41. <item android:drawable="@drawable/stat_sys_battery_37" android:maxLevel="37" />
  42. <item android:drawable="@drawable/stat_sys_battery_38" android:maxLevel="38" />
  43. <item android:drawable="@drawable/stat_sys_battery_39" android:maxLevel="39" />
  44. <item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="40" />
  45. <item android:drawable="@drawable/stat_sys_battery_41" android:maxLevel="41" />
  46. <item android:drawable="@drawable/stat_sys_battery_42" android:maxLevel="42" />
  47. <item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="43" />
  48. <item android:drawable="@drawable/stat_sys_battery_44" android:maxLevel="44" />
  49. <item android:drawable="@drawable/stat_sys_battery_45" android:maxLevel="45" />
  50. <item android:drawable="@drawable/stat_sys_battery_46" android:maxLevel="46" />
  51. <item android:drawable="@drawable/stat_sys_battery_47" android:maxLevel="47" />
  52. <item android:drawable="@drawable/stat_sys_battery_48" android:maxLevel="48" />
  53. <item android:drawable="@drawable/stat_sys_battery_49" android:maxLevel="49" />
  54. <item android:drawable="@drawable/stat_sys_battery_50" android:maxLevel="50" />
  55. <item android:drawable="@drawable/stat_sys_battery_51" android:maxLevel="51" />
  56. <item android:drawable="@drawable/stat_sys_battery_52" android:maxLevel="52" />
  57. <item android:drawable="@drawable/stat_sys_battery_53" android:maxLevel="53" />
  58. <item android:drawable="@drawable/stat_sys_battery_54" android:maxLevel="54" />
  59. <item android:drawable="@drawable/stat_sys_battery_55" android:maxLevel="55" />
  60. <item android:drawable="@drawable/stat_sys_battery_56" android:maxLevel="56" />
  61. <item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="57" />
  62. <item android:drawable="@drawable/stat_sys_battery_58" android:maxLevel="58" />
  63. <item android:drawable="@drawable/stat_sys_battery_59" android:maxLevel="59" />
  64. <item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="60" />
  65. <item android:drawable="@drawable/stat_sys_battery_61" android:maxLevel="61" />
  66. <item android:drawable="@drawable/stat_sys_battery_62" android:maxLevel="62" />
  67. <item android:drawable="@drawable/stat_sys_battery_63" android:maxLevel="63" />
  68. <item android:drawable="@drawable/stat_sys_battery_64" android:maxLevel="64" />
  69. <item android:drawable="@drawable/stat_sys_battery_65" android:maxLevel="65" />
  70. <item android:drawable="@drawable/stat_sys_battery_66" android:maxLevel="66" />
  71. <item android:drawable="@drawable/stat_sys_battery_67" android:maxLevel="67" />
  72. <item android:drawable="@drawable/stat_sys_battery_68" android:maxLevel="68" />
  73. <item android:drawable="@drawable/stat_sys_battery_69" android:maxLevel="69" />
  74. <item android:drawable="@drawable/stat_sys_battery_70" android:maxLevel="70" />
  75. <item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="71" />
  76. <item android:drawable="@drawable/stat_sys_battery_72" android:maxLevel="72" />
  77. <item android:drawable="@drawable/stat_sys_battery_73" android:maxLevel="73" />
  78. <item android:drawable="@drawable/stat_sys_battery_74" android:maxLevel="74" />
  79. <item android:drawable="@drawable/stat_sys_battery_75" android:maxLevel="75" />
  80. <item android:drawable="@drawable/stat_sys_battery_76" android:maxLevel="76" />
  81. <item android:drawable="@drawable/stat_sys_battery_77" android:maxLevel="77" />
  82. <item android:drawable="@drawable/stat_sys_battery_78" android:maxLevel="78" />
  83. <item android:drawable="@drawable/stat_sys_battery_79" android:maxLevel="79" />
  84. <item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="80" />
  85. <item android:drawable="@drawable/stat_sys_battery_81" android:maxLevel="81" />
  86. <item android:drawable="@drawable/stat_sys_battery_82" android:maxLevel="82" />
  87. <item android:drawable="@drawable/stat_sys_battery_83" android:maxLevel="83" />
  88. <item android:drawable="@drawable/stat_sys_battery_84" android:maxLevel="84" />
  89. <item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="85" />
  90. <item android:drawable="@drawable/stat_sys_battery_86" android:maxLevel="86" />
  91. <item android:drawable="@drawable/stat_sys_battery_87" android:maxLevel="87" />
  92. <item android:drawable="@drawable/stat_sys_battery_88" android:maxLevel="88" />
  93. <item android:drawable="@drawable/stat_sys_battery_89" android:maxLevel="89" />
  94. <item android:drawable="@drawable/stat_sys_battery_90" android:maxLevel="90" />
  95. <item android:drawable="@drawable/stat_sys_battery_91" android:maxLevel="91" />
  96. <item android:drawable="@drawable/stat_sys_battery_92" android:maxLevel="92" />
  97. <item android:drawable="@drawable/stat_sys_battery_93" android:maxLevel="93" />
  98. <item android:drawable="@drawable/stat_sys_battery_94" android:maxLevel="94" />
  99. <item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="95" />
  100. <item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
  101. <item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
  102. <item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
  103. <item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
  104. <item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
  105. </level-list>
复制代码




用apktool工具做成framework-res.apk压缩包。
5、找到framework-res.apk,用winrar打开,找到stat_sys_battery.xml和resources.arsc以及第2步的电池图标替换掉最原始的framework-res.apk文件。
小技巧,替换resources.arsc时一定要选存储。。。
您需要登录后才可以回帖 登录 | 注册

© 2008-2025 移动叔叔. 版权所有,专业的网络售后平台 ( 闽ICP备18006692号-3 )

商务合作点击这里给我发消息|Email:service@mobileuncle.com|手机版|移动叔叔     

GMT+8, 2025-1-11 14:50 , Processed in 0.204227 second(s), 12 queries , Gzip On, Memcache On.

返回顶部