Commit Graph

14819 Commits

Author SHA1 Message Date
William Luh 43c0f28c11 Add macro to call event logger for errors. DO NOT MERGE
am: 769cba57e4  -s ours

* commit '769cba57e446be099c792516486a304a18ee2952':
  Add macro to call event logger for errors. DO NOT MERGE
2016-02-24 02:39:45 +00:00
William Luh 769cba57e4 Add macro to call event logger for errors. DO NOT MERGE
Bug:23180694
Change-Id: I566a290334345f48013029534efef3e08e726e40
2016-02-23 16:04:34 -08:00
Mohamad Ayyash 6c48349dee Add CASIO to approved vendor IDs
BUG: 27021418
Change-Id: I083447d3555891db4fced2171a0a747882c4435a
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
2016-02-16 20:14:01 -08:00
Josh Gao cb9625cbe5 Don't create tombstone directory.
Partial backport of cf79748.

Bug: http://b/26403620
Change-Id: Ib877ab6cfab6aef079830c5a50ba81141ead35ee
2016-02-16 15:09:46 -08:00
Nick Kralevich e2796207ee ensure /data/tombstones exists on all Android devices
/data/tombstones is referenced by core platform code, but is not
guaranteed to exist on all Android devices. Move the directory
creation out of device specific files and into the core
init.rc file.

Bug: https://code.google.com/p/android/issues/detail?id=93207
Change-Id: I94ae5199a6a32c4fe555ca994fc4a8345e0c9690

Bug: http://b/26403620
(cherry picked from commit 0359d778a5)
2016-02-16 15:09:43 -08:00
Josh Gao 557749e55b Don't create tombstone directory. DO NOT MERGE
Partial backport of cf79748.

Bug: http://b/26403620
Change-Id: I412889bfa331c96ad8e2ce6e0d66b54fb230e8c0
2016-02-16 15:07:35 -08:00
Josh Gao 9515c23e16 debuggerd: use O_NOFOLLOW|O_CLOEXEC for tombstones. DO NOT MERGE
Effectively a cherry-pick of 04f9b2a.

Bug: http://b/26403620
Change-Id: I0437fdc774501f428d8b4f8dd7682b32eaa29cef
2016-02-16 15:07:35 -08:00
Nick Kralevich 9c0ed66313 ensure /data/tombstones exists on all Android device. DO NOT MERGE
/data/tombstones is referenced by core platform code, but is not
guaranteed to exist on all Android devices. Move the directory
creation out of device specific files and into the core
init.rc file.

Bug: https://code.google.com/p/android/issues/detail?id=93207
Change-Id: I94ae5199a6a32c4fe555ca994fc4a8345e0c9690

Bug: http://b/26403620
(cherry picked from commit 0359d778a5)
2016-02-16 15:07:29 -08:00
Jeff Sharkey 36a6835aa5 Re-derive permissions after package changes.
am: a44febd19b

* commit 'a44febd19b4efd17fe31d75c964ec47f85832a2a':
  Re-derive permissions after package changes.
2016-02-14 22:28:35 +00:00
Jeff Sharkey a44febd19b Re-derive permissions after package changes.
When packages change, existing package-specific directories may have
gained/lost a UID mapping, so we need to update the permissions for
any in-memory nodes.

This allows an app to deliver data for another package before that
package is installed, which is the typical pattern of how OBB files
are delivered.

Also fix bug by re-deriving permissions when files are moved.

Bug: 25399427
Change-Id: I06f38a24ad7dee5f5099ba81429aef03208e5683
(cherry picked from commit f7aad11c1c)
2016-02-12 20:37:05 +00:00
Ching Tzung Lin df2d782368 Mount debugfs earlier regardless build variant
ag/835596 can be reverted after this CL is merged.

BUG:26455292
Change-Id: I453b0f1d08d822f8cd2d4d33f1c1b21f0d7f543a
2016-01-11 13:00:22 -08:00
Alain Vongsouvanh 2f18b54502 logcatd: up size from 16MB to 256MB
Based on: https://android-review.googlesource.com/#/c/172084

Change-Id: Idaa4177618acef31806b4d8f6a2f5caa859e8992
2015-12-08 12:50:18 -08:00
Mark Salyzyn 5b0d59dde8 logcat: continue where we left off
Issue introduced as part of new logcatd functionality in
commit f3555d9427

Faulty logic, add a gTest to confirm.

Bug: 19608716
Change-Id: Ic1b97def25e03e69faae4398a3dff2ff0f88545e
2015-11-12 11:51:41 -08:00
Jon Larimer 99cd21ef5c Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158 am: fd56dc41c7 -s ours am: 362f13d74a am: 702fe6d486 -s ours am: ea1e6a59e7 am: 088639a20f -s ours
am: 55263d2ae3

* commit '55263d2ae3696baaa574ee896e3a8b0546aa5628':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:45:04 +00:00
Jon Larimer 9f1b1caa78 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev am: 5280061b56 am: 442a830e9b -s ours am: 93a3871abb am: 089ad5e98a -s ours
am: 2f1562eb10

* commit '2f1562eb10279531524f54ca7c129ead66ab3673':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:44:57 +00:00
Jon Larimer 7755770ac9 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-mr1-dev am: f84eef3fca -s ours am: d0ed7943b8 -s ours
am: a1da204980

* commit 'a1da204980891f9e59a41d7a41d510f3f05d34bf':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:44:50 +00:00
Jon Larimer 55263d2ae3 Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158 am: fd56dc41c7 -s ours am: 362f13d74a am: 702fe6d486 -s ours am: ea1e6a59e7
am: 088639a20f  -s ours

* commit '088639a20fc388e8d4dcf1ed471b31086c43bc83':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:41:08 +00:00
Jon Larimer 2f1562eb10 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev am: 5280061b56 am: 442a830e9b -s ours am: 93a3871abb
am: 089ad5e98a  -s ours

* commit '089ad5e98ab8a4b2d4ea00c6a88d61b963797c90':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:41:02 +00:00
Jon Larimer a1da204980 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-mr1-dev am: f84eef3fca -s ours
am: d0ed7943b8  -s ours

* commit 'd0ed7943b8a2f3d0000391f18899c77566a0be1a':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:40:55 +00:00
Jon Larimer 088639a20f Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158 am: fd56dc41c7 -s ours am: 362f13d74a am: 702fe6d486 -s ours
am: ea1e6a59e7

* commit 'ea1e6a59e7dd8d4674a2116ec5893cdf801e6339':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:37:57 +00:00
Jon Larimer 089ad5e98a Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev am: 5280061b56 am: 442a830e9b -s ours
am: 93a3871abb

* commit '93a3871abbd16a3e0dee6ab8e7e87356620efeac':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:37:51 +00:00
Jon Larimer d0ed7943b8 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-mr1-dev
am: f84eef3fca  -s ours

* commit 'f84eef3fca156cd9a9f2f09f305a6fd6c898f14b':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 20:37:43 +00:00
Jon Larimer ea1e6a59e7 Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158 am: fd56dc41c7 -s ours am: 362f13d74a
am: 702fe6d486  -s ours

* commit '702fe6d486d2bdd920010d681b046a3396b4021a':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 14:02:59 +00:00
Jon Larimer 702fe6d486 Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158 am: fd56dc41c7 -s ours
am: 362f13d74a

* commit '362f13d74a5c57f4e2ba4f0de341896e79732dcf':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 13:59:19 +00:00
Jon Larimer 362f13d74a Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev am: 809d5a0158
am: fd56dc41c7  -s ours

* commit 'fd56dc41c70a58541b9ed25f4c97ffe3fea19536':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 13:55:57 +00:00
Jon Larimer fd56dc41c7 Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev
am: 809d5a0158

* commit '809d5a01586d00ee91d13fb8d034d12584ba3314':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 13:50:40 +00:00
Jon Larimer 93a3871abb Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev am: 5280061b56
am: 442a830e9b  -s ours

* commit '442a830e9b0415460749016394b3a71b9df2af13':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 13:50:39 +00:00
Jon Larimer bc1ef58505 Merge "Add macro to call event logger for errors." into mnc-dev
am: d028c6fa7f

* commit 'd028c6fa7fe135a3b454a1773ba59cafbba4b49e':
  Add macro to call event logger for errors.
2015-11-11 13:46:21 +00:00
Jon Larimer 442a830e9b Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev
am: 5280061b56

* commit '5280061b5668d87b99ff4f9ef883a3fed944bce4':
  Add macro to call event logger for errors. DO NOT MERGE
2015-11-11 13:46:21 +00:00
Jon Larimer d028c6fa7f Merge "Add macro to call event logger for errors." into mnc-dev 2015-11-11 13:42:38 +00:00
Jon Larimer f84eef3fca Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-mr1-dev 2015-11-11 13:42:37 +00:00
Jon Larimer 5280061b56 Merge "Add macro to call event logger for errors. DO NOT MERGE" into lmp-dev 2015-11-11 13:42:35 +00:00
Jon Larimer 809d5a0158 Merge "Add macro to call event logger for errors. DO NOT MERGE" into klp-dev 2015-11-11 13:42:33 +00:00
William Luh f6891c025a Add macro to call event logger for errors.
Bug:23180694
Change-Id: I566a290334345f48013029534efef3e08e726e40
2015-11-10 22:34:08 +00:00
William Luh 9a86c283cd Add macro to call event logger for errors. DO NOT MERGE
Bug:23180694
Change-Id: I566a290334345f48013029534efef3e08e726e40
2015-11-10 22:33:46 +00:00
William Luh f34258fa9b Add macro to call event logger for errors. DO NOT MERGE
Bug:23180694
Change-Id: I566a290334345f48013029534efef3e08e726e40
2015-11-10 22:33:32 +00:00
William Luh 4fd82100cc Add macro to call event logger for errors. DO NOT MERGE
Bug:23180694
Change-Id: I566a290334345f48013029534efef3e08e726e40
2015-11-10 22:33:10 +00:00
Mark Salyzyn dfbe85ec8b Merge "logd: pruning time horizon" into mnc-dr-dev 2015-11-04 18:27:25 +00:00
Mark Salyzyn 653316adf1 logd: pruning time horizon
Estimate a time horizon of ten fold for worst UID pruning

Bug: 25453210
Bug: 24782000
Change-Id: I7118deb6d42531c68ed2ac2a59c57b0580b942cc
2015-11-03 16:26:06 -08:00
Dan Willemsen 36b24a4a20 Remove __DATE__/__TIME__ from init and debuggerd
Keeping these means that every build has different init and debuggerd
binaries, even if the source was the same. So OTAs that don't touch
these sources would still need to update the binaries.

Both of these messages are only informational, so can be safely removed.
Bootchart already encodes build-specific information from the system
properties.

Bug: 24204119
Change-Id: I7ebd65a20a3e031e7528c9f741616e20b3cd7446
(cherry picked from commit 30622bbb20)
2015-10-30 14:51:29 -07:00
Christopher Ferris 69406d904a Fix incorrect check of descsz value.
am: d917514bd6

* commit 'd917514bd6b270df431ea4e781a865764d406120':
  Fix incorrect check of descsz value.
2015-10-29 19:12:37 +00:00
Christopher Ferris d917514bd6 Fix incorrect check of descsz value.
Bug: 25187394

(cherry picked from commit 1fa55234d6)

Change-Id: Idbc9071e8b2b25a062c4e94118808d6e19d443d9
2015-10-22 17:54:24 -07:00
Paul Lawrence 2b216aa89b Merge "Don't show UI on default encryption" into mnc-dr-dev 2015-10-21 14:27:38 +00:00
Tim Murray f429d37807 Reorder init.rc to avoid a kernel warning.
3.18 has a warning in dmesg that appears when the parent cpuset's cpus
and mems are changed to something other than what the child has. Reorder
init.rc to prevent this warning from appearing.

bug 24941443

Change-Id: I49d8394063b23dce03222dcc9ddccdc32bb97ea2
2015-10-15 12:38:15 -07:00
Ruchi Kandoi 08cf0e55a7 Merge "healthd: Adds fake battery properties for devices with no battery." into mnc-dr-dev 2015-10-12 21:40:39 +00:00
Ruchi Kandoi 42a981ddee healthd: Adds fake battery properties for devices with no battery.
Devices which have no battery and are always plugged in will not have
any battery property initialized. This causes the 'stable power' to
never be switched which is required for updating apps.

This change recognizes such a device and manually sets the battery to
100% and charger status to connected to AC mains. It will also fake the
battery temperature.

Bug: 24258855
Change-Id: I98e5ed0dbeb7f2ab6d3802cd7e0f3a269bd8f31f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2015-10-12 14:31:58 -07:00
Sami Tolvanen 4ae302af7d fs_mgr: trigger dm-verity error handling for invalid signatures
Currently, the device doesn't mount verified partitions if the
verity table signature is invalid, which usually means it fails to
boot. This change instead sets up dm-verity with an invalid root
hash and triggers device-specific error handling to recover from
the corruption.

Bug: 24256506
Change-Id: I6d693306fa0e7459c5500b028e433df61ecea6fb
(cherry picked from commit 47caa5c386)
2015-09-22 08:09:37 +00:00
Tim Murray a3f45684bd Merge "add system-background cpuset" into mnc-dr-dev 2015-09-21 19:40:03 +00:00
Narayan Kamath 7fc499bb7c am 3f7a33a5: am 26d47f26: (-s ours) am 491035ce: am 8253cb04: am 0cc468dc: am fef9dffd: (-s ours) am 6c53de92: Follow up to change b638126ed DO NOT MERGE.
* commit '3f7a33a5294cd59c331d5d036021141b6f1aef1e':
  Follow up to change b638126ed DO NOT MERGE.
2015-09-20 01:10:10 +00:00
Narayan Kamath 222a15622a am dd0932e8: am 81b428f2: am db7d8e96: am 68a78370: am 2e64e959: am a82d6dc3: (-s ours) resolved conflicts for b638126e to klp-modular-dev
* commit 'dd0932e831551d0a57a8af646ac0f9f386e4f579':
  libutils: Fix integer overflows in VectorImpl. DO NOT MERGE
2015-09-20 01:10:09 +00:00