Limit hotspot name and password to only lowercase letters (on 29+)

This commit is contained in:
Daniel Lublin
2021-08-11 13:12:57 +02:00
parent be9255029b
commit 09b065f46e

View File

@@ -437,9 +437,8 @@ class HotspotManager {
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
}
// exclude chars that are easy to confuse: 0 O, 5 S, 1 l I
private static final String chars =
"2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnopqrstuvwxyz";
// exclude chars that are easy to confuse: 0 (O), 5 (S), 1 l (I)
private static final String chars = "2346789abcdefghijkmnopqrstuvwxyz";
private String getRandomString(int length) {
char[] c = new char[length];