Ethan Yonker
71413f4ee9
Check crypto footer before offering to decrypt
...
Verify that we have a valid footer with proper magic before
setting things up for decryption to help prevent user confusion
when dealing with data partitions that fail to mount. Also check
to make sure that the block device for /data is present.
Change-Id: Ie87818fe4505a8bf71df7d3934c114e7328ef3ca
2014-02-26 13:37:35 -06:00
Ethan Yonker
92d48e0696
Check auto generated backup names for invalid characters
...
Change name to date/time only if the auto generated backup name
contains any invalid characters.
Change-Id: I73e9e546373088ee7852fa31015060ce95a1d020
2014-02-26 12:06:08 -06:00
Ethan Yonker
45312e551f
Allow sideloading from /tmp
...
Change-Id: I7ba9a8a496536ed55241e45e18297bd824d7e28c
2014-02-26 09:23:53 -06:00
Dees Troy
31218ec952
Add word wrap to console output and fix scrolling in console
...
Change-Id: Ibcf89952ee1391350c715f1ec82cf0cdb9b0ca7d
2014-02-26 08:52:05 -06:00
Ethan Yonker
c62b34c3ba
Remove unneeded logging
...
Change-Id: I5c7d104689ed2b578b463a6be55b3688dcc4c01a
2014-02-25 11:19:56 -06:00
Ethan Yonker
30e41c784e
Merge "Remove some unneeded code" into android-4.4
2014-02-25 18:05:45 +01:00
Ethan Yonker
ababafef36
Merge "Add capslock support to keyboard" into android-4.4
2014-02-25 17:59:06 +01:00
Dees Troy
a0180a21e3
Merge "Look also for buttons when checking if input device is mouse" into android-4.4
2014-02-25 17:58:37 +01:00
Doug Zongker
c9d6e4ff51
support don't-care maps when writing the system image
...
Make package_extract_file() take an optional third argument which is
the pathname (in the package zip) of a map of don't-care regions to
skip over when writing the file.
Modify syspatch() to take source and target don't-care maps and use
them when patching the system partition.
Add the wipe_block_device() function to do a discard of all data on
the partition.
Change-Id: I8c856054edfb6aab2f3e5177f16d9d78add20be4
2014-02-24 16:02:50 -08:00
bigbiff bigbiff
731df79eb7
fix slash between directories
...
add fixing contexts of Android directory for apps that store stuff here
fix data/data contexts to be recursive
Change-Id: I1122559c83845c3af0a351a4034cd7ad6da83fa5
2014-02-22 20:12:02 -05:00
Benoit Goby
0d372a553e
am ed75be6d: am ac189bf6: Merge "recovery: Fix adb with linux 3.10"
...
* commit 'ed75be6de9d883a2524065940d732593fa26ac19':
recovery: Fix adb with linux 3.10
2014-02-21 04:21:03 +00:00
Benoit Goby
ed75be6de9
am ac189bf6: Merge "recovery: Fix adb with linux 3.10"
...
* commit 'ac189bf645123b4dc79cd2053f5eb07917774d66':
recovery: Fix adb with linux 3.10
2014-02-20 22:37:58 +00:00
Benoit Goby
ac189bf645
Merge "recovery: Fix adb with linux 3.10"
2014-02-20 22:32:32 +00:00
Vojtech Bocek
971d318d34
Look also for buttons when checking if input device is mouse
...
* Some touchscreens have REL_* events
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: I332637ff58324895896ad09bf4ac08a2f127e49f
2014-02-20 21:44:32 +01:00
Doug Zongker
0ac1cbaa76
add flag for GPL license
...
updater now depends on the GPL'd libraries libsyspatch and libxdelta3,
so be careful when taking code from this directory.
Change-Id: Ib6f8c50ce7052912b9d81ff96d095f778bf9a3d0
2014-02-20 10:15:44 -08:00
Benoit Goby
1b9641127c
recovery: Fix adb with linux 3.10
...
In kernel 3.10, f_adb has been removed and adbd can use functionfs
instead. Mount functionfs on boot for adbd. On older kernels, mount
will fail silently and adbd will revert to f_adb.
Change-Id: I5db57aaf35b35859ea88c7d0e0661d8c553e5811
2014-02-19 17:48:49 -08:00
Doug Zongker
f2ff0a2097
Merge "clean up some warnings when building recovery"
2014-02-18 17:48:19 +00:00
Ethan Yonker
c3120d41b8
Add capslock support to keyboard
...
Change-Id: I4be3849ff0485536575395d798aa5edbe12651a7
2014-02-17 08:11:14 -06:00
Ethan Yonker
8214f0ae64
Remove some unneeded code
...
Change-Id: I52b34a316950e92a3aa4c1675475fca8dc08d2c8
2014-02-16 15:15:34 -06:00
Ethan Yonker
b2a36d35c9
Merge "Improve ORS scanning of storage locations" into android-4.4
2014-02-16 05:33:26 +01:00
Ethan Yonker
d7adf29ba1
Improve ORS scanning of storage locations
...
Grab a vector of storage locations and iterate through them for
searching for zips and restore folders.
Change-Id: Ia045b1e15ac3701132d61fe9f5847da5785a9b4e
2014-02-15 16:43:26 -06:00
Maxim Siniavine
48f4c3d60c
Merge "Fix a crash when going into recovery mode."
2014-02-14 00:03:28 +00:00
Maxim Siniavine
e7b2888245
Fix a crash when going into recovery mode.
...
When going into recovery mode withoug recovery command file present, uncrypt crashes
and the device gets stuck and eventually shuts down.
Check that the command file is present before trying to read from it.
Change-Id: If0192d597032be0067738e437188d92993ce56f7
2014-02-13 15:53:38 -08:00
Doug Zongker
3eb681d1de
remove remaining libminelf references
...
Change-Id: Id38b08607829bccc031693cc03e60e849903b6f8
2014-02-13 15:49:35 -08:00
Doug Zongker
0d32f259cd
clean up some warnings when building recovery
...
Change-Id: I1541534ee6978ddf8d548433986679ce9507d508
2014-02-13 15:34:18 -08:00
Doug Zongker
a1bc148c7c
remove 'retouch' ASLR support
...
Older versions of android supported an ASLR system where binaries were
randomly twiddled at OTA install time. Remove support for this; we
now use the ASLR support in the linux kernel.
Change-Id: I8348eb0d6424692668dc1a00e2416fbef6c158a2
2014-02-13 15:18:19 -08:00
Doug Zongker
52b4036eb8
add syspatch support to updater
...
Add the syspatch() function, which can apply xdelta3+xz patches using
the libsyspatch library.
Change-Id: Idc1921e449020923bcaf425a1983bec0833e47ed
2014-02-13 14:15:26 -08:00
Doug Zongker
a9300301ce
add mzGetStoredEntry function
...
mzGetStoredEntry gives you a pointer and address to the data of a zip
entry, assuming that entry is stored rather than deflated.
Change-Id: Ifb39777c98d1d50475ef7de419cf28935f5f9965
2014-02-13 08:30:41 -08:00
Vojtech Bocek
072205626c
Cache results of GUIObject::isConditionTrue()
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: Ia50f7c365b2dc0a65ee046bb42972e3594264878
2014-02-12 19:19:32 +01:00
Vojtech Bocek
bfb6334ca8
Properly delete all GUIObjects and pages on theme reload
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
2014-02-12 19:19:15 +01:00
Vojtech Bocek
ede51c528e
Conditional -> GUIObject and make all gui objects children of GUIObject
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-12 18:30:41 +01:00
bigbiff bigbiff
f08ada8483
Allow recovery to be restored if backup=1 flag is present in recovery.fstab
...
Change-Id: I426c8da8ae586004011ec4a103e1d7a1f23b3599
2014-02-12 17:30:51 +01:00
Dees Troy
90447006d2
Merge "Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist" into android-4.4
2014-02-12 16:56:53 +01:00
Ethan Yonker
aae6e8ca7b
Add fix permissions to OpenRecoveryScript
...
Change-Id: I2419cba26fcf046833b5a02fd1b95d6d6e542b8a
2014-02-12 16:15:49 +01:00
Ethan Yonker
50381976ff
Add twrpTar binary
...
Change-Id: I9db1aac350cd2ca02cceccc249ebd2f0b3c3c671
2014-02-12 16:15:11 +01:00
Ethan Yonker
c590e7b715
Add rule to make libopenaes_static
...
Change-Id: Id4b6d5d9364a3c3a3c2a367f961fcc7f7a1107e7
2014-02-12 16:14:51 +01:00
Ethan Yonker
ccb0cf7fa8
Add rule to make libtar_static
...
Change-Id: I9cddde9961e79c4d4905382858ee330b856d6edf
2014-02-12 16:14:24 +01:00
Ethan Yonker
a869eddeb9
Remove unused functions
...
Change-Id: I3230412e6aad7aab0f2fd034cc7b289cd4cd6a97
2014-02-12 15:12:06 +00:00
Ethan Yonker
af2897c4c2
ifdef some functions that depend on other TWRP parts
...
End goal is to create a twrpTar binary that can run from the
command line.
Change-Id: I14f07a425b7755bd09dbce95a5918da1430964fc
2014-02-12 15:08:31 +00:00
Ethan Yonker
374cd713d4
Merge "Move DataManager functions out of twrpTar.cpp" into android-4.4
2014-02-12 15:56:02 +01:00
Ethan Yonker
87af56369b
Move DataManager functions out of twrpTar.cpp
...
Change-Id: I943318afe787ff4ede724fa0bc77ebc6a3ba0c8b
2014-02-10 11:56:35 -06:00
Ethan Yonker
f27497f0cc
Fix ext4 wiping when no SELinux contexts are defined
...
Change-Id: I900f42892d47f54b573cc1dbfb551ed2a8f9e8b9
2014-02-09 11:48:33 -06:00
Ethan Yonker
0385f51857
Update SuperSU
...
Change-Id: I0f450357595e7f5f56a7c120b899101faf7f6360
2014-02-07 21:54:33 -06:00
Ethan Yonker
b555789d44
Separate out function for reading /system/build.prop values
...
Change-Id: I9e398aa3f4f5be0728435ffdab333d4090cdab22
2014-02-07 21:43:20 -06:00
Vojtech Bocek
5af8f3faca
Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist
...
Signed-off-by: Vojtech Bocek <vbocek@gmail.com >
Change-Id: I7b0e27930857add1ac88671a71310bea56fc4e74
2014-02-08 02:22:23 +01:00
Dees Troy
175cb7b25d
Merge "Additional mount function call without mount options" into android-4.4
2014-02-07 19:49:11 +01:00
Dees Troy
3b2be98ca4
Merge "Add option to print render time of each frame to log file" into android-4.4
2014-02-07 19:46:59 +01:00
Dees Troy
a8aac9038f
Merge "Restore contexts when doing mkdierhier in libtar Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped." into android-4.4
2014-02-07 19:44:16 +01:00
Dees Troy
e492e27d77
Merge "Implement mouse cursor" into android-4.4
2014-02-07 19:39:53 +01:00
Ethan Yonker
75de542490
Merge "Expansion of vibrate options" into android-4.4
2014-02-07 19:39:13 +01:00