Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31501616 authored by Alex Avance's avatar Alex Avance Committed by Michael Bestas
Browse files

Expose option to change the device hostname.

This adds an option to modify the device hostname used
in ip resolution. This is useful when connecting to the
android device in a dynamic dhcp environment.

Change-Id: I1d8302f06144dbb3e6ddba68594cc5718b4f0bb7
(based on commit Ibc145b74036617248d4f33c6866cc9c8a8cc8974)
parent 6caa65ba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -18,4 +18,7 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- Device Info screen. LineageOS legal. -->
    <string name="lineagelicense_title">LineageOS legal</string>

    <!-- Hostname setting -->
    <string name="device_hostname">Device hostname</string>
</resources>
+11 −0
Original line number Diff line number Diff line
@@ -135,6 +135,17 @@
        android:title="@string/debug_debugging_category"
        android:order="200">

        <org.lineageos.internal.preference.HostnamePreference
            android:key="device_hostname"
            android:title="@string/device_hostname"
            android:dialogTitle="@string/device_hostname"
            android:positiveButtonText="@string/wifi_save"
            android:negativeButtonText="@string/wifi_cancel"
            android:selectAllOnFocus="true"
            android:imeOptions="actionDone"
            android:inputType="textNoSuggestions"
            android:persistent="false" />

        <SwitchPreference
            android:key="enable_adb"
            android:title="@string/enable_adb"