안녕하세요. SPAPA입니다.
SystemUI에 QuickAPP 추가하기 여쭤보시는분들 가끔 계셔서
QuickAPP 추가하는 방법을 알려드리겠습니다.
일단 기본적으로 디컴파일/컴파일, deodex,odex작업이 가능하셔야합니다.
수정할 파일은 SystemUI.apk와 SystemUI.odex 입니다.
소스파일 다운로드 : spapa.zip
일단 위의 첨부파일을 받으시고 아래와 같이 추가해주시면됩니다.
* smali파일 추가하기
위에 소스파일을 받아 압축을 푸신뒤, spapa폴더 그대로
com/android/systemui/statusbar/policy/ 에 넣어줍니다.
- smali 쪽은 위처럼 소스파일은 그대로 넣어주시면 끝납니다. 별도의 파일은 수정은 없습니다.
* res/value/ids.xml에 id 추가하기
<item type="id" name="spapa_shortcuts">false</item>
<item type="id" name="spapa_shortcuts_text">false</item>
<item type="id" name="spapa_apps">false</item>
<item type="id" name="spapa_b1">false</item>
<item type="id" name="spapa_b2">false</item>
<item type="id" name="spapa_b3">false</item>
<item type="id" name="spapa_b4">false</item>
<item type="id" name="spapa_b5">false</item>
<item type="id" name="spapa_b6">false</item>
<item type="id" name="spapa_b7">false</item>
<item type="id" name="spapa_b8">false</item>
<item type="id" name="spapa_b9">false</item>
<item type="id" name="spapa_b10">false</item>
<item type="id" name="spapa_b11">false</item>
<item type="id" name="spapa_b12">false</item>
- 위의 구문을 마지막 </resources>바로 윗줄에 추가해줍니다.
* res/value/string.xml string값 추가하기
<string name="spapa_shortcuts_ui">Quick APP</string>
- 위의 구문을 마지막 </resources>줄 바로 위줄에 추가해줍니다.
* res/layout/tw_status_bar_expanded.xml에 layout 추가하기.
<LinearLayout android:orientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip">
<ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" />
<FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
<com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
<LinearLayout android:orientation="vertical" android:id="@id/spapa_shortcuts" android:background="#ff293945" android:focusable="true" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textColor="#ffffffff" android:gravity="left|center" android:id="@id/spapa_shortcuts_text" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/spapa_shortcuts_ui" />
</LinearLayout>
<HorizontalScrollView android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="20.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:fillViewport="false" android:overScrollMode="ifContentScrolls">
<LinearLayout android:orientation="horizontal" android:id="@id/spapa_apps" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="62.0dip">
<FrameLayout android:id="@id/spapa_b1" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppPhone android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b2" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppMms android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b3" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppInternet android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b4" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppContacts android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b5" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppSnote android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b6" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppMusic android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b7" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppVideo android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b8" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppCamera android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b9" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppGallery android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b10" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppFiles android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b11" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppClock android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
<FrameLayout android:id="@id/spapa_b12" android:background="#ff000000" android:clickable="true" android:layout_width="50.0dip" android:layout_height="fill_parent" android:layout_marginLeft="15.0dip">
<com.android.systemui.statusbar.policy.spapa.QuickLaunchButtonAppVending android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:maxWidth="44.0dip" android:maxHeight="44.0dip" android:layout_weight="1.0" />
</FrameLayout>
</LinearLayout>
</HorizontalScrollView>
<View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" />
<LinearLayout android:orientation="vertical" android:id="@id/noNotificationsTitle" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textColor="#ffffffff" android:gravity="left|center" android:id="@id/noNotificationsText" android:paddingLeft="11.0dip" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:text="@string/status_bar_no_notifications_title" />
</LinearLayout>
- 빨간색 구문 추가.
이제 수정은 모두 끝났습니다. 다시 컴파일 하셔서 폰에 적용하시면 되겠습니다.~
클릭해주시고 응원의 댓글들도 남겨주세요^^
'정보공유 > 팁/강좌' 카테고리의 다른 글
상단 배터리아이콘 무지개바로 바꾸기. (1) | 2013.09.03 |
---|---|
사용자문구 위치변경 및 폰트변경 팁. (10) | 2013.08.16 |
커스텀롬 OTA Updater 환경 구축하기 (3) | 2013.08.12 |
SystemUI All Transparent(상단바 완전 투명화) (5) | 2013.08.11 |
갤럭시시리즈 순정 뮤직플레이어 컴파일 오류시 해결법 (0) | 2013.07.25 |