aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/FileManagerApplication.java
Commit message (Collapse)AuthorAgeFilesLines
* FileManager : Index all storage volumesDanesh M2016-05-201-0/+7
| | | | | | | | | | Fix disk usage for no categories If no categories are found, ensure we fallback to drawUsed so the graph represents the information correctly. FEIJ-650 Change-Id: Ifdc069b1266c96dc1dc2569a2c0d45146f96b73d
* Implement a dialog that warns the user that we must expose the content of ↵Martin Brabham2015-04-171-0/+4
| | | | | | | | | | the file by copying it out to an unsecure location in order to allow the external applications to read the files. Change-Id: I163ccd21678f413170e44cf3e8d341cd4747b1ac (cherry picked from commit 58928e7facbdd63d4320748b277e94417fe402bb)
* CMFileManager:Martin Brabham2014-12-171-1/+1
| | | | | | | | | - Use Environment function to be more compatible. - Take into account the directory sizes - Fix usage dialog jumping on first open. - Fix Java DiskUsageCommand to return correct DiskUsage based on MountPoint Change-Id: I62c4e734a99f5eba8eb596db360e760cb8404b51
* CMFileManager: add usage stats by mime typeMartin Brabham2014-12-161-0/+9
| | | | Change-Id: I92ffb45ec3ef0dc6feb8b8129bcb0fedf442ba54
* cmfm: allow prompt console without su commandJorge Ruesga2014-11-211-3/+40
| | | | | | | | | Separete shell console commands from su command. This allow to create a shell console when su command is not present. A warning will be displayed is root mode is trying to be selected or a elevated operation is required. Change-Id: I27a2e850aec87026c8dd4b3baacf7ebd0f897a1a Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmfm: secure storage and other improvementsJorge Ruesga2014-11-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for virtual filesystems and implements a SecureStorage filesystem (a password protected area) mounted in /storage or /sdcard/storage (in chrooted environments). Also includes a better print support and a cleanup of the code and design of the menu drawer. Bump version to 2.0.0 Required: https://github.com/jruesga/android_external_libtruezip located in external/libtruezip Patchset 4: Fix selection of unmounted virtual storages. Fix actions on virtual mount points folders. Fix strings and typos. Change drop for delete secure storage. Patchset 5: Move actionbar buttons to navigation drawer Remove history position Patchset 6: Update theme preview images Fix filesystem status image on theme change Patchset 7: Fix binary file detection in editor (including unicode files) Patchset 8: Fix unsafe operations in virtual mountpoint logic Patchset 9: Rebase Change-Id: I65511352ca649dcbf238c8b07cf8c22465296e8e Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Allow restrict access to secondary usersJorge Ruesga2014-03-201-0/+36
| | | | | | | Change-Id: I1bffbb32a5f02ab4ca5cdcdbc21d40c7bb299933 JIRA: CYAN-1630 Issue: https://jira.cyanogenmod.org/browse/CYAN-1630 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmfm: Fix typoJorge Ruesga2014-01-061-1/+1
| | | | | Change-Id: I65234cc06b5982ba98b1525344acd1934b5b15a9 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Editor initial highlight support + props syntax processor + others ↵Jorge Ruesga2013-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | features - This change enables support of syntax highlight in editor. Adds also the next syntax processors: * PropertiesSyntaxHighlightProcessor - Option for toggle "no suggestion" in editor - CleanUp Patchset 2: Theme color scheme support Patchset 3: Hexdump binary editor preference No suggestions editor preference Syntax Highlight color scheme Add android-syntax-highlight (CMFM) and color-picker-view libraries ColorPickerDialog and ColorPickerPreference Separate preference to its own file Extract themes strings from dark_theme.xml to strings.xml Rebased Change-Id: I9df65e6193d46ebafadee5d545dcde1fc5ce20e9 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: CYAN-200 - Archiving and Extracting .ZIP files in CM File ManagerJorge Ruesga2013-03-171-0/+53
| | | | | | | | | | | | | | | | Added support for zip and unrar commands. Zip, unzip, unlzma, unxz, uncompress and unrar are now optional. Compress or uncompress of these types are only available if its commands are present in filesystem NOTE: This change requires that zip and unrar commands are present in the filesystem at /system/xbin, which actually don't. Patchset 2: Rebased Change-Id: I30667c802bc5b678015b28bb3170377ceb37a1b8 JIRA: https://jira.cyanogenmod.org/browse/CYAN-200 Bugfix: CYAN-200 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Do not use cd and pwd commandsJorge Ruesga2013-01-091-7/+6
| | | | | | | | Remove cd and pwd commands and use / as working directory for shell process (this commands are not used). This prevents that storage volumes from get busy on unmount file systems. Signed-off-by: jruesga <jorge@ruesga.com> Change-Id: I772866c00233351f505b61f53d43bac5de02a5e4
* CMFM: Fix name and parent for root directoryJorge Ruesga2013-01-061-1/+0
| | | | | Change-Id: I56aed1dff9fda651e30d0eb29e488d3736e42900 Signed-off-by: jruesga <jorge@ruesga.com>
* CMFM: Fixes and ImprovementsJorge Ruesga2013-01-051-41/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Some performance improvements: - Use stat instead of ls. This allow improve listing of directories with symlinks. Symlinks are resolved by File.getCanonicalFile. - Simplify ls, fileinfo, find and readlink command - Simplify the parsing of FolderUsage (only type, size and category is required), and avoid to load a lot of on unused objects - Add new file datetime information from stat: access, change and modify - Improve list, find and resolvelink java commands * FadeEffect and symlink handling * Remove context from AIDHelper and add new helpful methods * New getAbsolutePath method * Use file separator for paths and ROOT_DIRECTORY for root directory path * Organize startup - Initialize variables prior to register receivers - Load AID data for improve performance through caching - Load the theme base used by AOSP widgets * Allow Editor to show zero-length files Allow the editor to load zero-length files (like /proc/mounts) and change the buffer type to no editable in binary files. * Invert allowed mount points detection. This change inverts the algorithm for prevent unmount needed rw filesystems. Now uses known restricted filesystems instead of known allowed filesystems. Now filesystems like yaffs2, fuse, and other linux filesystems are allowed by default. * Remove unused xliff namespace * Add flagNoFullscreen to EditText widgets * Fix listview selectors of history and bookmarks * Fix race condition When the command was executed prior to block the execution, the thread wait for the timeout. Add a sync access check to ensure that prior to lock and wait the program executed is not finished. * Fix for async programs When the partial buffer received for an async program is not complete (ends with a EOL), the partial buffer was discarded. Add a new buffer with this lost chars to complete this bytes next time * Fix list command Use -n1 for xargs in list command to prevent "argument line too long" * If parent is null then assume that it is the root folder * Use only name and parent for equals method on FileSystemObject A FileSystemObject is the same if his name and path are the same. * Increase performance of adapters Use argument data when possible to avoid call the adapter methods * Do not clear selection on some actions Actions like create new file/folder, show properties and other actions that explicit requires clear the active selection, shouldn't removed the active selection. * Add a new additional line to dialog messages to fill the dialog * Fix spanish translations * Fix theme roulette on tablets * Clean NLS and Override warnings * Fix parse size data with dots * Add listeners after set the values to avoid raising triggers * Increase performance of adapters. Notify the data changed at the end of the changes, and only to super adapters (the internal structure has already been updated) * Ensure that all the Cursor references were closed after used them. * Remove unused SuppressLint * Clean up Change-Id: I4326e97cbc942c767829f1a0ff6b380ad768cfef Signed-off-by: jruesga <jorge@ruesga.com>
* CMFileManager: Check shell commands on startupJorge Ruesga2012-12-111-3/+38
| | | | | | | | This change improved the detection of CM rooted devices with support for all the commands used by CMFM. In case of one of this command was not detected, the app start in chrooted-java mode (with limited support). Change-Id: Ie0f61d74f9619f476ea517c1b3c03ec453e033f3
* CMFileManager: Themes support + Dark themeJorge Ruesga2012-11-111-46/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enabled the theme support, and added a new dark theme under the package CMFileManagerThemes. To compile under build system, it must be enabled in vendor/cm/config/common.mk or vendor/cm/config/themes_common.mk (this was requested in change http://review.cyanogenmod.org/#/c/26311/) Themes were enabled in a new settings option. Under this setting the application show the user the available themes installed in the system. -------------------- For build new themes, developers should: - Create a new package that contains an activity with: * Permission: com.cyanogenmod.filemanager.permissions.READ_THEME * Action: com.cyanogenmod.filemanager.actions.MAIN_THEME * Category: com.cyanogenmod.filemanager.categories.THEME - Define the themes_ids, themes_names and themes_descriptions arrays-strings definitions for the themes that the package support. - Create a xxx_theme.xml for every theme that the package support, where the xxx is the id of the theme. Put your resources in this file, prefixing the resource with the id of the theme (xxx_). For a list of all supported resources see theme.xml in res/values of CMFileManager project. ------------------- Other fixes: * Protect console buffers from NPE * Fix code style of xmls (layouts, drawables, ...) Patchset 2: Fixed code style and added Christian suggestion Patchset 3: Added forgotten READ_THEME permission check as described in the note above. Patchset 4: Use centerInside in theme preview for better image fit Change-Id: I4142da6d9ed1b06318e47ff9c05f9a874c62f3ae
* CMFileManager: Fix NPE while retrieving background consoleJorge Ruesga2012-11-061-1/+4
| | | | | | If the background console is null, then force allocation. Protect from NPE. Change-Id: I57da98a9c18516f2f2936710387762dfc59543ff
* Remove console selection (Issue #17) - Part II (Settings & Code)jruesga2012-10-271-55/+12
|
* Change application name to 'File Manager' (issue #20)jruesga2012-10-261-0/+406
Full refactoring of package from explorer to filemanager