summaryrefslogtreecommitdiffstats
path: root/data
Commit message (Collapse)AuthorAgeFilesLines
* Permission to view shared storage for all users.Jeff Sharkey2015-07-061-0/+1
| | | | | | | | | | | | | | | | Typical apps are restricted so they can only view shared storage belonging to the user they're running as. However, a handful of system components need access to shared storage across all users, such as DefaultContainerService and SystemUI. Since WRITE_MEDIA_STORAGE already offers this functionality by bypassing any FUSE emulation, reuse it to grant the "sdcard_rw" GID which is no longer handed out to third-party apps. Then we change the FUSE daemon to allow the "sdcard_rw" GID to see shared storage of all users. Bug: 19995822 Change-Id: I504c2a179ba74f142ed0d32da5baa69f4212cd82
* Let's reinvent storage, yet again!Jeff Sharkey2015-06-251-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we're treating storage as a runtime permission, we need to grant read/write access without killing the app. This is really tricky, since we had been using GIDs for access control, and they're set in stone once Zygote drops privileges. The only thing left that can change dynamically is the filesystem itself, so let's do that. This means changing the FUSE daemon to present itself as three different views: /mnt/runtime_default/foo - view for apps with no access /mnt/runtime_read/foo - view for apps with read access /mnt/runtime_write/foo - view for apps with write access There is still a single location for all the backing files, and filesystem permissions are derived the same way for each view, but the file modes are masked off differently for each mountpoint. During Zygote fork, it wires up the appropriate storage access into an isolated mount namespace based on the current app permissions. When the app is granted permissions dynamically at runtime, the system asks vold to jump into the existing mount namespace and bind mount the newly granted access model into place. Bug: 21858077 Change-Id: I62fb25d126dd815aea699b33d580e3afb90f8fd2
* Fix ascent and descent of Droid Sans Mono to match Roboto.Roozbeh Pournader2015-06-131-0/+0
| | | | | | | | | | | | | | | | | | | | Previously, the inconsistency resulted in test in the testUniformY in frameworks/base/graphics/tests/graphicstests/src/android/graphics/TypefaceTest.java fail. The tests assume the different sans/serif/mono styles share a consistent ascent and descent. The font is modified using the following Python script: from fontTools import ttLib font_file = 'DroidSansMono.ttf' font = ttLib.TTFont(font_file) font['hhea'].ascent = 1900 font['hhea'].descent = -500 font.save('touched/'+font_file) Bug: 19791102 Change-Id: I2fcd44b952691deeeed18f30d06bc9f6d5e4a8de
* Merge EXTENDED font profile with the next (unnamed) profile.Roozbeh Pournader2015-06-111-14/+7
| | | | | | | | | | | | | | | | | | | | This is now possible since we have less space restrictions on devices. This helps make sure that devices don't mistakenly ship with a limited font support simply because they didn't turn on the extended font profile. Although the larger version of Droid Sans Fallback is no longer used in any font profile for a device, it is kept since it's used by the SDK. The Nanum Gothic font is no longer used in any device profile either, but it's kept in the fallback chain, so the SDK (that uses it) continues to work. Bug: 19668057 Change-Id: I6e32c4c98745e9b6aff6684d993943a19aebf6f7
* Move NotoSansSymbols higher than CJK in the fallback chain.Roozbeh Pournader2015-06-042-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure that symbol characters who have both an alternative or "full-width" version in the CJK fonts and a more regular version in the symbols font get the default or "half-width" version by default in non-CJK locales. This is not a complete fix: such "full-width" symbol characters only exist in the Simplfied Chinese font for now, which means in Traditional Chinese, Japanese, and Korean locales, they characters would now appear "half-width", which *may* be sub-optimal. The complete fix would make sure the ones that actually need to be "full-width" in TC/J/K are also included in the TC/J/K font. Bug: 21525318 Bug: 21525012 Bug: 21524421 Bug: 21521330 Bug: 21520316 Bug: 21518544 Bug: 21517912 Bug: 21503807 Bug: 21502245 Bug: 21501669 Bug: 21525905 Bug: 21524018 Bug: 21503952 Bug: 21502678 Change-Id: I93cf7119b45ed3c080cd39d631a687e0ef9fd8ce
* Update Naskh font names to match upstream and add Tibetan.Roozbeh Pournader2015-05-192-8/+16
| | | | | | | | | | | | | | | The latest files from the upstream Noto repository are named NotoNaskhArabic* instead of the previous NotoNaskh*. Also, Noto Sans Tibetan is now included in the fallback chain. Apart from supporting Tibetan and Dzongkha langauges, this adds a character (U+0FD6) that completes coverage for ARIB character sets. Bug: 13680438 Bug: 18181755 Bug: 18639453 Bug: 19390244 Change-Id: I09b493340d1453ef61b08c841e1731119d645822
* Make Noto Sans Japanese default font on extended profiles.Roozbeh Pournader2015-05-121-0/+5
| | | | | | | | This experimentally makes Noto Sans Japanese the default Japanese font. Bug: 21074688 Change-Id: I4a9396a03bd758541574431760d5d387a472bec6
* Rename Noto Han fonts to their latest names.Roozbeh Pournader2015-04-292-4/+4
| | | | | | | NotoSansHans has been renamed to NotoSansSC and NotoSansHant has been renamed to NotoSansTC. Change-Id: I3c416d1aa753dc9be2c0e4ee1a8d77cdb9cdd4b1
* Rename FONT_NOTOSANS_FULL to FONT_NOTOSANS_JP_FULL.Roozbeh Pournader2015-04-291-2/+2
| | | | | | | This clarifies the meaning of the variable, that this switch only affects the Noto Sans Japanese font. Change-Id: I28043ed41ec51af0273a071692426d51352ef849
* Merge "Mark AVRCP devices as internal."Michael Wright2015-04-151-0/+19
|\
| * Mark AVRCP devices as internal.Michael Wright2015-03-111-0/+19
| | | | | | | | | | | | | | This prevents devices from waking up when an AVRCP key is injected. Bug: 19685657 Change-Id: I97137531da07b61211b792b407c4c9a09b231839
* | Support more smaller scripts of Asia and Africa.Roozbeh Pournader2015-04-132-2/+66
| | | | | | | | | | | | | | | | | | Noto fonts for Bamum, Lisu (Fraser), Mandaic, Mongolian, New Tai Lue, Syriac (Estrangela), and Vai scripts are added to the fallback chain. Bug: 19390244 Bug: 18639453 Change-Id: If18a7ea245f3b15baa9fb4f53855ae64759f921b
* | Switch from Lohit Odia to Noto Sans Oriya fonts.Roozbeh Pournader2015-04-062-8/+20
| | | | | | | | | | | | Noto Sans Oriya fonts also have bold and UI versions, which are added. Change-Id: Id622143688d89e25857c00489d81703780f79887
* | Allow override of Motoya with full NotoSansKris Giesing2015-03-261-0/+3
| | | | | | | | | | | | b/17599829 Change-Id: I619288eadb8bf814b08dca833f540a80e38c2123
* | Introduce per-user GIDs for storage.Jeff Sharkey2015-03-231-2/+2
| | | | | | | | | | | | | | This will eventually allow us to have a single unified filesystem instead of requiring zygote to use bind mounts. Change-Id: I29b819ab51498b4bab874e0367b1ab4165f84025
* | Remove Roboto fonts and their build rulesRoozbeh Pournader2015-02-2520-56/+0
|/ | | | | | | They are now moved to external/roboto-fonts. Symlinks from deprecated fonts to Roboto for compatibility reasons are still created here. Change-Id: I9e1b88a4289d055ea187e241d6514f0b37c5ee1b
* Merge "Move apache specific portions of android.net.http to ↵Narayan Kamath2015-02-131-1/+0
|\ | | | | | | external/apache-http."
| * Move apache specific portions of android.net.http to external/apache-http.Narayan Kamath2015-02-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We continue to compile external/apache-http into ext.jar. This contains a few changes apart fom the classes moving around : - Makefile changes to build docs and api-stubs for now. A future change will revert these changes and remove these classes from stubs and docs. - Hardcode event IDs in legacyerrorstrings to avoid a dependency between the frameworks and apache. These strings are on their way out and will never change anyway. - Remove imports due to {@link} tags and use {@code} instead. - Remove an accidental(?) dependency on apache commons code that's a part of apache-http. bug: 18027885 Change-Id: I51cd038d846ec7d02c283a4541b10a6a9cf62ecf
* | Move Noto Sans Tai Le to the end of the font fallback list.Roozbeh Pournader2015-02-112-13/+15
|/ | | | | | | | | | | This is to make sure the East Asian punctuation shared between CJK languages and Tai Le are rendered from the CJK fonts when no language is specified for the text, or CJK text is rendered in a non-CJK locale. Also remove the old comment about 64k glyphs limit. Bug: 19355391 Change-Id: Ic2cbc79cecf9539ace8a432f373685eeff81e106
* Add library definition for org.apache.http.legacy.Narayan Kamath2015-01-211-1/+4
| | | | | bug: 18027885 Change-Id: I300ab2eb0f87e004ef20157bd23517865133665c
* Merge "Add 8 more scripts to the font fallback chain." into lmp-mr1-devRaph Levien2014-12-052-0/+66
|\
| * Add 8 more scripts to the font fallback chain.Roozbeh Pournader2014-11-252-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | Fonts for Cham, Coptic, Glagolitic, Kayah Li, Tai Le, Tai Tham, Tai Viet, and Tifinagh scripts are added to the fallback chain. This would enable or improve display of texts in Berber languages, Cham, Church Slavonic, Coptic, Kayah languages, Khün, Northern Thai, Tai Dam, Tai Dón, Tai Lü, Tai Nüa, and Thai Song. Bug: 17686019 Change-Id: I689393bc03f3957e1025ac08ab31961a6c6bc24d
* | Add keylayout for Logitech RedHawk Gamepad DO NO MERGEMathieu Meisser2014-12-021-0/+65
| | | | | | | | | | Bug: 18596369 Change-Id: Iad03de3384052b360d6b9d887ca9540de68cd21e
* | Added Razer USA, Ltd serval DO NOT MERGEStuart Wells2014-12-021-0/+42
|/ | | | | Bug: 18596369 Change-Id: I76b7c36068c3d10ab4acb3123550ef115db0d3d2
* Add Lohit Odia (Oriya) font to the fallback chain.Roozbeh Pournader2014-11-242-0/+8
| | | | | | | | This adds Lohit Odia (Oriya) font as the default font for the Oriya script to the fallback chain. Bug: 17686019 Change-Id: If0c60a0f35a029c3761b8ea26a2546ca5c5fa0c0
* Use fonts for smaller languages of South and Southeast Asia.Roozbeh Pournader2014-11-102-2/+132
| | | | | | | | | Fonts for Balinese, Batak, Buginese, Buhid, Hanunnoo, Javanese, Lepcha, Limbu, Meetei Mayek, Ol Chiki, Rejang, Saurashtra, Sundanese, Syloti Nagri, Tagbanwa, and Thaana scripts are added. Bug: 17686019 Change-Id: I3fb783874920909e8725097481c9e7d8e35f42f8
* am 99cc35bb: Merge "Add Cutive Mono as serif monospace font for captioning" ↵Alan Viverette2014-10-112-4/+19
|\ | | | | | | | | | | | | into lmp-dev * commit '99cc35bbde7415fcdeada6fb4243097af85ae33f': Add Cutive Mono as serif monospace font for captioning
| * Add Cutive Mono as serif monospace font for captioningAlan Viverette2014-10-102-4/+19
| | | | | | | | | | | | | | | | Sets up Courier and Courier New to point to Cutive Mono, since Courier is a serif monospace font. BUG: 17666124 Change-Id: I96bb2ff59020edd8210c253752f76f0eb5100e18
* | [FM] Add FM permission to support FM radio appBenson Huang2014-10-011-0/+4
|/ | | | | | | | | | Add FM permission like KK to support FM radio app. Change-Id: Ifb76f63e3136a5f88306903fd28e9abbb01e69c9 Signed-off-by: Benson Huang <benson.huang@mediatek.com> Conflicts: data/etc/platform.xml
* Give audio GID to MANAGE_VOICE_KEYPHRASES apps.Jeff Sharkey2014-10-011-0/+6
| | | | | | | | | Some system apps doing hotword training need low-level access to audio hardware, beyond what the existing HAL offers. For now, give them the audio GID. Bug: 17763721 Change-Id: I8025c3abacae13a6ffec4e10e4976a67ab505bdf
* Add keylayout for Asus GamepadMichael Wright2014-09-231-0/+42
| | | | | Bug: 17627642 Change-Id: I9dd76bbc3ea0493d5a54479ef4dc94c520e35433
* Merge "Add material camera_click sound" into lmp-devJason Monk2014-09-1813-17/+17
|\
| * Add material camera_click soundJason Monk2014-09-1813-17/+17
| | | | | | | | | | Bug: 17281234 Change-Id: I3f9a7592cfe8171fcae44ea075bf7faafaa482fe
* | Remove Rhodi keylayoutMichael Wright2014-09-161-42/+0
|/ | | | | | | | | Looks like Broadcom re-used the Rhodi PID since we never shipped. Remove the keylayout so we don't accidentally use it for other devices. Bug: 17504946 Change-Id: Ia11ad40f8ba7d49f82e7f68d881cf7c9bfafcb37
* Map KEY_VOICECOMMAND to KEYCODE_VOICE_ASSISTMichael Wright2014-09-051-0/+1
| | | | | | | This is to simplify Project Watson requirements and enable USB Audio to easily implement similar functionality to the Watson headsets. Change-Id: Idd0a0cd6c6ba4a977090fb338d9241046f0380e6
* Merge "Update soundscape for L, using classic names." into lmp-devDan Sandler2014-08-2864-12/+8
|\
| * Update soundscape for L, using classic names.Dan Sandler2014-08-2864-12/+8
| | | | | | | | | | | | | | (partial revert of commit 7348f744) Bug: 15725449 Change-Id: Ic1a038c906deab035f96caed42fc16c59d459965
* | Merge "New weight-aware font config" into lmp-devRaph Levien2014-08-272-2/+26
|\ \ | |/ |/|
| * New weight-aware font configRaph Levien2014-08-262-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse new fonts.xml config file, and resolve weight selection based on the base weight of the font (as defined by a weight alias specified in the config file) and the requested bold flag. This change improves the appearance of bold spans for alternate weights of Roboto. In addition, this patch enables weight selection for fallback fonts. For example, if an additional font with a weight of 100 is added to the Hebrew font family in the fallback list, then requesting "sans-serif-thin" would select that font for Hebrew text. Bug: 14538154 Change-Id: I99a04fad4f7bf01c75726e760d42735dd9003496
* | Update soundscape for LAdrian Roos2014-08-2680-19/+94
|/ | | | | Bug: 15725449 Change-Id: I8c1033b24a50a61185d042bd6d214d7a3407ccbe
* Merge "Compress miscellaneous fonts." into lmp-devSascha Prueter2014-08-209-0/+0
|\
| * Compress miscellaneous fonts.Roozbeh Pournader2014-08-159-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fonts are passed through Noto's identity subsetter at https://code.google.com/p/noto/source/browse/nototools/subset.py?r=bdd10822706b which keeps the same functionality, but compresses tables, removes unreachable glyphs, converts post table to version 3.0, etc. Additionally, the DroidSansFallback fonts and MotoyaLMaru are passed through fontcrunch. The build footprint of the non-extended font profile is reduced by 546KB. Bug: 15348046 Change-Id: I66777a0efeb98da6007091548a6ee847ecb4ea1f
* | Play "device trusted" sound when onTrustInitiatedByUser firesAdrian Roos2014-08-1816-3/+16
|/ | | | | Bug: 16840500 Change-Id: I73fbe5c2cff665ccb637abb9039d57f377d9df53
* Copy fonts.xml to /system/etcRaph Levien2014-08-111-1/+2
| | | | | | | | | This patch actually copies the new font config file to the /system/etc directory on the device, where frameworks and apps will be able to read it. Bug: 14538154 Change-Id: I53a932210763b718f469d80cc92816edf4e5b14e
* Add new fonts.xmlRaph Levien2014-08-071-0/+233
| | | | | | | | | | | This adds a new configration file for fonts with several more features, most notably the ability to specify numeric weights for fonts in a family, and specify aliases for weights. This will help help choose an appropriate font for a "bold" weight request, rather than just applying auto-bolding. Bug: 14538154 Change-Id: Ib4d54d66a0c68b7d46e665d7cd94e97b72468e95
* Fix GSUB ccmp rule to use non-spacing marks.Roozbeh Pournader2014-08-0118-0/+0
| | | | | | | | | | | | | | | | | The fonts are updated to upstream version 2.001047. The previous version had buggy ccmp rules that were mistakenly replacing sequences such as A` <U+0041, U+0060> with À <U+00C0>. The new fonts replace those with corrected rules that use combining accents instead, such as U+0300 COMBINING GRAVE ACCENT instead of U+0060 GRAVE. Also, a GSUB rule that mistakenly replaced aʾ <U+0061, U+02BE> with ẚ <U+1E9A> is removed, and U+2117 SOUND RECORDING COPYRIGHT that was missing from the Thin and Thin Italic fonts is added to them. Bug: 16727859 Bug: 16719701 Change-Id: Ibd0a63ea3f51992c0e56fb255e68352915cc6c3a
* Re-remove AndroidEmoji.ttf.Roozbeh Pournader2014-07-311-0/+0
| | | | | | | It was mistakenly re-added in 6feb729b686b902be2520a91281e1a000c055da2. Change-Id: I99a41ed8e6f1975e9808d8063e594fbb996d4334 (cherry picked from commit a7d8d7bfa75b283588aacae16cce78f6161acce9)
* Crunch Roboto and fix its digits to have the same width.Roozbeh Pournader2014-07-3119-0/+0
| | | | | | | | | | | | | | | | | Update to upstream version 2.001045, which adds fontcrunch to the font production process and fixes a problem with uneven digit widths. Should fix https://code.google.com/p/android-developer-preview/issues/detail?id=330. The font footprint is reduced by 705KB, most of it due to the crunching, but also by using a newer version of fonttools that removes extra unnecessary paddings from the glyf table. Bug: 15348046 Bug: 16296048 Bug: 16299966 Change-Id: I838711916f8c47db011cfe889b232e60e6f1aa0c (cherry picked from commit 6feb729b686b902be2520a91281e1a000c055da2)
* Fix the glyph for U+3A34 in DroidSansFallbackFull.ttf.Roozbeh Pournader2014-07-251-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | The old glyph had its right part using a wrong component. The right component was available in the font. The following script was used to fix the issue: from fontTools import ttLib from nototools import subset font = ttLib.TTFont('DroidSansFallbackFull.ttf', lazy=False) glyf_table = font['glyf'] glyph = glyf_table['uni3A34'] for component in glyph.components: if component.glyphName == 'glyph45821': component.glyphName = 'glyph30895' glyph.recalcBounds(glyf_table) font.save('DroidSansFallbackFull.ttf-fixed') subset.subset_font( 'DroidSansFallbackFull.ttf-fixed', 'DroidSansFallbackFull.ttf-subset') The font footprint is reduced by 12KB mostly due to removing unneeded glyph paddings. Bug: 15149504 Change-Id: I914ec89435caadbeaa321e10fb0848f181fef667
* Do not include DroidSansFallback on EXTENDED_FONT_FOOTPRINT builds.Roozbeh Pournader2014-07-241-16/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The build file is modified to hang non-module fonts on DroidSansMono instead, now that a device may not have DroidSansFallback. Also, some cleanup is done to make the rules clearer and keep usages near definitions. The support for following character will disappear from the extended profiles because of this change: U+202A LEFT-TO-RIGHT EMBEDDING U+202B RIGHT-TO-LEFT EMBEDDING U+202C POP DIRECTIONAL FORMATTING U+202D LEFT-TO-RIGHT OVERRIDE U+F95A 讀 CJK COMPATIBILITY IDEOGRAPH-F95A U+F9F3 麟 CJK COMPATIBILITY IDEOGRAPH-F9F3 U+10400 𐐀 DESERET CAPITAL LETTER LONG I U+10428 𐐨 DESERET SMALL LETTER LONG I U+1044D 𐑍 DESERET SMALL LETTER ENG U+1044E 𐑎 DESERET SMALL LETTER OI U+1044F 𐑏 DESERET SMALL LETTER EW The first four are not needed, as HarfBuzz makes sure they are rendered as invisible, the two CJK compatibility characters have canonnical decompositions to unified ideographs already supported in included Noto Sans CJK fonts, and the Deseret letters were only in DroidSansFallback for testing purposes. Change-Id: Ibb7fa61dc851710ba14c3944281e228bd2e4f5b2