345234 Commits

Author SHA1 Message Date
Treehugger Robot
17977d897e Merge "Skip from copying preopted files if device is undecrypted" 2018-07-27 01:00:00 +00:00
Treehugger Robot
6dfabc4353 Merge "Remove references to full_classes_proguard_jar" 2018-07-26 23:13:15 +00:00
Hall Liu
b91316f203 Merge "Add carrier config for auto redialing 911" 2018-07-26 20:22:03 +00:00
Mathieu Chartier
eff814e768 Merge "Update system server profile" 2018-07-26 19:45:37 +00:00
Colin Cross
0695063833 Remove references to full_classes_proguard_jar
We always use R8 instead of proguard now, which shrinks while converting
to dex, so there is is no proguarded classes jar.  Use
full_classes_pre_proguard_jar instead.

Bug: 111885749
Test: m checkbuild
Change-Id: Ia0c35d9068b72573ae5970dc7e2c2b1b489b32f3
2018-07-26 12:37:22 -07:00
Mathew Inwood
32979f03fe Merge "Remove class2greylist from frameworks/base." 2018-07-26 17:43:28 +00:00
Calin Juravle
73b38f94e7 Update system server profile
The previous profile contained only a few methods and classes
due to an error during processing.

(cherry-picked from commit 0161eaf5666fbb523b68dc77b965b96a0fab8cdd)

Test: build & flash & boot
Bug: 111820715

Merged-In: I4caac335941e2cc84c153652c5206fefdc03596b
Change-Id: I4caac335941e2cc84c153652c5206fefdc03596b
2018-07-26 10:28:18 -07:00
Mathew Inwood
f364aedecb Remove class2greylist from frameworks/base.
It's moving to a new home under art/tools, since it is needed by
branches which don't include frameworks/base.

Bug: 110868826
Test: Build master-art branch
Change-Id: Ice8324db52ae1e7e2ac6734e45874a66de935c9a
2018-07-26 15:57:05 +01:00
Olivier Gaillard
3134def524 Merge "Enable generating Binder#getTransactionName method." 2018-07-26 13:04:32 +00:00
Olivier Gaillard
b0ea421351 Enable generating Binder#getTransactionName method.
Test: manual
Bug: 111791983
Change-Id: I68090e6fa5a7876b1e878d0b97807856e3053b36
2018-07-26 11:58:42 +01:00
Iris Chang
cd5dd3c7b5 Skip from copying preopted files if device is undecrypted
After applies issue 78613232 patch (create symlink in init.rc),
we found device boots to home screen fail.

When device is FDE (Full Disk Encryption) and user sets the
Password/Pattern/PIN to lock phone and then reboot the device,
data partition will be mounted as tmpfs (256MB) until device
is unlocked after user inputs Password/Pattern/PIN.

During device boot-up process, PMS (Package Manager Service) will
execute requestCopyPreoptedFiles when device first boots, and it
may cause device fails to boot to home screen because PMS copies
larger system_b (about 500MB) to smaller tmpfs (tmpfs is only 256MB)
before device is decrypted.

We suggest that PMS doesn't execute requestCopyPreoptedFiles when
device is undecrypted during first boot.

Bug: 78613232

Test: Device boot up to launcher normally.
Test: APPs work normally after A/B upgrade.

Change-Id: I893e0e217a59577299e97adfbf5dc7762dffda7c
2018-07-26 18:34:53 +08:00
Remi NGUYEN VAN
716c04b29a Merge "Increase linger delay and test callback timeout" 2018-07-26 09:54:03 +00:00
Remi NGUYEN VAN
ef8377dba2 Increase linger delay and test callback timeout
Tests appear to have become much slower on apct in recent runs, although
local runs do not seem to be affected. As a first measure, increase our
timeouts to eliminate flakyness.

Bug: b/111778226
Test: runtest --no-hidden-api-checks -x ConnectivityServiceTest.java
Change-Id: I7a3bfb646eb554bcd9d50d026142f2a2cff74beb
2018-07-26 16:43:58 +09:00
Mathew Inwood
aa863ca68e Merge "Merge generated greylists into final greylist." 2018-07-26 07:37:29 +00:00
Hall Liu
f31f38562f Add carrier config for auto redialing 911
Bug: 111235453
Test: manual (modify IMS stack locally to always return the 380 error
when dialing in airplane mode)

Change-Id: I029d2227ce62bb11fa91e9d5338a667d6e3dd59b
2018-07-25 18:48:55 -07:00
Treehugger Robot
9119e2e49d Merge "Disable generating Binder#getTransactionName." 2018-07-25 18:31:22 +00:00
Steven Moreland
720d797c0a Merge "Fix order of hidl unlinkToDeath." 2018-07-25 18:12:27 +00:00
Treehugger Robot
894d8cf470 Merge "Fix edge effect not showing up on first scroll" 2018-07-25 16:43:11 +00:00
Olivier Gaillard
a657aeb185 Disable generating Binder#getTransactionName.
It might have introduce a performance regression.

Bug: 111791983
Test: manual
Change-Id: I459d9e4e4d2d5d0be0531742a7910848702a1384
2018-07-25 17:18:07 +01:00
Treehugger Robot
8c8fb65ad3 Merge "Turn droiddoc's metalava_merge_annotations_dir into a list." 2018-07-25 16:02:48 +00:00
Pete Gillin
d6eece37ab Turn droiddoc's metalava_merge_annotations_dir into a list.
This change replaces droiddoc's metalava_merge_annotations_dir
parameter (which takes a single value) with
metalava_merge_annotations_dirs (which takes a list). This will makes
it possible to merge libcore annotations in from a separate directory
under ojluni, instead of adding them in a preprocessing step.

Test: `make metalava-api-stubs-docs` with a local change to add a second directory
Bug: 111639530
Change-Id: I8eb778038c1cb52ddb6fc86d972f555f49e836b2
2018-07-25 11:43:42 +01:00
Treehugger Robot
6c32f5d18e Merge "Update annotation name in class2greylist." 2018-07-25 10:42:12 +00:00
Mathew Inwood
738a23fbeb Update annotation name in class2greylist.
Annotation was added with name @UnsupportedAppUsage after Android API
council discussion.

Bug: 110868826
Test: m class2greylist
Change-Id: I63ad61e97c5e8fdebfcead9e4ee5b060a60f97c7
2018-07-25 09:45:04 +01:00
Remi NGUYEN VAN
9a783699cc Merge "Increase TEST_LINGER_DELAY_MS" 2018-07-25 03:08:48 +00:00
Treehugger Robot
57e98b19be Merge "don't call setSize() when creating SurfaceControl" 2018-07-25 02:31:13 +00:00
Remi NGUYEN VAN
c77d25e441 Merge "Remove test dependency on ubsan runtime" 2018-07-25 02:28:21 +00:00
Steven Moreland
90a9868802 Fix order of hidl unlinkToDeath.
Calling unlinkToDeath after linking to death multiple
times will unregister the most recently registered
death recipient as expected.

Bug: 67503915
Test: hidl_test_java
Change-Id: Ia7774c3d1f8932660890716e0edb7a1180430de7
2018-07-24 13:11:53 -07:00
Paul Duffin
bba51fede5 Merge changes from topic "deprecate-iis-closed"
* changes:
  Deprecate InflaterInputStream.closed field
  Correct ordering of TelephonyManager methods
2018-07-24 15:22:30 +00:00
Treehugger Robot
80894b6063 Merge "Make BinderProxy @hide public class." 2018-07-24 14:12:13 +00:00
Mathew Inwood
78368234b2 Merge "Add annotation for hidden members used by apps." 2018-07-24 14:00:23 +00:00
Treehugger Robot
55d8b54ac3 Merge "Move UriCodec to be near its one user" 2018-07-24 13:58:39 +00:00
Mathew Inwood
2e61590a4c Add annotation for hidden members used by apps.
This annotation will be added to existing hidden methods and fields that are
known to be used by apps.

These annotations will be used to replace the existing hard coded greylist
text files.

See go/hidden-api-annotations for more context.

Test: m
Bug: 110868826

Change-Id: I1b86ad8460525c2896fb84d7f1f95a521f582b9c
2018-07-24 13:05:37 +01:00
Neil Fuller
f672c2bcb8 Merge "Break some dependencies on libcore internals" 2018-07-24 08:50:50 +00:00
Paul Duffin
555fc87b99 Merge "Remove dependency on InflaterInputStream.closed field." 2018-07-24 08:14:31 +00:00
Remi NGUYEN VAN
f6b73b2349 Remove test dependency on ubsan runtime
Requirement for this dependency was removed in aosp/696863.

Bug: b/79785496
Test: runtest frameworks-net (aosp), atest FrameworksNetTests
Change-Id: I14bb65c8f0a9b55aeae6376ff04ce18be7dc7f22
2018-07-24 11:28:29 +09:00
Nathan Harold
c99ced9db8 Merge "Access Identity and SignalStrength from CellInfo" 2018-07-23 21:35:00 +00:00
Treehugger Robot
36ce625ccf Merge "Check for /dev/memcg/system/tasks before writing to it" 2018-07-23 19:21:19 +00:00
Neil Fuller
0f6f3bd7f0 Move UriCodec to be near its one user
The only user of UriCodec is android.net.Uri so it can
be moved to android.net.

This change moves the UriCodecTest to the unit tests
and there is an associated change to Uri's CTS tests
to ensure we're testing public method behavior there too.

Test: make droid && make cts
Bug: 111055375
Change-Id: Id032f849b439adf3fd7cb1a3c8b234a5eec68fac
2018-07-23 19:53:11 +01:00
Treehugger Robot
a37c252248 Merge "Avoid onServiceDisconnected() for unbind Service" 2018-07-23 17:27:13 +00:00
Mathew Inwood
1b04588ea6 Merge generated greylists into final greylist.
With annotations for greylist entries, each java target generates it own
greylist.txt file. Merge all of these into the final greylist.txt.

Bug: 110868826
Test: m
Change-Id: I6a64c65000f1fd9f49e09b5b498bdccc3560d606
2018-07-23 18:06:58 +01:00
Brad Ebinger
6a5c1492d2 Merge "Quick style fixup of ISmsImplBase" 2018-07-23 16:41:51 +00:00
Mathew Inwood
7f0aa734a3 Merge "Add new "class2greylist" tool." 2018-07-23 15:51:06 +00:00
Gopal Krishna Shukla
9117037dd3 Avoid onServiceDisconnected() for unbind Service
onServiceDisconnected() and unbindLocked() both
are responsible to make mRemoteInstanceas null,
so ensure that the service is not unbinded already
while calling onServiceDisconnected()

Fixes:111631529
Test: Build Successful and device Running.
Change-Id: I505d97e32c4e76f06a358850e91fe189bf02654c
2018-07-23 15:44:28 +00:00
Paul Duffin
a9c136b43e Deprecate InflaterInputStream.closed field
As recommended by the Android API Council this field is being
deprecated and will be removed from the API in a future release.

Bug: 111592689
Test: make checkbuild

Change-Id: I9aab7396b8b9faadb764fe9d43e80747b3eec018
2018-07-23 16:04:15 +01:00
Paul Duffin
8a20b7b6c6 Correct ordering of TelephonyManager methods
A previous change (db6a391957f51c6ed9a768f0c39c61ff7a4f3603) seems to
have added some new methods to the api/current.txt manually as they are
in the wrong order. This change corrects the ordering so that they do
not affect future changes to the api/current.txt file.

Bug: 74613795
Test: make checkbuild
Change-Id: I83f9c2ff3cd9f43add297e1c9411598f3eef094f
2018-07-23 16:03:44 +01:00
Neil Fuller
a84056a3d0 Break some dependencies on libcore internals
This commit swaps some internal details of libcore for some
abstractions on dedicated "internal facing" APIs. This reduces the
number of internal APIs used. There is an associated change in
libcore/

Bug: 111055375
Test: build / boot
Change-Id: Idddada1922701bd15475c840eaa76c505e545d33
2018-07-23 16:02:00 +01:00
Paul Duffin
96a1368158 Remove dependency on InflaterInputStream.closed field.
In upstream OpenJDK the InflaterInputStream.closed field is private.
During integration of OpenJDK into Android it was changed to be
protected so that it could be used by StrictJarFile, and in the process
was accidentally made part of the public API. This change removes the
StrictJarFile dependency on that field.

Bug: 111061052
Test: checkbuild, flash and run FrameworkCoreTests
Change-Id: I8aee1c444cf27e7078b848c65e0433c831ab06a0
2018-07-23 15:55:33 +01:00
Mathew Inwood
6395690ec9 Add new "class2greylist" tool.
This extracts signatures of methods that have the @UsedByApps annotation
for generating the greylist. It will be integrated into the build to
replace many members on greylist.txt.

Test: $ atest class2greylisttest
Bug: 110868826
Change-Id: Ifaf5859b60076c051de6be5a912ef70734330ce7
2018-07-23 14:39:19 +01:00
Olivier Gaillard
3e3a6e4760 Merge "Enable the generate transaction name for system server." 2018-07-23 10:32:49 +00:00
Olivier Gaillard
b19219207c Enable the generate transaction name for system server.
Size of vdex,art,oat files (flag off -> on)
- framework/boot*.vdex: +10K  (3.589M -> 3.599M)
- framework/arm64/boot*.{art,oat}: +20K  (4.378M -> 4.398M)

Test: manual
Change-Id: I4938ca5459004494a50ec81db9ef9e0f0e6e7a60
2018-07-23 10:15:54 +00:00