Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Q Beta1

Android Q Beta1

operandoOS

March 18, 2019
Tweet

More Decks by operandoOS

Other Decks in Technology

Transcript

  1. Android Q
    Beta1
    Otemachi.apk #02

    View full-size slide

  2. ஫ҙॻ͖
    • ຊࢿྉ͸Beta1࣌఺Ͱͷ࿩Ͱ͢
    • Beta1Ҏ߱ɺ࢓༷มߋ͕ߦΘΕΔՄೳੑ͕

    ͋Γ·͢
    • ࣗ਎ͰυΩϡϝϯτͱڍಈΛ֬ೝ͢Δ͜ͱΛ
    ͓͢͢Ί͠·͢

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  5. Privacy in Android Q
    • Scoped storage
    • Background activity starts
    • App access to device location
    • Data & identifiers
    • Location & network

    View full-size slide

  6. Scoped storage
    • ͜Ε͕݁ߏ৭ʑมΘͬͯΔ
    • ͜Ε͚ͩͰ5෼࿩͠ऴΘͬͪΌ͏...
    • ֎෦ετϨʔδ࢖Θͳͯ͘΋ɺ஌ࣝͱͯ͠͸Ͳ͏
    มΘΔͷ͔Λཧղ͓͍ͯͨ͠ํ͕͍͍
    • https://developer.android.com/preview/
    privacy/scoped-storage

    View full-size slide

  7. Scoped storage
    • ΞϓϦઐ༻ͷ sandboxετϨʔδʹ࡞੒ͨ͠ϑΝΠ
    ϧ͸ଞͷΞϓϦ͔ΒΞΫηεͰ͖ͳ͘ͳΔ
    • ΞϓϦઐ༻ͷ sandboxετϨʔδ
    • Context.getExternalFilesDirͱ͔ͰऔಘͰ͖Δ
    σΟϨΫτϦ
    • ͜Ε·Ͱ͸WRITE_EXTERNAL_STORAGE

    ύʔϛογϣϯͰଞͷΞϓϦͷϑΝΠϧ΋ѻ͑ͨʁ

    View full-size slide

  8. Scoped storage
    • ΞϓϦ͕ΞϯΠετʔϧ͞Εͯ΋֎෦ετϨʔδʹ

    ࡞ͬͨϑΝΠϧΛ࢒͍ͨ͠ͳΒshared collectionsʹ
    อଘ͢Δ
    • shared collections include
    • Photos & Videos
    • Music
    • Downloads

    View full-size slide

  9. Scoped storage
    • shared collectionʹଞΞϓϦ͕࡞ͬͨϑΝΠϧ
    ΛӾཡʹ͸ɺ໨తʹԠͯ͡ద੾ͳPermission͕
    ඞཁ
    • shared collectionʹଞΞϓϦ͕࡞ͬͨϑΝΠϧ
    Λมߋʹ͸ɺಛఆͷRole͕ඞཁ
    • ӾཡͱมߋΛ෼͚ͯߟ͑Δ

    View full-size slide

  10. Scoped storage
    ͳΔ΄Ͳ
    Θ͔ΒΜ

    View full-size slide

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

    Ͱ͖Δ͚ͩ࢖͍͖͍ͬͯͨؾ࣋ͪ

    View full-size slide

  12. Background activity starts
    • όοΫάϥ΢ϯυͰActivityΛىಈ͢Δ͜ͱ΁

    ͷ੍ݶ
    • ௨஌ͷλοϓͳͲϢʔβૢ࡞Ҏ֎ͰόοΫάϥ
    ΢ϯυ͔ΒͷActivityىಈ͕Ͱ͖ͳ͘ͳΔ
    • มͳը໘ىಈͱ͔Ͱ΍͍ͬͯΔ࡞ۀͳͲ͕

    தஅ͞ΕͨΓ͠ͳͯ͘ࡁΉΑ͏ʹͳΔ

    View full-size slide

  13. ྫ͑͹...
    • IntentService͔ΒstartAcitivty͢Δͱ͔Ͱ͖
    ͳ͘ͳΔ
    • Ϣʔβૢ࡞Ͱ͸ͳ͍ͷͰ

    View full-size slide

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

    View full-size slide

  15. Android Q features and APIs
    • TLS 1.3 support
    • Wi-Fi Direct connection API
    • Roles
    • Settings panels

    View full-size slide

  16. Roles
    • υΩϡϝϯτ
    • https://developer.android.com/preview/
    features/roles

    View full-size slide

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

    View full-size slide

  18. Roles defined in Android Q

    View full-size slide

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

    View full-size slide

  20. Ͳ͏΍ͬͯRoleΛ༩͑Δ͔
    • RoleΛ෇༩ͯ͠΄͍͠ΞϓϦ͕ɺʮRole෇༩
    ͍ͯͩ͘͠͞ʂʯͱϢʔβʹ͓ئ͍͢Δ

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide