Commit Graph

7098 Commits

Author SHA1 Message Date
Howard Chen
018bd0278c Merge "Use the new gsid interface" am: c68c069db7 am: a0dc5e8e10
am: e3cf98d86c

Change-Id: I4b9387fdc227fae480c15da3512ce1354d243a6a
2019-11-15 04:20:27 -08:00
Howard Chen
e3cf98d86c Merge "Use the new gsid interface" am: c68c069db7
am: a0dc5e8e10

Change-Id: I1629d237b7dbd4c816b8a7f762722d7e20241e92
2019-11-15 04:12:08 -08:00
Howard Chen
a0dc5e8e10 Merge "Use the new gsid interface"
am: c68c069db7

Change-Id: I7d8d96c8de5089360302deef783cf617a94a7abc
2019-11-15 04:04:57 -08:00
Howard Chen
c68c069db7 Merge "Use the new gsid interface" 2019-11-15 11:05:16 +00:00
Jayachandran Chinnakkannu
aa720b6880 Merge "Remove usage of hidden API subscriptionManager.isSubscriptionVisible" am: 11202f37c3 am: d1002509c2
am: 3c843e062f

Change-Id: I3a5985f8c5fc04f65e12d2b6e85a5b770532d8fc
2019-11-15 00:20:52 -08:00
Jayachandran Chinnakkannu
3c843e062f Merge "Remove usage of hidden API subscriptionManager.isSubscriptionVisible" am: 11202f37c3
am: d1002509c2

Change-Id: I3f4d6d11ab56dcd4fc771a9db8da57ad3733d889
2019-11-15 00:12:45 -08:00
Jayachandran Chinnakkannu
d1002509c2 Merge "Remove usage of hidden API subscriptionManager.isSubscriptionVisible"
am: 11202f37c3

Change-Id: Ia2203ecdbc161fdcdbb7a250d8fb540ff1e57972
2019-11-15 00:05:11 -08:00
Jayachandran C
d17a4f3cf9 Remove usage of hidden API subscriptionManager.isSubscriptionVisible
This CL uses getGroupUuid() and isOpportunistic() instead to figure
out whether the subscription is visible or not

Bug: 140768340
Test: Manual
Change-Id: Id7215eabe4e6c47a057b747fdbb3027857f2f12c
2019-11-14 16:29:59 -08:00
Kevin Lau Fang
9b96d06072 Merge "Revert submission" 2019-11-14 20:31:09 +00:00
Kevin Lau Fang
01e16a5234 Revert submission
Reason for revert: This causes a boot issue on Taimen (b/144480969). It wasn't caught by TreeHugger due to Taimen tests being disabled due to a different lab outage (b/144350336).

Change-Id: Idc18b3531fda53257b85b81a869c00592eee83ce
2019-11-14 20:07:11 +00:00
Roshan Pius
97191d8c50 Merge "RemoteException: Mark rethrow* APIs public" 2019-11-14 18:37:26 +00:00
Makoto Onuki
f9b46001da Merge "Change FileDescriptor to PFD, per API guidelines." 2019-11-14 18:11:30 +00:00
Roshan Pius
148e86e5a5 RemoteException: Mark rethrow* APIs public
Bug: 144435970
Test: Compiles
Change-Id: I361f5d27529c938fff42fdbabb63f7b87527a270
2019-11-14 16:53:43 +00:00
TreeHugger Robot
3950314b01 Merge "Java API for pulled atoms" 2019-11-13 23:20:27 +00:00
Dianne Hackborn
da0e5cef21 Merge "Rework platform version to hide codenames." 2019-11-13 23:16:03 +00:00
Makoto Onuki
b84721844b Change FileDescriptor to PFD, per API guidelines.
handleShellCommand() would be a system API, so we should use PFD instead,
per the API guidelines.

Bug: 142751512
Test: "adb shell cmd jobschduler help" -> show help
Test: "$ cmd jobscheduler run abc 123" -> shows "Package not found: abc / user 0"
Test: "adb shell cmd activity help" -> show help
Change-Id: I64b1e4c540db836cc4a46fed24a038b7077ecb63
2019-11-13 14:59:46 -08:00
Tej Singh
5918429fa2 Java API for pulled atoms
This creates a java API for registering pullers. Will implement the
statsd side in a follow up CL.

Test: builds, boots
Change-Id: Ib6735984297ce3148839a6370a3c15b2a585baf5
2019-11-13 13:22:27 -08:00
TreeHugger Robot
8b513e6f6a Merge "GraphicsEnv: refactor to unify the debuggable logic" 2019-11-13 20:21:52 +00:00
Artur Satayev
79aff5c601 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." am: a98026f7aa
am: 59318bab67

Change-Id: Ic691d764839ecf34daa8b53aa92497e013c9a2a7
2019-11-13 10:40:54 -08:00
Artur Satayev
59318bab67 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps."
am: a98026f7aa

Change-Id: Ia39fbc2200aa7262e4a05b0710b7a382bb01b276
2019-11-13 10:33:06 -08:00
TreeHugger Robot
bc7671b9fb Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." 2019-11-13 15:46:27 +00:00
Artur Satayev
5a525851a8 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 15:05:56 +00:00
Artur Satayev
f0b7d0ba51 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 12:58:29 +00:00
Zimuzo Ezeozue
23465f5602 Merge "Fix multi-user and multi-storage with FUSE" 2019-11-13 08:36:35 +00:00
Makoto Onuki
c10395b8e3 Merge "Revert "Change argument types from FD to PFD"" 2019-11-13 00:09:01 +00:00
Dianne Hackborn
a2fe812ea0 Rework platform version to hide codenames.
The public platform version no longer can be a codename, it is
always the most recently released platform.  A new build property
and API provides either the offical version or the current codename
as appropriate.  This will avoid breaking apps that look at the
platform version while development is under a codename.

Bug:  143175463
Test: manual
Change-Id: I72975ec86ac07700dc9052245b54411fa77982b8
2019-11-12 15:55:59 -08:00
Songchun Fan
7e093d7e7d Merge "[incremental] fundamental aidl interfaces" 2019-11-12 23:01:46 +00:00
Makoto Onuki
6dbd2d62a7 Revert "Change argument types from FD to PFD"
This reverts commit 933bf11cc3.

Reason for revert: Broke shell commands.

Change-Id: Icbe1e4089d2607d9bfa839ceb2e1ffad4f08e892
Fixes: 144317147
2019-11-12 21:54:17 +00:00
Zim
17be6f999b Fix multi-user and multi-storage with FUSE
Up until now, the FUSE mount logic has made two assumptions:
1. The primary external volume is an emulated volume on /data/media
2. Only the primary user is running, as user zero

With this change, we are able to handle the following cases:
1. Mount new external storage volumes as as portable storage
(PublicVolume) managed by FUSE. The PublicVolume originally mounted on
/mnt/media_rw/<uuid> is availabe on /storage/<uuid> as a FUSE mount

2. Mount new external storage volumes as adoptable storage
(PrivateVolume) with a stacked EmulatedVolume managed by FUSE. The
EmulatedVolume orignally mounted on /mnt/expand/<uuid>/media will be
available on /storage/emulated if set as the primary storage

3. Run the MediaProvider as a secondary user handling requests on
/mnt/user/<userid>/<volid>

Test: atest AdoptableHostTest
Bug: 135341433
Bug: 140120303

Change-Id: I5fb48616b4143277ea14c6846037e2fd176e16db
2019-11-12 16:40:39 +00:00
Howard Chen
6ea5beddd9 Use the new gsid interface
This CL supports gsid refactoring aosp/1148898.

Test: adb shell am start-activity \
                -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
                -a android.os.image.action.START_INSTALL \
                -d file:///storage/emulated/0/Download/system.raw.gz \
                --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
                --el KEY_USERDATA_SIZE 8589934592
Change-Id: I0209a1b0750e96623f90f134bb18d37254249fbd
2019-11-12 18:29:18 +08:00
jovanak
4b2c7d3e86 DO NOT MERGE: Fix several issues with precreated users.
am: debb009a2c

Change-Id: I3c718154ff8d580f50dc29eccf4f073cafb54784
2019-11-11 15:26:59 -08:00
Artur Satayev
756d3b447a Merge "Add @UnsupportedAppUsage annotations for greylist." am: 423c3a32d6
am: 7a565c45b1

Change-Id: I48075ef4296e0b55c0055f7364c5129bbd60e9ed
2019-11-11 09:33:13 -08:00
Artur Satayev
7a565c45b1 Merge "Add @UnsupportedAppUsage annotations for greylist."
am: 423c3a32d6

Change-Id: I5387b4742fdaf67ad3189356f2361f73969b53a8
2019-11-11 09:13:24 -08:00
Yiwei Zhang
097a3062b9 GraphicsEnv: refactor to unify the debuggable logic
By default, PR_SET_DUMPABLE is 0 for zygote spawned apps, except in the
following circumstances:
1. ro.debuggable=1 (global debuggable enabled, i.e., userdebug or eng builds).
2. android:debuggable="true" in the manifest for an individual application.
3. An app which explicitly calls prctl(PR_SET_DUMPABLE, 1).
4. GraphicsEnv calls prctl(PR_SET_DUMPABLE, 1) in the presence of
   <meta-data android:name="com.android.graphics.injectLayers.enable"
              android:value="true"/>
   in the application manifest.

So checking both ro.debuggable=1 and PR_GET_DUMPABLE is redundant.

Bug: 144186877
Test: CtsAngleIntegrationHostTestCases
Test: CtsRootlessGpuDebugHostTest
Change-Id: Ica49254df2c7c090808411935cdeb8efd4e3cb51
2019-11-08 15:54:17 -08:00
Artur Satayev
3be4d59369 Merge "Add @UnsupportedAppUsage annotations for max-p." am: 8893f158c6
am: da4d6567c2

Change-Id: Iff80c388dec2c6f8184b739be6fb38b8ec8a1a49
2019-11-08 09:49:03 -08:00
Artur Satayev
da4d6567c2 Merge "Add @UnsupportedAppUsage annotations for max-p."
am: 8893f158c6

Change-Id: I2f249063c274b54a58a24cda23f1d5a60fa14540
2019-11-08 09:38:12 -08:00
Artur Satayev
fc46be7dbd Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m

Change-Id: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
Merged-In: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
2019-11-08 16:17:13 +00:00
Artur Satayev
ee9c6e7571 Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
Merged-In: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
2019-11-08 16:17:13 +00:00
Inseob Kim
1b5e241b92 Use sysprop library for telephony props
Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: Idefa10b5bdeaff69496bc66730a7398258f3a38e
2019-11-08 15:06:37 +09:00
jovanak
debb009a2c DO NOT MERGE: Fix several issues with precreated users.
1. Prevent UserManager from destroying storage for precreated users.
2. Modify UMS.getUserIds to exclude precreated users.
3. Remove pre-created users if the system has upgraded.
4. Read permissions during conversion to a "real" user. Permissions should have been granted during the pre-creation. If we cannot read permissions, re-grant them for the user.

Fixes: 143464654
Fixes: 143463955
Test: Repeated subsequent boots; observing logs; boot systrace; applied OTA, verified user cleanup
Change-Id: I75b031105b2622a8a28e84cf2394e43ec93e4174
2019-11-07 16:39:50 -08:00
Charles Munger
e4eb721481 Merge "Deprecate AsyncTask" am: c26568d8a7 am: e668533570
am: 0afcd8f4df

Change-Id: Ic43d6f6f8f3ffe2f932af4aa677824f2ef509d30
2019-11-07 11:42:48 -08:00
Charles Munger
0afcd8f4df Merge "Deprecate AsyncTask" am: c26568d8a7
am: e668533570

Change-Id: Ie20907c3cab97732c77a4e448cf9686d4e26df91
2019-11-07 11:28:27 -08:00
Charles Munger
e668533570 Merge "Deprecate AsyncTask"
am: c26568d8a7

Change-Id: Ib318d957f7f32937a6d416f26d8dfae0883aaab2
2019-11-07 11:16:00 -08:00
Treehugger Robot
c26568d8a7 Merge "Deprecate AsyncTask" 2019-11-07 18:35:05 +00:00
Kevin Hufnagle
5d01ae6907 Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d am: f58949bd0e am: 6288754ef9
am: cfcd16334e

Change-Id: I6c3f4298b999da99f7c25e323dd729b85e6d1acc
2019-11-06 15:17:16 -08:00
Kevin Hufnagle
cfcd16334e Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d am: f58949bd0e
am: 6288754ef9

Change-Id: I3e3c4fc71fe34f2118bd2794a8ab6b707a3d81cd
2019-11-06 15:11:13 -08:00
Kevin Hufnagle
6288754ef9 Merge "docs: Added perm req for getUserCount()" into qt-dev am: c949db391d
am: f58949bd0e

Change-Id: Ifbced59e15c2ad19ad94b93af05d28ccfbccd255
2019-11-06 15:04:13 -08:00
Kevin Hufnagle
f58949bd0e Merge "docs: Added perm req for getUserCount()" into qt-dev
am: c949db391d

Change-Id: Ib9f6f7561cc6dd365537cf169d45c2eb191f514a
2019-11-06 14:57:13 -08:00
Kevin Hufnagle
c949db391d Merge "docs: Added perm req for getUserCount()" into qt-dev 2019-11-06 22:44:46 +00:00
Charles Munger
0a96c3b965 Deprecate AsyncTask
Change-Id: Ie142c281c48bda35f5c8fb01ec8a001e0229fd2e
BUG=144042891
2019-11-06 21:11:37 +00:00