OSDN Git Service

android-x86/packages-apps-CMFileManager.git
11 years agoTypo
jruesga [Sun, 21 Oct 2012 19:11:23 +0000 (21:11 +0200)]
Typo

11 years agoBy default don't show symlinks
jruesga [Sun, 21 Oct 2012 19:03:22 +0000 (21:03 +0200)]
By default don't show symlinks

11 years agoDon't allow advanced mode if device is not rooted
jruesga [Sun, 21 Oct 2012 19:00:19 +0000 (21:00 +0200)]
Don't allow advanced mode if device is not rooted

11 years agoExpose to the app if the device is rooted
jruesga [Sun, 21 Oct 2012 18:52:08 +0000 (20:52 +0200)]
Expose to the app if the device is rooted

11 years agoAvoid using internal commands in ShellExecutableCreator
jruesga [Sun, 21 Oct 2012 18:02:49 +0000 (20:02 +0200)]
Avoid using internal commands in ShellExecutableCreator

11 years agoFix ChRooted mode. Don't show parent directory on root storage volume.
jruesga [Sun, 21 Oct 2012 17:43:52 +0000 (19:43 +0200)]
Fix ChRooted mode. Don't show parent directory on root storage volume.

11 years agoCleanUp
jruesga [Sun, 21 Oct 2012 17:42:52 +0000 (19:42 +0200)]
CleanUp

11 years agoClose consoles when need to call to finish
jruesga [Sun, 21 Oct 2012 17:18:58 +0000 (19:18 +0200)]
Close consoles when need to call to finish

11 years agoSeparate shell files from binary/executable files
jruesga [Sun, 21 Oct 2012 17:18:27 +0000 (19:18 +0200)]
Separate shell files from binary/executable files

11 years agoFix exec command: Invalid -c option
jruesga [Sun, 21 Oct 2012 17:17:25 +0000 (19:17 +0200)]
Fix exec command: Invalid -c option

11 years agoDetect debuggable mode, and set different execution timeouts
jruesga [Sun, 21 Oct 2012 16:17:51 +0000 (18:17 +0200)]
Detect debuggable mode, and set different execution timeouts

11 years agoMinor changes to console
jruesga [Sun, 21 Oct 2012 16:09:51 +0000 (18:09 +0200)]
Minor changes to console

* Capture other exceptions to notify broken I/O threads
* Exposed if the console is active

11 years agoFix invalid message in advanced mode. Fix translations.
jruesga [Sun, 21 Oct 2012 15:40:53 +0000 (17:40 +0200)]
Fix invalid message in advanced mode. Fix translations.

11 years agoExtract destroy method of console. Remove :main from process name.
jruesga [Sun, 21 Oct 2012 15:38:01 +0000 (17:38 +0200)]
Extract destroy method of console. Remove :main from process name.

11 years agoDon't allow to change the permissions of a Symlink
jruesga [Sun, 21 Oct 2012 15:22:18 +0000 (17:22 +0200)]
Don't allow to change the permissions of a Symlink

11 years agoRename jail room terms for a more convenient chrooted
jruesga [Sun, 21 Oct 2012 14:05:48 +0000 (16:05 +0200)]
Rename jail room terms for a more convenient chrooted

11 years agoFix getFileInfo calls. The return of this function must be checked
jruesga [Sun, 21 Oct 2012 13:52:59 +0000 (15:52 +0200)]
Fix getFileInfo calls. The return of this function must be checked

11 years agoRemove support dependency
jruesga [Sun, 21 Oct 2012 12:00:26 +0000 (14:00 +0200)]
Remove support dependency

For now support-v4 is not necessary (probably in the future but not now)

11 years agoFix AssociationDialog
jruesga [Sun, 21 Oct 2012 11:51:18 +0000 (13:51 +0200)]
Fix AssociationDialog

Now AssociationDialog dialog can save the selected application. This
dialog clears the preferences for the actual preferred app and register
the selected one. This only can be done when the app is signed with the
platform certificate.

11 years agoProguard: Keep preference's classes
jruesga [Sun, 21 Oct 2012 09:44:31 +0000 (11:44 +0200)]
Proguard: Keep preference's classes

11 years agoFix size of spinners of FsoPropertiesDialog
jruesga [Sun, 21 Oct 2012 01:29:07 +0000 (03:29 +0200)]
Fix size of spinners of FsoPropertiesDialog

11 years agoFix detection of compression files without extension
jruesga [Sun, 21 Oct 2012 00:01:31 +0000 (02:01 +0200)]
Fix detection of compression files without extension

11 years agoMake StorageHelper independent from AOSP and CM10
jruesga [Sat, 20 Oct 2012 23:52:30 +0000 (01:52 +0200)]
Make StorageHelper independent from AOSP and CM10

Fix compilation issues and resolve at runtime with reflection.

11 years agoNew activity "Picker Activity"
jruesga [Sat, 20 Oct 2012 23:13:44 +0000 (01:13 +0200)]
New activity "Picker Activity"

This activity allows third party application to browse and get the
content using GET_CONTENT action and a mime/type.
This activity used the NavigationView in jail room mode and it's only
capable of pick a file (actions like open or others are not permitted)

* CleanUp

11 years agoJail room mode
jruesga [Sat, 20 Oct 2012 18:13:05 +0000 (20:13 +0200)]
Jail room mode

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

11 years agoFix transparent inverted color
jruesga [Sat, 20 Oct 2012 15:35:25 +0000 (17:35 +0200)]
Fix transparent inverted color

11 years agoRevert check_on_normal_inverted drawable
jruesga [Sat, 20 Oct 2012 15:27:31 +0000 (17:27 +0200)]
Revert check_on_normal_inverted drawable

11 years agoRemove obsolete resource
jruesga [Sat, 20 Oct 2012 11:22:20 +0000 (13:22 +0200)]
Remove obsolete resource

11 years agoCleanUp
jruesga [Sat, 20 Oct 2012 11:20:54 +0000 (13:20 +0200)]
CleanUp

11 years agoWelcome message
jruesga [Sat, 20 Oct 2012 11:20:24 +0000 (13:20 +0200)]
Welcome message

11 years agoCleanUp
jruesga [Sat, 20 Oct 2012 10:48:10 +0000 (12:48 +0200)]
CleanUp

11 years agoNew search action "Open parent"
jruesga [Sat, 20 Oct 2012 00:09:31 +0000 (02:09 +0200)]
New search action "Open parent"

11 years agoNew fso and global actions "Compress" and "Compress selection" + CleanUp
jruesga [Fri, 19 Oct 2012 23:38:23 +0000 (01:38 +0200)]
New fso and global actions "Compress" and "Compress selection" + CleanUp

11 years agoNew drawables for compression mime/type and dialog icon
jruesga [Fri, 19 Oct 2012 23:36:11 +0000 (01:36 +0200)]
New drawables for compression mime/type and dialog icon

11 years agoReorganize ActionsPolicy to make it clearly
jruesga [Fri, 19 Oct 2012 16:24:02 +0000 (18:24 +0200)]
Reorganize ActionsPolicy to make it clearly

11 years agoNew fso action "Extract"
jruesga [Thu, 18 Oct 2012 23:05:28 +0000 (01:05 +0200)]
New fso action "Extract"

11 years agoFix uncompress command bugs
jruesga [Thu, 18 Oct 2012 23:04:55 +0000 (01:04 +0200)]
Fix uncompress command bugs

11 years agoAdd a method to check if the current console is privileged
jruesga [Thu, 18 Oct 2012 23:03:41 +0000 (01:03 +0200)]
Add a method to check if the current console is privileged

11 years agoAdd zip as a supported uncompress method
jruesga [Thu, 18 Oct 2012 23:03:11 +0000 (01:03 +0200)]
Add zip as a supported uncompress method

11 years agoCheck getFileInfo is null
jruesga [Thu, 18 Oct 2012 23:02:29 +0000 (01:02 +0200)]
Check getFileInfo is null

11 years agoNew uncompress command
jruesga [Wed, 17 Oct 2012 22:50:03 +0000 (00:50 +0200)]
New uncompress command

11 years agoCleanUp
jruesga [Wed, 17 Oct 2012 22:49:33 +0000 (00:49 +0200)]
CleanUp

11 years agoAdd new compress mime/type formats
jruesga [Wed, 17 Oct 2012 22:49:08 +0000 (00:49 +0200)]
Add new compress mime/type formats

11 years agoNew compress command
jruesga [Tue, 16 Oct 2012 23:26:36 +0000 (01:26 +0200)]
New compress command

archive: tar
compress: gz, bz2
archive+compress: tgz, tar.gz, tar.bz2

11 years agoCleanUp comment
jruesga [Tue, 16 Oct 2012 23:24:59 +0000 (01:24 +0200)]
CleanUp comment

11 years agoResolve extension of tar.gz, tar.bz2 and tar.lzma
jruesga [Tue, 16 Oct 2012 19:53:01 +0000 (21:53 +0200)]
Resolve extension of tar.gz, tar.bz2 and tar.lzma

11 years agoRemove older comments
jruesga [Tue, 16 Oct 2012 19:52:07 +0000 (21:52 +0200)]
Remove older comments

11 years agoNew action "Execute"
jruesga [Mon, 15 Oct 2012 00:22:26 +0000 (02:22 +0200)]
New action "Execute"

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

11 years agoAdd clear history to HistoryActivity menu
jruesga [Sun, 14 Oct 2012 00:48:55 +0000 (02:48 +0200)]
Add clear history to HistoryActivity menu

11 years agoAdd file category to fso properties dialog
jruesga [Sat, 13 Oct 2012 23:34:03 +0000 (01:34 +0200)]
Add file category to fso properties dialog

11 years agoFix incorrect call to parsePartialResult (for async programs)
jruesga [Sat, 13 Oct 2012 22:56:30 +0000 (00:56 +0200)]
Fix incorrect call to parsePartialResult (for async programs)

11 years agoBetter handling of FolderUsage
jruesga [Sat, 13 Oct 2012 22:54:57 +0000 (00:54 +0200)]
Better handling of FolderUsage

11 years agoList command requires do no check No such file or directory when error
jruesga [Sat, 13 Oct 2012 21:44:12 +0000 (23:44 +0200)]
List command requires do no check No such file or directory when error
code == 0

11 years agoVarious: new commands and buffer management
jruesga [Sat, 13 Oct 2012 21:13:02 +0000 (23:13 +0200)]
Various: new commands and buffer management

* 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.

11 years agoFix problem with buffered readers and writers (don't use)
jruesga [Fri, 12 Oct 2012 21:43:16 +0000 (23:43 +0200)]
Fix problem with buffered readers and writers (don't use)

11 years agoAllow to programs request write to the stdout
jruesga [Fri, 12 Oct 2012 21:39:46 +0000 (23:39 +0200)]
Allow to programs request write to the stdout

11 years agoEnvironment.getRootDirectory doesn't return the root directory
jruesga [Fri, 12 Oct 2012 11:55:26 +0000 (13:55 +0200)]
Environment.getRootDirectory doesn't return the root directory

Environment.getRootDirectory doesn't return the root directory. Instead
it returns the system directory. Use overlay parameter.

11 years agoFix TestCases
jruesga [Fri, 12 Oct 2012 11:00:38 +0000 (13:00 +0200)]
Fix TestCases

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

11 years agoDon't use -f flag in rm command.
jruesga [Fri, 12 Oct 2012 10:58:47 +0000 (12:58 +0200)]
Don't use -f flag in rm command.

Don't use -f flag in rm command, because we need the exception if rm
is applied over an inexistent file or folder

11 years agoRemove trailing whitespace
jruesga [Fri, 12 Oct 2012 10:57:09 +0000 (12:57 +0200)]
Remove trailing whitespace

11 years agoReplace cancelled by canceled
jruesga [Fri, 12 Oct 2012 10:18:56 +0000 (12:18 +0200)]
Replace cancelled by canceled

11 years agoDon't hardcode the root directory
jruesga [Fri, 12 Oct 2012 09:56:21 +0000 (11:56 +0200)]
Don't hardcode the root directory

11 years agoUse overlay for root directory
jruesga [Fri, 12 Oct 2012 09:52:40 +0000 (11:52 +0200)]
Use overlay for root directory

11 years agoDon't resolve link when apply user preference in sorting
jruesga [Fri, 12 Oct 2012 09:21:21 +0000 (11:21 +0200)]
Don't resolve link when apply user preference in sorting

11 years agoNo show create link if current directory is in storage volume
jruesga [Fri, 12 Oct 2012 09:16:36 +0000 (11:16 +0200)]
No show create link if current directory is in storage volume

11 years agoVarious
jruesga [Fri, 12 Oct 2012 02:04:59 +0000 (04:04 +0200)]
Various

* New fso and global action: Create Link
* Fix bold font in deleting message dialog
* Fix list command:  when ther are only symlinks in a folder the list
doesn't return anything
* InputNameDialog: Allow return fso name
* InputNameDialog: Check name when no pass an fso
* ActionPolicy: Only move (nor rename) command should check current
directory

11 years agoCleanUp
jruesga [Fri, 12 Oct 2012 00:23:35 +0000 (02:23 +0200)]
CleanUp

11 years agoNew command: ExecCommand (for execute commands)
jruesga [Fri, 12 Oct 2012 00:19:52 +0000 (02:19 +0200)]
New command: ExecCommand (for execute commands)

11 years agoNew command: LinkCommand (for create symlinks)
jruesga [Thu, 11 Oct 2012 23:27:12 +0000 (01:27 +0200)]
New command: LinkCommand (for create symlinks)

11 years agoCreate StorageHelper, and redesign BookmarksActivity (II)
jruesga [Thu, 11 Oct 2012 22:52:10 +0000 (00:52 +0200)]
Create StorageHelper, and redesign BookmarksActivity (II)

11 years agoCreate StorageHelper, and redesign BookmarksActivity
jruesga [Thu, 11 Oct 2012 22:51:28 +0000 (00:51 +0200)]
Create StorageHelper, and redesign BookmarksActivity

11 years agoRevert refresh of new fso
jruesga [Thu, 11 Oct 2012 22:21:06 +0000 (00:21 +0200)]
Revert refresh of new fso

11 years agoNew global actions "Paste selection" and "Move selection"
jruesga [Thu, 11 Oct 2012 22:19:17 +0000 (00:19 +0200)]
New global actions "Paste selection" and "Move selection"

11 years agoNew global action "Delete Selection"
jruesga [Thu, 11 Oct 2012 21:56:14 +0000 (23:56 +0200)]
New global action "Delete Selection"

11 years agoDeselect all items on an operation (create folder, delete file, ...)
jruesga [Thu, 11 Oct 2012 21:55:46 +0000 (23:55 +0200)]
Deselect all items on an operation (create folder, delete file, ...)

11 years agoFix statistics computation for symlinks
jruesga [Wed, 10 Oct 2012 23:01:53 +0000 (01:01 +0200)]
Fix statistics computation for symlinks

11 years agoBetter resolve of symlinks in list command
jruesga [Wed, 10 Oct 2012 22:57:07 +0000 (00:57 +0200)]
Better resolve of symlinks in list command

11 years agoBetter history search drawable
jruesga [Wed, 10 Oct 2012 22:53:24 +0000 (00:53 +0200)]
Better history search drawable

11 years agoFix a bug in back of navigation activity when there is a search element
jruesga [Wed, 10 Oct 2012 20:03:11 +0000 (22:03 +0200)]
Fix a bug in back of navigation activity when there is a search element

11 years agoBetter symlinks handle
jruesga [Wed, 10 Oct 2012 00:59:21 +0000 (02:59 +0200)]
Better symlinks handle

Resolve symlinks with -> symbols in any of the names (link or real).

11 years agoSort the items by path to avoid delete parents fso prior to child fso
jruesga [Tue, 9 Oct 2012 21:51:05 +0000 (23:51 +0200)]
Sort the items by path to avoid delete parents fso prior to child fso

11 years agoWhen no console available, ask the user prior to exit
jruesga [Mon, 8 Oct 2012 23:44:07 +0000 (01:44 +0200)]
When no console available, ask the user prior to exit

When advanced console selection is disabled and a can't create a
console, the only way is restore to non-privileged console, which
includes reverts the superuser and advanced selection modes.

11 years agoRestructure ActionsPolicy and other changes
jruesga [Mon, 8 Oct 2012 23:18:51 +0000 (01:18 +0200)]
Restructure ActionsPolicy and other changes

* Restructure ActionsPolicy to allow doing operation in background and
with a progress dialog
* New rename, create copy, copy, move, and remove methods
* Fix add and remove commands to have force and recursive flags when
apply
* Fix readlink command because it exceeds the maximum arguments allowed
* Redesign MessageProgressDialog for a multipurpose use
* On refresh of navigation view, try to scroll to last position if
possible
* New dialog in DialogHelper
* ExceptionUtil now passed the cause in onFailed in
OnRelaunchCommandResult listener
* New helper methods
* Clean up

11 years agoNot restrict MessageProgressDialog to number progress
jruesga [Sun, 7 Oct 2012 14:52:05 +0000 (16:52 +0200)]
Not restrict MessageProgressDialog to number progress

This allow use the MessageProgressDialog as a message progress (xe. for
use on copy or move operations with filename progress)

11 years agoUse -a flag in copy operations
jruesga [Sun, 7 Oct 2012 14:50:00 +0000 (16:50 +0200)]
Use -a flag in copy operations

11 years agoFix slash in paths for ListCommand
jruesga [Sat, 6 Oct 2012 23:34:18 +0000 (01:34 +0200)]
Fix slash in paths for ListCommand

11 years agoFix InputNameDialog actions
jruesga [Sat, 6 Oct 2012 23:33:52 +0000 (01:33 +0200)]
Fix InputNameDialog actions

* Fix Pass the files no selection
* New action: rename

11 years agoAvoid read stdin when is null
jruesga [Sat, 6 Oct 2012 22:31:51 +0000 (00:31 +0200)]
Avoid read stdin when is null

11 years agoDon't the method onSaveInstanceState and onRestoreInstanceState
jruesga [Sat, 6 Oct 2012 22:31:10 +0000 (00:31 +0200)]
Don't the method onSaveInstanceState and onRestoreInstanceState

NavigationActivity is singleTop, so when it is displayed no
other activities exists in the stack. This cause an issue with the saved
instance of this class, because if another activity is displayed, and
the process is killed, NavigationActivity is started and the saved
instance gets corrupted. For this reason the methods onSaveInstanceState
and onRestoreInstanceState are not implemented, and every time the app
is killed, is restarted from his initial state.

11 years agoImplemented Allow Console Selection setting
jruesga [Sat, 6 Oct 2012 19:45:15 +0000 (21:45 +0200)]
Implemented Allow Console Selection setting

This setting allow use the menu "Select Console" or deactivate the menu
using only a privileged console, without additional privileged messages,
but require su to run the app.
By default, allow not privileged console to avoid startup problems

11 years agoRefresh the navigation view after back from the search view
jruesga [Sat, 6 Oct 2012 18:14:56 +0000 (20:14 +0200)]
Refresh the navigation view after back from the search view

* Refresh the navigation view after back from the search view
* Clean up

11 years agoRedesign of some mime/type drawables
jruesga [Sat, 6 Oct 2012 17:53:41 +0000 (19:53 +0200)]
Redesign of some mime/type drawables

11 years agoRedesign of bookmarks drawables
jruesga [Sat, 6 Oct 2012 17:04:22 +0000 (19:04 +0200)]
Redesign of bookmarks drawables

11 years agoA bunch of changes.
jruesga [Sat, 6 Oct 2012 16:16:14 +0000 (18:16 +0200)]
A bunch of changes.

* Add send action for file
* Add handler for open action on click in navigation, search and
bookmarks
* Allow file bookmarks
* Upload AssociationsDialog
* Fix root directory name in history
* Add controls to navigation and history for deleted folders
* Remove history of delete folders
* Add open with action for onLongClickListener handler

11 years agoOpen and Open with actions
jruesga [Sat, 6 Oct 2012 10:23:03 +0000 (12:23 +0200)]
Open and Open with actions

Implementation of Open and Open with actions. This create a custom
dialog that allow show all registered application even when only one
application exists or has a preferred application.
This change requires a platform signature to allow use
addPreferredActivity or removePreferredActivity.
For this is not working. Need be tested and checked inside CM.

11 years agoRevert Association Provider. Instead, use AOSP PreferredActivity api.
jruesga [Fri, 5 Oct 2012 23:34:55 +0000 (01:34 +0200)]
Revert Association Provider. Instead, use AOSP PreferredActivity api.

11 years agoAllow dialogs with no icon
jruesga [Fri, 5 Oct 2012 23:14:34 +0000 (01:14 +0200)]
Allow dialogs with no icon

11 years agoLint warnings
jruesga [Fri, 5 Oct 2012 23:14:09 +0000 (01:14 +0200)]
Lint warnings

11 years agoUse new ObjectStringIdentifier to default preference
jruesga [Fri, 5 Oct 2012 16:18:31 +0000 (18:18 +0200)]
Use new ObjectStringIdentifier to default preference

11 years agoImprove DiskUsageGraph layout
jruesga [Tue, 2 Oct 2012 23:42:50 +0000 (01:42 +0200)]
Improve DiskUsageGraph layout