- 20 Dec, 2013 1 commit
-
-
Michael Runge authored
-
- 19 Dec, 2013 1 commit
-
-
Doug Zongker authored
These were attempts to write partitions "conservatively" in hopes of fixing the problems with writing the radio partition on Nexus 4. They didn't work (a kernel patch was needed), but got left in. They make writing of partitions unnecessarily slow (ie, we really shouldn't need to sync() after every 4kb). Roll back most of them, but leave the verification read-back in. Change-Id: I94badc0979e88816c5aa0485f6316c02be69173c
-
- 14 Dec, 2013 1 commit
-
-
Michael Runge authored
Change-Id: I85726bf736203d602428114145c3b98692580656
-
- 26 Nov, 2013 1 commit
-
-
Doug Zongker authored
In order to support multi-stage recovery packages, we add the set_stage() and get_stage() functions, which store a short string somewhere it can be accessed across invocations of recovery. We also add reboot_now() which updater can invoke to immediately reboot the device, without doing normal recovery cleanup. (It can also choose whether to boot off the boot or recovery partition.) If the stage string is of the form "#/#", recovery's UI will be augmented with a simple indicator of what stage you're in, so it doesn't look like a reboot loop. Change-Id: I62f7ff0bc802b549c9bcf3cc154a6bad99f94603
-
- 07 Nov, 2013 2 commits
-
-
Michael Runge authored
Merge "Enable incremental builder to find files that moved, and try to process them via patch + rename, instead of delete + add." into klp-dev
-
Michael Runge authored
try to process them via patch + rename, instead of delete + add. b/11437930 Change-Id: I984349fbc9a8dac4379e00c0d66fc7d22c4eb834
-
- 17 Oct, 2013 1 commit
-
-
Ed Heyl authored
-
- 08 Oct, 2013 1 commit
-
-
Ed Heyl authored
-
- 03 Oct, 2013 1 commit
-
-
The Android Automerger authored
-
- 02 Oct, 2013 1 commit
-
-
Michael Runge authored
update image. b/10952479 Change-Id: I59bb834f271f702fb529054dab7926b816fa35cc
-
- 12 Sep, 2013 1 commit
-
-
The Android Automerger authored
-
- 11 Sep, 2013 2 commits
-
-
Doug Zongker authored
Recovery's init.rc was missing a line (added to the main system's init.rc in change Ic97fd464440ff4a29fc9da7ad15949ac5215ade3) is required for secure adb to work. Change-Id: Id79b94d2abb4cbe3cca7cabeb4bc5faf7205e56b
-
Nick Kralevich authored
Bug: 10183961 Bug: 10186213 Bug: 8985290 Change-Id: I57cb14af59682c5f25f1e091564548bdbf20f74e
-
- 10 Sep, 2013 3 commits
-
-
Nick Kralevich authored
Bug: 10183961 Bug: 10186213 Bug: 8985290 Change-Id: I57cb14af59682c5f25f1e091564548bdbf20f74e
-
The Android Automerger authored
-
Nick Kralevich authored
Introduce two new updater functions: * set_metadata * set_metadata_recursive Long term, these functions are intended to be more flexible replacements for the following methods: * set_perm * set_perm_recursive Usage: set_metadata("filename", "key1", "value1", "key2", "value2", ...) set_metadata_recursive("dirname", "key1", "value1", "key2", "value2", ...) Description: set_metadata() and set_metadata_recursive() set the attributes on a file/directory according to the key/value pairs provided. Today, the following keys are supported: * uid * gid * mode (set_perm_extd only) * fmode (set_perm_extd_recursive only) * dmode (set_perm_extd_recursive only) * selabel * capabilities Unknown keys are logged as warnings, but are not fatal errors. Examples: * set_metadata("/system/bin/netcfg", "selabel", "u:object_r:system_file:s0"); This sets the SELinux label of /system/bin/netcfg to u:object_r:system_file:s0. No other changes occur. * set_metadata("/system/bin/netcfg", "uid", 0, "gid", 3003, "mode", 02750, "selabel", "u:object_r:system_file:s0", "capabilities", 0x0); This sets /system/bin/netcfg to uid=0, gid=3003, mode=02750, selinux label=u:object_r:system_file:s0, and clears the capabilities associated with the file. * set_metadata_recursive("/system", "uid", 0, "gid", 0, "fmode", 0644, "dmode", 0755, "selabel", "u:object_r:system_file:s0", "capabilities", 0x0); All files and directories under /system are set to uid=0, gid=0, and selinux label=u:object_r:system_file:s0. Directories are set to mode=0755. Files are set to mode=0644 and all capabilities are cleared. Bug: 10183961 Bug: 10186213 Bug: 8985290 Change-Id: Ifdcf186a7ed45265511dc493c4036e1ac5e3d0af
-
- 09 Sep, 2013 1 commit
-
-
Nick Kralevich authored
This reverts commit 627eb30f. Bug: 10183961 Bug: 10186213
-
- 03 Sep, 2013 2 commits
-
-
Doug Zongker authored
We need to set the system property to "reboot,", not an empty string. Bug: 10605007 Change-Id: I776e0d273764cf254651ab2b25c2743395b990e0
-
Doug Zongker authored
We need to set the system property to "reboot,", not an empty string. Bug: 10605007 Change-Id: I776e0d273764cf254651ab2b25c2743395b990e0
-
- 30 Aug, 2013 1 commit
-
-
Doug Zongker authored
Change I84c0513acb549720cb0e8c9fcbda0050f5c396f5 moved reboot functionality into init but did not update the recovery partition; so "adb reboot" and /system/bin/reboot in recovery are both broken. Change-Id: Ie2d14627a686ffb5064256b6c399723636dff116
-
- 21 Aug, 2013 1 commit
-
-
Doug Zongker authored
When installing a package, we should have /tmp and /cache mounted and nothing else. Ensure this is true by explicitly mounting them and unmounting everything else as the first step of every install. Also fix an error in the progress bar that crops up when you do multiple package installs in one instance of recovery. Change-Id: I4837ed707cb419ddd3d9f6188b6355ba1bcfe2b2
-
- 31 Jul, 2013 1 commit
-
-
Doug Zongker authored
Recovery changes: - add a method to the UI class that is called when a key is held down long enough to be a "long press" (but before it is released). Device-specific subclasses can override this to indicate a long press. - do color selection for ScreenRecoveryUI's menu-and-log drawing function. Subclasses can override this to customize the colors they use for various elements. - Include the value of ro.build.display.id in the menu headers, so you can see on the screen what version of recovery you are running. Change-Id: I426a6daf892b9011638e2035aebfa2831d4f596d
-
- 26 Jul, 2013 1 commit
-
-
Todd Poynor authored
-
- 18 Jul, 2013 1 commit
-
-
Nick Kralevich authored
Modify the OTA installer to understand SELinux filesystem labels. We do this by introducing new set_perm2 / set_perm2_recursive calls, which understand SELinux filesystem labels. These filesystem labels are applied at the same time that we apply the UID / GID / permission changes. For compatibility, we preserve the behavior of the existing set_perm / set_perm_recursive calls. If the destination kernel doesn't support security labels, don't fail. SELinux isn't enabled on all kernels. Bug: 8985290 Change-Id: I99800499f01784199e4918a82e3e2db1089cf25b
-
- 11 Jul, 2013 12 commits
-
-
Doug Zongker authored
* commit 'a69b50c5': recovery: remove O_DIRECT, use O_SYNC only
-
Doug Zongker authored
* commit '660637f3': recovery: more cargo-cult programming
-
Doug Zongker authored
* commit '901b898d': recovery: remove O_DIRECT, use O_SYNC only
-
Doug Zongker authored
O_DIRECT writes fail with EINVAL due to alignment issues. Change-Id: If8cf38a636313e4f4b4e61e66287dc903c473e5b
-
Doug Zongker authored
* commit 'e8d953aa': recovery: more cargo-cult programming
-
Doug Zongker authored
Add O_DIRECT|O_SYNC when opening partitions for write. Change-Id: I9825ad8e60fba87e482f8abc5593d6f54a1e3a1c
-
The Android Open Source Project authored
* commit '51ffaf54': recovery: sleep after writing partition and closing it
-
Doug Zongker authored
* commit 'fbcfad33': recovery: sleep after writing partition and closing it
-
The Android Open Source Project authored
* commit 'e352c88f': recovery: write partitions more conservatively recovery: try to write EMMC partitions more reliably
-
Doug Zongker authored
* commit '2148133d': recovery: write partitions more conservatively
-
The Android Open Source Project authored
Change-Id: Id35004f465f5152c1de0796eb66989f234185208
-
Doug Zongker authored
Another speculative attempt to get everything we write actually stored to the device. Change-Id: Icf40b0741b4c535e55ea34848073a97d90dc0e70
-
- 10 Jul, 2013 3 commits
-
-
Doug Zongker authored
* commit 'bf4a69ac': recovery: sleep after writing partition and closing it
-
Doug Zongker authored
Another speculative attempt to get everything we write actually stored to the device. Change-Id: Icf40b0741b4c535e55ea34848073a97d90dc0e70
-
The Android Open Source Project authored
Change-Id: Ib99b7cd6aede63006c91be2635112e16dd0f2b24
-
- 09 Jul, 2013 1 commit
-
-
Doug Zongker authored
Write and verify partitions using write(2) and read(2) rather than the stdio functions. Read and write in 4kb blocks. When writing, fsync() every 1MB. Bug: 9602014 Change-Id: Ie98ce38e857786fc0f4ebf36bb5ffc93b41bc96f
-