Skip to content

Commit 425ecac

Browse files
committed
implement PIN/passphrase generation UI
Passphrases have been implemented using EFF's Long Wordlist of 6^5 words. In terms of entropy, an 8-word passphrase would have a search space of (6^5)^8 ~= 2^103. This wordlist can be easily changed; just make sure to update the various constants in the DicewareWordList class Test: Manual Test: atest -c SettingsUnitTests:com.android.settings.password.generate (after building with m and running emulator) Test: SetupWizard2
1 parent 3c1abb5 commit 425ecac

31 files changed

+11130
-10
lines changed

AndroidManifest.xml

+7
Original file line numberDiff line numberDiff line change
@@ -2977,6 +2977,13 @@
29772977
android:enableOnBackInvokedCallback="false"
29782978
android:exported="false" />
29792979

2980+
<activity android:name=".password.generate.GenerateLockPasswordActivity"
2981+
android:label="Generate"
2982+
android:excludeFromRecents="true"
2983+
android:theme="@style/GlifTheme.Light"
2984+
android:windowSoftInputMode="stateVisible|adjustResize"
2985+
android:exported="false" />
2986+
29802987
<activity android:name=".password.SetNewPasswordActivity"
29812988
android:theme="@android:style/Theme.NoDisplay"
29822989
android:exported="true"

0 commit comments

Comments
 (0)