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:
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-
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://ift.tt/IqUx8K;
<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> 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-
from xda-developers http://ift.tt/2baetWj
via IFTTT
No comments:
Post a Comment