aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* recovery: mount without selinux for updatePat Erley2016-02-081-0/+2
| | | | | | | Mount the partition that is storing the OTA with an override so that recovery can read it. Change-Id: Ib87f27d4ca95f1a44de0477198c1de00552c0a8a
* recovery: rename remount_for_wipePat Erley2016-02-082-4/+4
| | | | | | We need to re-use this to get read access to OTA files. Change-Id: Iaab91150ff30422f25139372c5cd9076f1670bd3
* recovery: Minimize headers for "Apply update" menusTom Marshall2016-02-081-2/+2
| | | | | | | The touch UI takes 3 text lines per menu item, so minimize header text to compensate. Change-Id: I468f404e1a3de6ef9dee63301bb050b64f8de211
* recovery: Show menu headersTom Marshall2016-02-083-10/+43
| | | | | | | | Most headers in recovery aren't very useful and so have historically not been shown in the touch UI. But certain headers, such as those shown by yes_no(), should be shown. Change-Id: I8536c528d3b4b4fd6d506ecef25378149b4e9746
* minui: accept RGBA and treat it as RGBXArnav Gupta2016-02-061-0/+3
| | | | | | | | | | | | | | | | | There are devices with RGBA_8888 pixel format. There are also recoveries like TWRP that have alpha support and hence for a RGBA device, I expect to be able to set TARGET_RECOVERY_PIXEL_FORMAT = RGBA_8888 It should be supported on BoardConfig to set the correct PixelFormat for a device. Although recovery does not have alpha, so it can consider RGBA devices as RGBX, but it could do so in future. Change-Id: Id1f3b2fbfc8ad4cf0422614580e420196614f792 Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
* recovery: Remove insecure wipe from menu on user buildsPat Erley2016-02-052-0/+8
| | | | | | | | This would allow people who gain access to a pin-locked device to remove the pin and gain access to media. This will still allow wipes from Android to preserve media. Change-Id: I73bc9d176297081a41c8d29fc77638d665442fe8
* recovery: Fix dependenciesTom Marshall2016-02-041-6/+4
| | | | | | | | | | | * Do not require recovery binary to make toybox symlinks. It is not necessary and provokes a circular dependency warning from make. * Do not declare toybox symlinks and bu_recovery as additional dependencies when in one-shot mode. This allows incremental rebuilding of the recovery binary. Change-Id: I5ba815ebd4ce5981f8be316ec5ab77272ff565cc
* recovery: Offer to format if data wipe failsTom Marshall2016-02-042-2/+16
| | | | Change-Id: I76587c4fa234c5aab52882492da295e70029f522
* recovery: Menu rewrites and cleanupsTom Marshall2016-02-043-43/+126
| | | | | | | | | | | | | | * Introduce a menu stack for navigating sub-menus. The menu data structure format is a bit messy, but necessary in order to provide a string list for the ui. * Create "advanced" sub-menu for rarely used and dangerous commands. * Create "factory reset" sub-menu for various reset and wipe commands. * Separate "wipe data" and "factory reset" items. Change-Id: Ib9bc6967b98d022880cfe7fa8e324cd64b07d248
* recovery: Fix media wipePat Erley2016-02-021-0/+1
| | | | | | | | | During the Android 6 rebase, the 'm' options was missed in the getopt handler, breaking the ability to do a full wipe triggered from inside of Android. CYNGNOS-1817 Change-Id: Ic88006abd18cc83dd4a9d7917f34d6c6c8115538
* recovery: Fix mount_for_wipePat Erley2016-01-281-0/+1
| | | | | | | | During a rebase, a line was dropped that shouldn't have been. CYNGNOS-1747 Change-Id: I9c9729ba11599baad267d3769685124b422033f8
* recovery: Fix recursive rm wipe of dataPat Erley2016-01-282-0/+30
| | | | | | | | | | Android 6 re-introduced MCS/MLS SELinux contexts. Unforunately, this broke our previous SELinux model for walking /data and unlinking everything but media. Fix this by mounting /data with a temporary SELinux context that works with the previous model. Ticket: CYNGNOS-1747 Change-Id: Id87ad3bb357102c3a8bd7c1417183d788ef858a0
* sr: Add performance controlSteve Kondik2016-01-213-5/+26
| | | | | | * Crank it up when installing Change-Id: I997d937901ff446834e6c479aaf629bee51de388
* recovery: Enable the menu for User buildsPat Erley2016-01-051-6/+2
| | | | | | | | Upstream recovery doesn't provide a menu for non ENG/UserDebug builds. OPO-321 Change-Id: I01b285a40287be4147d15a70b91ad17a3c93da68
* imgdiff: skip spurious gzip headers in image filesDavid Riley2015-12-281-6/+14
| | | | | | | | | | | | | dragon kernel is compressed via lz4 for boot speed and bootloader support reasons and recent prebuilts happen to include the gzip header sequence which is causing imgdiff to fail. Detect a spurious gzip header and treat the section as a normal section. Bug: 26133184 Change-Id: I369d7d576fd7d2c579c0780fc5c669a5b6ea0d3d (cherry picked from commit 0f2f6a746af517afca9e5e089a4a17be0a9766d6) Signed-off-by: David Riley <davidriley@google.com>
* recovery: fstools: Honor TARGET_USES_EXFATTom Marshall2015-12-162-7/+15
| | | | Change-Id: I0e02ce2501cea8e7620fc3afe2d996ab98d32f60
* Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-070-0/+0
|\ | | | | | | | | | | https://android.googlesource.com/platform/bootable/recovery into cm-13.0 Android 6.0.1 release 3
| * am 15da523e: am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: ↵Narayan Kamath2015-09-160-0/+0
| |\ | | | | | | | | | | | | | | | | | | am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGE * commit '15da523e5fe7dbdc3a8d49c809042bc760081920': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | * am 3c7f655b: (-s ours) am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: ↵Narayan Kamath2015-09-160-0/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | (-s ours) am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGE * commit '3c7f655bf0382776617d3c98293e28d9967c9a96': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | * am 0e804d54: am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: ↵Narayan Kamath2015-09-160-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Track usage of Vector / SortedVector from libutils DO NOT MERGE * commit '0e804d542a2c151d254cad0d8581d9709a394a9a': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | * am d396b9db: am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of ↵Narayan Kamath2015-09-160-0/+0
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vector / SortedVector from libutils DO NOT MERGE * commit 'd396b9dbd99924f7c8687227b22220a87c85d9c7': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | * am 710b6bb9: am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / ↵Narayan Kamath2015-09-120-0/+0
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SortedVector from libutils DO NOT MERGE * commit '710b6bb9d7d36ce16453850efc3112016a77e9ff': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | * am ec4b58ad: (-s ours) am ec63d564: Track usage of Vector / SortedVector ↵Narayan Kamath2015-09-100-0/+0
| | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from libutils DO NOT MERGE * commit 'ec4b58ad8a21b511bf6b136792bb924eb6e9e299': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | * am ec63d564: Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-101-0/+1
| | | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ec63d564a86ad5b30f75aa307b4bd271f6a96a56': Track usage of Vector / SortedVector from libutils DO NOT MERGE
| | | | | | | | * Track usage of Vector / SortedVector from libutils DO NOT MERGENarayan Kamath2015-09-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 22953624 Change-Id: Ifcc17e39433ac91ca41da5d336fb3006dfbb65a8
* | | | | | | | | recovery: Remove "Supported API" messageMichael Bestas2015-12-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iac2153403ee66c8544c7d809f7b037aedeaf9d21
* | | | | | | | | recovery: Drop dependency on mkfs.f2fsMichael Bestas2015-12-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * It's provided by fstools in CM Change-Id: I62d3fc1c8f9056d3de6150c381680c2f1130fbbf
* | | | | | | | | minui: don't drop EV_ABS (touch) eventsDrew Walton2015-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8d16c5cffb28d6621c8079ed6cb38381cc9d43b5
* | | | | | | | | recovery: Fix size of text arrayTom Marshall2015-12-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | text_ is rendered using the log font, so alloc appropriately. Change-Id: If6306512978aff2f32bcee072a24cd6bdd042016
* | | | | | | | | recovery: Assimilate minivoldTom Marshall2015-12-022-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces recovery footprint by ~306kb. Change-Id: Ibc2d791b6dbf7e125cd95f753d0b4e46fca1e827
* | | | | | | | | recovery: fstools: symlink sgdisk so we can actually use itTom Marshall2015-12-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id5c5fb2f95fb5f2577493311c9cb252ab47c98d2
* | | | | | | | | recovery: Switch to CyanogenMod brandingTom Marshall2015-12-025-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will visually differentiate COS recovery from CM recovery so that users know at a glance which they are running. Images created by: Asher Simonds <asher@cyngn.com> Change-Id: I110158ed6644fa62b9a38f1f672ebc7dbfa726c1
* | | | | | | | | fstools: Invite sfdisk to the partyTom Marshall2015-12-013-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces recovery footprint by ~256kb. Change-Id: I544c14923859cee394485fac37b8c3822ec31b30
* | | | | | | | | recovery: Fix mounting f2fs partitionsTom Marshall2015-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9d94b611ab9a873b6b57a6d22bf78de131e3c8e5
* | | | | | | | | sr: Set context for minivoldSteve Kondik2015-11-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Or recovery doesn't start at all. Change-Id: Ib7b933ed15640483d9f4fb9362398a88c922a776
* | | | | | | | | sr: Fix build when oemlock plugin is enabledSteve Kondik2015-11-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic600231c9883a6e951ad951455b5af426fd4207a
* | | | | | | | | update-binary: support reboot_now on older recoveriesBrint E. Kriebel2015-11-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempt to reboot using older methods in case the recovery that we are updating does not support init reboots Ticket: CYNGNOS-1242 Change-Id: I9d6ec23c65291221e99d67b2361a2bd150319eee
* | | | | | | | | minui: support to pan display (FBIOPAN_DISPLAY)Daniel Hillenbrand2015-11-252-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Needed for newer hisilicon boards Change-Id: I9a5d640b1168de518885b89f63499c6f31958b75
* | | | | | | | | recovery: Separate blkid.tab for vold in recoveryMatt Mower2015-11-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vold does not have selinux permissions to read/write files in rootfs. By default, libext2_blkid writes a cache file to /etc/blkid.tab. Set environment variable BLKID_FILE just for use by the vold service, changing the cache file location to /tmp/vold_blkid.tab which can then take advantage of context vold_tmpfs. Change-Id: I70d233d3d6f4e82bc7d781a04ef7707b733b4a1b
* | | | | | | | | updater: Add LZMA support to blockimgSteve Kondik2015-11-255-3/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This adds support for LZMA compressed blockimages. The space savings from doing this is significant and will reduce our CDN costs by quite a bit. * I'll spend the saved $$$ on beer. Change-Id: I6679220aaa29592fe6bbccd4136f0c239e45e2ae
* | | | | | | | | updater: Allow devices to suppress BLKDISCARDandi342015-11-252-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * On some devices TRIM is disabled for security reasons. Don't fail flashing the ROM because discard isn't possible in this case. Change-Id: I044619c3e0b01a496d967ef136501d0190240ad4
* | | | | | | | | recovery: Allow devices to reboot to download modeAndreas Blaesius2015-11-253-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib6ccf98ed68efacbb3b8c8238945da60b23a20d7
* | | | | | | | | Improve placement of progress bar.Danny Baumann2015-11-251-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit text output to 1/4 of screen height during installation, and center icon and progress bar inside the remaining space. Change-Id: I4b56db78d13931fdd79580b801260bdfca0e9726
* | | | | | | | | Don't disable including TARGET_RECOVERY_UI_LIB if existsdhacker292015-11-251-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for fugu (Nexus Player) as it has one button on the bottom. Change-Id: Ic9f1f546abd90ff9bb6f983bc57628bcb45d641c
* | | | | | | | | sr: Fix all the graphics issuesSteve Kondik2015-11-253-54/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Get rid of all the jank and flicker. * Fix preserved backbuffer * Simplify the code, all drawing happens on a single thread now. Change-Id: I36e1deee0663defd8aea1eba985e3ecbd408eac0
* | | | | | | | | recovery: Headless modeTom Marshall2015-11-2510-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6b54bde65264aee99cb51a19436e82054b31fe74
* | | | | | | | | recovery: autodetect filesystem typeDan Pasanen2015-11-254-3/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Multiple fstab lines (supported in android) cause recovery to fail to mount partitions if the fs type is not the same as the first fstab entry. So when we attempt to find an fstab entry that matches a path for an f2fs, ext4 or vfat type, check it against blkid's determination of what filesystem type it is. If there is a discrepancy, query fs_mgr for the next possible entry that matches that path until either we find one that is good, or run out of fstab entries. * Also attempt to autodetect the filesystem type for mounting from update.zips. Change-Id: Ib6f4535dd88ef714ae1ca6fb0ffae1c7dac0f7ce
* | | | | | | | | sr: updater: Fix multi-stage docsTom Marshall2015-11-251-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix reboot_now comments to reflect actual usage. Change-Id: I692d626185af24620382f7b318c2b77f643ccfb8
* | | | | | | | | sr: Fix menu wrappingTom Marshall2015-11-251-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reset menu_show_start_ if the selected item won't be visible. This fixes the display after selecting an item from the second page in the file list. Change-Id: Iff2bef39ec294c47bcaadce4128adb6d14d9e4db
* | | | | | | | | Allow custom bootloader msg offset in block miscMatt Mower2015-11-254-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use board define BOARD_RECOVERY_BLDRMSG_OFFSET with a decimal integer to define a custom offset where the bootloader message should be read/written. Edify commands get_stage and set_stage need to be aware of the custom bootloader msg offset because they write the stage directly to the BCB. Change-Id: Id13a23dd41bb7d907b96d657b8e21eb839dfeaa9