682 Commits

Author SHA1 Message Date
Chris Tate
9e83cbbc10 Revert "Enable background restrictions"
This reverts commit 21f778060badb1e78bffde05e8de7662d275003d.

Change-Id: I65586f9739da84fb32b51b0ea166b8288c41d1b3
2017-01-19 01:12:19 +00:00
Fyodor Kupolov
5c26dc1b54 Merge "Updated platform privileged permissions" 2017-01-18 22:42:45 +00:00
Christopher Tate
21f778060b Enable background restrictions
Apps that target O+ are always subject to background restrictions.
Legacy apps' background restriction is subject to the OP_RUN_IN_BACKGROUND
app op.

Apps with these properties are exempted from background restrictions:
  - persistent process
  - currently on the idle battery whitelist
  - global whitelist for things like bluetooth services

Bug 30953212

Change-Id: Ib444829a2d222125f64ff19e8218823fa78373f9
2017-01-18 11:30:41 -08:00
Fyodor Kupolov
f9a8bd2828 Updated platform privileged permissions
Change-Id: I84e27ec023b20205bacb026e0a7cc32c12f67a7b
Test: manual
Bug: 33499917
Bug: 34128772
2017-01-12 17:36:53 -08:00
Joe LaPenna
cd54da4595 Add networkrecommendation permissions to privapp perms list.
Bug: 34235587
Test: Flashed and checked logcat for crash.
Change-Id: Ib35070ea87e23a3be8804eb3796e02c76a5628d0
2017-01-11 20:54:03 -08:00
Roozbeh Pournader
a27acfdebc Add font descriptions for six more scripts to fonts.xml
Font data for Phags-pa, Runic, Samaritan, and Tagalog are added, as
well as two new styles for Syriac (Estrangela was already included,
Eastern and Western are added).

Bug: 29535549
Bug: 32046261
Test: manual (new characters are now displayed) and 'make fontchain_lint'
Change-Id: Iad08286392850caf92e374818bd29d06b6a87e52
2016-12-19 15:19:35 -08:00
Roozbeh Pournader
aba60b542e Remove Droid Sans Fallback from all builds
Droid Sans Fallback is now completely replaced by Noto Sans CJK. The
font files are kept in the tree, since the SDK still needs them.

Also, Android.mk is updated to reflect the fact that Noto Color Emoji
is now included in SMALLER_FONT_FOOTPRINT, so fontchain_lint checks
for emoji consistency in that footprint too.

Bug: 31854008
Test: make fontchain_lint
Change-Id: I4f57114a48ecfaee87b49f01f7ef4fa5cd0b19fb
2016-12-13 22:53:52 +00:00
Fyodor Kupolov
964d2ebb94 Control privileged permissions for priv-apps
Added support for privapp-permissions config element. It allows to explicitly
control what privileged permissions applications should be granted.

Feature is controlled by ro.control_privapp_permissions property.
Possible values:
- 0/false, the feature is completely disabled - signature|privileged
  permissions are granted automatically without logging. *Default behavior*
- 1/true, enforce that only whitelisted permissions are granted. Only
  devices with ro.control_privapp_permission=1 will pass CTS tests.

Test: Manual
Bug:31008485
Change-Id: I93a8c2782cc72b3953f32c237086d08d82ac0d5b
2016-11-14 18:06:15 -08:00
Ajay Panicker
ad0c46100b Merge "Remove net_bt_stack group and replace it with bluetooth" am: 2309b98b25 am: 4a1fd7eb3d am: bd25fec0d9
am: 92b85c47ac

Change-Id: Ib39c516edf51fc9e13799b0bea266c403434ac9e
2016-09-23 00:04:19 +00:00
Ajay Panicker
92b85c47ac Merge "Remove net_bt_stack group and replace it with bluetooth" am: 2309b98b25 am: 4a1fd7eb3d
am: bd25fec0d9

Change-Id: I3825be4ebe408de183ad2787ca3da0c17d706e0d
2016-09-22 21:58:14 +00:00
Ajay Panicker
35cb698a88 Remove net_bt_stack group and replace it with bluetooth
Bug: 31549206
Change-Id: I4da37bef5cff0e6054e952e6755905a5cc1e2e68
2016-09-20 23:05:50 +00:00
yirui
f9936b9b7c Fix incorrect emoji presentation for 'Zsym' script
If the language tag "und-Zsym" is applied to a TextView, the default
presentation should be text-style. However, it didn't work before this
patch, due to a lack of "und-Zsym" language tag in fonts.xml.

Bug: 31297127
Change-Id: Ieed8fe1532806dd1e75c58aa0d7a724bfeed7796
2016-09-14 10:30:59 +09:00
Jean-Michel Trivi
8c3e199ba6 Fix alarm Bounce: remove DC offset at beginning am: bcbb5c4e07 am: a833e1ca30
am: 57067c871d

Change-Id: I22065fdc052656dcd3e635ccab71886b10e05448
2016-08-24 23:53:13 +00:00
Jean-Michel Trivi
bcbb5c4e07 Fix alarm Bounce: remove DC offset at beginning
Bug 31047718

Change-Id: I8abc8c6d90be172fe2797b1e89d34fafa690e21c
2016-08-24 23:02:49 +00:00
Felipe Leme
84c784b49a Merge "Move DownloadsManager to permanent whitelist." into nyc-dev am: 31e3b14d6a
am: d116e0fc14

* commit 'd116e0fc1447470a1d7ca1d6f25f56b4e598f996':
  Move DownloadsManager to permanent whitelist.

Change-Id: Icbe617b4a5f894930b15923fe2a104d1957bb17a
2016-06-01 23:02:47 +00:00
Felipe Leme
9a1dfc9dab Merge "Move DownloadsManager to permanent whitelist." into nyc-dev
am: 31e3b14d6a

* commit '31e3b14d6a613934a8c44223fd77aff2ecc5c5a5':
  Move DownloadsManager to permanent whitelist.

Change-Id: I2d36bc51ff244a0890824e376602f22baa0c4b7b
2016-06-01 22:45:33 +00:00
Felipe Leme
05515ae925 Move DownloadsManager to permanent whitelist.
DownloadProvider is now based completely on JobScheduler, and deep
inside the platform we allow foreground
downloads (FLAG_WILL_BE_FOREGROUND) to run even while the device is in
doze, so it doesn't need to be temporarily whitelisted anymore.

BUG: 29056149
Change-Id: I3658bb42aeeee5d5528f91ec990d6e1bc54257b6
2016-05-31 17:50:39 -07:00
Jean-Michel Trivi
5a847c6e48 Merge "Additional alarm sounds for N" into nyc-dev
am: b97fdfa39a

* commit 'b97fdfa39afe0dd90ebfb821a839a509475fd47c':
  Additional alarm sounds for N

Change-Id: If309b5d5e1569bc5ac1dc78a4e4ff9e289af4b71
2016-04-28 22:24:11 +00:00
Jean-Michel Trivi
b97fdfa39a Merge "Additional alarm sounds for N" into nyc-dev 2016-04-28 22:14:02 +00:00
Felipe Leme
3923615a50 Merge "Whitelist Downloads Manager for Data Saver." into nyc-dev
am: 76d985f1df

* commit '76d985f1df75a67a16fda68dc08333a6acb0c636':
  Whitelist Downloads Manager for Data Saver.

Change-Id: I3cdadaf795434b876d70bb5f91c9d02222dbec3c
2016-04-28 20:27:36 +00:00
Felipe Leme
1d0fbedf45 Whitelist Downloads Manager for Data Saver.
BUG: 28431507

Change-Id: I0478ff48865951a7ebac94434f48ad0e272e0901
2016-04-27 17:11:37 -07:00
Jean-Michel Trivi
81c909760a Additional alarm sounds for N
All file have "ANDROID_LOOP=true" and "TITLE" set.

Bug 27880181

Change-Id: Ia2289b53f6b928e0d49a49281ff96cc5690863e5
2016-04-27 14:47:33 -07:00
Doug Felt
cecd14ed9c Merge "Update fonts.xml file for new noto fonts." into nyc-dev
am: 0037461

* commit '00374616b32b90fef82b17d0b102ca6f4b152bcd':
  Update fonts.xml file for new noto fonts.

Change-Id: Ia5c218b3b73d07052bd5078bdf527fc556da1594
2016-04-14 17:28:16 +00:00
Doug Felt
1d69547fb9 Update fonts.xml file for new noto fonts.
- Tibetan Bold, Symbols-Regular-Subsetted2.

Bug: 27531263
Bug: 26862061
Change-Id: I356bdf438748f29a6fbb5e199902fa574dd08da8
2016-04-14 03:26:18 +00:00
Svet Ganov
1b8789191d Merge "Keep read/write external storage as built-in permissions" into nyc-dev
am: 65136ac

* commit '65136ac6a4f6fb2423a0768b451782dcd0e960d5':
  Keep read/write external storage as built-in permissions

Change-Id: I2688ed6f57e92238afe729d636ad23c23af288cb
2016-04-12 22:22:56 +00:00
Svetoslav Ganov
65136ac6a4 Merge "Keep read/write external storage as built-in permissions" into nyc-dev 2016-04-12 22:11:19 +00:00
Svet Ganov
e5313a842a Keep read/write external storage as built-in permissions
These are permissions that were mapped to gids but we need
to keep them listed event though they are no longer mapped
to gis until an upgrade from L to the current version is to
be supported. These permissions are built-in and in L were
not stored in packages.xml as a result if they are not defined
in the platform.xml while parsing packages.xml we would
ignore these permissions being granted to apps and not
propagate the granted state.

From N we are storing the built-in permissions in packages.xml
as the saved storage is negligible (one tag with the permission)
compared to the fragility as one can remove a built-in permission
which no longer needs to be mapped to gids and break grant
propagation.

bug:27185272

Change-Id: I65e05c4f7edd9a934888b4d0974100aa4e9a9453
2016-04-11 10:03:18 -07:00
Jeff Sharkey
ae4a31f6ec Revert "Keep read/write external storage as built-in permissions"
am: 8ed9ece

* commit '8ed9ece93dca5c7266ca7d9c5fabe7c9a6b214e7':
  Revert "Keep read/write external storage as built-in permissions"

Change-Id: Ic52bb816d564076999ab7a220fd70a52228731b1
2016-04-09 23:08:52 +00:00
Jeff Sharkey
8ed9ece93d Revert "Keep read/write external storage as built-in permissions"
This reverts commit 4086750e30d04715d5be3ca6eaa75a4a1fa41d56.
2016-04-09 16:12:01 -06:00
Svet Ganov
2773d6d520 Merge "Keep read/write external storage as built-in permissions" into nyc-dev
am: 30f3759

* commit '30f37594e02e09903c56e1325cec85081f2aadb8':
  Keep read/write external storage as built-in permissions

Change-Id: If7a68c832d07d204bb18ae6ce5008433c8cce328
2016-04-09 20:25:56 +00:00
Svetoslav Ganov
30f37594e0 Merge "Keep read/write external storage as built-in permissions" into nyc-dev 2016-04-09 20:16:13 +00:00
Svet Ganov
4086750e30 Keep read/write external storage as built-in permissions
These are permissions that were mapped to gids but we need
to keep them listed event though they are no longer mapped
to gis until an upgrade from L to the current version is to
be supported. These permissions are built-in and in L were
not stored in packages.xml as a result if they are not defined
in the platform.xml while parsing packages.xml we would
ignore these permissions being granted to apps and not
propagate the granted state. From N we are storing the built-in
permissions in packages.xml as the saved storage is negligible
(one tag with the permission) compared to the fragility as one
can remove a built-in permission which no longer needs to be
mapped to gids and break grant propagation.

bug:27185272

Change-Id: I440f6ceb7bc4710dece1a2fadabc995b18fc2a83
2016-04-09 13:05:26 -07:00
Ying Wang
62ba1dfeff Merge "Fix dependency for fontchain_lint" into nyc-dev
am: 70dc7e2f

* commit '70dc7e2f06ff71d83412ee794488ff6d603755ab':
  Fix dependency for fontchain_lint

Change-Id: Idf17cd474f1c071b954ba5854f7436ae041c7068
2016-04-05 17:51:50 +00:00
Ying Wang
d5b46b19c6 Fix dependency for fontchain_lint
fontchain_lint scans directories in $(TARGET_OUT). There is no better
target working as dependency than the system.img.

Change-Id: I560b89f697e5ebd4f1e44a150f5af37996cf427e
2016-04-05 10:26:14 -07:00
Roozbeh Pournader
9da7bb7584 Merge "Re-enable emoji font tests" into nyc-dev
am: 2159f70

* commit '2159f7017dddaa376dd30786c7e6dcc0ecdf4cfb':
  Re-enable emoji font tests

Change-Id: I0091484be93861086200c01d44c3fb66b814b204
2016-03-31 22:28:30 +00:00
Roozbeh Pournader
27ec3ace18 Re-enable emoji font tests
This re-enables the emoji font tests, but doesn't run the tests if
SMALLER_FONT_FOOTPRINT is set.

Additionally, we test that there's one and only one emoji font in the
fallback chain.

Bug: 26187231
Bug: 27785690
Change-Id: I2e6d467e3f54ee3d41737170d7c2492a0f6b30f0
2016-03-31 13:23:15 -07:00
Roozbeh Pournader
97b8b9a92a Merge "Add emoji-related tests for the font chain" into nyc-dev
am: 276b1bc

* commit '276b1bc2ba980942e02f3b20c100be73b82d23fe':
  Add emoji-related tests for the font chain
2016-03-17 17:35:20 +00:00
Roozbeh Pournader
fa1facc0fd Add emoji-related tests for the font chain
1. Check that all emoji characters are supported in emoji fonts.

2. Check that no default-emoji characters are included in any font
that can get a higher score then the color emoji font, either by
being before it or by having a language/script assigned.

Bug: 26187231

Change-Id: Ic76bf59f1c6f9d2d290b1b64128d725ae08dcb5c
2016-03-16 13:57:22 -07:00
Roozbeh Pournader
f7ab0c684e Merge "Add test script for sanity of font fallback chain" into nyc-dev
am: e3dedf9f44

* commit 'e3dedf9f4481f41ab0a818e7c88197859a281aba':
  Add test script for sanity of font fallback chain
2016-03-11 23:54:12 +00:00
Roozbeh Pournader
0e969e2c0b Add test script for sanity of font fallback chain
Various tests have been added:

1. Availability of hyphens: Make sure that every font used for
rendering a language that is automatically hyphenated includes either
of Unicode hyphen characters U+2010 HYPHEN or U+002D HYPHEN-MINUS.

2. Range of values: Make sure that styles, weights, and styles belong
to certain limited sets.

Bug: 26187231
Bug: 21570828
Bug: 21815394
Change-Id: Ia63d63cc8da4f2d6bc81fe5619ccac6cfcd9a54e
2016-03-10 18:07:15 -08:00
Roozbeh Pournader
337ebb3206 Merge "Annotate fonts.xml with intended scripts" into nyc-dev
am: 349dc61cba

* commit '349dc61cbaf6876184f659695896158f4991f04d':
  Annotate fonts.xml with intended scripts
2016-03-10 06:44:26 +00:00
Roozbeh Pournader
9bd17ce738 Annotate fonts.xml with intended scripts
Add various ISO 15924 codes to fonts.xml, as a signal for better
font selection in Minikin.

Bug: 27582800
Bug: 26187231
Change-Id: Ie06c156e0179e79c15cf2d66d577c3d36571860d
2016-03-09 21:46:15 -08:00
Jim Kaye
d3a460233f Support keyboard entry of non-ASCII characters
am: b57679e2e7

* commit 'b57679e2e7fb6f133f6fe373d8036b74866476d8':
  Support keyboard entry of non-ASCII characters
2016-03-02 19:06:34 +00:00
Jim Kaye
b57679e2e7 Support keyboard entry of non-ASCII characters
Add characters to the keyboard mapping to allow them
to be entered into the AVD from the developer's PC
keyboard.

This mapping supports the non-ASCII keys that appear
on the "US International" keyboard. Most of the Latin-1
characters (but not all) appear on this keyboard.

This change does not remove support for any keys.

b.android.com/200042

Change-Id: I65d54eb36183382b171c388b26848941eb0ff8d9
(cherry picked from commit dac57966a9ddc2e3dbd233c8b1e7b83f60e11373)
2016-03-02 18:56:10 +00:00
Michael Wright
584e8d11a8 Merge "Add keylayout for Xbox One controller" am: 7416762be0
am: 605d619b1e

* commit '605d619b1eeef901661c9536b7921ac47960d110':
  Add keylayout for Xbox One controller
2016-02-17 22:55:10 +00:00
Tim Clark
66a25396b0 Add keylayout for Xbox One controller
Change-Id: Ifb4005ed7b6345c9af126d8f1bd22c7e2921871f
2016-02-17 17:26:06 +00:00
Roozbeh Pournader
b48f309e91 Merge "Restore DroidSansFallback to fonts.xml" 2016-02-05 18:35:14 +00:00
Roozbeh Pournader
3c8bec10a6 Restore DroidSansFallback to fonts.xml
The font was mistakenly removed in
Ib69e73a6682d7eedd7b824f1dadc79cbccf07605, while it is still built
for SMALLER_FONT_FOOTPRINT devices.

Change-Id: Icb62ef6ef7445255191c70110a2b5eb4105628ce
2016-02-04 14:22:20 -08:00
Ben Wagner
b013cfec0b Merge "Remove unused fonts." 2016-02-04 21:56:09 +00:00
Ben Wagner
cee5f2023b Remove unused fonts.
The fonts being removed are no longer referenced.

Change-Id: I3029bdc817a39f5000a1c3d067afc1d40e859b93
2016-02-04 15:02:00 -05:00