Commit Graph

1354 Commits

Author SHA1 Message Date
Amit Mahajan
02e56cc0ba Create @SystemApi CarrierMessagingServiceWrapper.
This is primarily a wrapper over ICarrierMessagingService
that to create a stable API to communicate with CarrierMessagingService.

Test: basic messaging sanity
Bug: 143609473
Merged-in: I67fda8bab3902b358c483f992633dbdfe3a8cda2
Change-Id: I67fda8bab3902b358c483f992633dbdfe3a8cda2
(cherry picked from commit 92642659e8)
2019-11-04 12:44:01 -08:00
Amit Mahajan
82f245f3ba Move mms related code from opt/telephony to base/telephony.
In an effort to remove it from telephony-common as that will not be
accessible to other modules, and some of them need mms code like
MmsService, TelephonyProvider, Bluetooth.

Test: basic sanity
Bug: 140763963
Merged-in: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
Change-Id: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
(cherry picked from commit fda8bc058c)
2019-11-01 12:47:10 -07:00
Chen Xu
fba9ca44a2 make CallerInfo as SystemAPI
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.

Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
(cherry picked from commit b9a1eefec6)
Merged-in: Ie95897c77e97e40f5357c107aede82edfea44d5a
2019-10-21 21:39:58 -07:00
Mathieu Chartier
942300fa20 Remove android.permission.PermissionManager from blacklist
This is getting pulled in from somewhere, removing to fix
PreloadCheck test.

Bug: 140912480
Test: atest PreloadCheck
Change-Id: I8eea07930732865cc72fea0e352a1704d1c26118
2019-09-12 17:06:31 +00:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
TreeHugger Robot
d5314968e6 Merge "Revert "[DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList"" into stage-aosp-master 2019-08-29 18:25:23 +00:00
Ian Kasprzak
fc005b8d7c Revert "[DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList"
This reverts commit 869b473388.

Reason for revert: Test is fixed.

Change-Id: I7f305f428a0f39a09e0d31512e4efa752e39b1bd
2019-08-29 04:12:55 +00:00
Andreas Gampe
cb3b4825e3 Framework: Clean up blacklist
Remove entries that should not be in the blacklist.

Partially reverts commit 00b23d3cb1.

Test: m
Merged-In: I658f31f1df299eb06fb353e8bba118470112d80b
Change-Id: I658f31f1df299eb06fb353e8bba118470112d80b
2019-08-28 19:28:54 +00:00
Ian Kasprzak
869b473388 [DO NOT MERGE] Disable com.android.preload.check.PreloadCheck#testBlackList
Disabling in preparation for merge to aosp-master (Q release).

Test: Forrest - go/forrest_run/L13300000358776692
BUG: 139540082
BUG: 139305203
Change-Id: I2da5daf011bfe44648aa6e3cc969db2689d79b76
2019-08-27 22:32:08 +00:00
Nicolas Geoffray
0da29f40a3 Merge "Add an empty boot profile."
am: 5fc20bb9a3

Change-Id: I8c5ce7572ba7bcc4e0dfb603409f9628d28a7d56
2019-07-25 07:08:32 -07:00
Nicolas Geoffray
9ff56eafb5 Add an empty boot profile.
Bug: 119800099
Test: m
Change-Id: Ia9c807f2cc3beaee125bd2c9d6a655af61bdf782
2019-07-25 09:13:09 +01:00
Jordan Liu
6ef6ff9ca1 Merge "Use TM SubId in getDataState and getDataActivity"
am: 3968a18c27

Change-Id: I69e39b4867b78182217357d14ef96c966e3b7dd3
2019-07-11 18:30:26 -07:00
Nathan Harold
af984d0d4e Use TM SubId in getDataState and getDataActivity
-Update getDataState() API to use the SubId specified
 by the TelephonyManager instance.

-Update the getDataActivity() API to use the SubId
 specified by the TelephonyManager instance.

(This CL is an un-revert of aosp/984377)

Bug: 135205433
Test: manual (automated test is infeasible)
Change-Id: I035f2c44a7955e88608b1c336acb72fb68c3e450
2019-07-11 11:52:55 -07:00
Mathew Inwood
13ffa87a6d Merge "Restore some greylist entries." into qt-dev
am: f76bdce6e0

Change-Id: I320e33be57b8124ff7c132a67c8981d53802f8f5
2019-06-28 07:43:43 -07:00
Mathew Inwood
3a75f264a8 Restore some greylist entries.
In Q, these APIs were either:
- removed from the greylist entirely without good reason
- Moved to the restricted greylist without any public alternative
  information added

So they are being moved back to the greylist for Q.

Test: Treehugger
Bug: 136102585
Change-Id: I5ac8b8b9b23c3789d80239cf456072cc7dfa1203
2019-06-28 10:15:37 +01:00
Mathieu Chartier
1951b4efd7 Merge "Update boot image profile" into qt-dev
am: 0409420da8

Change-Id: I616082bdd01d3a538f47ea1e446dd8b03bf71725
2019-06-20 17:13:19 -07:00
Mathieu Chartier
5d12c6643d Update boot image profile
Compiled methods don't get any interpreter activity modifying their
hotness counters. This CL compiles more methods to prevented

Original set of profile is the updated profile with revised thresholds
for image classes. Here we used a 3% threshold.

Additionally, the CL adds imgdiag diagnosed methods that have dirty JIT
counters shortly after boot on the following apps:
system_server
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.networkstack
com.android.bluetooth
com.google.android.apps.nexuslauncher
com.google.android.gms.persistent
com.google.android.as
com.google.process.gservices
com.google.android.gms
com.google.android.inputmethod.latin

Before:
Boot oat size: 32,800,596 bytes
Persistent app .art PSS: 19115K
Persistent app .art Private Dirty: 15356K
System boot .art PSS: 60948K

After:
Boot oat size: 37261124 bytes
Persistent app .art PSS: 12610K
Persistent app .art Private Dirty: 8740K
System boot .art PSS: 50735K

Private dirty savings for persistent apps: 7MB
Net RAM savings: 5MB (10MB dirty .art PSS, 5MB oat size incrase)

Bug: 134776403
Test: Reboot and inspect RAM usage
Change-Id: Ia1c59b4be341a28de02b7d20aedcb6b69815c652
2019-06-20 20:46:19 +00:00
Mathieu Chartier
20421222e2 Update dirty-image-objects
am: 4c7291f76c

Change-Id: I8b9cf22190dbfddc709a734dc225011088263c17
2019-06-12 18:07:32 -07:00
Mathieu Chartier
4c7291f76c Update dirty-image-objects
Numbers 60s after boot on taimen, saves ~4MB of RAM system wide.

Obtained on apps:
system_server
com.android.systemui
com.android.phone
com.android.nfc
com.google.android.networkstack
com.android.bluetooth
com.google.android.apps.nexuslauncher
com.google.android.gms.persistent
com.google.android.as
com.google.process.gservices
com.google.android.gms
com.google.android.inputmethod.latin

Before (measured processes):
                PSS     Private Dirty
    .Boot art     2538     2300        0        0
    .Boot art     2663     2428        0        0
    .Boot art     1962     1676        0        0
    .Boot art      816      540        0        0
    .Boot art     1297     1032        0        0
    .Boot art     1234      968        0        0
    .Boot art     1751     1496        0        0
    .Boot art     2227     1984        0        0
    .Boot art     1114      844        0        0
    .Boot art      772      492        0        0
    .Boot art     2215     1972        0        0
    .Boot art     1213      912        0        0
System wide
     71,282K: .art mmap
         66,418K: .Boot art
          4,864K: .App art

After:
                PSS     Private Dirty
    .Boot art     2447     2216        0        0
    .Boot art     2477     2256        0        0
    .Boot art     1717     1444        0        0
    .Boot art      799      540        0        0
    .Boot art     1268     1020        0        0
    .Boot art     1196      948        0        0
    .Boot art     1703     1464        0        0
    .Boot art     2094     1864        0        0
    .Boot art     1055      804        0        0
    .Boot art      749      484        0        0
    .Boot art     2096     1868        0        0
    .Boot art     1058      772        0        0
System wide
    67,138K: .art mmap
         62,274K: .Boot art
          4,864K: .App art

Bug: 134776403
Test: Reboot and inspect RAM usage
Change-Id: I5c056565a10b0becc4257f051aecc05cef6247dd
2019-06-13 00:36:14 +00:00
Makoto Onuki
231b70ce96 Merge "Fix slow query log." into qt-dev
am: dee07f5d7f

Change-Id: If0b3a8caf1563fdcf25f8d38e3b5c6b1d183e3a2
2019-06-04 18:27:43 -07:00
Makoto Onuki
dee07f5d7f Merge "Fix slow query log." into qt-dev 2019-06-04 16:57:23 +00:00
Makoto Onuki
a9be33f7cf Fix slow query log.
SQLiteDebug.Const isn't supposed to be preloaded.

Fix: 134176355
Test: "setprop db.log.slow_query_threshold.10045 0" and make sure ...
it works for UID 10045

Change-Id: I06ca1531e968faa2378d0cb7f627e2c6a87cf502
2019-06-03 10:39:30 -07:00
Mathew Inwood
2e88159d1e Merge "Greylist 3P packages in the bootclasspath." into qt-dev
am: 2cf040d602

Change-Id: Iab1cc2ea618ffd8d5a1ceabe06b7698825011248
2019-05-29 00:13:53 -07:00
Mathew Inwood
2cf040d602 Merge "Greylist 3P packages in the bootclasspath." into qt-dev 2019-05-29 07:00:23 +00:00
Mathew Inwood
eaf13c7efc Greylist 3P packages in the bootclasspath.
These packages contain code that was whitelisted in P (accidentally),
and was blacklisted in Q (until now). They also contain open source code
that apps could reasonably include in their APK. Blacklisting the code
is problematic, as this results in apps being able to resolve the class
itself, but without any visibility of any members within it.

This is a measure to reduce the risk of Q, pending a proper solution for
these classes in future.

Remove the equivalent methods from the greylist as they are now
redundant. This was done via:
$ cat hiddenapi-greylist.txt \
    | grep -v '^Lgov/nist/' \
    | grep -v '^Lorg/apache/harmony/' \
    | grep -v '^Lorg/apache/xalan/' \
    | grep -v '^Lorg/apache/xml/' \
    | grep -v '^Lorg/apache/xpath/'

Bug: 129387816
Test: m
Change-Id: I48d4ca3b8069894e91785f1dd69d81878078208c
2019-05-28 14:27:08 +01:00
Taesu Lee
98d41e6917 Divide a message text into correctly sized parts
Message format info is required in order to divide a message text into
correctly sized parts on a device that supports for both 3GPP and 3GPP2
formats in multi-sim. And fixed to get default SMS subId from SmsManager
in SmsMessage class instead.

Test: Manual
Bug: 132259056
Merged-in: Id2512eb62504b7e789f58b7d9697009d565c4a18
Change-Id: Id2512eb62504b7e789f58b7d9697009d565c4a18
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
(cherry picked from commit 8debeeb126)
2019-05-21 10:32:59 -07:00
Taesu Lee
43b9a8ceb4 Merge "Divide a message text into correctly sized parts" am: 8f7157ca48
am: b9f65a87d1

Change-Id: I6652537cd578dde7dfa9145898cee5ee43a50ecd
2019-05-20 23:38:01 -07:00
Taesu Lee
8debeeb126 Divide a message text into correctly sized parts
Message format info is required in order to divide a message text into
correctly sized parts on a device that supports for both 3GPP and 3GPP2
formats in multi-sim. And fixed to get default SMS subId from SmsManager
in SmsMessage class instead.

Test: Manual

Change-Id: Id2512eb62504b7e789f58b7d9697009d565c4a18
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-05-21 07:55:14 +09:00
chen xu
2a5483ff77 PhoneStateListener msim improvement
1. Docuemnt the scope of each callback event either apply to specific
subscriptions or not.
2. TelephonyRegistry store separate state e.g, precisecallstate, callAttribute
for each slot to support msim.
3. Add missing subscription match check when notify callbacks.

Bug: 130423985
Bug: 132181378
Test:  atest CtsTelephonyTestCases:PhoneStateListenerTest
Merged-In: I4b014e00528a1f05e0b5f237229c561f8260e2bd
Change-Id: I4b014e00528a1f05e0b5f237229c561f8260e2bd
(cherry picked from commit d5deeb15e9)
2019-05-13 21:38:12 -07:00
Hyundo Moon
b65ae655ad Merge changes I0a5c576b,I54fcf97b into qt-dev
am: d1cbccb628

Change-Id: I795b95edc9648e01bd5c654ea6c26fd68cbb8586
2019-05-10 02:34:09 -07:00
Hyundo Moon
d1cbccb628 Merge changes I0a5c576b,I54fcf97b into qt-dev
* changes:
  Remove MediaParceledListSlice
  Remove MediaSessionServiceImpl
2019-05-10 03:42:49 +00:00
Hyundo Moon
bb07e9bc5c Remove MediaParceledListSlice
Bug: 132233794
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest;
      atest CtsMediaTestCases:android.media.cts.MediaControllerTest;
      atest CtsMediaTestCases:android.media.cts.MediaBrowserTest;
      atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest;
      atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
      atest CtsMediaTestCases:android.media.cts.MediaController2Test;
      atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
Change-Id: I0a5c576b3fc9d2e236256d8f9f4e992914b147be
2019-05-09 17:11:44 +09:00
Chen Xu
b3e9773d71 Merge "PhoneStateListener msim improvement" into qt-dev
am: bfe4c111c4

Change-Id: I52e237495ed72afca170034b295daa25541bdc70
2019-05-08 13:46:18 -07:00
chen xu
d5deeb15e9 PhoneStateListener msim improvement
1. Docuemnt the scope of each callback event either apply to specific
subscriptions or not.
2. TelephonyRegistry store separate state e.g, precisecallstate, callAttribute
for each slot to support msim.
3. Add missing subscription match check when notify callbacks.

Bug: 130423985
Bug: 132181378
Test:  atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: I4b014e00528a1f05e0b5f237229c561f8260e2bd
2019-05-08 18:20:51 +00:00
Calin Juravle
7ecf70b3d8 Merge changes I1fc3b301,Ib42ab29e into qt-dev
am: 59a25ef6c9

Change-Id: I0bd04e1c36aac67d40a63556cac3b6cf6a72ae62
2019-04-29 19:37:09 -07:00
Calin Juravle
787d34d7b9 Update boot image and system server profiles
This is a conservative tuning for the last profile update (commit
5b70220fb5) which regressed a few metrics
(b/130553966). The numbers below are quoated relative to the sate before
that update.

=Perf numbers=

The boot image compilation artifacts are 17MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.

Startup and memory number are within the noise. Startup shows 0.72%
improvement. However that's most likely noise. The tests were run with:

- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
- atest
google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-lock-test
- atest
google/perf/app-startup/third-party-apps/cold-dropcache-stable-test

=Profile metrics=

Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 1.13% of hot methods added, 33.77% removed
- 0.65% of classes added, 21.61% removed
- 29256 hot methods in the profile (vs 43429 in the old one)
- 8681 classes in the profile (vs 10985 in the old one)

Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)

System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)

=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times

Bug: 122068885
Bug: 130553966
Test: m, build, boot, atest startup-tests

(cherry picked from commit 439305cadd)

Merged-In: Ic61ed2784af034ed4ae4bc8346ed67c6bed04152
Change-Id: I1fc3b301bf80bfc7dda3540c5a204af8321279bf
2019-04-25 17:22:51 -07:00
Calin Juravle
36829e5167 Update boot image and system server profiles
=Perf numbers=

The boot image compilation artifacts are 28MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.

Startup and memory number are within the noise. Startup shows 0.11%
improvement and memory shows 0.22% improvements. However that's most
likely noise. The tests were run with:

- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test

=Profile metrics=

Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 0.6% of hot methods added, 51.31% removed
- 0.3% of classes added, 29.96% removed
- 21403 hot methods in the profile (vs 43429 in the old one)
- 7826 classes in the profile (vs 10985 in the old one)

Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)

System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)

=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times

Bug: 122460899
Bug: 122068885
Test: m, build, boot, atest startup-tests

(cherry picked from commit 5b70220fb5)

Merged-In: Ib3aac3c7efae64af9d2b46e350146e53ba653cbd
Change-Id: Ib42ab29e3d28591817a396407445a6c23e5c9a27
2019-04-25 17:21:53 -07:00
Andreas Gampe
c712c03e98 Merge "PreloadCheck: Add preloaded-classes-blacklist" am: 4e572b596f
am: 1e57c5aad0

Change-Id: Ia1ea432304db039bd68c90339f4f9e674a3df645
2019-04-16 11:03:56 -07:00
Andreas Gampe
1e57c5aad0 Merge "PreloadCheck: Add preloaded-classes-blacklist"
am: 4e572b596f

Change-Id: Iccecfc6f47f31a1ac7e5894813a3d96a2c4dcd79
2019-04-16 10:50:09 -07:00
Andreas Gampe
1130892ec7 PreloadCheck: Add preloaded-classes-blacklist
Embed the preloaded-classes-blacklist file and check all classes
in it.

Test: atest --test-mapping frameworks/base/tools/preload-check
Change-Id: I4292cae1eb24eafe1f63e914143433b57cc74751
2019-04-15 10:27:28 -07:00
Andreas Gampe
248f90bd59 Merge "Preload: Add a simple test for the state of classes" am: fe1c4420c5
am: 9cef297dcf

Change-Id: Ia2c93d57151f67038b7227e509934c9ff40efbdc
2019-04-12 11:09:40 -07:00
Andreas Gampe
9cef297dcf Merge "Preload: Add a simple test for the state of classes"
am: fe1c4420c5

Change-Id: I8df9c6ead09679d879bac0edda5fd0820f0adf47
2019-04-12 10:54:00 -07:00
Andreas Gampe
8710df5fae Preload: Add a simple test for the state of classes
Use app_process and reflection to find the class state.

This is expected to break when internals change, so include a test
for expectations.

Bug: 130206915
Test: atest PreloadCheck
Change-Id: I7ecdb88a19efcfcfa1c7aa5c7e67d1990306166e
2019-04-11 16:26:14 -07:00
Mathieu Chartier
628626f99f Add two classes to blacklist
Added these classes to prevent initialization of AsyncTask since
initializing AsyncTask may cause memory leaks.

Bug: 130206915
Test: make
Test: look at classes initialized during preloading
Change-Id: I6bacbbdf61d8a782d88debc29d9f0ca29d273888
2019-04-09 10:34:26 -07:00
Andrei-Valentin Onea
9b5b3eaa84 Merge "Automatically greylist code in 3P packages" am: 1f80714c2d am: 8b1745650b
am: 4f0fdf2d43

Change-Id: Iaa456ba488b37b87b1b65e312074a60c9b43a9a2
2019-04-02 06:54:25 -07:00
Andrei-Valentin Onea
8b1745650b Merge "Automatically greylist code in 3P packages"
am: 1f80714c2d

Change-Id: Icb8a10c22c6ecfb807fa8d1669940f02edfd97c4
2019-04-02 06:29:51 -07:00
Andrei-Valentin Onea
1f80714c2d Merge "Automatically greylist code in 3P packages" 2019-04-02 13:10:37 +00:00
Andrei Onea
a6e09b4273 Automatically greylist code in 3P packages
generate_hidden_api_lists now receives a file containing package names
which need to be greylisted (although it could be made to work with any
api list required).
Also took the opportunity to clean up the tests to reflect the more
strict code.

Bug: 129387816
Test: m appcompat
Test: frameworks/base/tools/hiddenapi/generate_hiddenapi_lists_test.py
Change-Id: I619f8581d166aa48eda572bc0053d8739d6420eb
2019-04-01 15:32:36 +01:00
Andrei-Valentin Onea
6acb2106f7 Merge changes from topic "unsupported-internal"
am: 2f573ac6f8

Change-Id: I0fedf5c754a59a9c57b3abd00adff00d58b4930c
2019-03-27 06:56:12 -07:00