출처 : http://poodroid.tistory.com/67


[강좌]안드로이드 4.4 잠금화면에 카메라바로가기(ShortCut) 기능 넣기

 

 

갤럭시노트3가 업데이트되면서 기존 해외판을 보면 카메라기능을

락화면에 바로가기(ShortCut)으로 넣어뒀는데 이걸 삼성이 국내판에서는

미적용 시켰습니다. 이것을 오늘 활성화 시켜보겠습니다.

 

 

 

그럼 강좌 시작하겠습니다~

 

1. Keygurad.apk 파일을 디컴파일합니다.

 

2. 디컴파일 한후 reslayout-sw360dp-xxhdpi 폴더에서 keyguard_unlock_view.xml을 노트패드로 열어줍니다.

   (본 강좌는 노트3 해상도 기준입니다. hdpi 및 xhdpi는 그 기종에 맞는 폴더의 xml을 수정해주시면됩니다.)

 

3. keyguard_unlock_view.xml 을 열면 아래와 같은 소스가 나옵니다.

 <?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.sec.KeyguardUnlockView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_unlock_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:contentDescription="@string/keyguard_accessibility_swipe_unlock" androidprv:layout_maxHeight="@dimen/keyguard_security_height" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard">
    <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
        <include layout="@layout/sec_adaptive_event_container_big" />
        <LinearLayout android:layout_gravity="center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <include android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" layout="@layout/keyguard_message_area" />
            <LinearLayout android:gravity="bottom|center" android:orientation="vertical" android:id="@id/keyguard_unlock_view_frame" android:background="@drawable/kg_bouncer_bg_white" android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_marginBottom="6.0dip" android:layout_weight="1.0">
                <TextView android:textSize="18.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/keyguard_unlock_view_help_text" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#99000000" android:shadowDy="2.0" android:shadowRadius="1.0" />
                <TextView android:textSize="18.0sp" android:textColor="#ffffffff" android:gravity="center" android:layout_gravity="bottom|center" android:id="@id/keyguard_unlock_view_voice_help_text" android:visibility="gone" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_voiceunlock_failed_to_recognise_voice_text" android:shadowColor="#99000000" android:shadowDy="2.0" android:shadowRadius="1.0" />
                <include android:gravity="bottom|center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" layout="@layout/zzz_keyguard_screen_usimwidget" />
            </LinearLayout>
            <include android:gravity="center_horizontal" android:layout_gravity="bottom|center" android:orientation="vertical" android:id="@id/keyguard_selector_fade_container" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="17.0dip" layout="@layout/keyguard_emergency_carrier_area_unlock" />
            <com.android.keyguard.sec.KeyguardShortcutView android:gravity="center" android:id="@id/keyguard_shortcutview_root" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5.0dip" />
        </LinearLayout>
        <ImageView android:id="@id/keyguard_unlock_bouncer" android:background="@drawable/kg_bouncer_bg_white" android:layout_width="fill_parent" android:layout_height="fill_parent" android:alpha="0.0" />
    </FrameLayout>
</com.android.keyguard.sec.KeyguardUnlockView>

 

4. 위 소스를 모두 지운후에 아래와 같은 새로운 소스를 작성합니다. (소스 다운로드 :  source.txt)

 <?xml version="1.0" encoding="utf-8"?>
<com.android.keyguard.sec.KeyguardUnlockView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/keyguard_unlock_view" android:layout_width="fill_parent" android:layout_height="500.0dip" android:contentDescription="@string/keyguard_accessibility_swipe_unlock" androidprv:layout_maxHeight="500.0dip" androidprv:layout_maxWidth="@dimen/keyguard_security_width"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard">
    <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
        <LinearLayout android:layout_gravity="center" android:orientation="vertical" android:id="@id/keyguard_unlock_view_frame" android:background="@drawable/kg_bouncer_bg_white" android:layout_width="fill_parent" android:layout_height="fill_parent">
            <include android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/keyguard_message_area" />
            <FrameLayout android:layout_width="fill_parent" android:layout_height="0.0dip" android:layout_weight="1.0" />
            <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <LinearLayout android:gravity="bottom" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:layout_weight="1.0">
                    <TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="bottom|center" android:id="@id/keyguard_unlock_view_help_text" android:paddingLeft="19.0dip" android:paddingRight="19.0dip" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#99000000" style="@style/keyguard_text_shadow" />
                    <TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:gravity="center_horizontal" android:layout_gravity="bottom|center" android:id="@id/keyguard_unlock_view_voice_help_text" android:paddingLeft="19.0dip" android:paddingRight="19.0dip" android:visibility="gone" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/lockscreen_voiceunlock_failed_to_recognise_voice_text" android:shadowColor="#99000000" style="@style/keyguard_text_shadow" />
                    <include android:gravity="center_horizontal" android:layout_gravity="bottom|center" android:orientation="vertical" android:id="@id/keyguard_selector_fade_container" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/keyguard_emergency_carrier_area_unlock" />
                </LinearLayout>
                <include android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/keyguard_camera_shortcut" />
    <include android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/keyguard_guest_selector" />
            </LinearLayout>
            <com.android.keyguard.sec.KeyguardShortcutView android:gravity="center" android:id="@id/keyguard_shortcutview_root" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/kg_unlock_shortcut_margin_top" android:layout_marginBottom="@dimen/kg_unlock_shortcut_margin_bottom" />
        </LinearLayout>
        <ImageView android:id="@id/keyguard_unlock_bouncer" android:background="@drawable/kg_bouncer_bg_white" android:layout_width="fill_parent" android:layout_height="fill_parent" android:alpha="0.0" />
    </FrameLayout>
</com.android.keyguard.sec.KeyguardUnlockView>

 

5. 컴파일 후 적용 하면 아래와 같은 동영상처럼 락스크린에 카메라 바로가기 기능이 추가 됩니다.

 

 


댓글 5
댓글 쓰기 권한이 없습니다.
분류 정렬 목록 검색 쓰기
List of Articles
제목 글쓴이 추천 조회 날짜
강좌 갤4 한손모드 적용 강좌 5 file 칼카스 9 7211 2014.05.20
NEW Android "Sticky" Thread 1 EXODUS_Q™ 2 3642 2014.05.19
싯유 통신사 추노 마크 변경 초간단법 3 file 샤샤로 10 5714 2014.05.18
노트2 킷캣펌 블라인드 수채화 컬러팝 락 효과 활성화시키기 31 세나☆ 2 12116 2014.05.15
삼성 킷캣 카메라 무음 설정 (기본 어플) 8 file 안개곰 15 11401 2014.05.14
내장벨소리 삭제하는법 5 file GalaxyNote 7497 2014.05.14
삼성 갤럭시노트3를 USB 3.0으로 연결해보세요! 13 조남식 12 8838 2014.05.13
강좌 갤럭시 S5 디바이스 옵션 구현하기 18 file 흰고양이 23 13582 2014.05.11
구글에서 잘 몰랐던 기능들, 알아보자 22 file manho 14 4598 2014.05.10
삼성앱스에서 CamCard 무료로 풀렸네요... 9 file 쌀강아지 3 6852 2014.05.10
노트 10.1 구버전에 에어커맨드가 포팅됐습니다. 11 file Kuntu★ 2 10010 2014.05.08
강좌 [강좌]삼성 TW UI -> 구글 HOLO UI 변경방법 8 푸우♡ 21 10204 2014.05.08
강좌 [강좌]환경설정창에 나만의 메뉴를 만들어보자! 4 푸우♡ 12 6588 2014.05.08
강좌 [강좌]안드로이드 4.4 잠금화면에 카메라바로가기 기능 넣기 5 푸우♡ 13 12327 2014.05.08
강좌 [강좌] Data Use Bar / Ram Use Bar 색상 변경하기 푸우♡ 6 6054 2014.05.08
강좌 [강좌]해당 앱색상에 맞게 상단바 변경하는 방법 9 푸우♡ 16 7357 2014.05.08
강좌 Galaxy S5에 Knox 활성화 시키기. (강좌) 1 Hearten™ 6 10325 2014.05.08
quincykt님께서 올려주신 AT&T 노트 펌웨어 포팅본 MMS fix 예상 방법... 4 bestmjh47 6 8494 2014.05.06
Wi-Fi PowerSave Mode의 비밀? 6 file Freezer 5 11707 2014.05.05
(루팅) 삼성 킷캣기기(S4A) 컬러팝(파티클락) 활성시키기 42 file 안개곰 15 14071 2014.05.04
2014 루팅펌웨어 만들기 10 file 켈크 29 15616 2014.05.02
기어2 기어핏 카톡 단체방 알림 안받기 1 file apttiva 10463 2014.05.01
resources.arsc와 classes.dex의 기본개념. 11 file EXODUS_Q™ 12 14779 2014.04.30
상단바에 보이지 않는 키 설치하기 2 들레아빠 11 5331 2014.04.29
강좌 안드로이드 기능을 이용하여 폰찾기 6 file 『Sniper™ 2 3670 2014.04.27
xprivacy 사용 태블릿 카카오톡 연동 사용 팁 16 file apttiva 8 20538 2014.04.27
푸우님의 S5 UI for Note3 설치 시 "소프트웨어 업데이트" 강종 3 file rhkdwls7787 2 7153 2014.04.26
스크립트를 이용한 추노마크 제거하기 8 file 짱구삼촌 15 5755 2014.04.26
삼성뮤직 file gurwns 1961 2014.04.26
tinted status bar 에서 상단바 시계와 베터리 부분 색 통일 방법 7 dongyeol 1 6289 2014.04.24
1 - 27 - 135