Skip to content
Snippets Groups Projects
  1. Jun 04, 2018
    • Sundong Ahn's avatar
      com.android.mediadrm.signer is built with java_sdk_library · 63bdde81
      Sundong Ahn authored
      The com.android.mediadrm.signer is built with java_sdk_library
      and api files are added by running "make update-api".
      The com.android.mediadrm.signer is removed in platform.xml
      since it will be made auto generation by soong when the library is
      built with java_sdk_library.
      
      Bug:77577799
      Test: make -j
      Test: make checkapi
      
      Merged-In: I0e773615abe6aa8d757e489de2b9d807cd356146
      Change-Id: I0e773615abe6aa8d757e489de2b9d807cd356146
      (cherry picked from commit 2e1089ba)
      63bdde81
  2. Jun 01, 2018
  3. May 31, 2018
  4. May 30, 2018
  5. May 29, 2018
  6. May 28, 2018
  7. May 26, 2018
  8. May 25, 2018
    • Hall Liu's avatar
      Add CallAudioState ctor as TestApi · 378f1f49
      Hall Liu authored
      Needed for CTS testing
      
      Bug: 79528185
      Test: CTS
      Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220
      Merged-In: Iad154257a93cc776d5800527e46e777fd6c88220
      378f1f49
    • Bryan Henry's avatar
    • Treehugger Robot's avatar
    • Tetsutoki Shiozawa's avatar
      Fix: ConnectivityManager is initialized with a wrong context · f9f15fce
      Tetsutoki Shiozawa authored
      ActivityThread#setHttpProxy uses a system context to get
      a ConnectivityManager instance. If it's not already cached, the
      system service registry will cache this instance initialized
      with the system context, and subsequent calls to get this service
      will return the bad instance.
      This patch uses the application context instead, unless it's
      not available for some unlikely reason.
      
      A possible symptom of this issue is to have Bluetooth tethering
      failing with a security exception, because it's requested by
      the "android" package without system uid.
      
      Merged-In: Ib8815f010883cdb94fcad2cdfb237de39327b20a
      Bug: 73572062
      Change-Id: Id652c1625194dc73dcbf8dfcad4b4e2e6fbebf4e
      f9f15fce
    • Treehugger Robot's avatar
      Merge changes from topic "location_provider" · 79b473ed
      Treehugger Robot authored
      * changes:
        Remove FlpHardwareProvider
        Create the stubs lib for com.android.location.provider
      79b473ed
    • eddy-sh.chen's avatar
      Do not call finishKeyguardDrawn with PWM's mlock · 50016ca4
      eddy-sh.chen authored
      Otherwise it may cause a deadlock between
      PWM's mlock and WMS's mWindowMap.
      Just post the work to the policy handler instead.
      
      Bug: 80279029
      Change-Id: Idae333687cf5c88e1893ee216c278b9e6c17dd98
      50016ca4
    • Treehugger Robot's avatar
    • Jiyong Park's avatar
      Remove FlpHardwareProvider · fa15a99f
      Jiyong Park authored
      After Treble's FLP merge into GNSS HAL, the FlpHardwareProvider is just
      an empty shell. Removing FusedLocation and/or Flp + Hardware classes
      altogether.
      
      Bug: 35726697
      Test: m -j
      Test: Open Google Map and then walk around. The dot moves as I walk.
      
      Merged-In: I7f413e38b57424e8ebb9d7d14d94f145a48d10f8
      Change-Id: I7f413e38b57424e8ebb9d7d14d94f145a48d10f8
      (cherry picked from commit 4cc3a1c0)
      fa15a99f
    • Jiyong Park's avatar
      Create the stubs lib for com.android.location.provider · 409e5d25
      Jiyong Park authored
      com.android.location.provider.stubs is the stubs library for the shared
      library com.android.location.provider. The stubs library is intended to
      provide the stable set of APIs to the apps implementing location
      provider.
      
      Without the stubs library, apps had to directly link to the shared
      library which is built without Android SDK and exposes private APIs that
      are not intended to be used by apps. This also has been causing the
      lin-type check warnings when the shared lib is used by apps built with
      SDK; apps built with SDK is not allowed to link to lib built without
      SDK. This has been reported as warnings but will soon be errors. Now
      such apps are required to link to the stubs lib, which is built with
      SDK.
      
      While building the stubs library, following APIs are made hidden because
      they are exposing private APIs from the Android platform.
      
      1) Activity* classes are removed from the API, as they are not intended
      to be used by apps since O.
      2) GeocodeProvider and GeofenceProvider are removed from the API.
      3) LocationProvider.mLocationManager is removed as it is exposing the
      private symbol ILocationProvider
      4) ProviderPropertiesUnbundle.getProviderProperties are removed from the
      API as it is exposing the private symbol ProviderProperties.
      5) The constructor of ProviderRequestUnbundled is removed since the
      class is intended to be instantiated by the service.
      
      Bug: 71420593
      Test: m -j com.android.location.provider.stubs
      
      Merged-In: I20aba7e9ca9c3adc75db241f37a55f0d657f3ced
      Change-Id: I20aba7e9ca9c3adc75db241f37a55f0d657f3ced
      (cherry picked from commit eee99986)
      409e5d25
    • Remi NGUYEN VAN's avatar
      b19a838f
    • Remi NGUYEN VAN's avatar
    • zengjing's avatar
      Do not setForceUse when a2dp config without change · 452da339
      zengjing authored
      
      When device connected with wired headset and without any bluetooth
      connection, APP may call MediaRouter to setForceUse to set FOR_MEDIA
      with FORCE_SPEAKER, then sound be output to SPEAKER. In this case,
      if setBluetoothA2dpOn(false) was called, FOR_MEDIA will be set with
      FORCE_NONE and sound be output to wird headset.
      
      The issue discussed above occurred on our device. We developed an FM radio APP.
      Beforce work, wired headset must be plugged in to be used as antennas. Then we
      setForceUse FOR_MEDIA to FORCE_SPEAKER, and audio stream was output to speaker.
      At this moment, if we play other sound (such as ScreenCapture sound),
      MediaRouterService will detected audio playbacked state changed. Because FM Audio
      was not monitor by AudioPlaybackMonitor, there was not any audio playback active.
      So, restoreBluetoothA2dp was called in the function of onAudioPlayerActiveStateChanged,
      which call AudioService.setBluetoothA2dpOn(false). As a result sound was switch to headset.
      
      There are two solutions to fix our issue.
      1) Check a2dp state before setBluetoothA2dpOn in MediaRouterService::restoreBluetoothA2dp,
         if a2dp state does not change, setBluetoothA2dpOn should not be called
      2) Check a2dp state before setForceUse in AudioService::setBluetoothA2dpOn,
         if a2dp state does not change, setForceUse should not be called
      Consdering that setBluetoothA2dpOn may be called by other method, we try to fix it
      with the second one.
      
      Test: NA
      
      Change-Id: I3a2e64e7d73d9aa9539176fea556feb433cb7211
      Signed-off-by: default avatarzengjing <zengjing@xiaomi.com>
      452da339
  9. May 24, 2018
Loading