Commit graph

14028 commits

Author SHA1 Message Date
Bertrand Simonnet
da65eee80a am 05b9edc2: Merge "crash_reporter: Add license information."
* commit '05b9edc207b481bb128b1b7357fe328826850930':
  crash_reporter: Add license information.
2015-07-29 16:26:43 +00:00
Bertrand Simonnet
ddbbc6d2db am 75ecc74a: Merge "metrics: Add license information."
* commit '75ecc74a295f2230bdac32bcc4e39b0e47078be4':
  metrics: Add license information.
2015-07-29 16:26:41 +00:00
Bertrand Simonnet
05b9edc207 Merge "crash_reporter: Add license information." 2015-07-29 16:03:02 +00:00
Bertrand Simonnet
75ecc74a29 Merge "metrics: Add license information." 2015-07-29 16:02:52 +00:00
Bertrand SIMONNET
45f59d634d crash_reporter: Add license information.
The license file was taken from the original repository at:
https://chromium.googlesource.com/chromiumos/platform2/+/master/LICENSE

Change-Id: I05a8284346ceb326fb80c692e24653bc446cc33d
2015-07-28 17:31:05 -07:00
Bertrand SIMONNET
0296345ea7 metrics: Add license information.
The license was copied from the original repo at:
https://chromium.googlesource.com/chromiumos/platform2/+/master/LICENSE

Change-Id: I39c3479d62a107bd8d264faa72021cdeed25cea2
2015-07-28 17:30:08 -07:00
Dan Albert
fa3622b224 am c0e8d0fc: Merge "Fix AndroidDevice.get_prop, add tests."
* commit 'c0e8d0fc50dc635c6723497900cf3b0d2eb572dc':
  Fix AndroidDevice.get_prop, add tests.
2015-07-29 00:04:52 +00:00
Elliott Hughes
07bed1941f am 87998c07: Merge "Move sdcard off PAGESIZE and onto PAGE_SIZE."
* commit '87998c07a325d8cfa7517516edac7173dbea63bf':
  Move sdcard off PAGESIZE and onto PAGE_SIZE.
2015-07-29 00:04:50 +00:00
Dan Albert
c0e8d0fc50 Merge "Fix AndroidDevice.get_prop, add tests." 2015-07-28 23:46:10 +00:00
Elliott Hughes
87998c07a3 Merge "Move sdcard off PAGESIZE and onto PAGE_SIZE." 2015-07-28 23:44:09 +00:00
Dan Albert
e2b4a5fee0 Fix AndroidDevice.get_prop, add tests.
Had messed this up while refactoring before I submitted and neglected
to add a test. Thanks to mazda@ for catching this.

Also disabled the root/unroot tests for user builds.

Change-Id: Icb819a820a2afa227d548d678ae471d5195f0b96
2015-07-28 16:42:58 -07:00
Elliott Hughes
e24e9a5091 Move sdcard off PAGESIZE and onto PAGE_SIZE.
Only sdcard is using PAGESIZE, and glibc doesn't have it.

Bug: http://b/22735893
Change-Id: Ib8af14a2e99d98881a79f21ad1a695499c7d74bd
2015-07-28 16:36:47 -07:00
Elliott Hughes
0adda0d5f5 am 524551fd: Merge "Document the current MAX_USBFS_BULK_SIZE situation."
* commit '524551fd67a581966b52c89a0712a5d3baaf7967':
  Document the current MAX_USBFS_BULK_SIZE situation.
2015-07-28 21:34:50 +00:00
Elliott Hughes
ce2047a947 am 1a706865: Merge "Fix const-ness of strrchr callers."
* commit '1a706865307f4fbb2397cb3ca2eefad4ff6f83ea':
  Fix const-ness of strrchr callers.
2015-07-28 21:34:47 +00:00
Elliott Hughes
524551fd67 Merge "Document the current MAX_USBFS_BULK_SIZE situation." 2015-07-28 21:19:23 +00:00
Elliott Hughes
93f65faee8 Document the current MAX_USBFS_BULK_SIZE situation.
Bug: http://b/22688598
Change-Id: I8e5b92996d635f6b939f3add4dda0b9023629a8b
2015-07-28 14:18:50 -07:00
Elliott Hughes
1a70686530 Merge "Fix const-ness of strrchr callers." 2015-07-28 21:15:57 +00:00
Tao Bao
beb1304469 am 1cae8cc1: Merge "Set mode bits for /system/etc/recovery.img."
* commit '1cae8cc13a5524b4354c187c49bb831965825c20':
  Set mode bits for /system/etc/recovery.img.
2015-07-28 21:02:36 +00:00
Tao Bao
1cae8cc13a Merge "Set mode bits for /system/etc/recovery.img." 2015-07-28 20:47:00 +00:00
Mark Salyzyn
f2e86153ed am fac3bf35: Merge changes Id65ed2e8,Idbf8fae9
* commit 'fac3bf35af412292e1a955510095c4234dc0fd53':
  liblog: deprecate TARGET_USES_LOGD
  logd: deprecate TARGET_USES_LOGD
2015-07-28 18:08:55 +00:00
Mark Salyzyn
fac3bf35af Merge changes Id65ed2e8,Idbf8fae9
* changes:
  liblog: deprecate TARGET_USES_LOGD
  logd: deprecate TARGET_USES_LOGD
2015-07-28 17:48:25 +00:00
Bill Yi
4c0ebdf2ed am 15b8a778: Merge branch \'rewrite-metrics\' into merge-metrics
* commit '15b8a778760707b33bffd97491ccc80854d994ce': (200 commits)
  metrics: Import protobufs from Chromium.
  metrics: replace "Logging.*" with "Platform.*"
  platform2: Fix issues with new version of libchrome
  init: fix typo and prevent startup error
  metrics: Add a check for abnormally small messages to prevent crashes
  libchromeos: Switch http Response to use streams
  Revert "metrics: Fix the import path of protobufs."
  metrics: Fix the import path of protobufs.
  platform2: Switch over to libchrome r323904
  metrics: add TPM.EarlyResetDuringCommand CrOS event.
  delete __STDC_{FORMAT,LIMIT}_MACROS
  metrics: make metrics library also use /var/lib/metrics/uma-events
  metrics: tell what file we can't open on error
  metrics: move sample file from /var/run to /var/lib
  metrics: don't upload metrics when metrics are disabled
  metrics: Disable uploader on non-official build.
  platform2: Switch over to using base64 functions from libchromeos
  metrics: fix -Winconsistent-missing-override warning
  metrics: Fix upload_service to work with base::MessageLoop
  metrics: generate app_version from standard lsb-release fields
  ...
2015-07-28 16:43:59 +00:00
Bill Yi
db639251c9 am 5cab5290: Merge branch \'rewrite-crash-reporter\' into merge-crash-reporter
* commit '5cab52906c1e7d7dd0adc0b03b8eb8994e5d3e9c': (225 commits)
  Remove superfluous legacy DBus includes
  crash: do not call list-proxies if it does not exist.
  crash: Point to canonical org.chromium.SessionManagerInterface.xml
  crash: update OWNERS file
  platform2: Explicitly use base:: namespace with CommandLine
  crash-reporter: add support for device coredump
  delete __STDC_{FORMAT,LIMIT}_MACROS
  crash: Convert list_proxies to chromeos-dbus-bindings generator
  crash: Fix session manager D-Bus call service name
  crash: Remove glib from crash_reporter
  crash: Shorten crash-reporter project alias.
  crash-reporter: Use chromeos::KeyValueStore.
  crash-reporter: Clean up testing code.
  crash-reporter: Add session_manager logs to Chrome crashes.
  crash-reporter: Attach Chrome logs to crash reports.
  crash-reporter: add a sanity check for kernel dmesg records
  Update libchrome to r307740 and fix build errors
  crash-reporter: disable device coredumps in verified mode
  crash-reporter: accept kernel dmesg records with no ramoops header
  crash-reporter: remove gflags dependency
  ...
2015-07-28 16:43:57 +00:00
Mark Salyzyn
514243d5bd liblog: deprecate TARGET_USES_LOGD
This is not the kernel logger you are loiking for

Bug: 22787659
Change-Id: Id65ed2e8e7ffe4b2be1bdeed65fa8db23bd66b51
2015-07-28 09:37:07 -07:00
Mark Salyzyn
cb41e3673b logd: deprecate TARGET_USES_LOGD
This is not the kernel logger you are looking for

Bug: 22787659
Change-Id: Idbf8fae908287ae9a96007b6353ec56d3c49f5bf
2015-07-28 09:37:07 -07:00
Bill Yi
15b8a77876 Merge branch 'rewrite-metrics' into merge-metrics
BUG:22773266
2015-07-28 09:35:42 -07:00
Bill Yi
5cab52906c Merge branch 'rewrite-crash-reporter' into merge-crash-reporter
BUG:22773266
2015-07-28 09:33:03 -07:00
Andreas Gampe
1bc7ac078e am a5b6715c: Merge "Adf: Remove unused variable"
* commit 'a5b6715c82f44a70b4e38441a76b5799bd9f8257':
  Adf: Remove unused variable
2015-07-28 15:21:22 +00:00
Andreas Gampe
a5b6715c82 Merge "Adf: Remove unused variable" 2015-07-28 15:08:21 +00:00
Elliott Hughes
3e7048c027 Fix const-ness of strrchr callers.
This causes build failures in google3 where they use GCC. glibc only
provides const-correct overloads for string functions for GCC >= 4.4,
but clang -- which is what we use -- pretends to be GCC 4.2.

Change-Id: I2a054823ea6201ebcea46d5e77b80a975eefc622
2015-07-28 08:07:21 -07:00
Elliott Hughes
4cfbf781cb am bb9fcb1e: Merge "Remove gpttool."
* commit 'bb9fcb1e257cda42d9138e34de835cab493bdc50':
  Remove gpttool.
2015-07-28 14:49:24 +00:00
Elliott Hughes
bb9fcb1e25 Merge "Remove gpttool." 2015-07-28 14:34:23 +00:00
Andreas Gampe
a9f0a80c52 Adf: Remove unused variable
For build-system CFLAGS clean-up.

Bug: 18632512
Change-Id: Iaacfc08aeaf1a3f27771a136f2c977e54971257b
2015-07-27 22:08:16 -07:00
Elliott Hughes
6454a0434a Remove gpttool.
We already have external/gptfdisk.

Change-Id: I6b7208b8393991f67f6d8b32ece53ecb5b33c5ff
2015-07-27 21:33:43 -07:00
Tao Bao
c6e93fec84 Set mode bits for /system/etc/recovery.img.
/system/etc/recovery.img defaults to 0644. Change it to 0440.

Bug: 22641135
Change-Id: I45cdb0cc1b58f35fbcd0f16e7cc6c4eef63b0b74
(cherry picked from commit b602e6f9a3)
2015-07-27 19:17:15 -07:00
Lee Campbell
f75b5ff175 am fe39394e: Merge "init: Adding support to import directories"
* commit 'fe39394e0b82ba5be905a1867dd79734b690e06c':
  init: Adding support to import directories
2015-07-27 23:20:58 +00:00
Dan Albert
05432f07eb am 20cf8702: Merge "Create adb Python package."
* commit '20cf8702a37c2517cb1225babaa81747b8443376':
  Create adb Python package.
2015-07-27 23:13:19 +00:00
Lee Campbell
fe39394e0b Merge "init: Adding support to import directories" 2015-07-27 23:11:30 +00:00
Dan Albert
20cf8702a3 Merge "Create adb Python package." 2015-07-27 23:02:54 +00:00
Dan Albert
8e1fdd7806 Create adb Python package.
This is mostly just the AdbWrapper that we used in our tests, but I've
cleaned up the API to be a little more Pythonic (mostly in the sense
that commands are passed as lists rather than strings that are
shlex.split() by the shell command), and implemented the workaround
error checking for adb shell.

Move the tests up a directory. Having them buried a level down has
only been annoying.

There are now two files containing Python tests. test_device.py
contains tests specifically checking the AndroidDevice API, and
test_adb.py checks the ADB client program. To run both, use

    python -m unittest discover [-v]

Change-Id: Ibd158c528d31126a5b048bd00bc93039dbc468bc
2015-07-27 15:52:15 -07:00
Andreas Gampe
0c61a650ce am 2e132ef6: Merge "Logd: Handle unused variable and fields"
* commit '2e132ef6bd93154b7c04875ecf00cb12a19d77f6':
  Logd: Handle unused variable and fields
2015-07-27 22:43:54 +00:00
Andreas Gampe
2e132ef6bd Merge "Logd: Handle unused variable and fields" 2015-07-27 22:33:54 +00:00
Lee Campbell
f13b1b3139 init: Adding support to import directories
Support added so init scripts can now import directories.

BUG: 22721249
Change-Id: I02b566bfb50ea84469f1ea0c6ad205435a1df286
TEST: Tested importing a folder on arm64 emulator
2015-07-27 14:56:03 -07:00
Andreas Gampe
d75564f9b8 Logd: Handle unused variable and fields
For build-system CFLAGS clean-up.

Bug: 18632512
Change-Id: If81d6705b44e9a29f64c44c56ea633c031e831b7
2015-07-27 14:17:33 -07:00
Nick Kralevich
ba03cc953f am 5f3b05ad: Merge "init.rc: mkdir /data/anr 0775 system system"
* commit '5f3b05ad14db2a4ebc9eb25567bc951d465b3151':
  init.rc: mkdir /data/anr 0775 system system
2015-07-26 04:39:27 +00:00
Nick Kralevich
5f3b05ad14 Merge "init.rc: mkdir /data/anr 0775 system system" 2015-07-26 04:25:44 +00:00
Nick Kralevich
c2ea70ae6e init.rc: mkdir /data/anr 0775 system system
Ensure that /data/anr always exists. This allows us to eliminate
some code in system_server and dumpstate. In addition, this change
solves a common problem where people would create the directory
manually but fail to set the SELinux label, which would cause
subsequent failures when they used the directory for ANRs.

Bug: 22385254
Change-Id: I29eb3deb21a0504aed07570fee3c2f87e41f53a0
2015-07-25 21:06:20 -07:00
Elliott Hughes
12d912bc4f am ed217967: Merge "Fix socket_network_client_timeout error check."
* commit 'ed21796754c4879bedaa1a479ae288dda6dad478':
  Fix socket_network_client_timeout error check.
2015-07-25 02:13:39 +00:00
Elliott Hughes
038b76c23e am bb4370f8: Merge "Turn on warnings for libcutils, fix a bug."
* commit 'bb4370f833a661033184d258892906d63a347571':
  Turn on warnings for libcutils, fix a bug.
2015-07-25 02:01:34 +00:00
Yabin Cui
10821da322 am 8a502000: Merge "init: expand_props for onrestart commands."
* commit '8a502000d15cce102569d3609e24846ef19a4a77':
  init: expand_props for onrestart commands.
2015-07-25 02:01:32 +00:00