Skip to content
Snippets Groups Projects
  1. Jan 09, 2024
    • jasonwshsu's avatar
      [Drag To Hide] Shows notification when user drag-to-hide a11y floating button · 72fa82d5
      jasonwshsu authored
      * Click on notification to bring back a11y floating button
      * Swipe notification to remove a11y floating button and its services
      * A11y service key changed to dismiss notification
      * Align to create ACCESSIBILITY channel in systemui NotificationChannels
      
      Bug: 298718415
      Flag: ACONFIG com.android.systemui.floating_menu_drag_to_hide DEVELOPMENT
      Test: atest MenuViewLayerTest MenuNotificationFactoryTest NotificationChannelsTest
      
      Change-Id: Ie209ec946ea15903acfa6913492605277e9d7057
      72fa82d5
  2. Oct 13, 2023
    • Nicolò Mazzucato's avatar
      Refactor screenshot logging in case of external display · fe1006fb
      Nicolò Mazzucato authored
      This makes a few changes to make error logging more explicit in case of
      connected displays.
      
      - RequestProcessor now throws a typed exception, so we can avoid
      catching unrelated errors in TakeScreenshotExecutor
      - ScreenshotNotificationsController can be created only with a factory,
      providing a displayId. The display ID is used to append "(External
      Display)" string for error notifications happening on any display that
      is not the default one.
      - There can be a maximum of 2 error notifications: one for the default
      display (as before), and another that is shown in case of any error in
      any external display connected.
      - Error reporting for ScreenshotData processing or ScreenshotController
      issues has been completely moved to TakeScreenshotExecutor and scoped to
       display ID. TakeScreenshotService still reports some early failures
       unrelated to displays.
      - As we can't specify the displayId in UiEventLogger: if the failure is
      generic and we reach it from TakescreenshotService, only one
      SCREENSHOT_REQUESTED_... is reported. However, if the screenshot request
       reaches TakeScreenshotExecutor, then one event per display will be
       reported.
      
      Test: RequestProcessorTest, TakeScreenshotExecutorTest, TakeScreenshotServiceTest
      Bug: 296575569
      Bug: 290910794
      Change-Id: If187e9713b344605466a2dcb78267ededccfcc85
      fe1006fb
  3. Apr 10, 2023
    • Behnam Heydarshahi's avatar
      Sound Dose Notification · f8938900
      Behnam Heydarshahi authored
      Send a notification when SoundDose dialog is ignored by user to inform
      them that the audio was lowered by the system.
      
      CsdWarningDialog now uses DelayedExecutor instead of CountDownTimer.
      
      Implement tests for CsdWarningDialog and its client.
      
      Bug: b/267464531
      
      Test: atest VolumeDialogImplTest CsdWarningDialogTest
      
      Change-Id: I9c0ad6b410e0eb009b6a1ea032c7f618a4f4791a
      f8938900
  4. Feb 13, 2023
  5. Feb 04, 2023
    • Avichal Rakesh's avatar
      Usb: Add UVC support to UsbManager and UsbDeviceManager · 16f4589a
      Avichal Rakesh authored
      This CL adds support for UVC gadget function in USB System service.
      
      Bug: 242344221
      Test: Manually tested that the UVC function can be enabled when needed.
      API-Coverage-Bug: 267667903
      Change-Id: Ifd93f065426a224274ec39f53366dd6e3fee0bfa
      16f4589a
  6. Oct 19, 2022
    • Yohei Yukawa's avatar
      Stop using notification for IME switcher · e23a4c13
      Yohei Yukawa authored
      InputMethodManagerService has had logic to show notifications when the
      IME switcher icon cannot be shown on NavigationBar[1][2][3][4][5].
      
      With this CL, such a fallback behavior is completely removed.  Devices
      and form-factors that need a special handling need to come up with
      their own solution rather than relying on this historical notification
      mechanism.
      
       [1]: I2b9e955003c1f6703978824c947d5f322a039714
            7cfc0ed2
       [2]: Id36c8c34159bea8b72557b40bcf024d401f580b6
            01065a57
       [3]: I34a95732ef3e7c20d6549b57230c11f0c3db04d6
            d4b62599
       [4]: I58421143bee25be459f4f744688b37614a750051
            f62c0b83
       [5]: I6ad818fc9ef08991e24c5020498243f1fc417998
            24ab9e18
      
      Bug: 245989733
      Test: atest CtsPermission2TestCases:ProtectedBroadcastsTest
      Test: presubmit
      Change-Id: I3b09d2b05ba9bde686b360b9f720b5d4258551c3
      e23a4c13
  7. Sep 28, 2022
  8. Aug 24, 2022
    • Stephanie Bak's avatar
      Add notification ID for APM enhancement · e9f497ce
      Stephanie Bak authored
      Bug: 239983569
      Test: atest com.android.server.wifi
      Change-Id: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      Merged-In: I1cb0ec847040e47b563b39b622e12c49e41082bc
      Merged-In: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      e9f497ce
    • Stephanie Bak's avatar
      Add notification ID for APM enhancement · b839e240
      Stephanie Bak authored
      Bug: 239983569
      Test: atest com.android.server.wifi
      Change-Id: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      Merged-In: I1cb0ec847040e47b563b39b622e12c49e41082bc
      b839e240
  9. Aug 22, 2022
  10. Aug 18, 2022
  11. Aug 16, 2022
  12. Aug 10, 2022
  13. Jul 22, 2022
  14. Apr 14, 2022
    • Lucas Silva's avatar
      Add notification id for dock setup notifications. · ec09ba14
      Lucas Silva authored
      Bug: 227649823
      Test: locally on device
      Change-Id: I251ab6e25b58b566fc53f0fd5240db49b06c1d97
      ec09ba14
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · c60e7c41
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      
      Relands ag/16545010 after resolving post submit issues
      
      Revert "Revert "Guest mode updates to resolve privacy concerns in guest mode""
      This reverts commit dd5c4408.
      
      Change-Id: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      Merged-In: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      c60e7c41
  15. Apr 07, 2022
    • Yuri Lin's avatar
      Add strings & channel to be used for notification to review permissions. · 5abe07c3
      Yuri Lin authored
      Also changes the SYSTEM_CHANGES notification channel to be IMPORTANCE_DEFAULT (by deprecating the existing, unused one).
      
      Bug: 225373531
      Test: manual by forcing the notification to show
      
      Change-Id: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
      Merged-In: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
      5abe07c3
  16. Apr 06, 2022
  17. Mar 31, 2022
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · 5ca368a9
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      
      Relands ag/16545010 after resolving post submit issues
      
      Revert "Revert "Guest mode updates to resolve privacy concerns in guest mode""
      This reverts commit dd5c4408.
      
      Change-Id: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      5ca368a9
  18. Mar 24, 2022
    • Kedar Chitnis's avatar
      Revert "Guest mode updates to resolve privacy concerns in guest mode" · dd5c4408
      Kedar Chitnis authored
      Revert "Guest mode UX flow updates to user settings"
      
      Revert submission 16545010-kedarc-ephemeral-guest
      
      Reason for revert: A conflicting CL got merged after presubmits were triggerred, will rebase and push again
      Reverted Changes:
      I86a5a1571:Guest mode updates to resolve privacy concerns in ...
      I7cf205883:Guest mode UX flow updates to user settings
      
      Change-Id: I91093a241f31a82f427be24d03e6c922779ceed0
      dd5c4408
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · d96ba2de
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      Change-Id: I86a5a15715cc6dde0eae93d38cd1c5cef33d7c67
      d96ba2de
  19. Jan 25, 2022
    • Jing Ji's avatar
      Post notification on abusive background current drain · 0c660397
      Jing Ji authored
      Tapping on the notification will bring up the individual abusive
      app's battery settings page. It won't be re-posted after being
      dismissed until next day, in order to avoid from spamming the user.
      
      Bug: 200326767
      Bug: 203105544
      Test: FrameworksMockingServicesTests:BackgroundRestrictionTest
      Test: Manual - adb shell am set-bg-abusive-uids & verify notification
      Change-Id: I0b30014d748863c66c3845b5f310948a9493e302
      0c660397
  20. Jan 24, 2022
    • Florian Mayer's avatar
      [MTE] show notification if using MTE bootloader switch. · c3d0e6a8
      Florian Mayer authored
      ro.arm64.memtag.bootctl_supported can be set by OEMs that do not want to
      enable MTE by default yet but want to offer users a preview that can be
      enabled in the Developer Options. This developer option will reboot the
      phone and enable MTE. In that case we want to show a notification to
      make sure the user does not forget that it is enabled.
      
      Bug: 206895651
      Change-Id: Iaebc16d4b8d0da302f18709e23062f4a5bd58fe3
      c3d0e6a8
  21. Jan 14, 2022
  22. Jan 06, 2022
  23. Jul 08, 2021
  24. Apr 09, 2021
    • Chloris Kuo's avatar
      NAS Settings Migration · 3f03f514
      Chloris Kuo authored
      Change default NAS to AiAi for Pixel devices
      
      Bug: 173106358
      Test: manually on device, atest
      Change-Id: I2fe0b3eed479188509df5ce65d1b2a1281e6c85a
      3f03f514
  25. Mar 18, 2021
    • lucychang's avatar
      Prompt notifications for non-accessibility services · b98a658c
      lucychang authored
      Prompts a notification for the non-accessibility category service after
      24 hours enabled to alert users the service has powerful permissions to
      view and control the device. And the notification won't be resend to
      the same service by saving the dismiss record to Settings.
      
      Bug: 176965357
      Test: atest AccessibilitySecurityPolicyTest
            atest PolicyWarningUIControllerTest
            and manually test
      
      Change-Id: Id5daf7b14dc88cf3f71a53f46fa9a8f1dee91822
      b98a658c
  26. Jan 29, 2021
  27. Nov 12, 2020
    • ryanlwlin's avatar
      Show notification to promote window magnification mode available · 3badad79
      ryanlwlin authored
      The magnification mode is full-screen when the migrating deivce turns on
      magnification settings.
      We show a notification prompt the user that new window magnifier to
      guide the user to take a look.
      
      Bug: 168635084
      Test: 1. adb shell settings put secure \
            accessibility_show_window_magnification_prompt 1
            2. use full-screen magnification to see if it works well.
            atest WindowMagnificationPromptControllerTest
            atest FullScreenMagnificationGestureHandlerTest
      Change-Id: I40dfc49307d2dad380f1e662960d35f5cc5e7524
      3badad79
  28. Sep 30, 2020
    • Hui Yu's avatar
      Show a notification when a BG-launch FGS is restricted. · 12378c52
      Hui Yu authored
      Previously each BG-launch FGS that is restricted has a logcat message, now we
      also display a notification that has:
      Title: "Foreground Service BG-Launch Restricted"
      Content: "App restricted:" + app package name
      Detail: intent of the FGS.
      
      Use following command to turn on the FGS BG-launch restriction feature:
       adb shell device_config put activity_manager default_fgs_starts_restriction_enabled true
       adb shell device_config get activity_manager default_fgs_starts_restriction_enabled
      
      Bug: 157473819
      Test: Observe the notification when FGS BG-launch is restricted.
      atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testFgsStartFromBG
      
      Change-Id: Ia1ce1c7e103fbfa0a8487b0a3009b2d2ca61ba74
      12378c52
  29. Apr 16, 2020
  30. Feb 28, 2020
  31. Feb 22, 2020
    • Joshua Duong's avatar
      [adbwifi] Make AdbManager changes for adb over WiFi. · b06dc6aa
      Joshua Duong authored
      This CL has a couple of notable changes:
      - Add communication layer between adbd, system server, and Settings UI
      - Add system notification (Wireless debugging connected) when at least
        one device is connected.
      - Add trusted networks (BSSID) to the keystore.
        - Changed the keystore format to:
          <keyStore version="1">
          <adbKey ... />
          <wifiAP ... />
          </keyStore>
       - Currently, trusted networks don't have a expiration time. Also, only
         way to clear it is by blowing up the keystore (revoke permissions).
      - Add pairing mechanism:
        - Using libadbwifi_pairing_connection C++ library to pair a device
          using SPAKE2 protocol over TLS.
        - Register MDNS service for client discovery.
      - Removed ability to ctl.start/stop adbd from UsbDeviceManager
        - AdbService now controls when to do this
      
      Bug: 111434128, 119490154, 119492574
      
      Test: Manual. From developer options:
      1) USB debugging off, WiFi Debugging off
      - Ensure both transports are disabled by trying to connect via WiFi and
      USB.
      2) USB debugging on, WiFi Debugging off
      - Connections via USB are available, WiFi is disabled
      3) USB debugging off, WiFi Debugging on
      - Connections via WiFi are available (IP + port), USB is not available
      4) USB debugging on, WiFi Debugging on
      - Check both transports work
      
      Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
      Exempt-From-Owner-Approval: approved in aosp master
      (cherry picked from commit a5969b5a)
      b06dc6aa
    • Joshua Duong's avatar
      [adbwifi] Make AdbManager changes for adb over WiFi. · f24fb19d
      Joshua Duong authored
      This CL has a couple of notable changes:
      - Add communication layer between adbd, system server, and Settings UI
      - Add system notification (Wireless debugging connected) when at least
        one device is connected.
      - Add trusted networks (BSSID) to the keystore.
        - Changed the keystore format to:
          <keyStore version="1">
          <adbKey ... />
          <wifiAP ... />
          </keyStore>
       - Currently, trusted networks don't have a expiration time. Also, only
         way to clear it is by blowing up the keystore (revoke permissions).
      - Add pairing mechanism:
        - Using libadbwifi_pairing_connection C++ library to pair a device
          using SPAKE2 protocol over TLS.
        - Register MDNS service for client discovery.
      - Removed ability to ctl.start/stop adbd from UsbDeviceManager
        - AdbService now controls when to do this
      
      Bug: 111434128, 119490154, 119492574
      
      Test: Manual. From developer options:
      1) USB debugging off, WiFi Debugging off
      - Ensure both transports are disabled by trying to connect via WiFi and
      USB.
      2) USB debugging on, WiFi Debugging off
      - Connections via USB are available, WiFi is disabled
      3) USB debugging off, WiFi Debugging on
      - Connections via WiFi are available (IP + port), USB is not available
      4) USB debugging on, WiFi Debugging on
      - Check both transports work
      
      Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
      Exempt-From-Owner-Approval: approved in aosp master
      (cherry picked from commit a5969b5a)
      f24fb19d
    • Joshua Duong's avatar
      [adbwifi] Make AdbManager changes for adb over WiFi. · 6f3aaaa5
      Joshua Duong authored
      This CL has a couple of notable changes:
      - Add communication layer between adbd, system server, and Settings UI
      - Add system notification (Wireless debugging connected) when at least
        one device is connected.
      - Add trusted networks (BSSID) to the keystore.
        - Changed the keystore format to:
          <keyStore version="1">
          <adbKey ... />
          <wifiAP ... />
          </keyStore>
       - Currently, trusted networks don't have a expiration time. Also, only
         way to clear it is by blowing up the keystore (revoke permissions).
      - Add pairing mechanism:
        - Using libadbwifi_pairing_connection C++ library to pair a device
          using SPAKE2 protocol over TLS.
        - Register MDNS service for client discovery.
      - Removed ability to ctl.start/stop adbd from UsbDeviceManager
        - AdbService now controls when to do this
      
      Bug: 111434128, 119490154, 119492574
      
      Test: Manual. From developer options:
      1) USB debugging off, WiFi Debugging off
      - Ensure both transports are disabled by trying to connect via WiFi and
      USB.
      2) USB debugging on, WiFi Debugging off
      - Connections via USB are available, WiFi is disabled
      3) USB debugging off, WiFi Debugging on
      - Connections via WiFi are available (IP + port), USB is not available
      4) USB debugging on, WiFi Debugging on
      - Check both transports work
      
      Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
      Merged-In: I9f87679d195da99a55b6faf7131da1f1af65fe01
      Exempt-From-Owner-Approval: already approved
      6f3aaaa5
  32. Feb 21, 2020
    • Joshua Duong's avatar
      [adbwifi] Make AdbManager changes for adb over WiFi. · a5969b5a
      Joshua Duong authored
      This CL has a couple of notable changes:
      - Add communication layer between adbd, system server, and Settings UI
      - Add system notification (Wireless debugging connected) when at least
        one device is connected.
      - Add trusted networks (BSSID) to the keystore.
        - Changed the keystore format to:
          <keyStore version="1">
          <adbKey ... />
          <wifiAP ... />
          </keyStore>
       - Currently, trusted networks don't have a expiration time. Also, only
         way to clear it is by blowing up the keystore (revoke permissions).
      - Add pairing mechanism:
        - Using libadbwifi_pairing_connection C++ library to pair a device
          using SPAKE2 protocol over TLS.
        - Register MDNS service for client discovery.
      - Removed ability to ctl.start/stop adbd from UsbDeviceManager
        - AdbService now controls when to do this
      
      Bug: 111434128, 119490154, 119492574
      
      Test: Manual. From developer options:
      1) USB debugging off, WiFi Debugging off
      - Ensure both transports are disabled by trying to connect via WiFi and
      USB.
      2) USB debugging on, WiFi Debugging off
      - Connections via USB are available, WiFi is disabled
      3) USB debugging off, WiFi Debugging on
      - Connections via WiFi are available (IP + port), USB is not available
      4) USB debugging on, WiFi Debugging on
      - Check both transports work
      
      Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
      Exempt-From-Owner-Approval: approved in aosp master
      a5969b5a
  33. Feb 20, 2020
  34. Feb 13, 2020
    • Kumar Anand's avatar
      Wifi: Notification id for sim required · 37686b9e
      Kumar Anand authored
      Framework needs to launch a notification when
      wifi is disconnected due to SIM removal
      
      Bug: 147113247
      Test: atest FrameworksWifiTests
      Change-Id: I4901eda93ec46e577a8d947736b9f6a7b2f70f68
      37686b9e
  35. Feb 06, 2020
    • Soonil Nagarkar's avatar
      Add location notification and target sdk checks · a8717feb
      Soonil Nagarkar authored
      Check target SDKs to disallow using setSecureSetting with LOCATION_MODE
      and point clients to setLocationEnabled() instead. Show notifications to
      users when location settings are changed by the admin.
      
      Bug: 136219903
      Test: manual - triggered setLocationEnabled and observed notification
      Change-Id: I07c150e62230b06f76ec7bd5197a23e703ffb918
      a8717feb
Loading