Skip to content
  1. Sep 07, 2017
    • Hugo Benichi's avatar
      IP connectivity metrics: fix tests after proto update · 4eccf780
      Hugo Benichi authored
      Update to ipconnectivity.proto in commit
      6d2f506b broke the associated unit
      tests (Change-Id: I4cf5b95956df721aecd63fddfb026a7266c190b9)
      
      Bug: 34901696
      Bug: 65439160
      Test: runtest frameworks-net
      Merged-In: I57a6bad8a9836b1c45690c4589b416786ce1dfa0
      
      (cherry picked from commit 822c5bf7)
      
      Change-Id: I98b23b2208bbd7d12237fcb000f3cf10c53d9e55
      4eccf780
    • Hugo Benichi's avatar
      Connectivity metrics: update ipconnectivity.proto · 6022f7b6
      Hugo Benichi authored
      Bug: 34901696
      Bug: 65439160
      Test: $runtest frameworks-net
            build, flashed, booted phone, $ adb shell dumpsys connmetrics list
      
      Merged-In: I4cf5b95956df721aecd63fddfb026a7266c190b9
      
      (cherry picked from commit 6d2f506b)
      
      Change-Id: I0fb40d7b644786efc839468b2d7e1cfcedd71ad8
      6022f7b6
    • Rubin Xu's avatar
    • Rubin Xu's avatar
      Always add local subnet routes to the interface's routing table · 1bb5c081
      Rubin Xu authored
      For some networks such as mobile data connections, its LinkProperties
      does not contain routes for the local subnet so no such route is added
      to the interface's routing table. This can be problematic especially
      if the device is in VPN lockdown mode where there exists high-priority
      PROHIBIT routing rule which in turn blocks the network's default gateway
      route from being added (next hop address hitting the prohibit rule).
      
      We fix this by patching LinkProperties to always include direct connected routes
      when they are received by ConnectivityService. This has the added advantage that
      when apps get LinkProperties, they see the directly connected routes as well.
      
      Bug: 63662962
      Test: runtest frameworks-core -c android.net.LinkPropertiesTest
      Test: runtest frameworks-services -c com.android.server.ConnectivityServiceTest
      Test: Start with device with mobile data, set up ics-OpenVPN in always-on
            lockdown mode. Turn off mobile data then turn it back on, observe
            mobile data connectivity is restored and VPN successfully reconnects.
      Change-Id: I35b614eebccfd22c4a5270f40256f9be1e25abfb
      1bb5c081
  2. Sep 06, 2017
    • Treehugger Robot's avatar
    • fionaxu's avatar
      disable carrier actions on redirection by default · d9c7e1bd
      fionaxu authored
          1. the assumption of "carrier will redirect users to their captive
          portal page when users dont have data plan" might not be true for all
          carriers. We have seem issues like carriers random redirect users when
          they still have balance left.
          2. turn this off by default and turn it on if the carrier is
          behaving correctly and agree with it.
      
      Merged-in: I6bc2d8ba45958eaf09e09e3ea2e57c79e0ac461e
      Bug: 65113738
      Test: Manual
      Change-Id: I60be2de3aa227298e60ea7eb9535bad8967b1fe3
      d9c7e1bd
    • Adam Lesinski's avatar
    • Treehugger Robot's avatar
      3949701c
    • Colin Cross's avatar
    • Colin Cross's avatar
      Fix intermittent build failures with droiddoc generated sources · 5781a25f
      Colin Cross authored
      Jack builds fail very rarely with missing droiddoc generated
      source files.  This happens because jack builds have an extra
      rule that does a quick check of the sources and touches a
      jack.check.timestamp file.  The manual dependencies for the
      generated sources didn't cover this case.  If the sources are
      partially generated when the jack.check.timestamp rule runs,
      the rule can see partial sources and fail.  The same problem
      might also happen for javac builds after
      https://android-review.googlesource.com/c/platform/build/+/404743
      separated the source list generation rule out of the
      $(full_classes_jar) rule.
      
      Use LOCAL_ADDITIONAL_DEPENDENCIES instead, which covers these
      cases and will be updated to cover future changes.
      
      Bug: 65255877
      Test: m -j ANDROID_COMPILE_WITH_JACK=true out/target/common/obj/JAVA_LIBRARIES/android.test.runner.stubs_intermediates/jack.check.timestamp
            make sure sources are generated
      
      Change-Id: I4466b3128eb0bba6447c24abf921a6655a3d451f
      Merged-In: I4466b3128eb0bba6447c24abf921a6655a3d451f
      (cherry picked from commit 85ab406e)
      5781a25f
    • Treehugger Robot's avatar
      Merge "Separate GraphicsEnv from libui" · fb5369bc
      Treehugger Robot authored
      fb5369bc
    • Treehugger Robot's avatar
      6cfa7f2f
    • Kensuke Matsui's avatar
      Fix NPE in StatusBar#onBackPressed() · 8dd4d35a
      Kensuke Matsui authored
      StatusBar.mKeyguardUserSwitcher is instantiated
      only if multi user function is enabled.
      But mKeyguardUserSwitcher.hideIfNotSimple() is invoked
      without null check in StatusBar#onBackPressed().
      This causes NPE on multi user disabled devices.
      
      Fixes: 65391930
      Test: manual - tap Back key on lockscreen
      
      Change-Id: I528823fa832ee5096d73dea660997fc276d86c5c
      8dd4d35a
    • Treehugger Robot's avatar
      94f1fd0d
    • Jack He's avatar
      Bluetooth: Thread-safe binder invocation · 16eeac35
      Jack He authored
      * Binder object may become null between null check and actual invocation
        if using a instance private variable assignable by service connection
        callbacks
      * The solution to this problem without locking is to assign existing
        binder variable to a local final variable before the null check
      * Any further invocation to a disconnected binder object will result in
        RemoteException that is caught by the try-catch block
      * Read and write to volatile variable is always atomic and hence thread-safe
      * Removed unnecessary synchronization in BluetoothAdapter constructor
      * Private mConnection objects should be final
      * Simplfied several return statements where booleans can be returned
        directly
      * Removed unnecessary catches for NPE since there won't be any
      
      Bug: 64724692
      Test: make, pair and use devices, no functional change
      Change-Id: Ifc9d6337c0d451a01484b61243230725d5314f8e
      16eeac35
  3. Sep 05, 2017
    • Treehugger Robot's avatar
      7d2219d1
    • Jiyong Park's avatar
      Separate GraphicsEnv from libui · f012107a
      Jiyong Park authored
      GraphicsEnv class is separated from libui and became a standalone lib
      'libgraphicsenv'.
      
      Bug: 38097618
      Test: sailfish builds and boots
      Change-Id: I7a5c273ba9238c3a6c90e1de80b9e97fc0772188
      f012107a
    • Yifan Hong's avatar
    • Vinay Kalia's avatar
      Update documentation for startScan · 875d27e4
      Vinay Kalia authored
      With change c4a1e1, unfiltered BLE scans are stopped on screen off
      and resumed when screen is turned back on. This is done to save power.
      This change updates the documentation accordingly.
      
      BUG: 62264269
      Test: Documentation update.
      Change-Id: I2d8e9f9f122f978c4d4f59d4139cb51cd4e4a123
      875d27e4
    • Treehugger Robot's avatar
    • Hugo Benichi's avatar
      ConnectivityService: improve wakelock logging · c3318aa3
      Hugo Benichi authored
      This patch adds the following wakelock related counters to connectivity
      service dumps included in bug reports:
       - total number of wakelok acquisitions and releases
       - total cumulative wakelock duration
       - longest time the lock was held
      
      Bug: 65085354
      Test: runtest frameworks-net, also manually dumped connectivity service
            and check new logging
      
      Merged-In: I8f67750c2eea73abf3d44f7f6df484427a8ea3f9
      Merged-In: I93c0eb7c8add966378647400e11e33765d952345
      Merged-In: Iabe99993001e069b8a8077533bca1fa7fb2f59ba
      
      (cherry picked from commit 26bcfa19)
      
      Change-Id: I4d6bb43110916b440819813b478523546ac5570e
      c3318aa3
    • Hugo Benichi's avatar
      e6793f27
    • Treehugger Robot's avatar
    • Hugo Benichi's avatar
      Nat464Xlat: correct racefree teardown · ef502887
      Hugo Benichi authored
      This patch relays the NetworkBaseObserver notifications about nat
      464xlat stacked interfaces onto the ConnectivityService handler.
      
      This allows to process interface up and down notifications in the
      same thread context and eliminates several races:
      
        - NPE risk due to race between fixupLinkProperties called on
          ConnectivityService thread and interfaceRemoved called on
          NetworkManagementService thread.
        - stale LinkProperties pointer reads in both NetworkBaseObserver
          callbacks not called on ConnectivityService handler.
        - removes the race between stop() and interfaceRemoved().
        - removes superfluous LinkProperties notifications when stop() is
          called before the stacked interface goes up.
      
      The teardown procedure logic common to stop() and interfaceRemoved() is
      put into enterStoppedState() and enterIdleState().
      
      This allows to distinguish and correctly handle the following teardown
      scenarios:
       - an IPv4 appears -> ConnectivityService calls Nat464Xlat#stop()
                         -> Nat464Xlat calls stopClatd
                         -> clatd stops
                         -> if the stacked interface was up, it is removed
                         -> Nat464Xlat#interfaceRemoved() is triggered and
                            a LinkProperties update is sent.
      
       - network disconnects -> ConnectivityService calls Nat464Xlat#stop()
                             -> Nat464Xlat calls stopClatd
                             -> clatd stops
                             -> if the stacked interface was up, it is removed
                             -> Nat464Xlat#interfaceRemoved() is triggered and
                                a LinkProperties update is sent.
      
       - clatd crashes or exit -> Nat464Xlat#interfaceRemoved() is triggered
                               -> Nat464Xlat unregisters itself as a network
                                  observer
                               -> ConnectivityService is updated about the
                                  stacked interface missing, and restarts
                                  Nat464Xlat if needed.
      
      Note that the first two scenarios have two cases: stop() can be called
      before the notification for the stacked interface going up (STARTED), or
      after (RUNNING). In the first case, Nat464Xlat must unregister
      immediately as a network observer to avoid leaks.
      
      This patch also:
        - removes/simplifies comments related to the threading model which
          are no obsolete.
        - extract clatd management logic from ConnectivityService into
          NetworkAgentInfo
        - add new unit tests where there was none before.
      
      Bug: 62918393
      Bug: 62997041
      Bug: 64571917
      Bug: 65225023
      Test: runtest frameworks-net
      Change-Id: I27221a8a60fd9760b567ed322cc79228df877e56
      ef502887
    • Lorenzo Colitti's avatar
      Switch tethering stats from the unix socket to binder. · 563dc455
      Lorenzo Colitti authored
      Bug: 32163131
      Bug: 64995262
      Test: builds
      Change-Id: I673d76a8b0981302b5f6a14e97999cd7676d83ed
      563dc455
    • Treehugger Robot's avatar
  4. Sep 04, 2017
  5. Sep 03, 2017
    • Erik Kline's avatar
      Refactor interface IP code into InterfaceController · d3c0b5ed
      Erik Kline authored
      Test: as follows
          - built
          - flashed
          - booted
          - runtest frameworks-net passes
            (except for UidRange and APF tests that are missing libvndk)
          - regular WiFi STA mode attach works for IPv4-only, dualstack,
            and IPv6-only networks
          - tethering works with dualstack upstream and downstream
      Bug: 62476366
      
      Change-Id: Id807b3091b0b2935b01aeb3644245034312b4183
      d3c0b5ed
  6. Sep 02, 2017
  7. Sep 01, 2017
Loading