#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2016
    Posts
    2
    Rep Power
    0

    Unhappy [LG G3] XML Mod Hiding Lockscreen Emergency Button under KK 4.4.2


    Since most mods known to man (Gravitybox, G3Tweaksbox, Xposed) fail to hide the Lockscreen Emergency Button,
    I thought it should be possible by modfiyng the LGKeyguard file.

    I decompiled the .apk file and found the "/res/layout/lge_keyguard_emergency_carrier_area.xml" file.

    It looks like this:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:weightSum="2.0">
            <com.lge.lockscreen.widget.EmergencyButton android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/emergency_call_button" android:layout_width="0.0dip" android:layout_weight="1.0" android:drawableStart="@drawable/lge_lockscreen_emergency_button" android:layout_marginEnd="2.0dip" style="@style/EmergencyCallBtn" />
            <Button android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/forgot_password_button" android:background="@drawable/btn_forgot" android:visibility="gone" android:layout_width="0.0dip" android:text="@string/sp_lockscreen_forgot_pattern_button_text_NORMAL" android:layout_weight="1.0" android:drawableStart="@drawable/lge_lockscreen_forgot_button" android:layout_marginStart="2.0dip" style="@style/ForgotBtn" />
            <com.lge.lockscreen.widget.mdm.LgeMdmRecoveryPasswordButton android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/resetPassword" android:background="@drawable/btn_forgot" android:visibility="gone" android:layout_width="0.0dip" android:layout_weight="1.0" android:layout_marginStart="2.0dip" style="@style/ForgotBtn" />
            <Button android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/kr_service_center" android:background="@drawable/btn_forgot" android:visibility="gone" android:layout_width="0.0dip" android:text="@string/sp_lockscreen_counseling_btn" android:layout_weight="1.0" android:drawableStart="@drawable/lge_lockscreen_emergency_button_blue" android:layout_marginStart="2.0dip" style="@style/ForgotBtn" />
        </LinearLayout>
    </LinearLayout>
    So far so good.

    The question is however: how do I have to mod it, in order for the Emergency button to completly vanish ?

    Thanks in advance for suggestions.

    -Rye-


    [[[Edit:]]]
    These are the sites that suggested attempts (but I failed to implement:
    LGG3 KK 4.4.2 (Root: yes Xposed: yes)
    /res/layout/lge_keyguard_emergency_carrier_area.xml
    Remove emergency call | LG G3
    Remove emergency call cho cc dng LG | C
    Request how I can remove emergency button on&hellip; | LG G3

    ====================================================
    ====================Fail:==(Button_remains)=========
    - Gravitybox
    - Lockscreen Tweaksbox
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2016
    Posts
    2
    Rep Power
    0
    Nevermind, got it working

    forum.xda-developers.com/lg-g3/development/hiding-lockscreen-emergency-button-kk-4-t3435808
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2017
    Posts
    2
    Rep Power
    0
    do let us know how did you do it

IMN logo majestic logo threadwatch logo seochat tools logo