aboutsummaryrefslogtreecommitdiff
path: root/en/devices/tech
diff options
context:
space:
mode:
authorAndroid Partner Docs <noreply@android.com>2018-04-09 14:45:26 -0700
committerClay Murphy <claym@google.com>2018-04-09 14:52:13 -0700
commit804f3183c40817391c886feab3005bf47f08d29e (patch)
tree8afafd84cf03b8bbf57a9b0608fe29a98e8c0865 /en/devices/tech
parent08f4f1a3b11912f54ae9bf6c7acd904bfe21de3e (diff)
downloadsource.android.com-804f3183c40817391c886feab3005bf47f08d29e.tar.gz
Docs: Changes to source.android.com
- 192190878 Update build numbers for Apr 2018 backpocket releases by Android Partner Docs <noreply@android.com> - 192180981 Fix hidl-cpp Nfc example to compile. by Android Partner Docs <noreply@android.com> - 192149941 Fix link to user guide, add link to dir, add section header by Clay Murphy <claym@google.com> - 192144867 Fix lines exceeding 80 character limit by Android Partner Docs <noreply@android.com> - 192143959 Devsite localized content from translation request f1daaa... by Android Partner Docs <noreply@android.com> - 192143763 Devsite localized content from translation request ea6294... by Android Partner Docs <noreply@android.com> - 192143652 Devsite localized content from translation request 055318... by Android Partner Docs <noreply@android.com> - 192143640 Devsite localized content from translation request d8e019... by Android Partner Docs <noreply@android.com> - 192139612 Fix link to moved external HiKey960_Schematics.pdf by Clay Murphy <claym@google.com> - 191951035 Remove ccache advice we don't believe. by Android Partner Docs <noreply@android.com> - 191909962 Typo in closing tag. <ol> to </ol> by Android Partner Docs <noreply@android.com> - 191907769 Update hikey960 to use vendor partition by Android Partner Docs <noreply@android.com> - 191821197 Amending additional steps and requirements on /vendor/etc... by Android Partner Docs <noreply@android.com> - 191808945 Add code tags by Android Partner Docs <noreply@android.com> - 191783990 Update typing for plural permissions following b/77605085 by Christina Nguyen <cqn@google.com> - 191744609 Change headings from title case to sentence case in /setup. by Android Partner Docs <noreply@android.com> - 191666381 Update File DAC configuration on using an OEM-specific AID by Christina Nguyen <cqn@google.com> - 191644853 Update AOSP links in April bulletins by Danielle Roberts <daroberts@google.com> - 191606759 Devsite localized content from translation request ab2ae5... by Android Partner Docs <noreply@android.com> - 191604399 Remove duplicate entry (already in Android bulletin) by Android Partner Docs <noreply@android.com> - 191463374 Devsite localized content from translation request 177e53... by Android Partner Docs <noreply@android.com> - 191451679 Add more information on boottime optimization by Android Partner Docs <noreply@android.com> - 191440990 Devsite localized content from translation request 1028aa... by Android Partner Docs <noreply@android.com> - 191438500 Update OWNERS files with new team members by Danielle Roberts <daroberts@google.com> - 191438471 Fix incorrect CVE number by Android Partner Docs <noreply@android.com> - 191365978 Update build numbers for Apr 2018 releases by Android Partner Docs <noreply@android.com> - 191337429 No need to download Mali binary blob anymore by Android Partner Docs <noreply@android.com> - 191317352 Fixed mixup in ARF name (Access File Rule -> Access Rule ... by Christina Nguyen <cqn@google.com> - 191315249 Fix dates by Clay Murphy <claym@google.com> - 191313037 Add second details ref, remove spacing other artifacts by Clay Murphy <claym@google.com> - 191308126 Add April 2018 security bulletins and acknowledgements by Clay Murphy <claym@google.com> - 191302158 Update February Pixel bulletin to move CVE-2017-15817 as ... by Android Partner Docs <noreply@android.com> - 191302132 Update February Android bulletin to move CVE-2017-15817 a... by Android Partner Docs <noreply@android.com> - 191294135 Devsite localized content from translation request 975929... by Android Partner Docs <noreply@android.com> - 191294129 Devsite localized content from translation request 2671e0... by Android Partner Docs <noreply@android.com> - 191294124 Devsite localized content from translation request da4c33... by Android Partner Docs <noreply@android.com> - 191294045 Devsite localized content from translation request 0c8eb6... by Android Partner Docs <noreply@android.com> - 191294039 Devsite localized content from translation request dcb545... by Android Partner Docs <noreply@android.com> - 191294037 Devsite localized content from translation request 32f608... by Android Partner Docs <noreply@android.com> - 191132422 Adding new vts Test Framework with three new pages and mu... by Heidi von Markham <hvm@google.com> - 191132198 Clarify that the OTA updates are "system" updates on the ... by Christina Nguyen <cqn@google.com> - 191083408 FooCallback should be extending IFooCallback.Stub, not IF... by Android Partner Docs <noreply@android.com> - 190951580 Remove message soliciting external contributions by Clay Murphy <claym@google.com> - 190817491 Updating using multiple dt overlays by Heidi von Markham <hvm@google.com> - 190786806 hikey: Switch to compressed kernel images by Android Partner Docs <noreply@android.com> - 190699917 Add YIR2017 to updates and resources page by Danielle Roberts <daroberts@google.com> - 190684574 Reorg of Setup to include directories, fixing old/bad/non... by Heidi von Markham <hvm@google.com> - 190661679 Added missing change log to CDD 5.1. by Android Partner Docs <noreply@android.com> - 190650880 Devsite localized content from translation request 91b16e... by Android Partner Docs <noreply@android.com> - 190650867 Devsite localized content from translation request 2a06e8... by Android Partner Docs <noreply@android.com> - 190650721 Devsite localized content from translation request d34273... by Android Partner Docs <noreply@android.com> - 190650712 Devsite localized content from translation request 850bf6... by Android Partner Docs <noreply@android.com> - 190650708 Devsite localized content from translation request 7cfb03... by Android Partner Docs <noreply@android.com> - 190643444 Adding details on structured interfaces by Heidi von Markham <hvm@google.com> PiperOrigin-RevId: 192190878 Change-Id: If9d3a38dd1075636c0a61651cbd73e8acc903146
Diffstat (limited to 'en/devices/tech')
-rw-r--r--en/devices/tech/config/filesystem.html3
-rw-r--r--en/devices/tech/config/namespaces_libraries.html20
-rw-r--r--en/devices/tech/config/perms-whitelist.html6
-rw-r--r--en/devices/tech/config/uicc.html2
-rw-r--r--en/devices/tech/ota/ab/index.html3
-rw-r--r--en/devices/tech/ota/index.html4
-rw-r--r--en/devices/tech/perf/boot-times.html22
7 files changed, 50 insertions, 10 deletions
diff --git a/en/devices/tech/config/filesystem.html b/en/devices/tech/config/filesystem.html
index 10b7f0b4..73633943 100644
--- a/en/devices/tech/config/filesystem.html
+++ b/en/devices/tech/config/filesystem.html
@@ -244,7 +244,8 @@ the autogenerated header file by adding to your module's <code>Android.mk</code>
and including the empty faux library. For example, in <code>Android.mk</code>,
add the following:</p>
-<pre class="prettyprint"> LOCAL_STATIC_LIBRARIES := liboemaids</pre>
+<pre class="prettyprint">LOCAL_HEADER_LIBRARIES := oemaids_headers</pre>
+
<p>In your C code, <code>#include "generated_oem_aid.h"</code> and start using
the declared identifiers. For example, in <code>my_file.c</code>, add the
following: </p>
diff --git a/en/devices/tech/config/namespaces_libraries.html b/en/devices/tech/config/namespaces_libraries.html
index b91cbe23..1e94bf1b 100644
--- a/en/devices/tech/config/namespaces_libraries.html
+++ b/en/devices/tech/config/namespaces_libraries.html
@@ -61,6 +61,26 @@ additional native libraries accessible to apps by putting them under the
<code>/vendor/etc/public.libraries.txt</code>
</p>
+<p>
+Starting from Android 8.0, vendor public libraries have the following additional
+restrictions and required setups:
+</p>
+
+<ol>
+ <li>The native library in vendor must be properly labeled so it can be
+ accessible to apps. If access is required by any apps (including third
+ party apps), the library must be labeled as <code>same_process_hal_file</code>
+ in a vendor-specific <code>file_contexts</code> file as follows:
+ <pre class="devsite-click-to-copy">/vendor/lib(64)?/libnative.so u:object_r:same_process_hal_file:s0</pre>
+ where <code>libnative.so</code> is the name of the native library.
+ </li>
+ <li>The library, either directly or transitively via its dependencies, must not
+ depend on system libraries other than VNDK-SP and LLNDK libraries. The list of
+ VNDK-SP and LLNDK libraries can be found at
+ <code>development/vndk/tools/definition/tool/datasets/eligible-list-&lt;version&gt;-release.csv</code>.
+ </li>
+</ol>
+
<h2 id="updating-app-non-public">Updating apps to not use non-public native libraries</h2>
<p>
diff --git a/en/devices/tech/config/perms-whitelist.html b/en/devices/tech/config/perms-whitelist.html
index c3de0de0..918f89eb 100644
--- a/en/devices/tech/config/perms-whitelist.html
+++ b/en/devices/tech/config/perms-whitelist.html
@@ -135,7 +135,7 @@
transitional log-mode:
</p>
-<pre class="devsite-click-to-copy">ro.control_privapp_permission=log</pre>
+<pre class="devsite-click-to-copy">ro.control_privapp_permissions=log</pre>
<p>
Violations are reported in the log file, but permissions are still granted.
@@ -158,11 +158,11 @@ PackageManager: Privileged permission {PERMISSION_NAME} for package {PACKAGE_NAM
<p>
After whitelists are in place, enable runtime enforcement by setting the build
- property <code>ro.control_privapp_permission=enforce</code>.
+ property <code>ro.control_privapp_permissions=enforce</code>.
</p>
<aside class="note"><strong>Note:</strong> The
- <code>ro.control_privapp_permission</code> property state must adhere to
+ <code>ro.control_privapp_permissions</code> property state must adhere to
<a href="/compatibility/android-cdd#9_1_permissions">CDD section 9.1
requirements</a>.</aside>
diff --git a/en/devices/tech/config/uicc.html b/en/devices/tech/config/uicc.html
index 1fa6952c..96c1d360 100644
--- a/en/devices/tech/config/uicc.html
+++ b/en/devices/tech/config/uicc.html
@@ -29,7 +29,7 @@ Android platform loads certificates stored on a UICC and grants permission to
apps signed by these certificates to make calls to a handful of special APIs.
</p>
<p>Android 7.0 extends this feature to support other storage sources, such as
-Access File Rule (ARF), for UICC carrier privilege rules, dramatically
+Access Rule File (ARF), for UICC carrier privilege rules, dramatically
increasing the number of carriers that can use the APIs. For an API reference,
see <a href="#carrierconfigmanager">CarrierConfigManager</a>; for instructions,
see <a href="/devices/tech/config/carrier.html">Carrier
diff --git a/en/devices/tech/ota/ab/index.html b/en/devices/tech/ota/ab/index.html
index 48a9fea5..c2a9c447 100644
--- a/en/devices/tech/ota/ab/index.html
+++ b/en/devices/tech/ota/ab/index.html
@@ -31,6 +31,9 @@
updates successfully.
</p>
+ <p>For more information about A/B system updates and how they work, see
+ <a href="#slots">Partition selection (slots)</a>.
+
<p>A/B system updates provide the following benefits:</p>
<ul>
diff --git a/en/devices/tech/ota/index.html b/en/devices/tech/ota/index.html
index 1565e3b2..7b2f0dd0 100644
--- a/en/devices/tech/ota/index.html
+++ b/en/devices/tech/ota/index.html
@@ -35,7 +35,7 @@
applications installed by the user from Google Play.
</p>
- <h2 id="ab_updates">A/B updates</h2>
+ <h2 id="ab_updates">A/B (seamless) system updates</h2>
<p>
Modern A/B devices have two copies of each partition, A and B. Devices
@@ -50,7 +50,7 @@
</a>.
</p>
- <h2 id="nonab_updates">Non-A/B updates</h2>
+ <h2 id="nonab_updates">Non-A/B system updates</h2>
<p>
Older devices have a special recovery partition containing the software
diff --git a/en/devices/tech/perf/boot-times.html b/en/devices/tech/perf/boot-times.html
index a7588301..fb6ad441 100644
--- a/en/devices/tech/perf/boot-times.html
+++ b/en/devices/tech/perf/boot-times.html
@@ -255,17 +255,27 @@ us uncover many meaningful bugs in some Android device drivers).
Many processes launch during boot, but only components in critical path
(bootloader > kernel > init > file system mount > zygote > system server)
directly affect boot time. Profile <strong>initcall</strong> during kernel
-booting to identify peripheral/components that are not critical to the
-start init process, then delay those peripherals/components until later
-in the boot process.
+booting to identify peripheral/components that are slow and not critical
+to start init process, then delay those peripherals/components until later
+in the boot process by moving into loadable kernel modules. Moving to
+asynchronous device/driver probe can also help to parallel slow components
+in kernel > init critical path.
</p>
<pre
class="prettyprint">
BoardConfig-common.mk:
BOARD_KERNEL_CMDLINE += initcall_debug ignore_loglevel
+
+driver:
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
</pre>
+<p class="note">
+<strong>Note:</strong> Driver dependencies must be resolved carefully by adding
+<code>EPROBEDEFER</code> support.
+</p>
+
<h2 id="optimizing-i-o-efficiency">Optimizing I/O efficiency</h2>
<p>
@@ -422,6 +432,12 @@ early stage init should be deferred to boot completed.</li></ul>
</li>
</ul>
+<p class="note">
+<strong>Note:</strong> Property service is part of init process, so calling
+<code>setproperty</code> during boot can lead a long delay if init is busy in
+builtin commands.
+</p>
+
<h3 id="using-scheduler-tuning">Using scheduler tuning</h3>
<p>