Android Q Beta1

Android Q Beta1

E77b6a5f919f7366d94f21eee9a014f5?s=128

operandoOS

March 18, 2019
Tweet

Transcript

  1. Android Q Beta1 Otemachi.apk #02

  2. ஫ҙॻ͖ • ຊࢿྉ͸Beta1࣌఺Ͱͷ࿩Ͱ͢ • Beta1Ҏ߱ɺ࢓༷มߋ͕ߦΘΕΔՄೳੑ͕
 ͋Γ·͢ • ࣗ਎ͰυΩϡϝϯτͱڍಈΛ֬ೝ͢Δ͜ͱΛ ͓͢͢Ί͠·͢

  3. Android Q Beta Sample • αϯϓϧίʔυࡶʹॻ͍ͯ·͢ • https://github.com/operando/Android-Q- Sample

  4. Android Q Beta • ެࣜυΩϡϝϯτ • https://developer.android.com/preview • https://android- developers.googleblog.com/2019/03/

    introducing-android-q-beta.html
  5. Privacy in Android Q • Scoped storage • Background activity

    starts • App access to device location • Data & identifiers • Location & network
  6. Scoped storage • ͜Ε͕݁ߏ৭ʑมΘͬͯΔ • ͜Ε͚ͩͰ5෼࿩͠ऴΘͬͪΌ͏... • ֎෦ετϨʔδ࢖Θͳͯ͘΋ɺ஌ࣝͱͯ͠͸Ͳ͏ มΘΔͷ͔Λཧղ͓͍ͯͨ͠ํ͕͍͍ •

    https://developer.android.com/preview/ privacy/scoped-storage
  7. Scoped storage • ΞϓϦઐ༻ͷ sandboxετϨʔδʹ࡞੒ͨ͠ϑΝΠ ϧ͸ଞͷΞϓϦ͔ΒΞΫηεͰ͖ͳ͘ͳΔ • ΞϓϦઐ༻ͷ sandboxετϨʔδ •

    Context.getExternalFilesDirͱ͔ͰऔಘͰ͖Δ σΟϨΫτϦ • ͜Ε·Ͱ͸WRITE_EXTERNAL_STORAGE
 ύʔϛογϣϯͰଞͷΞϓϦͷϑΝΠϧ΋ѻ͑ͨʁ
  8. Scoped storage • ΞϓϦ͕ΞϯΠετʔϧ͞Εͯ΋֎෦ετϨʔδʹ
 ࡞ͬͨϑΝΠϧΛ࢒͍ͨ͠ͳΒshared collectionsʹ อଘ͢Δ • shared collections

    include • Photos & Videos • Music • Downloads
  9. Scoped storage • shared collectionʹଞΞϓϦ͕࡞ͬͨϑΝΠϧ ΛӾཡʹ͸ɺ໨తʹԠͯ͡ద੾ͳPermission͕ ඞཁ • shared collectionʹଞΞϓϦ͕࡞ͬͨϑΝΠϧ

    Λมߋʹ͸ɺಛఆͷRole͕ඞཁ • ӾཡͱมߋΛ෼͚ͯߟ͑Δ
  10. Scoped storage ͳΔ΄Ͳ Θ͔ΒΜ

  11. Scoped storage • ֎෦ετϨʔδΛ࢖Θͳ͍ΞϓϦ͸ؔ܎ͳ͍࿩ • ֎෦ετϨʔδΛ࢖ͬͯ΋ΞϓϦઐ༻ͷσΟϨ ΫτϦ͚͔ͩ͠࢖ͬͯͳ͍ΞϓϦ͸Өڹ͠ͳ͍ ࿩͔΋ • Storage

    Access Framework͕ศརͳͷͰ
 Ͱ͖Δ͚ͩ࢖͍͖͍ͬͯͨؾ࣋ͪ
  12. Background activity starts • όοΫάϥ΢ϯυͰActivityΛىಈ͢Δ͜ͱ΁
 ͷ੍ݶ • ௨஌ͷλοϓͳͲϢʔβૢ࡞Ҏ֎ͰόοΫάϥ ΢ϯυ͔ΒͷActivityىಈ͕Ͱ͖ͳ͘ͳΔ •

    มͳը໘ىಈͱ͔Ͱ΍͍ͬͯΔ࡞ۀͳͲ͕
 தஅ͞ΕͨΓ͠ͳͯ͘ࡁΉΑ͏ʹͳΔ
  13. ྫ͑͹... • IntentService͔ΒstartAcitivty͢Δͱ͔Ͱ͖ ͳ͘ͳΔ • Ϣʔβૢ࡞Ͱ͸ͳ͍ͷͰ

  14. App access to device location • Ϣʔβ͕όοΫάϥ΢ϯυͰͷҐஔ৘ใऔಘΛ ڐ͔͢Ͳ͏͔Λબ୒Ͱ͖ΔΑ͏ʹͳΔ • iOSͬΆ͍ͧ

    • όοΫάϥ΢ϯυͰҐஔ৘ใΛऔΒͳ͍ΞϓϦ ͸Өڹͳ͠
  15. Android Q features and APIs • TLS 1.3 support •

    Wi-Fi Direct connection API • Roles • Settings panels
  16. Roles • υΩϡϝϯτ • https://developer.android.com/preview/ features/roles

  17. Roles • OSϨϕϧͰΑ͘࢖ΘΕΔϢʔεέʔε͝ͱʹ RoleΛ࡞ͬͨ • RoleΛ༩͑ΒΕͨΞϓϦ͸Roleಛ༗ͷݖݶ͕ ෇༩͞ΕΔ • ֤Role͝ͱʹRoleΛ༩͑ΒΕΔΞϓϦ͸1ͭ

  18. Roles defined in Android Q

  19. Ͳ͏ͯ͠Role͕ඞཁͩͬͨͷ͔ʁ • Android QͷPrivacyपΓͷมߋͷӨڹΛड͚ ͳ͍Α͏ͳಛݖͷ࢓૊Έ͕ඞཁͩͬͨͷ͔ͳʔ ͱ͔ʁ • Privacy͸कΓͭͭɺϢʔβʹෆศΛ͔͚ͳ͍ ͨΊͱ͔ʁ •

    Ϣʔβ͕ೝΊͨΞϓϦ͸͋Δఔ౓༏۰͞ΕΔ
  20. Ͳ͏΍ͬͯRoleΛ༩͑Δ͔ • RoleΛ෇༩ͯ͠΄͍͠ΞϓϦ͕ɺʮRole෇༩ ͍ͯͩ͘͠͞ʂʯͱϢʔβʹ͓ئ͍͢Δ

  21. Roleͷ෇༩ΛϦΫΤετ͢Δ • RoleManager#createRequestRoleIntentͰ ࡞੒ͨ͠IntentΛstartActivityForResult͢Δ • onActivityResultͰϦΫΤετͷ݁ՌΛड͚ औΔ

  22. Roleͷ෇༩ΛϦΫΤετ͢Δ

  23. Roleͷ෇༩ΛϦΫΤετ͢Δ

  24. Roles Tips • adb shell dumpsys roleͰఆٛ͞Ε͍ͯΔ Role΍ɺ֤RoleΛ༩͑ΒΕͨΞϓϦ͕֬ೝͰ ͖Δ

  25. Settings panels • ಛఆͷઃఆΛγʔϜϨεʹදࣔͰ͖Δ • ྫ͑͹NFCΛONͨ͠Γ͢ΔͷʹɺઃఆΞϓϦΛ ։͘ͷͰ͸ͳ͘ɺSettings PanelΛ։͘ • Ϣʔβ͸ΞϓϦ͔Β཭୤͢Δ͜ͱͳ͘ɺઃఆΛ

    ม͑ΒΕΔ
  26. ωοτϫʔΫͷSettings panelΛ։͘ val i = Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY) startActivityForResult(i)

  27. ωοτϫʔΫͷSettings panelΛ։͘

  28. Settings panels • UI෦෼͕SliceͰ࣮૷͞ΕͯΔ • ϥούʔ͕AndroidXͰಋೖ͞ΕΔΒ͍͠

  29. Android Q Beta • ଞʹ΋৭Μͳมߋ͕ೖͬͯΔͷͰɺͥͻެࣜ υΩϡϝϯτಡΜͰɺίʔυΛॻ͍ͯɺڍಈ Λ͔֬ΊͯΈ͍ͯͩ͘͞ʂ • ެࣜυΩϡϝϯτ •

    https://developer.android.com/preview
  30. Thanks!!