[狂]HTC軟體[工具][運用][修改DHD]討論與實作


[狂少] wrote:
OK,當你把rosie.apk都做好要修改的部分後
你一定要"sign" rosie.apk和zipalign
我先把signare貼上來..等等再寫教學
sign之前,你要有JRE 7 (java 7.0)


Signare.rar (4.1 MB)
http://www.multiupload.com/I57LWZSE37


1.解壓到signare檔案夾
2.把做好的rosie.apk放進input檔案夾
3.執行Signare v1.1.exe
4.sign with test key
等sign好它會問你要不要zipalign,一定要zipalign
這樣就好了,再去output拿你的rosie.apk

狂少哥哥

可以用APK Manager裡面的sign就好嗎?

是一樣的嗎@@?

另外用APK Manager的decompile有兩種 他們有什麼差別呢?
愛情來了怎知道

genius070 wrote:

狂少哥哥

可以用APK Manager裡面的sign就好嗎?

是一樣的嗎@@?

另外用APK Manager的decompile有兩種 他們有什麼差別呢?


ok, apk manager中的sign apk有時會無故失效
signare可是100%..這就是我不在apk manager中sign的原因
有一款叫做"apk multi-tool,我之後會介紹,目前是最強的
跟apk manager差不多:)

decompile有兩種是因為 apk有兩種
一種是"dependent" apk,一種是independent apk
像是rosie你就不能直接decompile,所以才要在apktool上先裝好framework和com.htc.resources

而像是apk-multi-tool是你先選10..(with dependcy)時,它會有所提示
要你拉htc resources檔進去...
請點圖看大圖才能看清楚

這部分我會做教學


狂少的Onepagebook ROM: https://www.facebook.com/onepagebookXtremeROM

[狂少] wrote:
decompile有兩種是因為 apk有兩種
一種是"dependent" apk,一種是independent apk
像是rosie你就不能直接decompile,所以才要在apktool上先裝好framework和com.htc.resources


所以我整理一下

普通的decompile也就是圖片中的9就是解一班的檔案

然後圖片中的10就是解Rosie這種的檔案,然後先前不需要在apktool裡面安裝framework-res和com.htc.resources,他在過程中會叫你安裝...

這樣理解對嗎
愛情來了怎知道
genius070 wrote:
所以我整理一下普通的...(恕刪)


是的..
但是你要記得哦..有些apk也是會要讀framework和resources..所以像這樣就很難去想說要按9 or 10
所以apktool還是比較好..雖然他比較不方便..:p
狂少的Onepagebook ROM: https://www.facebook.com/onepagebookXtremeROM

[狂少] wrote:
UOT無法做下拉式選...(恕刪)


報告狂大,應該是可以的,我有試過,有些透明化的部份,要將顏色選為白色,然後透明化的程度訂為50%,就有半透明,選擇到0%就是全透明化了。

但無法整個下拉式選單做完全的透明化 ..

包括我附上的圖片裡的紅框就沒辦法 ..

我只能在通知欄那邊做透明化的處理而已 ..

看來我還是得要研究狂大你的透明化 + 底圖設置了。

汪大升 wrote:
報告狂大,應該是可以...(恕刪)


哦?感謝您的說明..
因為我都是自己直接改
其實在Runny的rom來說..RCMIX tweak那邊可以選擇要不要把你講的那部分隱藏
我是直接不顯示
然後整個透明下去改

而我的改法是先把他完全透明,加上可以放個人化的圖..
這部份有勞大家耐心等待...
因為code很麻煩
我大概今天會把教學貼上來
狂少的Onepagebook ROM: https://www.facebook.com/onepagebookXtremeROM

[狂少] wrote:
哦?感謝您的說明.....(恕刪)


不過按照狂大你的說明,UOT上的下拉式選單透明化,有做等同於沒做 ..

還是按照狂大你的教學方式一步一步把整個介面修改成自己喜歡的圖示。

我想比UOT來得更實際更便利。

甚至 !! 做完會更有成就感。

謝謝狂大的無私教學。

小弟感激不盡。

汪大升 wrote:
不過按照狂大你的說明...(恕刪)


年輕人不要熬夜..快去睡..
起床之後就會有
狂少的Onepagebook ROM: https://www.facebook.com/onepagebookXtremeROM
[狂少] wrote :


年輕人不要熬夜..快去睡..
起床之後就會有...(恕刪)

好的,老大

晚安
SystemUI.apk下拉選單透明化及客製化

再來這個可是要專心看在下每一句寫的,因為XML的東西稍有不慎
則是全部失敗..是不會變磚塊,但是你可能花5~6小時去compile還失敗
但只是因為你打錯一個小符號

狂少這邊為了方便大家,我只顯示原碼的位置..

另外..我希望..在你轉貼之前,可以通知我一下,不要把這些變成是轉貼人的
因為我沒看過人家貼這些出來分享過.不是我小氣..如果是你努力很久做的東西
被人家拿去說.."喔我教大家"..您做何感想?


真的不難啦...哈哈
請記得點小圖看大圖

在decompilesystemui.apk之後呢進到---> res/layout 檔案夾中的

quick_settings.xml

找到底下的這個
*******************************************************************************************************
原來的設定:

<ScrollView android:id="@id/scroll" android:fadingEdge="none"
android:layout_width="fill_parent" android:layout_height="fill_parent">


改成:

<ScrollView android:id="@id/scroll"
android:background="@drawable/quicksettings_background" android:fadingEdge="none"
android:layout_width="fill_parent" android:layout_height="fill_parent">



原碼圖


存檔,
******************************************************************************************************

然後同樣檔案夾請找到----> quick_settings_config.xml

找到這一些..


<TextView android:textSize="14.0sp" android:textColor="#ff4c4c4c"
android:gravity="left" android:id="@id/mobile_config1" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="1.0" />
<TextView android:textSize="14.0sp" android:textColor="#ff4c4c4c"
android:gravity="center" android:id="@id/mobile_config2" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="2.0" />
<TextView android:textSize="14.0sp" android:textColor="#ff4c4c4c"
android:gravity="right" android:id="@id/mobile_config3" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="1.0" />


把那些改成:


<TextView android:textSize="14.0sp" android:textColor="#ffffffff" android:gravity="left"
android:id="@id/mobile_config1" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="1.0" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff"
android:gravity="center" android:id="@id/mobile_config2" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="2.0" />
<TextView android:textSize="14.0sp" android:textColor="#ffffffff"
android:gravity="right" android:id="@id/mobile_config3" android:layout_width="0.0dip"
android:layout_height="fill_parent" android:layout_weight="1.0" />


原碼圖

*****************************************************************************************************

再來..:

<TextView android:layout_gravity="left|center" android:id="@id/wifi_status"
android:layout_width="0.0dip" android:layout_height="wrap_content"
android:layout_weight="1.0" style="@com.htc:style/list_primary_m" />


改成:

<TextView android:textColor="#ffffffff" android:layout_gravity="left|center"
android:id="@id/wifi_status" android:layout_width="0.0dip"
android:layout_height="wrap_content" android:layout_weight="1.0"
style="@com.htc:style/darklist_primary_m" />


一樣請存檔

原碼圖

*****************************************************************************************************

找到 status_bar_tracking.xml


原碼:

<View android:id="@id/background" android:background="@drawable/list_item_background"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1.0" />

改成

<View android:id="@id/background"
android:background="@drawable/status_bar_background" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1.0" />


原碼圖

****************************************************************************************************

再來請找到:

<View android:background="@drawable/divider_horizontal_light_opaque"
android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header"
android:background="@drawable/list_item_background" android:layout_width="fill_parent"
android:layout_height="4.0dip" />
<LinearLayout android:orientation="horizontal" android:background="#ff000000"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:baselineAligned="false">
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ff000000" android:ellipsize="marquee" android:gravity="center"
android:id="@id/notifications" android:background="@drawable/status_bar_tab_on"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ff000000" android:ellipsize="marquee" android:gravity="center"
android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />


改成:

<View android:background="@drawable/divider_horizontal_dark_opaque"
android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header"
android:background="@drawable/status_bar_background" android:layout_width="fill_parent"
android:layout_height="4.0dip" />
<LinearLayout android:orientation="horizontal" android:background="#00000000"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:baselineAligned="false">
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center"
android:id="@id/notifications" android:background="@drawable/status_bar_tab_on"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center"
android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />


存檔!!!

原碼圖


****************************************************************************************************
找到:

status_bar_tracking_trans.xml


請特別特別注意..這個XML..只有RCmix 4.0和kent大5.0ROM才會有,其他ROM不會有的
因為只有在RCMix tweaks中才能透過"下拉選單讓背景透明化"指向這個xml去作修改..(我不知道中文翻

這樣對不對..別砲我..)
我用英文再說一次


now this xml is the exact same edits as status_bar_tracking.xml this xml is not found in any rom exept for Runny's because whenever you select transparent background in tweaks it points to this xml




請找原碼:

<View android:id="@id/background" android:background="@drawable/list_item_background"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1.0" />


改成

<View android:id="@id/background"
android:background="@drawable/status_bar_background" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1.0" />


原碼圖

****************************************************************************************************

再來請找到:

<View android:background="@drawable/divider_horizontal_light_opaque"
android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header"
android:background="@drawable/list_item_background" android:layout_width="fill_parent"
android:layout_height="4.0dip" />
<LinearLayout android:orientation="horizontal" android:background="#ff000000"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:baselineAligned="false">
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ff000000" android:ellipsize="marquee" android:gravity="center"
android:id="@id/notifications" android:background="@drawable/status_bar_tab_on"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ff000000" android:ellipsize="marquee" android:gravity="center"
android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />

改成:

<View android:background="@drawable/divider_horizontal_dark_opaque"
android:layout_width="fill_parent" android:layout_height="1.0px" />
<View android:id="@id/tab_header"
android:background="@drawable/status_bar_background" android:layout_width="fill_parent"
android:layout_height="4.0dip" />
<LinearLayout android:orientation="horizontal" android:background="#00000000"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:baselineAligned="false">
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center"
android:id="@id/notifications" android:background="@drawable/status_bar_tab_on"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />
<TextView android:textSize="@dimen/status_bar_tab_font_size" android:textStyle="bold"
android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center"
android:id="@id/quick_settings" android:background="@drawable/status_bar_tab_off"
android:clickable="true" android:layout_width="0.0px"
android:layout_height="@dimen/quick_settings_tab_height" android:singleLine="true"
android:layout_weight="1.0" />


存檔!!!

原碼圖


請小心再小心...完成這些修改後,請看一下整個檔案夾內產生的xml.bak檔一定..千萬..萬萬

要把他殺掉...不然保證你compile失敗到永遠找不到頭緒..包準你有頭髮抓到沒頭髮...切記


****************************************************************************************************


請特別小心這部份:

再來就是作兩張480x762的png檔給Notifications和Quicksettings做background(背景)
Notifications background 檔名為 status_bar_background.png
Quicksettings background 檔名為 quicksettings_background.png

要做兩張都是480x762的先決條件是我建議把quicksettings_background.png做成完全100%透明圖檔,
然後status_bar_background.png 做你要的圖,這樣你的下拉式選單才不會有圖重疊 :)

圖做好後,請丟進你的res/drawable hdpi檔案夾內
再把整個systemui.apk compile回去.
然後...請記得Zipalign和sign.--->很重要..沒sign和zipalign..保證你會搥胸頓足


大功告成是不是不難阿...?


這就是這張圖的由來...

狂少的Onepagebook ROM: https://www.facebook.com/onepagebookXtremeROM
文章分享
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 103)

今日熱門文章 網友點擊推薦!