본문 바로가기

IT

테이크 LTE 네비게이션 버튼 순정처럼 바꾸기

반응형

테이크 LTE는 하단의 네비게이션 버튼(소프트 버튼)이 이번 젤리빈 순정의 순서와 다르고 또 옵티머스 LTE와도 순서가 다르다

순정 젤리빈은 백-홈-메뉴 순인데 테이트 LTE는 메뉴-홈-백 순서이다

그래서 이 순서를 바꿔 보기로 했다

apk 컴파일 디컴파일은 게시물 

http://cholchori.tistory.com/946

을 참조

먼저 테이크 LTE 젤리빈 순정 SystemUI.apk 와 framework-res.apk 을 추출해서 PC로 복사한다

SystemUI.apk 을  APK Manager의 place-apk-here-for-modding 폴더에 복사

디컴파일을 하면 오류가 생긴다

오류를 해결하기 위해서 framework-res.apk 이 필요하다

apk_manager_5.1_SNAPSHOT_windows\other\ 폴더에 framework-res.apk 를 복사하고

apktool if framework-res.apk 

명령어를 준다 (원리는 생략)

다시 디컴파일을 하면 제대로 디 컴파일이 된다

디컴파일 완료 후 \apk_manager_5.1_SNAPSHOT_windows\projects\SystemUI.apk\res\layout\

폴더에 가면 navigation_bar_ktft.xml 파일이 있다

@id/rot0 부분의 @id/menu 전체와 @id/back 전체를 바꾼다

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="80.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />

를 교환하고

@id/rot90 부분의

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_back_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />

<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:layout_width="fill_parent" android:layout_height="80.0dip" android:src="@drawable/ic_sysbar_menu_land" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />

를 완전히 바꾸고 저장한다

저장후 다시 컴파일

컴파일을 완료하면

unsignedSystemUI.apk 가 생성되어 있다

http://cholchori.tistory.com/946 게시물의 설명처럼

SystemUI.apk 을 반디집으로 열고

unsignedSystemUI.apk 을 반디집으로 연다음

unsignedSystemUI.apk 내부의

resources.arsc 파일과

res\layout\ 폴더의 navigation_bar_ktft.xml 파일을 SystemUI.apk 으로 덮어쓴다

마무리된 SystemUI.apk 파일을 휴대폰으로 전송한다음

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 주의

먼저 /system 폴더에 SystemUI.apk를 복사한 다음

권한 설정을 644로 변경한 다음

/system/app 폴더에 복사를 하면 된다

이렇게 하지 않으면 벽돌의 위험이 있다


이렇게 마무리를 하고 재부팅을 하면

보기 좋기 백-홈-메뉴 순서대로 버튼이 순서한다

이제 순정 젤리빈과 같은 느낌(?)으로 사용을 하자

덕분에 다른 레퍼런스 폰과 옵티머스 LTE2 와 버튼 순서가 똑같아 헷갈리지 않는다


SystemUI.apk


반응형