summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-26Fix scanf %s in lsof.android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-5.1.1_r38lollipop-mr1-releaselollipop-mr1-cts-releaseElliott Hughes
Bug: http://b/28175237 Change-Id: Ief0ba299b09693ad9afc0e3d17a8f664c2fbb8c2
2016-04-22Fix overflow in path buildingDaniel Rosenberg
An incorrect size was causing an unsigned value to wrap, causing it to write past the end of the buffer. Bug: 28085658 Change-Id: Ie9625c729cca024d514ba2880ff97209d435a165
2016-03-25Don't demangle symbol names.Josh Gao
Bug: http://b/27299236 Change-Id: I3a698c6d93e262fd78e743c1e6e946b054b9dcd1
2016-02-26Don't create tombstone directory.android-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r10android-5.1.1_r37Josh Gao
Partial backport of cf79748. Bug: http://b/26403620 Change-Id: Ib877ab6cfab6aef079830c5a50ba81141ead35ee
2016-02-26ensure /data/tombstones exists on all Android devicesNick Kralevich
/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 0359d778a564a5c63baba08a33484fb69eda4d1e)
2015-11-30Add macro to call event logger for errors. DO NOT MERGEandroid-cts-5.1_r6android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33William Luh
Bug:23180694 Change-Id: I566a290334345f48013029534efef3e08e726e40
2015-09-28libutils: Fix integer overflows in VectorImpl.android-cts-5.1_r5android-cts-5.1_r4android-5.1.1_r30android-5.1.1_r26android-5.1.1_r25Narayan Kamath
Use external/safe-iop to check for overflows on arithmetic operations. Also remove an unnecessary copy of Vector/SharedBuffer from codeflinger and use the copy from libutils instead. Note that some of the unit tests are somewhat useless due to test-runner limitations : gtest's ability to filter on abort message doesn't work when combined with messages formatted by android's logging system. bug: 22953624 (cherry picked from commit c609c31fb56ae434caa2d0153cd0a2f74a715071) Change-Id: I61644633db6b54fa230683615de9724f7fabf6fb
2015-09-08libutils: fix overflow in String8::allocFromUTF8android-cts-5.1_r3android-5.1.1_r24android-5.1.1_r20android-5.1.1_r19Sergio Giro
Patch contributed in: https://code.google.com/p/android/issues/detail?id=182908 Bug: 23290056 (cherry picked from commit 4eeacbeec0ae66e9d9395abbf83666709f2e11e3) Change-Id: Ife1dc0791040150132bea6884f1e6c8d31972d1b (cherry picked from commit ebabef275283f771151ec93c17469374b789b2c8)
2015-09-01libutils: fix overflow in SharedBuffer [DO NOT MERGE]Sergio Giro
See https://code.google.com/p/android/issues/detail?id=181910 Bug: 22952485 (cherry picked from commit 66b6eb9490beeeabc804d790c1c4060ce047afd4) Change-Id: Ic71dd0025b9a7588c4f3bb1c7be1bd13d2ff5105
2015-09-01Fix compile failure after rIfe1dc0791040150132bea6884f1e6c8d31972d1bAbhishek Arya
Bug: 23290056 Change-Id: If6e22b0159de6635a8ca5305895b7718f15becc7
2015-08-13Prevent integer overflow when allocating native_handle_tandroid-5.1.1_r16android-5.1.1_r15android-5.1.1_r14Adam Lesinski
User specified values of numInts and numFds can overflow and cause malloc to allocate less than we expect, causing heap corruption in subsequent operations on the allocation. Bug: 19334482 Change-Id: I43c75f536ea4c08f14ca12ca6288660fd2d1ec55
2015-04-13fs_mgr: introduce fs_mgr_format to format wiped partitionsandroid-cts-5.1_r2android-5.1.1_r9android-5.1.1_r8android-5.1.1_r6android-5.1.1_r4android-5.1.1_r3android-5.1.1_r2android-5.1.1_r13android-5.1.1_r10Chris Fries
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-02-09merge in lmp-mr1-release history after reset to lmp-mr1-devandroid-cts-5.1_r1android-5.1.1_r7android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1linaro_android_5.1.1The Android Automerger
2015-02-06Revert "Make encryption configurable"lollipop-mr1-devPaul Lawrence
This reverts commit bda6272446454886339841a62daaa1b66c07ad60. The original fix seems to have led to boot failures in QA. Rather than risk shipping, revert the change. Bug 18764230 reopened. Requires change https://googleplex-android-review.git.corp.google.com/#/c/629764/ Bug: 19278390 Bug: 19199624 Change-Id: I8b6ab585666f2b0f585ffb2a5f61ac2e3462e06e
2015-01-27merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2015-01-21Make encryption configurablePaul Lawrence
Delay mounting encryptable but unencrypted volumes until we can check the ro.vold.forceencrypt flag, then optionally encrypt. Requires matching vold change from https://googleplex-android-review.git.corp.google.com/#/c/615309/ Bug: 18764230 Change-Id: If22008be8de6a4f3216b349f81ace49be1730314
2015-01-19merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2015-01-15android_filesystem: Remove setuid bits from tcpdumpDmitry Shmidt
Bug: 18669116 Change-Id: I25486f2fe0e994f569b788fc9f03ef6d383f54d4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2015-01-15Merge "android_filesystem: Remove setuid bits from tcpdump" into lmp-mr1-devDmitry Shmidt
2015-01-15android_filesystem: Remove setuid bits from tcpdumpDmitry Shmidt
Bug: 18669116 Change-Id: I25486f2fe0e994f569b788fc9f03ef6d383f54d4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2015-01-15Merge "Remove explict use of ASCII encoding" into lmp-mr1-devJean-Michel Trivi
2015-01-15Merge "Return path including executable instead of without" into lmp-mr1-devJean-Michel Trivi
2015-01-15Merge "Fix building on modern versions of Xcode and OS X." into lmp-mr1-devJean-Michel Trivi
2015-01-15merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2015-01-15Merge "sdcard : inode numbers must be fully representable as uint32_t." into ↵Narayan Kamath
lmp-mr1-dev
2015-01-14Add timed versions of stack dumping functions.Christopher Ferris
Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
2015-01-14Remove explict use of ASCII encodingAl Sutton
Replace the use of CFStringGetCString with kCFStringEncodingASCII specified with CFStringGetFileSystemRepresentation which will ensure the correct character encoding is used to conver the CFString into a NULL terminated char array suitable for use with POSIX APIs. (cherry picked from commit 2a4b5f9e804f019c0d565c86579f07963989ed1b) Change-Id: Ie6e2027e59b49ca634c7308bcda7bb492d372f46
2015-01-14Return path including executable instead of withoutAl Sutton
The previous implementation returned the path the executable was in instead of returning the path including the executable (i.e. it returned ...bin instead of ...bin/executable). This is not what the original methods did and caused the process forking of adb to fail. This patch corrects the implementation. (cherry picked from commit 26b53bb75e6bdf9aa7820a3343845dae145625cc) Change-Id: Icad6870bbb0a88f611ca71d90fff30f7b576c367
2015-01-14Fix building on modern versions of Xcode and OS X.Al Sutton
Recent versions of XCode fail to compile the adb and fastboot binaries due to two functions being deprecated in 10.9 (GetCurrentProcess and ProcessInformationCopyDictionary), and the use of -Werrror. This patch replaces the method implementations which use calls to methods deprecated in the 10.9 SDK with versions which only call non-deprecated methods. (cherry picked from commit f456d47c506d87265ce0ff6080cba5374dced011) Change-Id: Ibd80dda73ccdd7c561b50b4065581e645d9855d6
2015-01-14sdcard : inode numbers must be fully representable as uint32_t.Narayan Kamath
This works around a bug on on 64 bit kernels + sdcard daemons where we were using memory addresses as inode numbers. bug: 19012244 Change-Id: Ia63c5b33b4212bf03ff92fa2faff0bb76e48791c
2015-01-12merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2015-01-09Merge "Provide a way to select force encryption from vendor partition" into ↵Leo Wang
lmp-mr1-dev
2015-01-08merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2015-01-07init: Fix memory corruption when sanitizing platform pathsChristopher R. Palmer
This commit fixes code that incorrectly increments s when it hits the terminator character of the string being sanitized. This means it will randomly start trashing memory beyond the end of the string being sanitized until it happens to hit two NULs (\0\0) which will break it out of the loop. (cherry picked from commit 07f3fee164bd7ba14ce9b2dd3818006f07162845) Bug: 18885357 Change-Id: If6b01fe2b9bd5985f08f1278deb03b311d0170dc
2015-01-07Provide a way to select force encryption from vendor partitionPaul Lawrence
This allows a vendor to force encryption on devices via a vendor partition flag: ro.vold.forceencryption 1 Bug: 18764230 Change-Id: Id0049ce64e34e4f6f96e593aadd70c277ac131c8
2014-12-10merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2014-12-09audio: add usage "virtual source" to audio attributes.Eric Laurent
Bug: 16006090. Change-Id: I2d22b52e97095b57a6508b82bd11e27f860bb2e7
2014-11-27merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2014-11-24audio: new stream typesEric Laurent
Added stream types for internal use by audio policy and audio flinger. Bug: 18067208. Change-Id: I90fd4df9ed5e0d8fb8c220d67e95fd0e32a06f14
2014-11-24sdcard: mount sdcard with the noexec optionDaisuke Okitsu
Vold mounts the sdcard with noexec, but the fuse deamon mounts with exec, so it is still possible to execute binaries: /dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime, user_id=1023,group_id=1023,default_permissions,allow_other 0 0 /dev/block/vold/179:65 /mnt/media_rw/sdcard1 vfat rw,dirsync, nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007, dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1, shortname=mixed,utf8,errors=remount-ro 0 0 With this change both vold and fuse mounts with noexec. (cherry picked from commit f777d6694eecf6e61d9859df2090199863050017) Change-Id: I66cbfc3a3a89a26958f83577f5e7a5e27f99184e
2014-11-20merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2014-11-19logd: throttle SELinux denials to 20/secNick Kralevich
Impose a limit of 20 selinux denials per second. Denials beyond that point don't add any value, and have the potential to cause crashes or denial of service attacks. Do some other misc cleanup while I'm here. Bug: 18341932 (cherry picked from commit c234a1b879d9c9d8e1a797c5dcf3098249945748) Change-Id: Ic5c96003db82e504baf301e87be5c8c539c73c2a
2014-11-18merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2014-11-17merge in lmp-mr1-release history after reset to lmp-mr1-devThe Android Automerger
2014-11-14Introduce "adb keygen"Nick Kralevich
Introduce the "adb keygen" command. Usage: adb keygen <filename> This command creates an adb public/private key pair in a user specified file. This can be used to create new adb keys, or rotate existing keys. Modify adb's key generation routines to use the HOSTNAME/LOGNAME environment variables if available. This allows someone to override the username/hostname embedded within the adb public key file if desired. Fallback to the old mechanisms if those environment variables aren't available. Bug: 18342715 Change-Id: Ibccee6088d4609aa05ad6687d3a1d8a8689d3e8a (cherry picked from commit af782b9f2ac4fb817ded80d4317a45345bb3f992) Change-Id: Ic76ffc9412171dddc879af0bbf6e20fbe1a8f057
2014-11-14Merge "Convert futex to cond wait." into lmp-mr1-devChristopher Ferris
2014-11-13Convert futex to cond wait.Christopher Ferris
Switch to the better supported pthread_cond to handle the Wait/Wake functions. Also, increase the number of simultaneous threads in the thread tests. Bug: 18381207 Change-Id: I63240208e8b7f641b3f35a3fc0bb1acf80dc796e
2014-11-14Merge "property_service: Added vendor build properties to load_all_props" ↵Daniel Rosenberg
into lmp-mr1-dev
2014-11-13DO NOT MERGE: Do not mount devices with invalid verity metadataSami Tolvanen
The return value of read_verity_metadata is propagated to caller even if the verity metadata is invalid, provided that it can be read from the device. This results in devices with invalid verity metadata signatures to be mounted normally, which is not desirable. This change fixes the bug by changing the return value in case of verification failure to FS_MGR_SETUP_VERITY_FAIL. Bug: 15984840 Bug: 18120110 Change-Id: Ic29f37a23cb417c2538d60fb05de9dd310d50f4a (cherry picked from commit c95e9da39660f278ace4b14d688dc6818d1a38bf)
2014-11-13DO NOT MERGE: Switch fs_mgr to use SHA-256 instead of SHA-1Sami Tolvanen
Verity metadata signatures will be switched to SHA-256. Switch fs_mgr signature verification to use the correct algorithm. Needs matching changes from https://googleplex-android-review.git.corp.google.com/#/c/579905/ https://googleplex-android-review.git.corp.google.com/#/c/583213/ https://googleplex-android-review.git.corp.google.com/#/c/583214/ https://googleplex-android-review.git.corp.google.com/#/c/583233/ Bug: 15984840 Bug: 18120110 Bug: 17917515 Change-Id: I8f90519bffa105a0eb7abeaad3aea1ffceb851e2 (cherry picked from commit a3465e250cfc3c00931735711e11ad61cf84d8b2)