Disable allowBackup, fix download-modus instruction text
This commit is contained in:
parent
4954c91d77
commit
21aa62c2d7
2 changed files with 18 additions and 69 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
<uses-feature android:name="android.hardware.usb.host" android:required="false"/>
|
<uses-feature android:name="android.hardware.usb.host" android:required="false"/>
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="false"
|
||||||
android:label="Atom Relay"
|
android:label="Atom Relay"
|
||||||
android:supportsRtl="true"
|
android:supportsRtl="true"
|
||||||
android:theme="@style/Theme.AppCompat.Light">
|
android:theme="@style/Theme.AppCompat.Light">
|
||||||
|
|
@ -30,13 +30,5 @@
|
||||||
android:name=".SettingsActivity"
|
android:name=".SettingsActivity"
|
||||||
android:label="Instellingen"
|
android:label="Instellingen"
|
||||||
android:parentActivityName=".MainActivity"/>
|
android:parentActivityName=".MainActivity"/>
|
||||||
|
|
||||||
<receiver
|
|
||||||
android:name=".UsbKeyReceiver"
|
|
||||||
android:exported="true">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
|
|
||||||
</intent-filter>
|
|
||||||
</receiver>
|
|
||||||
</application>
|
</application>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
@ -6,79 +6,36 @@
|
||||||
android:padding="24dp">
|
android:padding="24dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/keyHint"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Voer de HMAC sleutel in of sluit de relaismodule aan op de telefoon."
|
android:text="Sluit de ESP aan op USB en kies een actie."
|
||||||
android:textSize="14sp"
|
android:textSize="16sp"
|
||||||
android:textStyle="italic"
|
android:layout_marginBottom="24dp" />
|
||||||
android:layout_marginBottom="16dp" />
|
|
||||||
|
|
||||||
<TextView
|
<Button
|
||||||
android:layout_width="wrap_content"
|
android:id="@+id/exchangeKeyButton"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="HMAC Sleutel"
|
android:text="Sleutel Uitwisselen" />
|
||||||
android:textSize="20sp"
|
|
||||||
android:textStyle="bold"
|
<View
|
||||||
android:layout_marginBottom="8dp" />
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="1dp"
|
||||||
|
android:background="?android:attr/listDivider"
|
||||||
|
android:layout_marginTop="24dp"
|
||||||
|
android:layout_marginBottom="24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Voer de 64-teken hex sleutel in die de ESP op serial print na opstarten."
|
android:text="Zet de ESP in download-modus (houd reset 2s in tot de groene LED aangaat) en tik op 'Firmware Flashen'."
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:layout_marginBottom="16dp" />
|
android:layout_marginBottom="16dp" />
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical">
|
|
||||||
|
|
||||||
<EditText
|
|
||||||
android:id="@+id/keyInput"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:hint="C3F17B61..."
|
|
||||||
android:inputType="textPassword"
|
|
||||||
android:fontFamily="monospace"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:maxLength="64"
|
|
||||||
android:letterSpacing="0.05"
|
|
||||||
android:autofillHints=""
|
|
||||||
android:layout_marginEnd="8dp" />
|
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/toggleVisibility"
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:src="@drawable/ic_eye_closed"
|
|
||||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
||||||
android:contentDescription="Toon/verberg sleutel" />
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/keyError"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:textColor="@android:color/holo_red_dark"
|
|
||||||
android:textSize="14sp"
|
|
||||||
android:visibility="gone"
|
|
||||||
android:layout_marginTop="8dp" />
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/saveButton"
|
android:id="@+id/flashFirmwareButton"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Opslaan"
|
android:text="Firmware Flashen" />
|
||||||
android:layout_marginTop="24dp" />
|
|
||||||
|
|
||||||
<Button
|
</LinearLayout>
|
||||||
android:id="@+id/scanConnectButton"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Scan & Verbind"
|
|
||||||
android:layout_marginTop="8dp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue