aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Just use fstat in sysMapFile.Elliott Hughes2015-11-073-71/+24
| | | | | | Also turn on -Werror and remove a dead function. Change-Id: I436f0a91c40e36db985190b3b98b0a4527cf0eeb
* Unmount sdcard if no package file is selected.caozhiyuan2015-11-071-0/+1
| | | | Change-Id: I12b4f880802135a98dbc11a19e74172a3a5ef921
* recovery: Switch to clangTao Bao2015-11-0713-10/+38
| | | | | | And a few trival fixes to suppress warnings. Change-Id: I38734b5f4434643e85feab25f4807b46a45d8d65
* Fix build: fprintf without modifierTao Bao2015-11-071-2/+1
| | | | Change-Id: I66ae21a25a25fa3c70837bc54a7d406182d4cf37
* Log update outputs in orderTao Bao2015-11-076-13/+44
| | | | | | | | | | | | | | Although stdout and stderr are both redirected to log file with no buffering, we are seeing some outputs are mixed in random order. This is because ui_print commands from the updater are passed to the recovery binary via a pipe, which may interleave with other outputs that go to stderr directly. In recovery, adding ui::PrintOnScreenOnly() function to handle ui_print command, which skips printing to stdout. Meanwhile, updater prints the contents to stderr in addition to piping them to recovery. Change-Id: Idda93ea940d2e23a0276bb8ead4aa70a3cb97700
* recovery: change the way of rebooting when using power key comboGaelle Nassiet2015-11-071-1/+3
| | | | | | | | | | | | The power key combo allow to reboot from recovery mode by pressing power button 7 times in a row. It calls directly the function android_reboot() and lead to permission denial errors because of SE Linux rules enforcement. The right way to reboot from recovery is to set the property "sys.powerctl" and let init handle it. Change-Id: Ic7b81e446c3ee13dfbad10cda13a6a1f93123b76 Signed-off-by: Gaelle Nassiet <gaellex.nassiet@intel.com>
* Stop using libstdc++.Dan Albert2015-11-073-5/+3
| | | | | | | | These are already getting libc++, so it isn't necessary. If any of the other static libraries (such as adb) use new or delete from libc++, there will be symbol collisions. Change-Id: I55e43ec60006d3c2403122fa1174bde06f18e09f
* Add error and range checks to parse_rangeSami Tolvanen2015-11-071-10/+71
| | | | | | | | | | | Only trusted input is passed to parse_range, but check for invalid input to catch possible problems in transfer lists. Bug: 21033983 Bug: 21034030 Bug: 21034172 Bug: 21034406 Change-Id: Ia17537a2d23d5f701522fbc42ed38924e1ee3366
* init sets the default PATH itself, better.Elliott Hughes2015-11-071-1/+0
| | | | | | This fixes 'su' and 'strace' in the recovery image. Change-Id: I83c2664d32a15da92bb6092fbdfc772184013c88
* sr: Use pathmap for recoveryTom Marshall2015-11-071-1/+4
| | | | Change-Id: I6350618e1e04819d52f1049f9f2fb61c833a1b45
* mtdutils: Fix mounting partitions by-nameMichael Bestas2015-11-071-1/+7
| | | | | | | | | | Devices that have yaffs2 partitions must adjust their fstab. Example: system /system yaffs2 ro wait becomes /dev/block/mtd/by-name/system /system yaffs2 ro wait Change-Id: I8314bb94bf5bcd9576995cd2ecdc5133c5f5ea11
* bootloader: Silence /misc partition errorMatt Mower2015-11-071-4/+4
| | | | | | | LOGE has been changed to LOGI for "Cannot load volume /misc!" since many devices do not define a /misc partition in fstab. Change-Id: I53c440f820fd4614b0af79e9283baa8c48453373
* Remove ext4 guardsMichael Bestas2015-11-073-15/+2
| | | | | | * Fix compilation on yaffs targets Change-Id: Icd571dce3ee8c232b13ae199df6e0a4feeb7fb68
* Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-052-4/+4
|\ | | | | | | Android 6.0.0 release 26
| * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-050-0/+0
| |\
| | * uncrypt: Support file level encryption.Tao Bao2015-07-171-1/+1
| | | | | | | | | | | | | | | Bug: 22534003 Change-Id: Iaf42a6e5b40cfef904de66e212ae8b77b2953ef7
| | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-140-0/+0
| | |\
| | | * Revert "Change init sequence to support file level encryption"Paul Lawrence2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 98c1a3de23ae8b589c36e74939193c44d25cac65. Change-Id: I524060418de18f97c3865ebc4435f501015e92ee
| | | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-060-0/+0
| | | |\
| * | | \ am be19dce8: udpater: Call fsync() after rename().Tao Bao2015-08-041-0/+20
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'be19dce86ce7d4a83f1cfcd11db393f8be8f4397': udpater: Call fsync() after rename().
| * | | | | uncrypt: Support file level encryption.Tao Bao2015-07-161-1/+1
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Bug: 22534003 Change-Id: Iaf42a6e5b40cfef904de66e212ae8b77b2953ef7
| * | | | Change init sequence to support file level encryptionPaul Lawrence2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | File level encryption must get the key between mounting userdata and calling post_fs_data when the directories are created. This requires access to keymaster, which in turn is found from a system property. Split property loaded into system and data, and load in right order. Bug: 22233063 Change-Id: I409c12e3f4a8cef474eb48818e96760fe292cc49
* | | | | Allow f2fs to reserve bytes for footer when formattingKeith Mok2015-10-191-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | Ticket: SAMBAR-729 Change-Id: I66630d2e24434e5b5587f0b0cb43e3e7543c960c
* | | | | Merge branch 'LA.BF64.1.2.2_rb4.1' of ↵Steve Kondik2015-10-126-1/+144
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://codeaurora.org/platform/bootable/recovery into caf-merge Change-Id: Ie03faab6af46354caac6e4c65c2d4319838b3501
| * | | | | recovery:updater: Changes to support 32->64 bit upgradespadarshr2015-10-062-1/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now support upgrading from 32 to 64 bit builds. The check for device to package compatibility now takes into account if the product name on the device vs the product name on the upgrade build differs only by the _32 or _64 trailing chars. In addition we also force compile the updater binary as 32 bit executable so that it can run on the 32 bit build we are upgrading from. Change-Id: Iebe6107e55719141fbcc496efa0c60ef1f9368c8
| * | | | | recovery: Allow device-specific reboot reasonDavid Ng2015-10-062-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow overriding of reboot reason. Change-Id: I73d9debaed8224bf6877008b15aa95c6c404c624
| * | | | | recovery: Add support for MDTPAmit Blay2015-10-062-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mobile Device Theft Protection prevents unauthorized modification of the system image, ensuring existing of an Anti-Theft solution. During FOTA, the baseline of the system image which is stored in a dedicated DIP partition (Device Integrity Partition) is updated with the baseline of the new received system image. CRs-fixed: 777015 Change-Id: Ib2ff4bb16db5a08e69432ef3d6d7af26a447dea5
* | | | | | recovery:updater: Changes to support 32->64 bit upgradesAmeya Thakur2015-10-111-2/+10
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now support upgrading from 32 to 64 bit builds. The check for device to package compatibility now takes into account if the product name on the device vs the product name on the upgrade build differs only by the _32 or _64 trailing chars. In addition we also force compile the updater binary as 32 bit executable so that it can run on the 32 bit build we are upgrading from. Change-Id: I51bdf948650b9c3b61cfac7142422b7325270940
* | | | | merge in mnc-release history after reset to mnc-devThe Android Automerger2015-08-050-0/+0
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Revert "Change init sequence to support file level encryption"Paul Lawrence2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 98c1a3de23ae8b589c36e74939193c44d25cac65. Change-Id: I524060418de18f97c3865ebc4435f501015e92ee
| * | | | merge in mnc-release history after reset to mnc-devThe Android Automerger2015-07-070-0/+0
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | merge in mnc-release history after reset to mnc-devThe Android Automerger2015-07-020-0/+0
| | |\ \ \
| | | * \ \ merge in mnc-release history after reset to mnc-devThe Android Automerger2015-07-010-0/+0
| | | |\ \ \
| | | | * \ \ merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-270-0/+0
| | | | |\ \ \
| | | | | * | | Use f_bavail to calculate free spacecaozhiyuan2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Failures are seen on devices with Linux 3.10. And they are mainly due to this change: https://lwn.net/Articles/546473/ The blocks reserved in this change is not the same thing as what we think are reserved for common usage of root user. And this part is included in free blocks but not in available blocks. Bug: 22118089 Change-Id: I81c9531703298019a4fc11839f28d2cc8b9df34e (cherry picked from commit 3b4977638f48e59d23d7ea2bb6dde78552c257fb)
| | | | | * | | Allow sideloading without authentication.Elliott Hughes2015-06-231-1/+5
| | | | | | |/ | | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: http://b/22025550 Change-Id: I20f09ae442536f924f19ede0abf6a2bcc0a5cedf (cherry picked from commit 9813f5ba57fe7d90d45cb1c2b6f65920ce580e72)
| | | | | * | merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-110-0/+0
| | | | | |\ \
| | | | | | * | Revert "Zero blocks before BLKDISCARD"Sami Tolvanen2015-06-101-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 604c583c9dd3d47906b1a57c14a7e9650df7471e. Change-Id: I2b0b283dc3f44bae55c5e9f7231d7c712630c2b5
* | | | | | | | udpater: Call fsync() after rename().Tao Bao2015-08-041-0/+20
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to ensure the renamed filename reaches the underlying storage. Bug: 22840552 Change-Id: I824b6e9d8a9c5966035be7b42a73678d07376342 (cherry picked from commit dc3922622a94af4f6412fd68e8f075f839ab2348)
* | | | | | | Merge "Revert "Change init sequence to support file level encryption"" into ↵Paul Lawrence2015-07-071-3/+3
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | mnc-dev
| * | | | | | Revert "Change init sequence to support file level encryption"Paul Lawrence2015-07-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 98c1a3de23ae8b589c36e74939193c44d25cac65. Change-Id: I524060418de18f97c3865ebc4435f501015e92ee
* | | | | | | Merge "Change init sequence to support file level encryption" into mnc-devPaul Lawrence2015-07-061-3/+3
|\ \ \ \ \ \ \ | |/ / / / / / | | / / / / / | |/ / / / / |/| | | | |
| * | | | | Change init sequence to support file level encryptionPaul Lawrence2015-07-061-3/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | File level encryption must get the key between mounting userdata and calling post_fs_data when the directories are created. This requires access to keymaster, which in turn is found from a system property. Split property loaded into system and data, and load in right order. Bug: 22233063 Change-Id: I409c12e3f4a8cef474eb48818e96760fe292cc49
* | | | | am b4b41daa: am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b4b41daa2ddbe8849dacdeeafd240e2a265cb594': Allow mounting squashfs partitions
| * \ \ \ \ am 0ddfa329: Allow mounting squashfs partitionsMohamad Ayyash2015-07-021-0/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0ddfa329acb1e6464fe5d66b58257013abf21116': Allow mounting squashfs partitions
| | * | | | | Allow mounting squashfs partitionsMohamad Ayyash2015-07-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic023eb7d8a11e2a65172a23ff39fa902ef566183 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
* | | | | | | Merge "Add drm support to minui" into mnc-devVincent Palatin2015-07-014-0/+484
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | |
| * | | | | | Add drm support to minuiStéphane Marchesin2015-07-014-0/+484
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22231636 Change-Id: I103c8e906b7dd9862b7bb89d8642268e9a3006b4 Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
* | | | | | Revert "Zero blocks before BLKDISCARD"Tao Bao2015-06-301-17/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b65f0272c860771f2105668accd175be1ed95ae9. It slows down the update too much on some devices (e.g. increased from 8 mins to 40 mins to take a full OTA update). Bug: 22129621 Change-Id: I4e8d4f6734967caf4f0d19c734027f7b6c107370
* | | | | More accurate checking for overlapped ranges.Tao Bao2015-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A RangeSet has half-closed half-open bounds. For example, "3,5" contains blocks 3 and 4. So "3,5" and "5,7" are actually not overlapped. Bug: 22098085 Change-Id: I362d259f8b5d62478858ad0422b635bc5068698d (cherry picked from commit c0f56ad76680df555689d4a2397487ef8c16b1a6)