platform_system_core/adb/crypto
Joshua Duong 62a42ec8ca [adb] Correctly read host/user name on Windows.
Bug: 162111908

Test: On linux/mac:
HOSTNAME="" adb keygen mykey; cat mykey.pub # Also LOGNAME
HOSTNAME="测试" adb keygen mykey; cat mykey.pub
HOSTNAME="test" adb keygen mykey; cat mykey.pub

Test: On Windows:
set COMPUTERNAME=&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub" # Also USERNAME
set COMPUTERNAME=测试&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub"
set COMPUTERNAME=test&& adb keygen mykey
&& powershell -command "get-content -encoding utf8 mykey.pub"

Change-Id: I62c952c511a620286aa4e05b1763361406e9f89a
2020-08-03 18:55:17 -07:00
..
include/adb/crypto Move adb RSA utilities into its own library. 2020-02-11 20:49:20 -08:00
tests [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
Android.bp [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
key.cpp Move adb RSA utilities into its own library. 2020-02-11 20:49:20 -08:00
rsa_2048_key.cpp [adb] Correctly read host/user name on Windows. 2020-08-03 18:55:17 -07:00
x509_generator.cpp Move adb RSA utilities into its own library. 2020-02-11 20:49:20 -08:00