Share
Embed
Android Bazaar and Conference 2021 Spring
2021年6月21日に開催された「Android Bazaar and Conference 2021 Spring」の発表資料です。
発表動画
https://www.youtube.com/watch?v=DfJ5CNdNR3k&t=1715s
ARIYAMA Keiji
June 20, 2021
Transcript
61 slides
-
࣍ w ͡Ίʹ w &YQPTVSF/PUJ fi DBUJPOT"1*ͱ w ৮֬ೝΞϓϦʮ$0$0"ʯͷ&YQPTVSF8JOEPXNPEFରԠ w
9BNBSJO͚&/"1*ϥΠϒϥϦ$BQQVDDJOP w &YQPTVSF8JOEPXNPEFҠߦʹ͋ͨͬͯͷҙ https://speakerdeck.com/keiji/android-bazaar-and-conference-2021-spring -
C-LIS CO., LTD. ༗ࢁܓೋʢ"3*:".",FJKJʣ $-*4$0 -5% Photo : Koji
MORIGUCHI (MORIGCHOWDER) "OESPJEΞϓϦ։ൃνϣοτσΩϧ ػցֶशͪΐͬͱͬͨ͜ͱ͋Γ·͢ ৮֬ೝΞϓϦ$0$0"044ίϥϘϨʔλʔ https://speakerdeck.com/keiji/android-bazaar-and-conference-2021-spring -
&YQPTVSF/PUJ fi DBUJPOT"1* &YQPTVSF/PUJ fi DBUJPOTʢ৮֬ೝʣ"1*ɺεϚʔτϑΥϯͷ#MVFUPPUIΛ ར༻ͯ͠ɺਓͱਓ͕৮ͨ͜͠ͱΛݕɺه͢ΔͨΊͷΈɻ (PPHMFͱ"QQMF͕ڞಉͰ։ൃ͍ͯ͠Δ͜ͱ͔Βɺ("&/ʢ(PPHMF"QQMF &YQPTVSF/PUJ fi
DBUJPOʣͱݺΕΔ͜ͱ͋Δɻ &YQPTVSF/PUJ fi DBUJPOT"1*ʢ&/"1*ʣΛͬͨΞϓϦΛʮ৮֬ೝΞϓϦʯ ͱݴ͏ɻ ৮֬ೝΞϓϦͷར༻ऀɺར༻ऀ͕৽ܕίϩφΠϧεʢ$07*%ʣײછ ͷཅੑ͕֬ఆͨ͠ͱ͖ʹɺҰఆظؒʢײછྗΛ࣋ͭͱ͞ΕΔظؒʣʹ৮͠ ͨଞͷ৮֬ೝΞϓϦͷར༻ऀʹಗ໊Ͱ௨Ͱ͖Δɻ -
4FSWJDF%BUBηΫγϣϯ 17 16 6f fd 29 ac 0d 91
7a 59 97 2d 63 cd b2 cd b5 89 17 40 35 f6 0e b9 Rolling Proximity Identi fi er 16 bytes Encrypted Metadata 4 bytes Length 1 byte Type 1 byte UUID 1 byte 23 0xfd6f 16 https://covid19-static.cdn-apple.com/applications/covid19/current/static/contact-tracing/pdf/ExposureNoti fi cation-BluetoothSpeci fi cationv1.2.pdf -
3PMMJOH1SPYJNJUZ*EFOUJ fi FSʢ31*ʣ 17 16 6f fd 29 ac
0d 91 7a 59 97 2d 63 cd b2 cd b5 89 17 40 35 f6 0e b9 Rolling Proximity Identi fi er 16 bytes Encrypted fi cation-BluetoothSpeci fi cationv1.2.pdf -
31*5&,͔Βੜ͞ΕΔ 5FNQPSBSZ&YQPTVSF,FZʢ5&,ʣ Ұఆ࣌ؒͰมߋ͞ΕΔCZUFͷϥϯμϜͳɻݱࡏͷ༷Ͱ࣌ؒʹҰճม ߋ͞ΕΔͨΊɺʮ࣍ݤʯͱݺΕΔ͜ͱ͋Δɻ 5&,ͷ༗ޮظؒ i ʹੜ͞ΕΔ31*ɺ࣍ͷࣜͰද͞ΕΔɻ TEK →
RPIͷܭࢉ͔ΜͨΜ RPI → TEKΛܭࢉ͢ΔͷΉ͔͍ͣ͠ https://covid19-static.cdn-apple.com/applications/covid19/current/static/contact-tracing/pdf/ExposureNoti fi cation-CryptographySpeci fi cationv1.2.pdf RPIKi ← HKDF(teki, NULL, UTF8(“EN-RPIK”), 16) RPIi,j ← AES128(RPIKi, PaddedDataj) ظؒ j ͷใؚ͕·ΕΔ -
அΩʔΛ அΩʔαʔόʔཅੑऀͷ5&,Λ·ͱΊͯిࢠॺ໊Λͯ͠ʮஅΩʔʢ%JBHOPTJT ,FZʣʯΛ࡞ɺެ։͢Δɻ ৮֬ೝΞϓϦɺҰఆ࣌ؒ͝ͱʹஅΩʔαʔόʔʹஅΩʔΛϦΫΤετɾμϯ ϩʔυ͢Δɻ அΩʔαʔόʔ ৮֬ೝΞϓϦ TEK TEK
TEK TEK TEK TEK ిࢠॺ໊ அΩʔ ৮֬ೝΞϓϦ ৮֬ೝΞϓϦ -
"exposure_summary": { "AttenuationDurationsInMinutes": [ 1800, 480, 0 ], "DaysSinceLastExposure": 0,
"MatchedKeyCount": 2, "MaximumRiskScore": 255, "SummationRiskScore": 54560 }, … &YQPTVSF4VNNBSZ &YQPTVSF*OGPSNBUJPO https://github.com/keiji/chino/wiki/Sample-ExposureData-iOS-(V1) "exposure_informations": [ { "AttenuationDurationsInMinutes": [ 1436, 0, 0 ], "AttenuationValue": 26, "DateMillisSinceEpoch": 1622851200000, "Duration": 30.0, "TotalRiskScore": 256, "TransmissionRiskLevel": 4 }, … https://github.com/keiji/chino/wiki/Sample-ExposureData-Android-(Legacy-v1) -
&ODSZQUFE.FUBEBUB 17 16 6f fd 29 ac 0d 91
7a 59 97 2d 63 cd b2 cd b5 89 17 40 35 f6 0e b9 Rolling Proximity Identi Metadata 4 bytes Length fi cation-BluetoothSpeci fi cationv1.2.pdf -
&ODSZQUFE.FUBEBUB ʠ"TTPDJBUFE&ODSZQUFE.FUBEBUB "&. " QSJWBDZQSFTFSWJOHFODSZQUFENFUBEBUBUIBUTIBMM CFVTFEUPDBSSZQSPUPDPMWFSTJPOJOHBOEUSBOTNJU 5Y QPXFSGPSCFUUFSEJTUBODFBQQSPYJNBUJPO 5IF"TTPDJBUFE&ODSZQUFE.FUBEBUBDIBOHFT
BCPVUFWFSZNJOVUFT BUUIFTBNFDBEFODFBT UIF3PMMJOH1SPYJNJUZ*EFOUJ fi FS UPQSFWFOUXJSFMFTT USBDLJOHPGUIFEFWJDFʡ xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxx xx xx Major Minor 35 f6 0e b9 Reserved 1 byte Transmit power level 1 byte Versioning 1 byte LSB fi rst Reserved 1 byte Decrypt AES-CTR Reserved https://covid19-static.cdn-apple.com/applications/covid19/current/static/contact-tracing/pdf/ExposureNoti fi cation-BluetoothSpeci fi cationv1.2.pdf https://covid19-static.cdn-apple.com/applications/covid19/current/static/contact-tracing/pdf/ExposureNoti fi cation-CryptographySpeci fi cationv1.2.pdf -
5SBOTNJUQPXFSMFWFMʢ59@QPXFSʣͱ344*DPSSFDUJPO σόΠε͝ͱͷిಛੑʹΑΓڑͷܭଌޡࠩΛվળ͢ΔΈɻ ൃ৴ଆσόΠεɺൃ৴͢Δใʹɺ͋Β͔͡Ίܭଌͯ͋͠Δʮૹ৴ిڧ ͷิਖ਼ʢ5SBOTNJTTJPOQPXFSMFWFMʣʯΛՃ͢Δɻ ·ͨड৴ଆσόΠεɺใΛड৴ͨ͠ࡍʹ344*ʹ͍ͭͯܭଌࡁΈͷิਖ਼Λ ద༻͢Δ͜ͱͰɺڑͷܭଌޡࠩΛվળ͢Δɻ ֤σόΠεͷิਖ਼ެ։͞Ε͍ͯΔɻ IUUQTEFWFMPQFSTHPPHMFDPNBOESPJEFYQPTVSFOPUJ fi DBUJPOT
fi MFTFODBMJCSBUJPODTW (PPHMFɺϝʔΧʔʹิਖ਼ͷܭଌͱఏڙΛݺͼ͔͚͍ͯΔɻ https://developers.google.com/android/exposure-noti fi cations/ble-attenuation-procedure -
όʔδϣϯͷมભ "OESPJE v1.5 earlier v1.5 - July 2020 v1.6 -
August 2020 v1.7 - September 2020 v1.7.2 - October 2020 v1.8 - January 2021 J04 iOS 13.5 - May 2020 iOS 13.6 - July 2020 iOS 13.7 - September 2020 iOS 12.5 - December 2020 iOS 14.4 - January 2021 -
J04 iOS 13.5 - May 2020 iOS 13.6 - July
2020 iOS 13.7 - September 2020 iOS 12.5 - December 2020 iOS 14.4 - January 2021 "OESPJE v1.5 earlier v1.5 - July 2020 v1.6 - August 2020 v1.7 - September 2020 v1.7.2 - October 2020 v1.8 - January 2021 ݄ͷΞοϓσʔτͰ&YQPTVSF8JOEPX͕ಋೖ ExposureSummary ExposureInformation DailySummary ExposureWindow -
"exposure_summary": { "AttenuationDurationsInMinutes": [ 1800, 480, 0 ], "DaysSinceLastExposure": 0,
"MatchedKeyCount": 2, "MaximumRiskScore": 255, "SummationRiskScore": 54560 }, … &YQPTVSF4VNNBSZ &YQPTVSF*OGPSNBUJPO https://github.com/keiji/chino/wiki/Sample-ExposureData-iOS-(V1) "exposure_informations": [ { "AttenuationDurationsInMinutes": [ 1436, 0, 0 ], "AttenuationValue": 26, "DateMillisSinceEpoch": 1622851200000, "Duration": 30.0, "TotalRiskScore": 256, "TransmissionRiskLevel": 4 }, … https://github.com/keiji/chino/wiki/Sample-ExposureData-Android-(Legacy-v1) -
"daily_summaries": [ { "DaysSinceEpoch": 1622937600000, "DaySummary": { "MaximumScore": 1860.0, "ScoreSum":
51660.0, "WeightedDurationSum": 51660.0 }, "ConfirmedClinicalDiagnosisSummary": null, "ConfirmedTestSummary": { "MaximumScore": 1860.0, "ScoreSum": 51660.0, "WeightedDurationSum": 51660.0 }, "RecursiveSummary": null, "SelfReportedSummary": null }, %BJMZ4VNNBSZ &YQPTVSF8JOEPX "exposure_windows": [ { "CalibrationConfidence": 3, "DateMillisSinceEpoch": 1622937600000, "Infectiousness": 1, "ReportType": 1, "ScanInstances": [ { "MinAttenuationDb": 24, "SecondsSinceLastScan": 300, "TypicalAttenuationDb": 25 }, { "MinAttenuationDb": 24, "SecondsSinceLastScan": 240, "TypicalAttenuationDb": 25 }, … https://github.com/keiji/chino/wiki/Sample-ExposureData-iOS-(V2) https://github.com/keiji/chino/wiki/Sample-ExposureData-Android-(Exposure-Window-mode) ؒҧ͍ -
J04 iOS 13.5 - May 2020 iOS 13.6 - July
2020 iOS 13.7 - September 2020 iOS 12.5 - December 2020 iOS 14.4 - January 2021 "OESPJE v1.5 earlier v1.5 - July 2020 v1.6 - August 2020 v1.7 - September 2020 v1.7.2 - October 2020 v1.8 - January 2021 ϓϥοτϑΥʔϜͰ"1*ͷݺͼํ͕ҟͳΔ Version 2 Version 1 ExposureWindow mode Legacy v1 mode -
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <dict> <key>com.apple.developer.exposure-notification</key> <true/> <key>com.apple.developer.exposure-notification-test</key> <true/> <key>com.apple.developer.exposure-notification-test-skip-file-verification</key> <true/> </dict> </plist> J04 "QQMF͔ΒೝূΛड͚ͨ։ൃऀΞΧϯτͰൃߦͨ͠ಛผͳϓϩϏδϣχϯά ϓϩϑΝΠϧΛ͏͜ͱͰσόοάϞʔυΛ༗ޮʹͨ͠ΞϓϦΛΠϯετʔϧ Ͱ͖Δɻ Entitlements.plist -
9BNBSJO&YQPTVSF/PUJ fi DBUJPO 9BNBSJOެࣜͷ&/"1*༻ͷϥΠϒϥϦɻ $0$0"ʢຊʣͱ4NJUUFTUPQQʢσϯϚʔΫɾϊϧΣʔʣ͕࠾༻͍ͯ͠ Δɻ $0$0" https://github.com/cocoa-mhlw/cocoa 4NJUUFTUPQ https://github.com/folkehelseinstituttet/Fhi.Smittestopp.App
https://github.com/xamarin/XamarinComponents/tree/main/XPlat/ExposureNoti fi cation -
4NJUUF4UPQQ&YQPTVSF8JOEPXNPEFʹରԠ /V(FUύοέʔδʢ9BNBSJO&YQPTVSF/PUJ fi DBUJPOBMQIBOVQLHʣ ΛϩʔΧϧʹ͍࣋ͬͯΔɻ https://github.com/folkehelseinstituttet/Fhi.Smittestopp.App/tree/dev/NDB.Covid19/ TempNugetFeed ͱͱόοΫάϥϯυॲཧΛಠ࣮ࣗ͢ΔͳͲɺ 9BNBSJO&YQPTVSF/PUJ fi
DBUJPOʹґଘ͠ͳ͍Έʹ͍ͯͨ͠ɻ https://github.com/folkehelseinstituttet/Fhi.Smittestopp.App/blob/dev/NDB.Covid19/ NDB.Covid19.iOS/Utils/BackgroundServiceHandler.cs https://github.com/folkehelseinstituttet/Fhi.Smittestopp.App/issues/223 -
$BQQVDDJOPʢΧϓνʔϊʣͱ Φʔϓϯιʔεͷ9BNBSJO͚&/"1*ϥΠϒϥϦɻ 9BNBSJO&YQPTVSF/PUJ fi DBUJPOͷΑ͏ʹόοΫάϥϯυॲཧΛϋϯυϦϯ ά͠ͳ͍ɻ ϓϥοτϑΥʔϜʢ"OESPJEJ04ʣͱ&/"1*ͷόʔδϣϯʢ-FHBDZW &YQPTVSF8JOEPXNPEFʣͦΕͧΕઃఆ߲Λಠཱ͍ͯ͠Δɻ https://github.com/keiji/chino/wiki/Default-ExposureCon fi
guration "OESPJEJ04ͷബ͍ϥούʔͱͯ͠ಈ࡞͢Δ͜ͱΛࢦ͍ͯ͠Δɻ .*5ϥΠηϯεɻ https://github.com/keiji/chino -
"UUFOVBUJPO%VSBUJPO5ISFTIPME "apple_exposure_config_v2": { "attenuation_duration_thresholds": [ 50, 70, 90 ],
https://developer.apple.com/documentation/exposurenoti fi cation/enexposurecon fi guration ը૾Apple DeveloperΑΓҾ༻ -
"OESPJEͱJ04ͰઃఆՄೳͳͷൣғ͕ҧ͏ ͷൣғ͕ҟͳΔ߲͕͋ΔͷͰҙ͕ඞཁɻ "infectiousness_weights": { "High": 1.0, "Standard": 1.0, "None":
1.0 }, "report_type_weights": { "Con fi rmedClinicalDiagnosis": 1.0, "Con fi rmedTest": 1.0, "SelfReport": 1.0, "Recursive": 1.0, "Revoked": 1.0, "Unknown": 1.0 } "infectiousness_high_weight": 100.0, "infectiousness_standard_weight": 100.0, "report_type_con fi rmed_clinical_diagnosis_weight": 100.0, "report_type_con fi rmed_test_weight": 100.0, "report_type_recursive_weight": 100.0, "report_type_self_reported_weight": 100.0, 100 - 250 (iOS) 1.0 - 2.5 (Android) -
"OESPJEͱJ04ͰઃఆՄೳͳͷൣғ͕ҧ͏ ͷൣғ͕ҟͳΔ߲͕͋ΔͷͰҙ͕ඞཁɻ "report_type_con fi rmed_clinical_diagnosis_weight": 99.0, "report_type_con fi rmed_test_weight":
250.0, "report_type_recursive_weight": 251.0, "report_type_self_reported_weight": 1.0, 100 - 250 (iOS) RpTyW { CTest 250, CClin 99, SelfR 1, Recurs 251 } -
"daily_summaries": [ { "DaysSinceEpoch": 1622937600000, "DaySummary": { "MaximumScore": 1860.0, "ScoreSum":
51660.0, "WeightedDurationSum": 51660.0 }, "ConfirmedClinicalDiagnosisSummary": null, "ConfirmedTestSummary": { "MaximumScore": 1860.0, "ScoreSum": 51660.0, "WeightedDurationSum": 51660.0 }, "RecursiveSummary": null, "SelfReportedSummary": null }, %BJMZ4VNNBSZ &YQPTVSF8JOEPX "exposure_windows": [ { "CalibrationConfidence": 3, "DateMillisSinceEpoch": 1622937600000, "Infectiousness": 1, "ReportType": 1, "ScanInstances": [ { "MinAttenuationDb": 24, "SecondsSinceLastScan": 300, "TypicalAttenuationDb": 25 }, { "MinAttenuationDb": 24, "SecondsSinceLastScan": 240, "TypicalAttenuationDb": 25 }, … https://github.com/keiji/chino/wiki/Sample-ExposureData-iOS-(V2) https://github.com/keiji/chino/wiki/Sample-ExposureData-Android-(Exposure-Window-mode) ؒҧ͍