Commit Graph

13049 Commits

Author SHA1 Message Date
Neil Fuller 9b83b62305 Merge "Executable to run on boot that removes old tzdata if needed" 2015-04-13 11:41:00 +00:00
Neil Fuller 08913228e1 Executable to run on boot that removes old tzdata if needed
tzdatacheck is exec'd from init.rc early in boot just after /data is
mounted. It checks to make sure that the tz rule data in /data
is newer than the version in /system. If the data is older it is
deleted. This is to address problems with earlier tz rule updates
that occurred: after an OTA upgrade previous updates in /data
would override newer versions in the system partition.

Includes change to init.rc neccessary to run it at boot time. Other
changes are in external/selinux.

Bug: 19941636
Bug: https://code.google.com/p/android/issues/detail?id=35730
Change-Id: I7cc61e058424c856da88f11ff9b259f34cb39dc7
2015-04-13 11:38:32 +01:00
Traian Schiau 5976303aa6 logcat: Minor fixes
Remove -r default value implementation (since is not functional).
Check the status of some memory allocations.
Make sure that the pruning buffer is set to NULL if we get to the end of  the loop.
Make sure that the file status is successfully retrieved before using the size.
Add strtouia - string to unsigned argument.
Add logcat_panic with/without printing an error message and help.
Play nicer with the android namespace.

Change-Id: Id4c37cf64968128424e29bf1725f6c9a5924a0e2
Signed-off-by: Traian Schiau <traianx.schiau@intel.com>
2015-04-11 17:27:11 +03:00
Mark Salyzyn ae76923839 logd: disable worst uid prune for events buffer
There is some usage statistics that would be hurt by pruning by UID,
since _all_ usage statistics come from system_server. In other words
we expect it to be chatty. Until we formulate and evaluate a better
(eg: per-tag?) filtration mechanism, lets hold off pruning by UID.

Bug: 19608965
Change-Id: Iddd45a671e13bdcf3394c20919ad1f2e4ef36616
2015-04-10 15:45:10 -07:00
Mark Salyzyn 1a01f963ff Revert: "logd: default off by-UID spam filter"
With "logd: inject first UID by log buffer message" we can
remove the FUD introduced by having the UID spam filter on

This reverts commit 4141cb2391

Bug: 19608965
Bug: 14469172
Change-Id: Ifdc20b099e0e426546525b11c1dfe8cc0f830a02
2015-04-10 15:45:10 -07:00
Mark Salyzyn ab0dcf6828 logd: annotate worst-UID pruned entries
- internal dropped entries are associated by prune by worst UID
  and are applied by UID and by PID
- track dropped entries by rewriting them in place
- merge similar dropped entries together for same UID(implied),
  PID and TID so that blame can more clearly be placed
- allow aging of dropped entries by the general backgound pruning
- report individual dropped entries formatted to reader
- add statistics to track dropped entries by UID, the combination
  of statistics and dropped logging can track over-the-top Chattiest
  clients.

Bug: 19608965
Change-Id: Ibc68480df0c69c55703270cd70c6b26aea165853
2015-04-10 15:45:08 -07:00
Chris Fries 79f3384652 fs_mgr: introduce fs_mgr_format to format wiped partitions
Move fastboot's format logic into fs_mgr, to consolidate the knowledge
about how to do this (and when to wipe metadata).

Try to format these formattable paritions if they are wiped.

If formatting fails, we will fall out to let recovery mode handle it.

Bug: 20082763
Change-Id: I397cc197550e78d932e8a154fd234695c46dbe7b
2015-04-10 15:01:16 -07:00
Dan Albert ed8ce08600 am 1110aa78: am 65937e9b: Merge "Prevent unaligned read in libziparchive."
* commit '1110aa782620717b515f8122b4a43539763681f7':
  Prevent unaligned read in libziparchive.
2015-04-10 21:59:09 +00:00
Dan Albert 1110aa7826 am 65937e9b: Merge "Prevent unaligned read in libziparchive."
* commit '65937e9bac665e216268d7341094afcaa52ef8c1':
  Prevent unaligned read in libziparchive.
2015-04-10 21:48:28 +00:00
Dan Albert 65937e9bac Merge "Prevent unaligned read in libziparchive." 2015-04-10 21:40:39 +00:00
Mark Salyzyn 9301f21678 am 8f6dfc7d: am e65c2210: Merge "log: Add check for LINT_RLOG"
* commit '8f6dfc7d903e7cf88b992bd8d60f51ec9150555c':
  log: Add check for LINT_RLOG
2015-04-10 19:35:35 +00:00
Mark Salyzyn 8f6dfc7d90 am e65c2210: Merge "log: Add check for LINT_RLOG"
* commit 'e65c2210d045044328bbac957c5cedf6838a0b2c':
  log: Add check for LINT_RLOG
2015-04-10 19:26:35 +00:00
Mark Salyzyn e65c2210d0 Merge "log: Add check for LINT_RLOG" 2015-04-10 19:17:01 +00:00
Mark Salyzyn 4ff2545525 log: Add check for LINT_RLOG
In order to make it easier to find radio system logging
mistakes, if LINT_RLOG is defined we will remove all the
definitions for ALOG* and SLOG*, as well as the log ids
to introduce compile and link errors.

Bug: 20143912
Change-Id: I1511bdce75213f3a5bacdbc4f2ab315aa1fa56fc
2015-04-10 11:28:16 -07:00
Dan Albert 47123ec53f am 486b8de7: am 03a03401: Merge "Add base/memory.h."
* commit '486b8de7e0a101f7c99f7fd7a92a4562e7745967':
  Add base/memory.h.
2015-04-10 00:37:46 +00:00
Dan Albert 486b8de7e0 am 03a03401: Merge "Add base/memory.h."
* commit '03a034010ee73e490766cd865f2c12126af63774':
  Add base/memory.h.
2015-04-10 00:31:22 +00:00
Dan Albert 03a034010e Merge "Add base/memory.h." 2015-04-10 00:24:11 +00:00
Dan Albert 1ae0764e01 Prevent unaligned read in libziparchive.
Change-Id: I4afc3729a1b2c06a6621cb8c9742fc94b5a665f5
2015-04-09 17:00:14 -07:00
Dan Albert cf9c855e5b Add base/memory.h.
Right now this only includes an API for unaligned reads/writes.

Change-Id: Ieb42498aa17cbd1035b66c51bd1c4f16fa2acfdb
2015-04-09 17:00:14 -07:00
Mohamad Ayyash d087e6f3ff am 7a91e93e: am be940153: Merge "Revert "Revert "fs_mgr_verity: Add support for squashfs"""
* commit '7a91e93e8cc2dd9910513c6bcc9380b4c7cf8e0e':
  Revert "Revert "fs_mgr_verity: Add support for squashfs""
2015-04-09 20:40:39 +00:00
Mohamad Ayyash 7a91e93e8c am be940153: Merge "Revert "Revert "fs_mgr_verity: Add support for squashfs"""
* commit 'be940153816b28cf1cb68f7f135c77f5f1585fe1':
  Revert "Revert "fs_mgr_verity: Add support for squashfs""
2015-04-09 20:34:44 +00:00
Mohamad Ayyash be94015381 Merge "Revert "Revert "fs_mgr_verity: Add support for squashfs""" 2015-04-09 20:26:07 +00:00
Mohamad Ayyash 030ef35966 Revert "Revert "fs_mgr_verity: Add support for squashfs""
This reverts commit 7b97c7a3fa.

Change-Id: Id47e70479fe9247b7936f2e54d4dbfbb4f63f635
2015-04-08 18:08:00 -07:00
Elliott Hughes 534e66690d am 5dd81c93: am d67ff2d5: Merge "Move ls implementation detail into ls."
* commit '5dd81c936eada0ad0be2e9857d726d2e3ab17e30':
  Move ls implementation detail into ls.
2015-04-09 01:07:28 +00:00
Elliott Hughes 5dd81c936e am d67ff2d5: Merge "Move ls implementation detail into ls."
* commit 'd67ff2d507add84a4d958bc19657e88d4689b92d':
  Move ls implementation detail into ls.
2015-04-09 01:01:06 +00:00
Elliott Hughes d67ff2d507 Merge "Move ls implementation detail into ls." 2015-04-09 00:41:06 +00:00
Mark Salyzyn 1f6aff6c1a am 463913e6: am e74baca6: Merge "logd: Build Breakage"
* commit '463913e682aff2a427ecb29ad6ac71c6391848ae':
  logd: Build Breakage
2015-04-09 00:38:44 +00:00
Mark Salyzyn ab237751d0 am 45b83835: am 82d11859: Merge "logd: uidToName improvement"
* commit '45b8383598da345460a1f8f065190b8b46bc13df':
  logd: uidToName improvement
2015-04-09 00:31:54 +00:00
Mark Salyzyn 27ceeb04c5 am d8ff56c9: am c3d40b86: Merge "logd: Add Pid statistics"
* commit 'd8ff56c9f1550bc2d25807b855d364ef19cd5d03':
  logd: Add Pid statistics
2015-04-09 00:31:53 +00:00
Mark Salyzyn 463913e682 am e74baca6: Merge "logd: Build Breakage"
* commit 'e74baca6f317ea54cb08c310eba86b5e6f6e73de':
  logd: Build Breakage
2015-04-09 00:31:28 +00:00
Mark Salyzyn 45b8383598 am 82d11859: Merge "logd: uidToName improvement"
* commit '82d11859ef7cc00373760b581b9491c5fc04b6d4':
  logd: uidToName improvement
2015-04-08 23:27:06 +00:00
Mark Salyzyn d8ff56c9f1 am c3d40b86: Merge "logd: Add Pid statistics"
* commit 'c3d40b86911867439fc01829d4f1011dae2a31be':
  logd: Add Pid statistics
2015-04-08 23:27:05 +00:00
Mark Salyzyn e74baca6f3 Merge "logd: Build Breakage" 2015-04-08 23:11:01 +00:00
Mark Salyzyn c6637859c2 logd: Build Breakage
a change slipped in from a rebase conflict, repairing.

Change-Id: Ib6479f88fb044f37b6721035c2f7cc75577c0411
2015-04-08 16:09:28 -07:00
Mark Salyzyn 82d11859ef Merge "logd: uidToName improvement" 2015-04-08 22:13:37 +00:00
Mark Salyzyn c3d40b8691 Merge "logd: Add Pid statistics" 2015-04-08 22:13:28 +00:00
Mark Salyzyn 08739ba71f logd: uidToName improvement
- read packages.list to acquire package names
- hijack the reinit handler as a privileged worker

Bug: 19608965
Change-Id: If7becb34354d6415e5c387ecea7d4109a15259c9
2015-04-08 14:47:54 -07:00
Mark Salyzyn 720f6d1d55 logd: Add Pid statistics
- Optional class of statistics for PID
- Enhance pidToName
- Enhanced uidToName
- Enhance pidToUid
- template sort and iteration

Bug: 19608965
Change-Id: I04a1f02e9851b62987f9b176908134e455f22d1d
2015-04-08 14:37:32 -07:00
Mohamad Ayyash 0009bacfda am d71eca9e: am e322ae19: Merge "Revert "fs_mgr_verity: Add support for squashfs""
* commit 'd71eca9e09dbe456bfb308f64a4e7945dadc3aad':
  Revert "fs_mgr_verity: Add support for squashfs"
2015-04-08 21:37:30 +00:00
Mohamad Ayyash d411d14a07 am 48bfdb85: am 70f81cee: Merge "fs_mgr_verity: Add support for squashfs"
* commit '48bfdb859b88307541d5719c834e6884ce89e52e':
  fs_mgr_verity: Add support for squashfs
2015-04-08 21:37:29 +00:00
Elliott Hughes fb3273e13d am 6e73780b: am 74a18757: Merge "Lose getprop to toybox."
* commit '6e73780b9e10c9658a50b34346051cb060ffe1a4':
  Lose getprop to toybox.
2015-04-08 21:37:13 +00:00
Mohamad Ayyash d71eca9e09 am e322ae19: Merge "Revert "fs_mgr_verity: Add support for squashfs""
* commit 'e322ae1996fd52e1c4d8fdbe29f4631d4bd936a3':
  Revert "fs_mgr_verity: Add support for squashfs"
2015-04-08 19:40:44 +00:00
Mohamad Ayyash e322ae1996 Merge "Revert "fs_mgr_verity: Add support for squashfs"" 2015-04-08 19:34:10 +00:00
Mohamad Ayyash 7b97c7a3fa Revert "fs_mgr_verity: Add support for squashfs"
This reverts commit 807f47004f.

Change-Id: I2d7972c0828c842b44747dd08fbe44668f2a55db
2015-04-08 19:31:00 +00:00
Mohamad Ayyash 48bfdb859b am 70f81cee: Merge "fs_mgr_verity: Add support for squashfs"
* commit '70f81ceeeb1c88a164b0e02e05110043ceef8885':
  fs_mgr_verity: Add support for squashfs
2015-04-08 19:09:55 +00:00
Mohamad Ayyash 70f81ceeeb Merge "fs_mgr_verity: Add support for squashfs" 2015-04-08 19:02:11 +00:00
Elliott Hughes cf5f9b99cb Move ls implementation detail into ls.
Also remove the unused generality, and remove a dependency on a linux/
header file when there's a sys/ one that's even better.

Change-Id: If07608cc9ae2b7c2928ee2a9e33d20d63a9a8f45
2015-04-08 11:38:16 -07:00
Elliott Hughes 6e73780b9e am 74a18757: Merge "Lose getprop to toybox."
* commit '74a1875766a0f41dd67cb8825ae671fd5b343f12':
  Lose getprop to toybox.
2015-04-08 18:11:29 +00:00
Elliott Hughes 74a1875766 Merge "Lose getprop to toybox." 2015-04-08 17:54:59 +00:00
Mark Salyzyn 4122304de3 am 07e3ed46: am c19572fa: Merge "rootfs: init start logd in post-fs"
* commit '07e3ed462fd8033aa454f864180e8be2a04b2c21':
  rootfs: init start logd in post-fs
2015-04-08 16:44:56 +00:00