OSDN Git Service

android-x86/packages-apps-CMFileManager.git
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

11 years agoImprove dialog layouts
jruesga [Tue, 2 Oct 2012 23:03:20 +0000 (01:03 +0200)]
Improve dialog layouts

11 years agoProvider and model for associations (file, intents, ...)
jruesga [Tue, 2 Oct 2012 22:31:11 +0000 (00:31 +0200)]
Provider and model for associations (file, intents, ...)

11 years agofor code style
jruesga [Mon, 1 Oct 2012 23:31:30 +0000 (01:31 +0200)]
for code style

11 years agoUse hand-written counted loop for increase performance
jruesga [Mon, 1 Oct 2012 23:29:18 +0000 (01:29 +0200)]
Use hand-written counted loop for increase performance

http://developer.android.com/guide/practices/performance.html#foreach

11 years agoAvoid use of internals getters and setters
jruesga [Mon, 1 Oct 2012 23:10:51 +0000 (01:10 +0200)]
Avoid use of internals getters and setters

http://developer.android.com/guide/practices/performance.html#internal_get_set

11 years agoRemove synthetic-access for better access performance
jruesga [Mon, 1 Oct 2012 23:07:25 +0000 (01:07 +0200)]
Remove synthetic-access for better access performance

http://developer.android.com/guide/practices/performance.html#package_inner

11 years agoShell improvements
jruesga [Mon, 1 Oct 2012 22:40:06 +0000 (00:40 +0200)]
Shell improvements

* 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

11 years agoSome providers + Some actions
jruesga [Sun, 30 Sep 2012 23:27:58 +0000 (01:27 +0200)]
Some providers + Some actions

* Create new Bookmarks provider (database + providers). Replace old
shared preferences based.
* New actions "Add to bookmarks" (global + fso).
* Initial support for "open" and "open with" actions.
* Clean up

11 years agoGlobal actions: Properties and Refresh
jruesga [Sun, 30 Sep 2012 17:35:56 +0000 (19:35 +0200)]
Global actions: Properties and Refresh

New global actions for show properties of the current folder and refresh
the current folder

11 years agoAdd refresh listener to SearchActivity
jruesga [Sun, 30 Sep 2012 16:28:00 +0000 (18:28 +0200)]
Add refresh listener to SearchActivity

11 years agoDelete file/folder action
jruesga [Sun, 30 Sep 2012 16:09:06 +0000 (18:09 +0200)]
Delete file/folder action

11 years agoClean up
jruesga [Sun, 30 Sep 2012 16:08:46 +0000 (18:08 +0200)]
Clean up

11 years agoReload fso prior to show actions dialog
jruesga [Sun, 30 Sep 2012 15:22:07 +0000 (17:22 +0200)]
Reload fso prior to show actions dialog

Reload the fso reference prior to display the actions dialog of the
item, and remove from the listview if the item not exists.

11 years agoListCommand: Prevent to raise exception
jruesga [Sun, 30 Sep 2012 14:56:00 +0000 (16:56 +0200)]
ListCommand: Prevent to raise exception

Prevent to raise an exception if the absolute path can't be retrieved
from console. Instead of, use Java functions to try to resolve parent
path prior to raise the exception.

11 years ago/etc menu is showing open and open with actions
jruesga [Sun, 30 Sep 2012 14:20:37 +0000 (16:20 +0200)]
/etc menu is showing open and open with actions

Show open and open with only when the fso is not a directory, system
file or symlink to one of this. Apply to mime/type also.

11 years agoMore mime/types and drawables
jruesga [Sun, 30 Sep 2012 14:09:24 +0000 (16:09 +0200)]
More mime/types and drawables

11 years agoMore polished "Document" drawables
jruesga [Sun, 30 Sep 2012 09:23:46 +0000 (11:23 +0200)]
More polished "Document" drawables

11 years agoNew setting for "compute folder statistics" option
jruesga [Sun, 30 Sep 2012 00:02:22 +0000 (02:02 +0200)]
New setting for "compute folder statistics" option

11 years agoFix commands
jruesga [Sat, 29 Sep 2012 23:39:06 +0000 (01:39 +0200)]
Fix commands

* 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

11 years agoAdd category to mime/type raw file
jruesga [Sat, 29 Sep 2012 16:17:43 +0000 (18:17 +0200)]
Add category to mime/type raw file

11 years agoRename certificate drawable to security
jruesga [Sat, 29 Sep 2012 16:16:20 +0000 (18:16 +0200)]
Rename certificate drawable to security

11 years agoUse a timeout to release the exit status
jruesga [Sat, 29 Sep 2012 09:36:42 +0000 (11:36 +0200)]
Use a timeout to release the exit status

Release the exit flag after 3500 millis, so after this timeout the
exit flag is reseted and the toast is shown again to the user

11 years agoMime types and drawables
jruesga [Fri, 28 Sep 2012 23:24:32 +0000 (01:24 +0200)]
Mime types and drawables

11 years agoUse a highlighted text for overflow menu
jruesga [Fri, 28 Sep 2012 14:10:16 +0000 (16:10 +0200)]
Use a highlighted text for overflow menu

11 years agoAdd show actions to list of default long-click actions
jruesga [Fri, 28 Sep 2012 13:50:21 +0000 (15:50 +0200)]
Add show actions to list of default long-click actions