Commit Graph

47 Commits

Author SHA1 Message Date
Ethan Yonker
eeed3c55d8 Fix handling of storage with data/media vs data/media/0
Sometimes loading the values from the settings file may set the
storage path to /data/media when the proper path is /data/media/0
This commit will grab the storage path from the partition manager
to ensure that we are using the proper path.

Change-Id: Ibfd63125a2b9705319eb55b09c7e65391757bbc2
2014-04-16 12:07:45 -05:00
Ethan Yonker
9c102b536d Add additional search path for brightness
Change-Id: Ib1f032d87aafd7732d460caeca1e3ae6745a563d
2014-04-16 17:35:37 +02:00
Ethan Yonker
00028b4adb Add find file class to search for files
Scan a folder for a file based on file name. First scan the files
in the current path, then search real directories and finally
search symlinks in that order. Goal is to locate important sysfs
files for things like brightness, battery capacity, lun files, etc

This implementation just scans for the brightness file for the LCD

Change-Id: I8ed3e74a2e2851d58b443718b6e92b50a5491f08
2014-04-15 15:26:44 +02:00
Ethan Yonker
7af51ce521 Tweak OEM mode
Change-Id: Ic440e33fa22aa7b082097366f10b333cc945362a
2014-04-04 13:33:30 -05:00
Ethan Yonker
83e82578af Allow building of an OEM friendly TWRP
Disable theming
Disable creating the TWRP folder for the settings file
Change factory reset on data/media devices to a full wipe

Change-Id: I3104282b5dd3f55dfff7c8cf39c72750af08563d
2014-04-04 10:59:52 -05:00
Ethan Yonker
03db326c64 Expansion of vibrate options
Improve location / timing of vibration
Split out vibrate settings for buttons, keyboard, and long actions

Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
2014-02-07 09:53:41 -06:00
Samer Diab (S.a.M.e.R_d)
71e9b049c2 Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2014-02-06 20:27:28 +01:00
Dees Troy
3be70a897e Update licenses to all match 2013-10-22 14:25:12 +00:00
Dees Troy
b21cc64ca8 Pull ROM info from build.prop for backup names
Change-Id: I7847fca22b5d4f0a35da41625b15bd677a1e9768
2013-09-12 09:11:13 -05:00
Dees Troy
c2e9bc74a1 Fix zip folder selection when storage path is similar
If internal is /sdcard and external is /sdcard-ext then the zip
path used to stay on /sdcard-ext when trying to switch to internal
storage. Using Get_Root_Path instead of resizing will ensure that
the path changes properly.
2013-09-10 00:16:31 +00:00
Ricardo Gomez
c9ecd4473c Add a TW_NO_TIMEOUT option
Change-Id: Ifb3a5bd9f1e6c2e9810c90b0aec198e91d5956fc
2013-08-25 21:10:08 +00:00
Vojtech Bocek
fafb0c541b Unify indentation and little clean-up in TWRP files
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2013-08-24 07:56:48 -05:00
Dees_Troy
d93bda5916 2.6.0.0
Also copy recovery.fstab to cache and create a storage.fstab in
cache for app/apk use.
2013-07-03 19:55:35 +00:00
Dees_Troy
f100c94f17 Fix saving of backup list 2013-07-01 15:49:47 -05:00
Dees_Troy
1872795445 Fix issue with save/load of zip location 2013-07-01 15:49:33 -05:00
Dees_Troy
83bd483f3d Support encrypted backup files
Also includes features merged from:

Update twrpTar by kokotas

Revised function entryExists().
Added function to get archive's uncompressed size.
Added option to exclude item(s) from the archive.
Revised forks()

http://review.teamw.in/#/c/590/

Change-Id: I01fa2c81643161984eff2625247af75990684bd9
2013-06-22 16:16:55 -05:00
Vojtech Bocek
85932344cd Add new SliderValue GUI widget
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ic5d44314f501341140dd7059d1cb753341f5844c
2013-04-04 18:59:08 +00:00
Dees_Troy
2673cec07a Move all AOSP code out of recovery binary
Improves license compatibility between GPL and Apache

Change-Id: I2b165aa575bb6213af6b07936f99610c113443f0
2013-04-04 18:57:34 +00:00
Dees_Troy
a13d74fc95 Add partition list GUI element
Add partition list GUI element and update backup, restore, mount,
storage selection, and wipe sections of GUI and partition manager
code to reflect the new GUI element. Update ORS engine to handle
new backup and restore setup.

Fix a bug with decrypt.
Add 1080x1920 layout.

Change-Id: Iaa2f44cb707167e66f935452f076ba00e68a2aa4
2013-03-30 08:56:39 -05:00
Dees_Troy
f33b49015a Add option for custom battery path 2013-03-01 00:51:39 +00:00
bigbiff bigbiff
f8e2f37565 Load user saved setting for blank timer on recovery startup
Fix persistence of military time
2013-02-27 20:50:43 -05:00
Dees_Troy
8211102b4e Remove ignore image size setting
Move military time setting up and remove the now unused ignore
image size setting from XML layouts.
2013-02-21 21:14:08 +00:00
Dees_Troy
6ef6635ad3 Check for root and root perms and offer to install/fix
Also fix sort order for file selector by date and file sizes

Change-Id: Idff9fe4232c19d4ed1082e78fabe6f921aa0a114
2013-02-21 18:23:43 +00:00
bigbiff bigbiff
4efe9c3c7d add military time option 2013-02-20 18:58:11 -05:00
Dees_Troy
2f9117af30 Configurable timeout and brightness settings
Change-Id: I924297ab0dcf920cd4b4b617949c3b16cbc68e43
2013-02-20 09:35:23 -06:00
bigbiff bigbiff
2c57d789df convert file_bps to be unsigned long long
Change-Id: Ib5d9ca8f9a2a4e27d9798665b312376a7d9c571c
2013-02-19 18:08:03 +00:00
Anatoly Smaznov
10c11f67cf Add TW_USE_MODEL_HADWARE_ID_FOR_DEVICE_ID parameter for correct model identification
Change-Id: Ic6440c624b5cfbdb0f24681461748a0da16bf95e
2013-02-19 17:20:04 +00:00
Talustus
33ebf93d65 fix wrong debuging output of used BUILD FLAGS in data.cpp 2013-02-02 14:11:14 +01:00
bigbiff bigbiff
7ce7f0cde4 adding sideload page with wipe cache and dalvik
fix variable
Change-Id: I72eed7b4d709a184e53cc94165a1817a7dcf041e
2013-01-25 15:59:19 +00:00
Dees_Troy
f4499816e3 Output most build flags to log
Change-Id: I28f62236c5d5fa882cb5c05973ebf84da006b9ff
2013-01-24 19:46:48 +00:00
Dees_Troy
6a042c8443 Disable USB Mass Storage if the USB lun file does not exist.
Change-Id: I185edb4538fa84c17fc2b9a803557bb7a622f880
2013-01-24 19:45:54 +00:00
Dees_Troy
1c1ac44eaa Save version to cache 2013-01-17 21:44:57 +00:00
bigbiff bigbiff
9c754053b0 Add libtar to TWRP instead of using busybox tar
Add proper mkdosfs tool
Add fuse to TWRP
Add experimental exfat-fuse to TWRP
Convert all system() functions to use new Exec_Cmd function
2013-01-09 09:09:08 -05:00
bigbiff bigbiff
20ef6e3585 fix SP variable names 2012-11-23 20:22:11 -05:00
Dees_Troy
16b74353d9 Fixes for multi-user in 4.2
Also fixed inability to delete backups with a space in the name.

Change-Id: I2f6639d33caa3c4542960f76adbd59b25ab64f5d
2012-11-15 19:27:08 +00:00
Dees_Troy
01a9b7a7f8 Fix output of version number 2012-10-01 09:01:03 -04:00
Dees_Troy
a58beade0a Port reboot functions to C++ 2012-09-27 09:50:56 -04:00
Dees_Troy
b46a684971 Unify portrait layouts again 2012-09-26 09:00:46 -04:00
Dees_Troy
ab10ee2098 Fix special partition handling 2012-09-21 14:27:30 -04:00
Dees_Troy
e2920fa237 Fix ext storage and zip paths
Fix a bug with handling external storage during boot.
Check zip root path when switching storage and ensure that the
path is in the new storage path to prevent user confusion.
2012-09-19 16:18:21 -04:00
Dees_Troy
8170a92145 Cleanup extra-functions 2012-09-18 15:44:39 -04:00
Dees_Troy
38bd760b58 Add wipe functions, compiles in CM7, text shows in UI, zips install
Zip install works, had to move mincrypt code into TWRP to prevent
a crash when checking the zip signature.
Added wipe functions
Made it compile in CM7
Made text show up in console and logging
2012-09-14 13:36:32 -04:00
Dees_Troy
fdf5fcc344 Move device ID code to data manager 2012-09-11 10:27:49 -04:00
Dees_Troy
5112731666 Improve storage size code, mount, unmount
Add flag parsing from recovery.fstab
2012-09-10 11:33:29 -04:00
Dees_Troy
5bf439221d Add processing of fstab, mounting, and decrypt 2012-09-07 16:10:00 -04:00
Dees_Troy
7d15c25b3a Hax to make it boot 2012-09-05 20:47:21 -04:00
Dees_Troy
51a0e82eb2 TWRP-ify AOSP code
Pull in most TWRP sources
Stub out partition management code
Make it compile -- probably will not boot
Kind of a mess but have to start somewhere
2012-09-05 15:24:31 -04:00