Commit Graph

386123 Commits

Author SHA1 Message Date
Jeongik Cha
a1bf8a9b75 Add platform_apis in Android.bp
platform_apis must be true when sdk_version is empty.
So add platform_apis into file that is not included it.

Bug: 132780927
Test: m
Change-Id: Ie7badd61248bbabaf51ef8fb30bdd832af88da15
2019-07-11 15:40:04 +09:00
Treehugger Robot
5cacaef45b Merge "Remove LOCAL_SRC_FILES from RRO modules" 2019-07-09 19:45:33 +00:00
joker.yang
3593bfe1f4 Remove LOCAL_SRC_FILES from RRO modules
If LOCAL_SRC_FILES is not empty then building rro package will fail.
Sometimes LOCAL_SRC_FILES will be not empty by mistake, so delete
LOCAL_SRC_FILES for all rro modules.

Bug: 136694299
Test: treehugger
Change-Id: I2555c97f4ae98f6949837a19b4db4877cb38b607
Merged-In: I2555c97f4ae98f6949837a19b4db4877cb38b607
2019-07-09 16:45:40 +00:00
Treehugger Robot
90fc97dfcc Merge "Update Settingslib owners" 2019-07-09 10:34:33 +00:00
Fedor Kudasov
2e5319117a Merge changes from topic "fix_master_build"
* changes:
  Revert "Cherry-pick the relevant parts of master change"
  Revert "Remove providesRoutesToMostDestinations."
2019-07-09 09:32:23 +00:00
Fedor Kudasov
559e91e0ef Revert "Cherry-pick the relevant parts of master change"
This reverts commit dd16d44fe8.

Reason for revert: multiple build breakages b/137069068

Change-Id: If48bfa2d2cab0877a053743b3ec53820d0c4ed6b
2019-07-09 09:29:17 +00:00
Fedor Kudasov
e5cb0a2216 Revert "Remove providesRoutesToMostDestinations."
This reverts commit d85b09a06f.

Reason for revert: multiple build breakages b/137069068

Change-Id: I60a4f71e13fe82f970b177a07c0b58439cbc64ff
2019-07-09 09:23:25 +00:00
Treehugger Robot
b63261b60a Merge "Use JUnit TemporaryFolder instead of *IoUtils.createTemporaryDirectory()" 2019-07-09 09:10:28 +00:00
Neil Fuller
db31e6d07a Merge "Switch widgets away from android.text.format.Time" 2019-07-09 08:15:10 +00:00
Fan Zhang
d9a00a964f Update Settingslib owners
Test: rebuilt
Change-Id: Ic6b002a181f77e598801462799918cddce8c91ea
2019-07-09 00:51:59 -07:00
Chalard Jean
3ef04b8e3c Merge changes Ia43f8811,I7de4f672
* changes:
  Remove providesRoutesToMostDestinations.
  Cherry-pick the relevant parts of master change I566437e4fe10e1346858149120c50b3c20ca073f to avoid a conflict
2019-07-09 07:30:11 +00:00
Treehugger Robot
10df4fcaa7 Merge "Add SystemSuspend HAL to ANR list." 2019-07-08 23:55:21 +00:00
Kalesh Singh
8d140fdddf Add SystemSuspend HAL to ANR list.
Makes SystemSuspend native stack traces available in
ANR dumps and adb bugreport.

Bug: 135458700

Test: adb shell am hang; check /data/anr/<anr file>
for android.system.suspend stack traces.

Test: adb shell am hang, adb bugreport,
grep through bug report for suspend stack traces.
(grep -rn "Cmd line: /system/bin/hw/android.system.suspend@1.0-service")

Test: Confirmed that deadlock on suspend/resume path triggers ANR dump.
Simulated deadlock by adding sleep to suspend thread.
Unplug the device lock the screen and wait for suspend to trigger.
Check anr dump and bugreport for stack traces.

Test: Confirmed traces are also available on user builds via adb bugreport.
(adb bugreport pulls data from ANR dump files).

Merged-In: I6be189f11193f12351fcf07c6583dce3402de28d
Merged-In: Id274afd4e3fbe2288ef6d5f6566c2601b8fc0a50
Merged-In: Icfc67c544e8d3fe3ef59ac12801c1a82c5545935
Change-Id: Ia9cb991894e2e0558144936ecee5e95def405e71
2019-07-08 20:31:17 +00:00
Treehugger Robot
79a2b5215d Merge "Fix bad arguments handling" 2019-07-08 17:54:25 +00:00
Andreas Gampe
803648a957 Merge changes I52110b84,I15d10a19,I5f52b832,Ifbaceb47
* changes:
  Remove spurious error logging from BackgroundDexOptService
  Migrate BackgroundDexOptServiceIntegrationTests to androidx.test
  Framework: Allow root to send bg-dexopt
  Fix BackgroundDexOptServiceIntegrationTests
2019-07-08 16:22:25 +00:00
Chalard Jean
d85b09a06f Remove providesRoutesToMostDestinations.
This function is not used any more.

Test: FrameworksNetTests
Change-Id: Ia43f8811cb9d575e16735b0f4b76d91e7cd42ebc
2019-07-08 20:36:33 +09:00
Chalard Jean
dd16d44fe8 Cherry-pick the relevant parts of master change
I566437e4fe10e1346858149120c50b3c20ca073f to avoid a conflict

Test: atest FrameworksNetTests
Change-Id: I7de4f67234bf97d58bddffa22272c7670398f56d
2019-07-08 20:25:45 +09:00
Nikita Ioffe
760e80c1e9 Merge "Use ApexInfo.moduleName" 2019-07-05 15:45:56 +00:00
Chalard Jean
b268cb5c6e Merge "Refactor TestNetworkCallback out of ConnectivityServiceTest." 2019-07-05 13:09:07 +00:00
Mark Chien
073c203dae Merge "Fix entitlement failed when device is on CBRS" 2019-07-05 06:17:52 +00:00
Treehugger Robot
cc8dd8f26c Merge "Use IApexService.stagePackages instead of stagePackage" 2019-07-04 20:05:50 +00:00
Nikita Ioffe
f585ed0459 Use ApexInfo.moduleName
See another CL in the topic

Bug: 132428457
Test: builds
Change-Id: I87ba3fb539d0761c515adc8e2d2acc8dfc5e6a9a
Merged-In: If0bd3d368c7373ab0028211a8a4246a9821893af
2019-07-04 15:46:08 +00:00
Paul Duffin
67f7fdd099 Use JUnit TemporaryFolder instead of *IoUtils.createTemporaryDirectory()
Test: atest \
    FrameworksServicesTests:com.android.server.pm.PackageParserTest \
	FrameworksCoreTests:android.content.pm.dex.DexMetadataHelperTest
Bug: 117535564
Change-Id: Ida80e99c9dfe8dc1095bd975fe2991958d01e77d
Merged-In: Ia21ceb26c965dbdb6565a5a1a24142cf0cf51d7a
2019-07-04 15:50:52 +01:00
markchien
04bdf8738b Fix entitlement failed when device is on CBRS
Tethering may use wrong sub id for entitlement when data
subscription is changed from preferred data sub id to CBRS
sub id. Fix by using the active data sub id for tethering.

Bug: 134994718
Test: -build, flash, boot
      -FrameworkNetTests
      -manual test with carrier SIMs

Change-Id: Icb3f5eeb2319e50b2dc98369ad152988c934da57
Merged-In: Icb3f5eeb2319e50b2dc98369ad152988c934da57
2019-07-04 16:23:32 +08:00
Chalard Jean
6f4216f4be Refactor TestNetworkCallback out of ConnectivityServiceTest.
TestableNetworkCallback will become a standard tool. This patch
and its companion in packages/modules/NetworkStack mostly move
it out of ConnectivityServiceTest, but also applies a few
cleanups like reordering arguments for standard order, renaming
...Like to ...That to match Mockito namings, and introduces
stonger static typing on some callbacks, which allows to remove
some unchecked casts.

Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I808a95ac33ec0c81a8829cad36a6917524297574
2019-07-04 16:12:40 +09:00
Marco Nelissen
04077d07d7 Merge "Remove libexif usage from libmedia_jni.so" 2019-07-03 22:40:12 +00:00
Nikita Ioffe
013b34fe94 Use IApexService.stagePackages instead of stagePackage
IApexService.stagePackage is going away (see another CL in this topic).

Bug: 136078302
Test: builds
Change-Id: I0552b4c514b921163d4737304483b39adf834897
Merged-In: If0bd3d368c7373ab0028211a8a4246a9821893af
2019-07-03 19:00:22 +00:00
Mathew Inwood
c4cedf7b56 Merge "Add basic logic for new platform compatibilty framework." 2019-07-03 13:49:20 +00:00
Mathew Inwood
e188acc693 Add basic logic for new platform compatibilty framework.
This change includes the core logic for determining when a
compatibility change is enabled for a given app, and overriding this
for dev/testing. None of this code is integrated into the wider
system yet.

Follow on changes will:
- Read compatibilty changes from disk to construct CompatChange
  instances.
- Send the list of disabled changes to each new app process when they
  are created.
- Add a new `adb shell am` command for adding/removing package
  overrides.

See also go/gating-and-logging for more context.

Test: atest PlatformCompatTest
Bug: 135010838
Change-Id: Ie91b1fe899e1ccb154cd5b5d8e9666c5b163b522
2019-07-03 11:28:47 +01:00
Neil Fuller
71fd6f0113 Merge "Remove the ability to turn off TimeDetectorService" 2019-07-03 08:59:30 +00:00
Marco Nelissen
8cef141941 Remove libexif usage from libmedia_jni.so
Test: manual, connect with MTP and PTP
Change-Id: I33128db25b8aae60df7854c61fc2a3873a1bced9
Merged-In: I33128db25b8aae60df7854c61fc2a3873a1bced9
2019-07-02 15:06:06 -07:00
Neil Fuller
e9efed97f7 Remove the ability to turn off TimeDetectorService
Remove the ability to turn off TimeDetectorService. After
http://r.android.com/1000492 it will be required in all cases.

Also remove [Old|New]NetworkTimeUpdateService as the expected
changes have not been implemented.

Bug: 133492648
Test: build only
Merged-In: Iad7ff59b19fa54750831819c68b7b733e5763902
Change-Id: Iad7ff59b19fa54750831819c68b7b733e5763902
2019-07-02 12:04:24 +00:00
Paul Hu
fa71b4f4a0 Merge "Correct FrameworksNetTests-jni-defaults lib" 2019-07-02 09:08:31 +00:00
Maciej Żenczykowski
e284b30c81 Merge "Fix mobile data usage didn't get increased for xlat464 traffic" 2019-07-02 03:46:29 +00:00
Nazanin Bakhshi
1ca89a995b Merge "Add device identifier permission checks to TelephonyPermissions" 2019-07-01 23:26:18 +00:00
Nazanin Bakhshi
cf5e620a19 Merge "Store subscriber ID / IMSI into telephony database" 2019-07-01 23:26:18 +00:00
Jim Kaye
fb7cdc3f59 Remove spurious error logging from BackgroundDexOptService
The old logic created a log entry indicating an error when the
actual result was success.

Make the log entry accurate.

Also, ensure that an out-of-space failure is actually reported.

Fixes: 136201068
Test: Manually checked 'adb logcat'
Change-Id: I52110b84496d9fc90bf08d16cb434ea0c979fa04
2019-07-01 22:29:39 +00:00
Brett Chabot
3bc264d1a0 Migrate BackgroundDexOptServiceIntegrationTests to androidx.test
See go/jetpack-test-android-migration

Partial cherry-pick of commit a86ec10b96244a32931cd2949be0f55ee3ea14c8.

Test: atest BackgroundDexOptServiceIntegrationTests
Change-Id: I15d10a1962210cde7e079590437009f6a5938db2
Merged-In: I32fe3297656eec6060da6c7e24582bcd5315fb16
2019-07-01 22:29:03 +00:00
Andreas Gampe
a8ff8b2529 Framework: Allow root to send bg-dexopt
To allow testing, and work on rooted userdebug devices, allow the root
user to issue package bg-dexopt commands.

Bug: 111798412
Exempt-From-Owner-Approval: cherry-pick
Test: atest BackgroundDexOptServiceIntegrationTests
Merged-In: I5f52b8322ba386c797a9176a1b216cc547c66456
Change-Id: I5f52b8322ba386c797a9176a1b216cc547c66456
2019-07-01 22:28:38 +00:00
Jorim Jaggi
3752c462ef Fix BackgroundDexOptServiceIntegrationTests
- Ensure that calling uid is shell.
- Clear calling identity such that we don't get permission
failures when calling getCurrentUser()

Test: self
Exempt-From-Owner-Approval: cherry-pick
Merged-In: Ifbaceb47edbbc4a6b002d49411ca4635ffc33a08
Change-Id: Ifbaceb47edbbc4a6b002d49411ca4635ffc33a08
Fixes: 111798412
2019-07-01 22:27:49 +00:00
junyulai
669ef46c58 Fix mobile data usage didn't get increased for xlat464 traffic
Interface stats on stacked interfaces is usually clatd. For
xt_qtaguid supported device, the stats is already accounted
against its final egress interface by the kernel.
Framework side does not need to handle stats on statcked
interface at all.

However, on devices that support BPF offload, xlat464
packets are seen by the iptables rules as arriving on stack
interface only. Thus, add stack interface into accounting is
needed.

Bug: 136193260
Test: 1. atest FrameworksNetTests
      2. atest android.app.usage.cts.NetworkUsageStatsTest
      3. manual test on ipv6-only wifi network

Change-Id: I8ebbefbe4df00e40f4896a17fa52c8438d41286e
2019-07-01 14:17:47 -07:00
Michael Groover
94672cea7c Add device identifier permission checks to TelephonyPermissions
Bug: 131916175
Fixes: 136305129
Test: atest PhoneSubInfoControllerTest
Change-Id: Icca98347ab76b7c3468b95756a33a758a3abde37
Merged-In: I3c82c53ec89cd17b34a61166ccc9e9747388efac
2019-07-01 17:53:11 +00:00
Andreas Gampe
9cbb19d0a8 Merge changes Ia3ec6198,I211696c8
* changes:
  Decouple downgrade and optimization processes.
  Add new atoms to log Downgraded Apps and Low Storage
2019-07-01 16:22:25 +00:00
Felix Lopez Luis
4bf2be9528 Decouple downgrade and optimization processes.
Extract the logic to downgrade apps from the logic to
optimize apps. This will make easier to add more logic for downgrade
applications as required for b/112144519

Bug: 112144519
Test: This change is cover by the integration tests in
BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/BackgroundDexOptServiceIntegrationTests.java

Merged-In: Ia3ec6198bd8bac9871372ae87994ca0c596e36d7
Change-Id: Ia3ec6198bd8bac9871372ae87994ca0c596e36d7
2019-07-01 16:22:15 +00:00
Felix Lopez Luis
7ca1abd367 Add new atoms to log Downgraded Apps and Low Storage
Merged-In: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Exempt-From-Owner-Approval: Cherry-pick
Change-Id: I211696c836cb9c8a7b72e3693ecba3061ca599bf
Bug-Id: b/120911106
Test: refactoring CL. Existing unit tests still pass.
2019-07-01 16:20:55 +00:00
Tomasz Wasilczyk
d7ebdb2a0b Fix bad arguments handling
Bug: 120143468
Test: atest android.net.cts.NetworkWatchlistTest#testGetWatchlistConfigHash
Change-Id: I26e4ccfd70ce16c99f7500e76584f50364096873
2019-07-01 08:59:44 -07:00
paulhu
dc09e6e635 Correct FrameworksNetTests-jni-defaults lib
FrameworksNetTests-jni-defaults lib should only contain jni
dependencies. Remove static_libs/libs from it and update
FrameworksNetTests/FrameworksNetSmokeTests libs as well.

Bug: NA
Test: atest FrameworksNetSmokeTests FrameworksNetTests
Change-Id: I705e949e4c00035c9734b6a240529d1c2216eb6b
2019-07-01 09:29:13 +00:00
Lorenzo Colitti
d1379a4a80 Merge "Unit tests for new explicitlySelected behaviour." 2019-06-29 08:25:20 +00:00
Treehugger Robot
edf7470e0b Merge "Add JVMTI agent to dump/reset JaCoCo coverage information" 2019-06-28 22:41:14 +00:00
Mathieu Chartier
566bfcf475 Merge "Remove support for image classes" 2019-06-28 15:56:58 +00:00