본문 바로가기

정보공유/팁/강좌

SystemUI QuickAPP 추가하기.

안녕하세요. 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>

 - 빨간색 구문 추가.

이제 수정은 모두 끝났습니다. 다시 컴파일 하셔서 폰에 적용하시면 되겠습니다.~

 

제 글이 도움이 되셨다면 하단의 "ViewON" 한번씩

클릭해주시고 응원의 댓글들도 남겨주세요^^