OSDN Git Service
Dan Stoza [Thu, 8 Sep 2016 17:07:51 +0000 (17:07 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev am:
a020f00bc1
am:
d968de9089
Change-Id: Ibe74ccbcac70e56de109e6334cd5460babbbe001
Dan Stoza [Thu, 8 Sep 2016 17:07:50 +0000 (17:07 +0000)]
SF/HWC2: Add a layer minidump am:
e22aec741f
am:
a9f976b50f
Change-Id: Ia04d91da4cc6fc6e2962c7dc6421882c2e4874b6
Dan Stoza [Thu, 8 Sep 2016 17:05:26 +0000 (17:05 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
am:
a020f00bc1
Change-Id: I8abb4cefe2d13090446ab13d0af345b46496074e
Dan Stoza [Thu, 8 Sep 2016 17:05:24 +0000 (17:05 +0000)]
SF/HWC2: Add a layer minidump
am:
e22aec741f
Change-Id: Ib97254ebbf2e914c965b529e7d1e59a01db48214
Dan Stoza [Thu, 8 Sep 2016 16:56:23 +0000 (16:56 +0000)]
Merge "SF/HWC2: Add a layer minidump" into nyc-mr1-dev
Felipe Leme [Thu, 8 Sep 2016 00:48:07 +0000 (00:48 +0000)]
Added a NETWORK trace tag. am:
0f97c1d775
am:
f7e809936d
Change-Id: I2c5a89edc8780a3d00b5e3179d93938a892581d9
Felipe Leme [Thu, 8 Sep 2016 00:39:30 +0000 (00:39 +0000)]
Added a NETWORK trace tag.
am:
0f97c1d775
Change-Id: Id0cb7f189d32e823cc93486edd3a4fcabd990890
Felipe Leme [Wed, 7 Sep 2016 18:33:26 +0000 (11:33 -0700)]
Added a NETWORK trace tag.
BUG:
31281543
Change-Id: Idc5759eec12f2704c9b9cc48db181f2e669ccc32
David Brazdil [Wed, 7 Sep 2016 09:28:48 +0000 (09:28 +0000)]
Merge "installd: Simplify Dalvik cache path creation" am:
ad95fc06aa am:
c3ca770d0a
am:
c0c8dad0d9
Change-Id: Ic99a44e0d137f7c26106ff45776500a75b6827d9
David Brazdil [Wed, 7 Sep 2016 09:25:48 +0000 (09:25 +0000)]
Merge "installd: Simplify Dalvik cache path creation" am:
ad95fc06aa
am:
c3ca770d0a
Change-Id: Ia76cf16f9a79be5f59bc034920a7206871a81e0e
David Brazdil [Wed, 7 Sep 2016 09:23:17 +0000 (09:23 +0000)]
Merge "installd: Simplify Dalvik cache path creation"
am:
ad95fc06aa
Change-Id: Ia4b958f09662de37f8267030b7a3919b92550cc7
David Brazdil [Wed, 7 Sep 2016 09:16:44 +0000 (09:16 +0000)]
Merge "installd: Simplify Dalvik cache path creation"
Mathieu Chartier [Wed, 7 Sep 2016 06:17:38 +0000 (06:17 +0000)]
Merge "Revert "Don't use profiles with vm safe mode"" am:
60e97a4bd4 am:
6636101423
am:
4f7537f6da
Change-Id: I38d24d7b44f443f184f954b231733dcf07b15913
Mathieu Chartier [Wed, 7 Sep 2016 06:15:37 +0000 (06:15 +0000)]
Merge "Revert "Don't use profiles with vm safe mode"" am:
60e97a4bd4
am:
6636101423
Change-Id: I125aaf91c35986fd1496aa2cf406cd22845c36aa
Mathieu Chartier [Wed, 7 Sep 2016 06:13:06 +0000 (06:13 +0000)]
Merge "Revert "Don't use profiles with vm safe mode""
am:
60e97a4bd4
Change-Id: Ia1a6395ae26733028d1c3487332400c3000de2bb
Treehugger Robot [Wed, 7 Sep 2016 06:08:13 +0000 (06:08 +0000)]
Merge "Revert "Don't use profiles with vm safe mode""
Andreas Gampe [Tue, 6 Sep 2016 23:54:12 +0000 (23:54 +0000)]
Merge changes from topic 'cherry_pms_installd' am:
59ac10df3a am:
9756df8e85
am:
f8adc1c101
Change-Id: I81533e7e035c3e94ad0388b142da7610454d4b71
Andreas Gampe [Tue, 6 Sep 2016 23:54:12 +0000 (23:54 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete am:
45cebd0e31 am:
c3f64eea20
am:
e6f03132b7
Change-Id: Id4d0a7c2e9b628e2839bf686e2fbe3943fa43370
Andreas Gampe [Tue, 6 Sep 2016 23:54:11 +0000 (23:54 +0000)]
otapreopt: Collect and print size of artifacts am:
f1a7ad43cb am:
a7949caecb
am:
3b88553779
Change-Id: Iba06c5504e74f3fd057e4a8e21e03063823a23cf
Mathieu Chartier [Tue, 6 Sep 2016 23:54:11 +0000 (23:54 +0000)]
Don't use profiles with vm safe mode am:
f513d77b6d am:
e48d088e2e
am:
39784f616c
Change-Id: I7350e87b83ffc4f874e58e9a9c3741ef779da43b
Andreas Gampe [Tue, 6 Sep 2016 23:54:10 +0000 (23:54 +0000)]
Otapreopt: Try to mount vendor partition for A/B OTA am:
fd12edaeab am:
37a32604cf
am:
a322794f49
Change-Id: I6295f729d0f5995e2ea0ef7db3e5359f7f85ee5a
Andreas Gampe [Tue, 6 Sep 2016 23:53:44 +0000 (23:53 +0000)]
Otapreopt: Add init script for A/B artifact move am:
90dc492207 am:
8c839de88a
am:
1f60f937c8 -s ours
Change-Id: I86169ec27e5566cb4ba0f58211131e9264b5604e
Andreas Gampe [Tue, 6 Sep 2016 23:43:43 +0000 (23:43 +0000)]
Otapreopt: Implement new A/B OTA path am:
d089ca1703 am:
7d14f10de3
am:
261fcb4c8b -s ours
Change-Id: Ibaf74540839e87b9227a547fda737739e0ae283c
Andreas Gampe [Tue, 6 Sep 2016 23:38:58 +0000 (23:38 +0000)]
Installd: Add support for dex2oat very-large-app property am:
a5cc10a8e8 am:
aac5c6ce67
am:
09ff3cb16b
Change-Id: I8bbca81d14c8fc346ec9c49432499a81241db590
Andreas Gampe [Tue, 6 Sep 2016 23:38:42 +0000 (23:38 +0000)]
Otapreopt: Send progress updates to update_engine am:
64c4038586 am:
0681b87c28
am:
6bb4475fd4 -s ours
Change-Id: I6f2b56e3c6a5c29665ec89b35eee925730299999
Andreas Gampe [Tue, 6 Sep 2016 23:33:42 +0000 (23:33 +0000)]
Otapreopt: Filter preopted system apps am:
56f79f9620 am:
57d820ece1
am:
f9d83c4874 -s ours
Change-Id: Ie4ddbb0f15d3195eca0288f990e1939f9c61e847
Mathieu Chartier [Tue, 6 Sep 2016 22:22:13 +0000 (15:22 -0700)]
Revert "Don't use profiles with vm safe mode"
Reason for reverting is that it is no longer necessary since
https://android-review.googlesource.com/#/c/269293/
has bene merged.
Bug:
30733908
Test: adb install facebook
Test: adb shell cmd package compile -m speed-profile comb.BBClient
This reverts commit
f513d77b6df0268408ccba654b7c7c978efefc4f.
Change-Id: Ic7eba70c8be4e1392bd0f9eece09b1b6de56540d
Andreas Gampe [Tue, 6 Sep 2016 23:01:18 +0000 (23:01 +0000)]
Installd: Move app image A/B artifact am:
ab15dbfb4a am:
f69886f432
am:
7f1cf77cf6 -s ours
Change-Id: I4c405a6976898c2a67e02d33b7ffd0964e68df6d
Andreas Gampe [Tue, 6 Sep 2016 22:40:32 +0000 (22:40 +0000)]
Installd: Fix bad merge am:
69b93aaa31 am:
748a7389ce
am:
7f49ef05e7
Change-Id: If0d03f0a4cb020a4901eaa4f4232214a3b3f909b
Andreas Gampe [Tue, 6 Sep 2016 22:40:32 +0000 (22:40 +0000)]
Installd: Change app image name computation am:
89b008dfb5 am:
5906d1bbbb
am:
01abdb50df
Change-Id: I32ec6cae74f84e7c122e3b46e4ec40e3e8be567f
Andreas Gampe [Tue, 6 Sep 2016 22:32:22 +0000 (22:32 +0000)]
Installd: Refactor dexopt to scoped file descriptor am:
6fb5a0179d am:
ce9b0e81ee
am:
5256790812 -s ours
Change-Id: I2fc82e33bfc742a1029e1c038e6cdcbfe98279ea
Andreas Gampe [Tue, 6 Sep 2016 22:22:15 +0000 (22:22 +0000)]
Installd: Remove string-helpers am:
6db8db9f33 am:
d7d4d60340
am:
09e961000e -s ours
Change-Id: I9dc5ec8af11e5df8ad4c2209605de3a6ec626593
Andreas Gampe [Tue, 6 Sep 2016 22:12:04 +0000 (22:12 +0000)]
Otapreopt: Fix after shared-library work am:
548bdb9308 am:
261480f917
am:
e7c131e250 -s ours
Change-Id: I2155a6d87870175ba7972ae9f4cc26bcbd38f007
Andreas Gampe [Tue, 6 Sep 2016 21:50:26 +0000 (21:50 +0000)]
Merge changes from topic 'cherry_pms_installd' am:
59ac10df3a
am:
9756df8e85
Change-Id: Ibdac259e4ac80dae11c4dce1e1bb23c90ee118e8
Andreas Gampe [Tue, 6 Sep 2016 21:49:50 +0000 (21:49 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete am:
45cebd0e31
am:
c3f64eea20
Change-Id: I31b92d9d966679970d39651374db9002a87b4529
Andreas Gampe [Tue, 6 Sep 2016 21:49:48 +0000 (21:49 +0000)]
otapreopt: Collect and print size of artifacts am:
f1a7ad43cb
am:
a7949caecb
Change-Id: Iccdf621394fe668b8899aa31646737aad7a88eba
Mathieu Chartier [Tue, 6 Sep 2016 21:49:47 +0000 (21:49 +0000)]
Don't use profiles with vm safe mode am:
f513d77b6d
am:
e48d088e2e
Change-Id: Ia2698f877abdceea19b53c68725161da8691e9cd
Andreas Gampe [Tue, 6 Sep 2016 21:49:45 +0000 (21:49 +0000)]
Otapreopt: Try to mount vendor partition for A/B OTA am:
fd12edaeab
am:
37a32604cf
Change-Id: I9d191cd01988ab4848e0de8d1e8f8e7a4e8afd3c
Andreas Gampe [Tue, 6 Sep 2016 21:49:44 +0000 (21:49 +0000)]
Otapreopt: Add init script for A/B artifact move am:
90dc492207
am:
8c839de88a
Change-Id: I510ad14352d694544473ee7aacf3c87022b77780
Andreas Gampe [Tue, 6 Sep 2016 21:49:04 +0000 (21:49 +0000)]
Otapreopt: Implement new A/B OTA path am:
d089ca1703
am:
7d14f10de3
Change-Id: Id8e8eb09d0b01c94c2ae5a59a6ae25aab22a40a2
Andreas Gampe [Tue, 6 Sep 2016 21:49:04 +0000 (21:49 +0000)]
Installd: Add support for dex2oat very-large-app property am:
a5cc10a8e8
am:
aac5c6ce67
Change-Id: Ie5a1f8853052121c13172ada1283b73b7d57e816
Andreas Gampe [Tue, 6 Sep 2016 21:49:03 +0000 (21:49 +0000)]
Otapreopt: Send progress updates to update_engine am:
64c4038586
am:
0681b87c28
Change-Id: I6e4aa071e18190b466ad6141082bc8196e04d0f6
Andreas Gampe [Tue, 6 Sep 2016 21:49:03 +0000 (21:49 +0000)]
Otapreopt: Filter preopted system apps am:
56f79f9620
am:
57d820ece1
Change-Id: Ic722e56eccd67a92914bf42b0d3f208f2220d3e1
Andreas Gampe [Tue, 6 Sep 2016 21:49:02 +0000 (21:49 +0000)]
Installd: Move app image A/B artifact am:
ab15dbfb4a
am:
f69886f432
Change-Id: I0ae63e77207475d98335ec463915172161ac1bf0
Andreas Gampe [Tue, 6 Sep 2016 21:48:37 +0000 (21:48 +0000)]
Installd: Fix bad merge am:
69b93aaa31
am:
748a7389ce
Change-Id: I9f5e35fa8c692c730bb3d82f293440b62fdcc9d4
Andreas Gampe [Tue, 6 Sep 2016 21:48:37 +0000 (21:48 +0000)]
Installd: Change app image name computation am:
89b008dfb5
am:
5906d1bbbb
Change-Id: Ife0d1322ebdd2ddd7810dac3c327b1b12873b75d
Andreas Gampe [Tue, 6 Sep 2016 21:48:36 +0000 (21:48 +0000)]
Installd: Refactor dexopt to scoped file descriptor am:
6fb5a0179d
am:
ce9b0e81ee
Change-Id: I8dc13c56b11609ff30f64174b09bc3f79e3a9caf
Andreas Gampe [Tue, 6 Sep 2016 21:48:36 +0000 (21:48 +0000)]
Installd: Remove string-helpers am:
6db8db9f33
am:
d7d4d60340
Change-Id: I68a49f1ee2b7980d97d6d46d046f2ef3031439d2
Andreas Gampe [Tue, 6 Sep 2016 21:48:36 +0000 (21:48 +0000)]
Otapreopt: Fix after shared-library work am:
548bdb9308
am:
261480f917
Change-Id: Ieafb61f11ac16c3391f88e73d19a3a1a6ebf36f6
Andreas Gampe [Tue, 6 Sep 2016 21:23:06 +0000 (21:23 +0000)]
Merge changes from topic 'cherry_pms_installd'
am:
59ac10df3a
Change-Id: Ifb18d02cfd54ef3c15696832e88e7731f8dc162b
Andreas Gampe [Tue, 6 Sep 2016 21:23:05 +0000 (21:23 +0000)]
Otapreopt: Allow A/B dexopt only when bootcomplete
am:
45cebd0e31
Change-Id: I703a57f334fe50a1ad3236ac5e3fa7ca28d98d6e
Andreas Gampe [Tue, 6 Sep 2016 21:23:04 +0000 (21:23 +0000)]
otapreopt: Collect and print size of artifacts
am:
f1a7ad43cb
Change-Id: I0dbde754de2b25f5d4c29e5510d46b977b532191
Mathieu Chartier [Tue, 6 Sep 2016 21:23:03 +0000 (21:23 +0000)]
Don't use profiles with vm safe mode
am:
f513d77b6d
Change-Id: Idb93e1efd23b972dee294b1019b1ac36e9b49be6
Andreas Gampe [Tue, 6 Sep 2016 21:23:01 +0000 (21:23 +0000)]
Otapreopt: Try to mount vendor partition for A/B OTA
am:
fd12edaeab
Change-Id: Ifefe8e127828fdd9aa023e5b81706cb6b2d02e11
Andreas Gampe [Tue, 6 Sep 2016 21:23:00 +0000 (21:23 +0000)]
Otapreopt: Add init script for A/B artifact move
am:
90dc492207
Change-Id: I26e4d4319a6bff68a81e1204b28afcaefb818f61
Andreas Gampe [Tue, 6 Sep 2016 21:22:59 +0000 (21:22 +0000)]
Otapreopt: Implement new A/B OTA path
am:
d089ca1703
Change-Id: I45b8ff3b3fe06e57189e74673404323e091aac02
Andreas Gampe [Tue, 6 Sep 2016 21:22:57 +0000 (21:22 +0000)]
Installd: Add support for dex2oat very-large-app property
am:
a5cc10a8e8
Change-Id: I95093fbea5480a84f03811b1eea43e6c46bc673c
Andreas Gampe [Tue, 6 Sep 2016 21:22:56 +0000 (21:22 +0000)]
Otapreopt: Send progress updates to update_engine
am:
64c4038586
Change-Id: Ie9d19a6ba4bbc940bf49a2e1c7140222c38e4822
Andreas Gampe [Tue, 6 Sep 2016 21:22:52 +0000 (21:22 +0000)]
Otapreopt: Filter preopted system apps
am:
56f79f9620
Change-Id: Ib4cf2e4a66766d3b1e0ea5ce043a686887b8b65e
Andreas Gampe [Tue, 6 Sep 2016 21:22:51 +0000 (21:22 +0000)]
Installd: Move app image A/B artifact
am:
ab15dbfb4a
Change-Id: Id655507faadeb5e4a27426e2e5eb7330612fd82d
Andreas Gampe [Tue, 6 Sep 2016 21:22:49 +0000 (21:22 +0000)]
Installd: Fix bad merge
am:
69b93aaa31
Change-Id: Ib71543352a17298bc007591c35b79c3ee62dd0fb
Andreas Gampe [Tue, 6 Sep 2016 21:22:48 +0000 (21:22 +0000)]
Installd: Change app image name computation
am:
89b008dfb5
Change-Id: I25123eca2bebafbe90a686d3899cc5589677c48a
Andreas Gampe [Tue, 6 Sep 2016 21:22:47 +0000 (21:22 +0000)]
Installd: Refactor dexopt to scoped file descriptor
am:
6fb5a0179d
Change-Id: Ie4c9371a77bb80c3c2804318094ef47a05e9084f
Andreas Gampe [Tue, 6 Sep 2016 21:22:46 +0000 (21:22 +0000)]
Installd: Remove string-helpers
am:
6db8db9f33
Change-Id: I734a25e519b6e15d2ef2d39525129aeb73526fe2
Andreas Gampe [Tue, 6 Sep 2016 21:22:44 +0000 (21:22 +0000)]
Otapreopt: Fix after shared-library work
am:
548bdb9308
Change-Id: I1f9d1cbcaa2dfe4508442a1785fe11409a59de32
Andreas Gampe [Tue, 6 Sep 2016 21:02:53 +0000 (21:02 +0000)]
Merge changes from topic 'cherry_pms_installd'
* changes:
Otapreopt: Allow A/B dexopt only when bootcomplete
otapreopt: Collect and print size of artifacts
Don't use profiles with vm safe mode
Otapreopt: Try to mount vendor partition for A/B OTA
Otapreopt: Add init script for A/B artifact move
Otapreopt: Implement new A/B OTA path
Installd: Add support for dex2oat very-large-app property
Otapreopt: Send progress updates to update_engine
Otapreopt: Filter preopted system apps
Installd: Move app image A/B artifact
Installd: Fix bad merge
Installd: Change app image name computation
Installd: Refactor dexopt to scoped file descriptor
Installd: Remove string-helpers
Otapreopt: Fix after shared-library work
Andreas Gampe [Wed, 17 Aug 2016 00:43:33 +0000 (17:43 -0700)]
Otapreopt: Allow A/B dexopt only when bootcomplete
Under certain circumstances cmd may not return because it is waiting
for a service manager. Avoid this situation by restricting the otapreopt
script to only do work when the system has completed boot (which
means that a service manager must exist).
Bug:
30797145
Change-Id: Ic1445e20f1ca06fb38e7707771bde818836c3adc
(cherry picked from commit
90ba9eb2f155a4123ec4c8b08863572360d55776)
Andreas Gampe [Sat, 13 Aug 2016 02:35:57 +0000 (19:35 -0700)]
otapreopt: Collect and print size of artifacts
Collect and print the size of artifacts when moving after a reboot.
This helps in diagnosing issues after the fact.
Bug:
30832951
Change-Id: Iee410adf59dcbb74fa4b49edb27d028025cd8bf9
(cherry picked from commit
e7d555267725ca050ddd5e891267a61a55c9e16a)
Mathieu Chartier [Sat, 6 Aug 2016 00:48:12 +0000 (17:48 -0700)]
Don't use profiles with vm safe mode
vm safe mode uses interpret only compiler filter, this filter will
generate a full app image if a profile is also passed down. App
image generation without a profile currently has a bug where uses
library is not pruned correctly.
Bug:
30688277
Change-Id: I60d87d698789583b8ab797eb47d031c96caf6d9b
Test: N5X boot, package compile speed-profile comb.BBClient
(cherry picked from commit
d46d37b8d4f81e3ea60aeb5106d6d83dd3040775)
Andreas Gampe [Tue, 12 Jul 2016 16:47:17 +0000 (09:47 -0700)]
Otapreopt: Try to mount vendor partition for A/B OTA
Vendor apps are usually not preopted, so A/B dexopt should pick
them up. update_engine is not mounting the vendor partition, so
let otapreopt_chroot do the work.
Bug:
25612095
Bug:
29498238
Change-Id: I5a77bdb78a8e478ce10f6c1d0f911a8d6686becb
(cherry picked from commit
0ba073ce81fbe544592e0a3cd526b274e83fdf9f)
Andreas Gampe [Sat, 9 Jul 2016 18:44:12 +0000 (11:44 -0700)]
Otapreopt: Add init script for A/B artifact move
Move the /data/ota -> /data/dalvik-cache move from the zygote into
a minimal shell script. Add an init rc file to execute the script
once /data is mounted. Add Makefile rules to pull these files in
with the rest of the A/B OTA dexopt components.
The move is motivated by the new naming scheme that includes the
slot name. Passing the slot name to the zygote would complicate
the process, while the value is immediately available in the script
through a simple getprop call.
Bug:
25612095
Bug:
28069686
Change-Id: I63e718d488662e1b1de2ce857629cb90aa4f611d
(cherry picked from commit
99e2b263dd0df71b55e86f0aec6657eb38b334e1)
Andreas Gampe [Mon, 27 Jun 2016 21:25:30 +0000 (14:25 -0700)]
Otapreopt: Implement new A/B OTA path
Refactor otapreopt_script, otapreopt_chroot and otapreopt such
that the actual work will be done as a child of the script driven
by update_engine.
The script now uses the new OtaDexoptService command to get the
right parameters for a dexopt call in otapreopt. As we reach
otapreopt_chroot and otapreopt directly, we can add parameters
without tainting the regular installd path. Use this to add the
target slot suffix, and make naming of the A/B artifacts include
the suffix instead of the generic "b."
Otapreopt_chroot startup is slightly complicated because all file
descriptors must be closed. Otherwise, dex2oat needs selinux
permissions to inherit the descriptors from update_engine.
Bug:
25612095
Bug:
28069686
Change-Id: I9d7b86ac8ecfdf91af3800f7e96f41534c0afc0f
(cherry picked from commit
0354bd0eaf24de533e86885b811f816f1e4d15c8)
Andreas Gampe [Mon, 11 Jul 2016 22:19:31 +0000 (15:19 -0700)]
Installd: Add support for dex2oat very-large-app property
To support constrained devices, dex2oat supports a parameter that
can downgrade a compilation to verify-at-runtime. Expose this
through the dalvik.vm.dex2oat-very-large system property.
Bug:
29557002
Change-Id: Iace626a8ec18533d37f84a41c20729fe7e400386
(cherry picked from commit
e21ac2193d4ed1fd9bc4d5328625d3868409fe4d)
Andreas Gampe [Fri, 10 Jun 2016 22:08:53 +0000 (15:08 -0700)]
Otapreopt: Send progress updates to update_engine
Use the new OtaDexoptService progress API to send updates back
to update_engine.
Bug:
25612095
Bug:
29223204
Change-Id: Ie8162946d18f6fa78649a40ad5d3949d31a181cd
(cherry picked from commit
6c05a734ce443cb5effd01120c5a83b93343b6b6)
Andreas Gampe [Wed, 8 Jun 2016 22:11:37 +0000 (15:11 -0700)]
Otapreopt: Filter preopted system apps
The tool will receive requests to compile preopted system apps, as
we can't detect changes right now and need to be conservative. As
some apps cannot be stripped (signed before being preopted), they
can be re-compiled on device, producing stale files that won't be
cleaned up.
Add code to detect this situation and avoid a compile.
Bug:
25612095
Change-Id: I5f489e61b8d4e5b619cbaa01f6c59880479a46cd
(cherry picked from commit
1409090c0a92751f9fe7406a6e043cdbce2ebe4d)
Andreas Gampe [Mon, 6 Jun 2016 22:36:18 +0000 (15:36 -0700)]
Installd: Move app image A/B artifact
In addition to odex, also move art file.
Bug:
25612095
Change-Id: I69f4c2b1e7283c9a9c361f57f5233e66679c5c28
(cherry picked from commit
af8948d90605ad116c965c25e73e0fc9782112ab)
Andreas Gampe [Wed, 8 Jun 2016 06:16:46 +0000 (23:16 -0700)]
Installd: Fix bad merge
Don't cut off the leading dex location character.
Bug:
25612095
Change-Id: Iad556a0bb48c57f3c68ee75ee41f14e88d96b1a8
(cherry picked from commit
f065032f5331e1739fe32a2db9df8c91905720f9)
Andreas Gampe [Sat, 4 Jun 2016 04:13:50 +0000 (21:13 -0700)]
Installd: Change app image name computation
Refactor computation to take A/B OTAs into account.
Fix a const issue.
Bug:
25612095
Change-Id: I5cf79def532d1eeec4b35bb80014376959083a83
(cherry picked from commit
d01a02ce6980de0024333b4673cff9a77be629cf)
Andreas Gampe [Fri, 3 Jun 2016 23:09:32 +0000 (16:09 -0700)]
Installd: Refactor dexopt to scoped file descriptor
Refactor the goto-fail cleanup to a unique_fd-like wrapper that
includes a potential cleanup step. In preparation for changes for
A/B OTA.
Bug:
25612095
Change-Id: If6cca85c12e0951bc468cb4f212b2f2d288c6041
(cherry picked from commit
afa58d175cc3e9adaa4f8df9bc7a8fac5798a50a)
Andreas Gampe [Fri, 3 Jun 2016 17:22:19 +0000 (10:22 -0700)]
Installd: Remove string-helpers
Replace string-helpers with equivalent functions from android::base.
Bug:
25612095
Change-Id: I186461b94dffe3590c16455d4dee0c2cbe921bf4
(cherry picked from commit
4769ccafd6e6b94ab73afcb755fe59764c228eae)
Andreas Gampe [Fri, 3 Jun 2016 00:56:45 +0000 (17:56 -0700)]
Otapreopt: Fix after shared-library work
Commit
b63d91fd2737680351876406277b6c759f4db33c broke the installd
to otapreopt connection. Fix this. Also refactor a bit to make an
inadvertant break harder.
Bug:
25612095
Change-Id: I8e7b944ecbd5457e4ac4d6ffffdb0468618cf65f
(cherry picked from commit
aef445d1c659698612c0e5a8f3d5f2b9f8a2b778)
David Brazdil [Tue, 6 Sep 2016 14:35:28 +0000 (15:35 +0100)]
installd: Simplify Dalvik cache path creation
Installd computes Dalvik cache path for a dex file by concatenating
'/classes.dex' to the APKs absolute path and then replacing all '/'
characters with '@'. OTA preopt does the same, only in reverse order,
i.e by concatenating '@classes.dex' to altered absolute path.
This patch unifies the two approaches so as to keep only one string
constant.
Change-Id: I69bb6bca831f45c873a0eb8580cf8d4b011f3b09
Chih-hung Hsieh [Fri, 2 Sep 2016 16:25:31 +0000 (16:25 +0000)]
Merge "Fix google-explicit-constructor warnings in inputflinger." am:
6fabbc60fc am:
0026ae3b54
am:
ad00fc08e8
Change-Id: I04aea75a139e8d2fd66d814aaf858a92dc6921b9
Chih-hung Hsieh [Fri, 2 Sep 2016 16:22:01 +0000 (16:22 +0000)]
Merge "Fix google-explicit-constructor warnings in inputflinger." am:
6fabbc60fc
am:
0026ae3b54
Change-Id: I09ba77791c4e5a82dd6bc7e4e07b6b2a5e7ccdff
Chih-hung Hsieh [Fri, 2 Sep 2016 16:18:32 +0000 (16:18 +0000)]
Merge "Fix google-explicit-constructor warnings in inputflinger."
am:
6fabbc60fc
Change-Id: Ie8d9d087ffdbf804228a3897c07b7ccc9c8b7d7a
Chih-hung Hsieh [Fri, 2 Sep 2016 16:11:33 +0000 (16:11 +0000)]
Merge "Fix google-explicit-constructor warnings in inputflinger."
Chih-hung Hsieh [Fri, 2 Sep 2016 02:40:42 +0000 (02:40 +0000)]
Merge "Fix google-explicit-constructor warnings in vulkan." am:
476e517868 am:
0391054ecd
am:
0fd4771728
Change-Id: Ifadbc478a8e6c4b68c3c687c04bd103e0198f896
Chih-hung Hsieh [Fri, 2 Sep 2016 02:37:42 +0000 (02:37 +0000)]
Merge "Fix google-explicit-constructor warnings in vulkan." am:
476e517868
am:
0391054ecd
Change-Id: Ie91da4808c3dc15bb16456ae6288b5fe54c20e93
Chih-hung Hsieh [Fri, 2 Sep 2016 02:33:43 +0000 (02:33 +0000)]
Merge "Fix google-explicit-constructor warnings in vulkan."
am:
476e517868
Change-Id: Ide2fd3dd74375a1a7cf32f899d7307b42f805567
Chih-hung Hsieh [Fri, 2 Sep 2016 02:25:41 +0000 (02:25 +0000)]
Merge "Fix google-explicit-constructor warnings in vulkan."
Pablo Ceballos [Thu, 1 Sep 2016 20:02:45 +0000 (20:02 +0000)]
Merge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev am:
669867835b
am:
1d3d791b3c
Change-Id: If2e5e89990859ea583c696a9cd8eaeaee816e45c
Pablo Ceballos [Thu, 1 Sep 2016 20:02:43 +0000 (20:02 +0000)]
libgui: Add null pointer check in setDisplaySurface am:
eddbef88cf
am:
8663a03444
Change-Id: I9ddce6a3f72111aad068bbd13f3618589cbd87fd
Pablo Ceballos [Thu, 1 Sep 2016 19:57:18 +0000 (19:57 +0000)]
Merge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev
am:
669867835b
Change-Id: Iba59fc196d462f51160f77f85f55c20d45a8d75a
Pablo Ceballos [Thu, 1 Sep 2016 19:57:17 +0000 (19:57 +0000)]
libgui: Add null pointer check in setDisplaySurface
am:
eddbef88cf
Change-Id: I3a3ddac84b3f38f6c911ff65642441fd187bbe54
TreeHugger Robot [Thu, 1 Sep 2016 19:46:30 +0000 (19:46 +0000)]
Merge "libgui: Add null pointer check in setDisplaySurface" into nyc-mr1-dev
Chih-Hung Hsieh [Thu, 1 Sep 2016 18:37:47 +0000 (11:37 -0700)]
Fix google-explicit-constructor warnings in vulkan.
* Add explicit keyword to conversion constructors.
Bug:
28341362
Test: build with WITH_TIDY=1
Change-Id: I13c32bd5bc53fe897df58eda331ff70ebcf0b349
Chih-Hung Hsieh [Thu, 1 Sep 2016 18:28:23 +0000 (11:28 -0700)]
Fix google-explicit-constructor warnings in inputflinger.
* Add explicit keyword to conversion constructors.
Bug:
28341362
Test: build with WITH_TIDY=1
Change-Id: I8259317db74b177b6e62a0aa2ad21aead47f698e
Pablo Ceballos [Thu, 1 Sep 2016 18:21:21 +0000 (11:21 -0700)]
libgui: Add null pointer check in setDisplaySurface
Bug
31236602
Change-Id: I78d4e28e40db93f7e7e304355b370af0fa790b9d
Eino-Ville Talvala [Tue, 30 Aug 2016 18:13:46 +0000 (18:13 +0000)]
Merge "Surface: Add parcel/unparceling for missing field." into nyc-mr1-dev am:
4a8039121f
am:
f74b920e02
Change-Id: I939347af6ae97769b8f6a58b91a199a9cbdc16e1
Eino-Ville Talvala [Tue, 30 Aug 2016 18:13:46 +0000 (18:13 +0000)]
Surface: Add parcel/unparceling for missing field. am:
529a103fde
am:
aa516aca42
Change-Id: I26bee1ea4d80a2627b8418476fd5adc3aaaef6a4