Elliott Hughes
a26fbeeaa4
Add a working Windows tmpfile(3) to fastboot.
...
Windows' tmpfile(3) implementation requires administrator rights because
it creates temporary files in the root directory. Write an alternative
that uses the user's temporary directory instead.
Bug: http://b/21558406
Change-Id: Ic9aece5c69429797a332a97681a76b76ac3551bf
2015-06-03 15:27:52 -07:00
Narayan Kamath
f6e9ffbc73
Fix file descriptor leak when opening invalid archives.
...
Also add -Wunreachable-code to the set of compiler flags, otherwise
noreturn becomes considerably less useful.
bug: https://code.google.com/p/android/issues/detail?id=171099
Change-Id: I9a95d45633c731c7046d4e4a39844d9cebfd1718
(cherrypick of 241bcf05e0e394bbf2681f359f52646dd6c707f6.)
2015-06-03 12:16:43 -07:00
Elliott Hughes
acdbe92c60
Don't say "update package missing" unless we mean it.
...
unzip_to_file reports failures itself these days, so there's it's unhelpful
of the caller to just guess what might have gone wrong.
Bug: http://b/21558406
Change-Id: I1e3d06c6cf902b8c6ef333dc60fd8f49680a493b
2015-06-03 11:01:41 -07:00
Elliott Hughes
f26eb51c2a
Merge "Add "fastboot --version"."
2015-06-03 02:36:50 +00:00
Elliott Hughes
379646b2ca
Add "fastboot --version".
...
So bug reporters can actually tell us what they're running.
Bug: http://b/21583225
Change-Id: If2a4ae97b4792aa321566603ce2c354a72d32307
2015-06-02 13:50:00 -07:00
Elliott Hughes
c0ce65f961
'usb' doesn't need to be global in fastboot.
...
Change-Id: Id014399640865d889918661bae0161b3165eee48
2015-06-02 13:34:07 -07:00
Badhri Jagan Sridharan
a873e1dc02
fastboot: Add support for fastboot flashing commands
...
Commands added:
fastboot flashing lock
- Prevents flashing partitions
fastboot flashing unlock
- Enable user to flashing partitions
fastboot flashing lock_critical
- Prevents flashing bootloader related
paritions
fastboot flashing unlock_critical
- Enables user to flash bootloader
related partitions
fastboot flashing get_unlock_ability
- Query bootloader to check if device is
locked.
(cherry picked from commit bf11095f92 )
Change-Id: Id6db16ba32f7a2b1c3f041a76bd3bdf2d3ab471e
2015-05-28 19:15:27 +00:00
Badhri Jagan Sridharan
bf11095f92
fastboot: Add support for fastboot flashing commands
...
Commands added:
fastboot flashing lock
- Prevents flashing partitions
fastboot flashing unlock
- Enable user to flashing partitions
fastboot flashing lock_critical
- Prevents flashing bootloader related
paritions
fastboot flashing unlock_critical
- Enables user to flash bootloader
related partitions
fastboot flashing get_unlock_ability
- Query bootloader to check if device is
locked.
Change-Id: Id6db16ba32f7a2b1c3f041a76bd3bdf2d3ab471e
2015-05-15 18:00:50 -07:00
Narayan Kamath
241bcf05e0
Fix file descriptor leak when opening invalid archives.
...
Also add -Wunreachable-code to the set of compiler flags, otherwise
noreturn becomes considerably less useful.
bug: https://code.google.com/p/android/issues/detail?id=171099
Change-Id: I9a95d45633c731c7046d4e4a39844d9cebfd1718
2015-05-13 09:20:44 +00:00
Mohamad Ayyash
94cd52391c
am a15881a9: am ed926596: am 6900d34e: Merge "Add verbose param to sparse_file_import_auto"
...
* commit 'a15881a9e9d2951eda7a7a85fbaadd93bfb9da9b':
Add verbose param to sparse_file_import_auto
2015-04-01 18:04:50 +00:00
Mohamad Ayyash
80cc1f6864
Add verbose param to sparse_file_import_auto
...
Change-Id: I0c5607f7aa5e964abc2031bbe71ff5c6e6ef56cc
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
2015-03-31 12:09:37 -07:00
Elliott Hughes
5b40fcbd1d
am a782173a: am 261a82a6: Merge "Switch fastboot to ExtractEntryToFile."
...
* commit 'a782173a26f192fe9f51e1ee53e8d329501df409':
Switch fastboot to ExtractEntryToFile.
2015-03-19 19:17:40 +00:00
Elliott Hughes
a82c89da1f
Switch fastboot to ExtractEntryToFile.
...
Rather than malloc, ExtractToMemory, and write.
Also fix the tmpfile error check (tmpfile returns NULL on failure),
and improve error reporting.
Bug: 19765860
Change-Id: I236923e883128083377607f1519bb2e27b8f03f8
2015-03-19 11:44:32 -07:00
Elliott Hughes
ddaabcf22f
am 41233fcc: am 294d3f74: Merge "Remove a prehistoric fastboot hack."
...
* commit '41233fcc35ce8c5efa06348f013c31072505229b':
Remove a prehistoric fastboot hack.
2015-03-19 18:27:08 +00:00
Elliott Hughes
787ed98d68
am f99e47a0: am 445e5ede: Merge "Switch fastboot to libziparchive."
...
* commit 'f99e47a0a0604aef2f3b1d07953d5f220662353c':
Switch fastboot to libziparchive.
2015-03-19 17:39:57 +00:00
Elliott Hughes
7c6d884e2b
Remove a prehistoric fastboot hack.
...
If you don't have android-info.txt in your zip file, you're probably
not using a current fastboot binary anyway.
Change-Id: Ic721dc5f068f704c6792493d1e99f05f907678ba
2015-03-19 10:30:53 -07:00
Elliott Hughes
b7ca152be0
am 8e70f63a: am 57bf3109: Merge "Prepare for switching to libziparchive."
...
* commit '8e70f63aba8e14f3b40b2a0769522505c1019c33':
Prepare for switching to libziparchive.
2015-03-19 16:01:06 +00:00
Elliott Hughes
d30ad8a2ee
Switch fastboot to libziparchive.
...
Bug: 19765860
Change-Id: I83ea56e3b317893995d7106852b65584f99c0e64
2015-03-18 23:23:11 -07:00
Elliott Hughes
253c18d2fb
Prepare for switching to libziparchive.
...
Bug: 19765860
Change-Id: I58249d28fbc4975428d0dcac5107d1994c35676c
2015-03-18 22:47:54 -07:00