.去震动教程.时间居中教程,时间显示到秒且居中在通知栏增加模拟时钟透明状态栏代码修改字体颜色修改关于运营商图标修改可以ctrl+F,按需搜索一:去震动教程:一、首先是配置编译和反编译环境,具体方法如下:1、在电脑上下载安装JRE(/file/clif5w53)。
其次下载好apk反编译工具(apk反编译软件.rar(2.43 MB, 下载次数: 5756) )2、在系统环境变量Path里加入java.exe所在路径。
右键我的电脑--属性--高级系统--设置--环境变量--系统环境变量,里面的path变量项,值里面添加java的所在路径(例如“;C:\Program Files\Java\jre6\bin”)3、将反编译软件解压出来,为了便于使用,最好放在C:\Windows目录下。
二、提取并反编译framework-res.apk文件1、手机必须root,先用RE管理器将/system/framework文件夹下的文件framework-res.apk复制到/sdcard,然后复制到电脑(为了方便后面的操作,建议将文件放到电脑某个盘符的根目录下。
例如:e:\framework-res.apk)2、反编译framework-res.apk文件。
具体方法运行cmd.exe(如图)然后在出来的命令提示行中输入以下命令:apktool+空格d+空格+framework-res.apk路径+空格+反编译后文件存放路径,比如文件放入d盘根目录则命令为:apktool d d:\framework-res.apk d:\framework-res(如图)(此时反编译出来的文件放在d盘framework-res文件夹下)三、修改去震动相关的xml文件一般framework-res\res\values\arrays.xml就是我们要修改的对象。
用xml编辑器(xml 编辑器.rar(345.03 KB, 下载次数: 3223) )打开这个文件。
修改如图:为不震动。
去四大金刚震动就把2,3组中的两个25改成0(如图)。
改完后记得保存。
四、打包修改好的framework-res具体方法输入命令apktool空格b空的+打包文件夹路径。
如apktool b d:\framework-res 并执行(如图)此时会在framework-res文件夹下生成一个build和dist文件夹(如图)其中dist文件夹下的framework-res.apk就是新打包生成的。
五、替换有关文件1、分别用winrar打开提取的未作任何修改的framework-res.apk(原包有个META-INF文件夹,新打包生成的没有)和新打包生成的framework-res.apk(不是解压,只是打开,如图,左右窗口分别为原始文件和打包文件)2、先将打包生成文件里面的resources.arsc文件拖入到左边的原始文件中。
不要关闭窗口。
将弹出压缩窗口压缩方式改为存储(如图),确定覆盖原文件。
六、一个去震动的framework-res.apk就修改好了。
最后是替换手机系统system下framework文件夹下的同名文件。
但是需要注意的是一定要在system根目录下改好权限(建议用RE管理器修改为RW-R-R的权限,权限错误会导致手机无限重启)后再替换。
七、重启手机!完成。
反编译教程大家参考烬散的教程;/forum.php?mod=redirect&goto=findpost&ptid=159013&pid=4068719开始准备工作!1.反编译SystemUI.apk好了,开始修改:二:.时间居中教程1.找到res\layout\status_bar.xml2.打开status_bar.xml(内容不一定会完全一样,但方法一样,安卓通用)3.找到以下代码:(可以搜索,快一些)<com.android.systemui.statusbar.Clockandroid:textAppearance="@android:style/TextAppearance.StatusBar.Icon"android:gravity="left|center" android:paddingRight="4.0dip"android:layout_width="wrap_content" android:layout_height="fill_parent"android:singleLine="true" />复制代码4.把以上的代码全部删除,注意不要删错了!5.再次找到这一句:(也就是第三行)xmlns:android="/apk/res/android">复制代码6.在这句的下面添加如下代码!本帖隐藏的内容<com.android.systemui.statusbar.Clock android:layout_gravity="center_horizontal" android:paddingTop="4.0dip"android:textAppearance="@android:style/TextAppearance.StatusBar.Icon"android:layout_width="wrap_content" android:layout_height="fill_parent"android:singleLine="true" />复制代码7.最后,重编译,替换status_bar.xml后再替换到手机,重启!ok,这样个就可以时间居中了!8.再最后!如果时间没有垂直居中的话请调整这句:android:paddingTop="4.0dip" 离顶部的距离三:时间显示到秒且居中1.找到res\layout\status_bar.xml2.打开status_bar.xml(内容不一定会完全一样,但方法一样,安卓通用)3.找到以下代码:(可以搜索,快一些)<com.android.systemui.statusbar.Clockandroid:textAppearance="@android:style/TextAppearance.StatusBar.Icon"android:gravity="left|center" android:paddingRight="4.0dip"android:layout_width="wrap_content" android:layout_height="fill_parent"android:singleLine="true" />复制代码4.把以上的代码全部删除,注意不要删错了!5.再次找到这一句:(也就是第三行)xmlns:android="/apk/res/android">复制代码6.在这句的下面添加如下代码!本帖隐藏的内容<DigitalClock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:layout_gravity="center_horizontal" android:id="@+id/digitalClock"android:paddingTop="4.0dip" android:layout_width="wrap_content"android:layout_height="fill_parent" />复制代码7.最后,重编译,替换status_bar.xml后再替换到手机,重启!ok!8.再最后!如果时间没有垂直居中的话请调整这句:android:paddingTop="4.0dip" 离顶部的距离四:在通知栏增加模拟时钟1.找到res\layout\status_bar_expanded.xml2.打开status_bar_expanded.xml(内容不一定会完全一样,但方法一样,安卓通用)3.找到最下面的一句:(可以搜索,快一些)</com.android.systemui.statusbar.ExpandedView>复制代码4.在这句的上面添加以下代码!本帖隐藏的内容<AnalogClock android:layout_gravity="bottom" android:id="@+id/analogClock" android:layout_width="125.0dip" android:layout_height="125.0dip" />复制代码5.最后,重编译,替换status_bar_expanded.xml后再替换到手机,重启!ok!6.再最后!嘻嘻,是不有点啰嗦...调整大小:android:layout_width="125.0dip" 宽度android:layout_height="125.0dip" 高度五:透明状态栏代码修改:状态栏的透明反编译SystemUI.apk找到res\layout\status_bar.xml找到<com.android.systemui.statusbar.StatusBarView android: orientation="vertical" android:background="#FF000000"修改为<com.android.systemui.statusbar.StatusBarView android: orientation="vertical"android:background="@drawable/statusbar_background"找到<com.android.systemui.statusbar.DateViewandroid:textAppearance="@android:style/TextAppearance.StatusBar.Icon"android:gravity="left|center" android:id="@id/date" android:background="#FF000000"修改为<com.android.systemui.statusbar.DateViewandroid:textAppearance="@android:style/TextAppearance.StatusBar.Icon"android:gravity="left|center" android:id="@id/date"android:background="@drawable/statusbar_background"当然,也可以把FF000000改为99000000,这就是半透明纯色效果,99代表透明度,可以随意改2需要修改classex.dex文件,路径smali\com\android\systemui\statusbar\StatusBarService.smali文件找到new-instance v0, Landroid/view/WindowManager$LayoutParams;const/4 v1, -0x1const/16 v3, 0x7d0const/16 v4, 0x48const/4 v5, 0x2修改为new-instance v0, Landroid/view/WindowManager$LayoutParams;const/4 v1, -0x1const/16 v3, 0x7d0const/16 v4, 0x48const/4 v5, -0x33修改一张图片,statusbar_background.9.png,处理成半透明六:字体颜色修改:搜索clock你会找到<com.android.systemui.statusbar.Clockandroid:textAppearance="@android:style/TextAppearan ce.StatusBar.Icon"…..这里是时间的在这句话中添加 android:textColor="#ff66cd00" #ff66cd00为颜色代码自己度娘去替换好的代码如下<com.android.systemui.statusbar.Clockandroid:textAppearance="@android:style/TextAppearan ce.StatusBar.Icon"android:textColor="#ff66cd00"android:gravity="left|center"android:paddingLeft="2.0dip"android:paddingRight="2.0dip"android:layout_width="wrap_cont ent"android:layout_height="fill_parent" android:singleLine="true"/>同理在最下面那几行搜索TextView 和DateView在这几行每一行都添加android:textColor="#ff66cd00"就可以实现通知栏字体和日期的颜色变化注添加android:textColor="#ff66cd00"所在的位置应该不限具体自测了如果只是更改颜色到此为止了如果要添加或者去除中国移动/联通继续往下看了七:关于运营商还是同一文件status_bar.xml找到一般在第4行<LinearLayout android:orientation="horizontal"android:id="@id/icons"android:layout_width="fill_parent"android:layout_height="fill_parent"在这行的下一行添加<com.android.systemui.statusbar.CarrierLabelandroid:textAppearance="@android:style/TextAp pearance.StatusBar.Icon"android:gravity="left|center"android:paddingLeft="6.0dip"android:layout_width="wrap_content"android:layout_height="fill _parent"android:singleLine="true" />八:图标修改①、systemUI美化(这里以2.3的系统为例进行修改,2.2的系统是没有systemUI这个文件的)1、首先提取系统自带的systemUI.apk文件到sd卡上:提取方法安装并打开RE管理器第一次打开会提示授权授权点允许,找到system/app文件夹在re上方点击挂载读写模式找到systemUI.apk 长按选择复制选择完成后 re管理器的下方会出现粘贴跟取消两个选项按四大金刚的返回键返回到刚刚进入re的那个根目录也就是进入system文件夹之前的那一页找到sdcard 点击进入点粘贴 ok 提取完成。