aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
Commit message (Collapse)AuthorAgeFilesLines
* cmfm: secure storage and other improvementsJorge Ruesga2014-11-101-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | 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: CYAN-285 - Add ability to calculate file checksumsJorge Ruesga2013-03-161-0/+107
| | | | | | | | | | | Added support for compute MD5 and SHA1 file checksums Patchset 2: Remove trailing whitespaces Change-Id: I46cbd0d451eea76e259bdddc485774bbfd34cdc0 JIRA: https://jira.cyanogenmod.org/browse/CYAN-285 Bugfix: CYAN-285 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Do not use cd and pwd commandsJorge Ruesga2013-01-094-154/+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: Fixes and ImprovementsJorge Ruesga2013-01-058-91/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Change application name to 'File Manager' (issue #20)jruesga2012-10-2632-116/+116
| | | Full refactoring of package from explorer to filemanager
* Fix getFileInfo calls. The return of this function must be checkedjruesga2012-10-211-0/+1
|
* Jail room modejruesga2012-10-203-12/+12
| | | | | | | | | This is the mode by default of the application. This change create an non-privileged space (like a jail) from which the user can not exit, This zone is the storage volumes. This hides all advanced functionalities that could give access to another filesystem zones and actions that could damage the system. * CleanUp
* Fix transparent inverted colorjruesga2012-10-202-2/+2
|
* CleanUpjruesga2012-10-207-15/+15
|
* New fso and global actions "Compress" and "Compress selection" + CleanUpjruesga2012-10-202-7/+7
|
* Check getFileInfo is nulljruesga2012-10-191-1/+2
|
* New uncompress commandjruesga2012-10-181-0/+244
|
* CleanUpjruesga2012-10-181-1/+4
|
* New compress commandjruesga2012-10-171-0/+249
| | | | | archive: tar compress: gz, bz2 archive+compress: tgz, tar.gz, tar.bz2
* New action "Execute"jruesga2012-10-155-0/+14
| | | | | | | | | The new fso action "Execute" allow execute a shell in the new ExecutionDialog (a console like dialog), that display the ouput, time and exit code of the execution. It's only available for files with EXEC mime/type category. * Added a new method to the async callback to return the exit code to program caller. * CleanUp
* Various: new commands and buffer managementjruesga2012-10-137-11/+280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change default buffer to 4096 * New commands: Read, send signal, terminate and write * Background console now change to privileged when foreground console is or change to privileged * Fix cancel asynchronous programs launched on privileged consoles (non-privileged background console is not able to kill or signal) * Fix root directory default * Allow send signal and terminate, in addition to cancel, for AsyncResultExecutable programs * Passing console trace status to commands (allow programs to use user preference) * Allow to programs to access the stdout to respond to programs (xe: write to stdin of dd). * Fix ResolveLinkCommand when src is the root directory * Remove check of error code in checkStdErr of the shell. Determine the errors based on the returned text. Error code is not necessary because the check is over stderr, not stdin. * Create separate methods for create privileged console (one with no check and other for check and change to non-privileged on error) * Fix detection of start of program on Shell * No send string controls to asynchronous programs on parsePartial method (cut buffers prior to invoke) * Create static method on Permissions to load from raw and octals strings. * Fix disk usage and mount point info when no background console is available * Fix test app name. Changed to CMExplorerTest * Fix exec test, once there are a write command. Now write the shell program and execute to check results.
* Fix TestCasesjruesga2012-10-1227-64/+236
| | | | | Still fails ExecCommandTest because we need a command to write content in a file (the test script to execute). Now, we haven't permissions to write to /data with standard java routines
* CleanUpjruesga2012-10-121-3/+3
|
* New command: ExecCommand (for execute commands)jruesga2012-10-122-3/+98
|
* New command: LinkCommand (for create symlinks)jruesga2012-10-121-0/+98
|
* Better symlinks handlejruesga2012-10-103-6/+5
| | | Resolve symlinks with -> symbols in any of the names (link or real).
* Remove synthetic-access for better access performancejruesga2012-10-022-7/+20
| | | http://developer.android.com/guide/practices/performance.html#package_inner
* Shell improvementsjruesga2012-10-022-4/+3
| | | | | | | | | | * Change the shell console to better detect the cancel of a async program * Create start control command to clean buffer before start a new command * Add device specific buffer size * Improve ListCommand, using Java to get the parent folder. * Compute folder is disabled by default. * Correct some bugs when using root directory
* Fix commandsjruesga2012-09-303-24/+97
| | | | | | | | | * Fix cancelable commands * New pid_shell and pid_cmd command * New FolderUsage command * New compute folder statistics in fso properties * Add overlay file for device specific stuff * Fix invalid executable drawable * Clean up
* Use valueOf as ADT recommendsjruesga2012-09-141-1/+1
| | | | Use Boolean.valueOf, Long.valueOf, Integer.valueOf, ... instead of new Boolean(), new Long(), ..., as ADT recommends
* Initial commitJorge Ruesga2012-08-2524-0/+1798