| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| | |
Fix also R.string.msgs_settings_invalid_initial_directory string for default string.xml file
Change-Id: I35ddf7f1ca2b250638ea96bfee894de9f07ed5b9
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
|
| |/
|
|
|
|
|
|
|
|
| |
Wait indefinitely if a privileged console is being allocated. Wait for
the user response to SuperUser or SuperSu prompt (or whatever it is).
Change ShellConsole.this access to a private variable in methods of ShellConsole
Change-Id: I6752fe8bcd0de3aa6478ad97fb84c9ac8697a970
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Use onPostExecute method for drawing in the UI thread
Change-Id: I2a3731f5888789e8e151f63f562c7beee244a350
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
|
| |/
|
|
|
| |
Change-Id: I5bccabb0d58c48ef883e8c730bc3ba36b657b0c6
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patchset 1) Initial commit
Patchset 2) Fixed tabs and whitespace
Patchset 3) Moved everything to the properties dialog
Patchset 4) Clean up
Patchset 5) Added check for .nomedia dir
Patchset 6) Tab cleanup
Patchset 7)
Rebase
Regorganize FsoPropertiesDialog
Refresh navigation listview if a .nomedia file was created or deleted
Use FileHelper.deleteFolder instead of DeleteDirCommand
Mark/Unmark checkbox when user response no or an error occurs (let checkbox as his initial status)
Internationalize error messages
Fix nomedia layout id
Use match_layout instead of fill_parent (deprecated)
Ensure that the fso is a canonical path
Use File.exists() to detect the present of .nomedia
Theme nomedia label
Format code and clean Up
Remove W.I.P
Patchset 8)
Align .nomedia layout
Split toggleNoMediaFile logic
Ask user if .nomedia file is not empty
Fix typos
Patchset 9) Fix typo
Change-Id: I048d1da75f24230380aa7503f2d2c9ad95f9b873
|
| |
|
|
|
| |
Change-Id: Ib42a83bde4611ba4bdd661a45b1dda6d25c58cdb
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Change-Id: I3ed0d38665b12aa39313c55f7daaa63bd80875a0
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Patchset 2: Formatting
Change-Id: I1323b4f92a64dd23afe4aa28d3569ce01d72c039
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |/
|
|
|
| |
Change-Id: Idd32ef7902eaf86e573728f7e442c281a47249fc
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |\ |
|
| | |
| |
| |
| |
| | |
Change-Id: I32db52a17fa1c0a3f31010e16b5cf2a697be7f6d
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |\ \ |
|
| | |/
| |
| |
| |
| | |
Change-Id: Ic31130412d332a486df7e0e891f6097e2d1f9276
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| | |
Use OnRelaunchCommandResult listener to finish the fade effect instead of doing in
the async task, to ensure that cancels and failures results will finalize the fade effect.
Change-Id: I872a4f468670dc425d96c9c7dfd5fe05b8d86b89
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Add to FsoPropertiesDialog the new fso datetimes properties:
- Last accessed
- Last modified
- Last changed
Remove old fso_properties_dialog_date string from translations.
Change-Id: I881658ae0fbc6c935995ffb4ad7a02172d06bb2c
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |\ |
|
| | |
| |
| |
| |
| | |
Change-Id: I56aed1dff9fda651e30d0eb29e488d3736e42900
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |/
|
|
|
| |
Change-Id: Ie48a897a1fdae74f34fb7f4ea004b95821ab177e
Signed-off-by: jruesga <jorge@ruesga.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|
|
|
|
|
|
|
| |
It's better to let the user select among all files than not presenting
him any files at all.
Patchset 2: simplify the logic
Patchset 3: Revert to patchset 1. Verify mime type regexp name instead of mime type name.
Change-Id: I372f00cccce1c9bb69d5d2668bb33c7882580e08
|
| |
|
|
|
|
|
|
|
| |
Groups command command is causing problems on some implementations (maybe toolbox?)
which don't recognize the root AID and returns an error, and avoid to get root access.
Patchset 2: Fix typo
Change-Id: Idc17b18c34b8be263a1739dbad2921f60101fa09
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parent directory
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6795
The issue is relate to back navigation (nor to ahead navigation). In this case the history
parcelable info data is recovery (which has a invalid selection data).
On back navigation, replace the selection data parcelable info with the current selection
of the navigation view.
Added notifyDataSetChanged() when toogle visibility, needed to refresh the view and repaint
the items.
Change-Id: Ib281c6fbc33274f6e81cc6b588cde420d6ceb19f
|
| |
|
|
|
|
|
|
|
|
| |
“Done” or “OK” rather than “Cancel”
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6769
Changed "Cancel" to "Ok" in FsoPropertiesDialog and FilesystemInfoDialog.
Change-Id: Id92ea897afae69e059da661a13350bc7020509c4
|
| |
|
|
|
|
|
|
|
|
| |
suffix
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6743
Added case compare to extension and mime/types.
Change-Id: I394472e03b5a92590088fdebbb75dd13ee4bade2
|
| |
|
|
|
|
|
| |
The background dialog for selecting the compression type has an invalid color.
The valid color is the background color of the dialog.
Change-Id: Ib5ecf1c59e5c99ccd6ed8707646b718ca88dbcd9
|
| |
|
|
|
|
| |
Add requested parameters to logcat for better debugging.
Change-Id: I52e362ca8ad4b3687b78ee92e18e3015a6e645e0
|
| |
|
|
| |
Change-Id: Ia3e72bdad1882afbb151d2f04340a1af88c20682
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Escape $ character when passing arguments to shell. xe: create new file with name "$My Documents"
Change-Id: I939d830beaa4c372aa679f3d27f7c691a29c421e
|
| |
|
|
|
|
| |
Replace Reader buffer for InputStream buffer for avoid incomplatible char[] -> byte[] conversion.
Change-Id: Ic916f55e5b0be96d1b4ffef36ddd5d5858ea3fdc
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6606
This patch makes the next changes:
* Make the internal editor exportable. Now it can be treated as another activity and can be mark
as preferred activity, but only for text/* and some text mime/types. For undefined mime/types
categories, the internal editor is still used in a non preferred mode (internal editor cannot
be marked as preferred)
* When the internal editor in a non preferred mode is selected, 'remember' checkbox is hidden.
* Improve preferred activity resolution
* Allow clear a preferred activity on the open with dialog (when 'remember' checkbox is unchecked)
* For better compatibility, the internal editor now ignores the ACTION_EDIT action, so opened
files are always editables (with the exception of binary files that they are opened always as
read-only)
* Improved onIntentSelected with better NPE and internal editor checks
Change-Id: Ie42990a6c0ccbdd4bfab6ec23ae27cc808cac7b7
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change brings compatibility to GET_CONTENT_DATA for AOSP apps when
using the PickerActivity:
* Detect crop extra; use the com.android.camera.action.CROP action of Gallery3d
to crop and return the requested image. This gets compatilibity for example with
the contacts app, when a user try to set the image of a contact.
* Detect android.provider.MediaStore.Audio.Media.EXTRA_MAX_BYTES; when this extra
is present the PickerActivity only display (and allow select) files with a size lower
than requested.
* Detect Intent.EXTRA_LOCAL_ONLY; useless until CMFM allow access remote file systems.
Change-Id: I1020458505b236653e869ec1c1f532dd6d686633
|
| |
|
|
| |
Change-Id: I159e434573698e5e437aa63783a233cb96046f46
|
| |
|
|
|
|
| |
Patchset 2: Added more log from https://github.com/tpruvot/android_packages_apps_CMFileManager/commit/6634611ba820f2a2c90f6ed9a7658f1d076bb32c
Change-Id: I1612e16b7e144f688909501434230f7e55d5d459
|
| |
|
|
|
|
| |
Remove duplicate code for creation of privileged console
Change-Id: I124286f6f33385f8c0faa98406b12fba67310775
|
| |\
| |
| |
| | |
slider from ro to rw." into jellybean
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
from ro to rw.
Issue: http://code.google.com/p/cyanogenmod/issues/detail?id=6624
Changed onClickListener for OnCheckedChangeListener for the switch control.
The OnCheckedChangeListener listener handles both events: click and slide.
Change-Id: I9b8c81d4d7489fce2cbef1f4799a12266cb14acf
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| | |
Use FileManager.Theme.Holo.Light.Overlay and FileManager.Theme.Holo.Overlay for overlay
activities
Change-Id: I722b77e85753a81d360c87abc6b377acdbd147fd
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| |
| |
| | |
Resource must be drawable and not string. Otherwise the resource is not found
and shortcut is not created.
activities
Change-Id: I6f526b2e8ca4458e6fa8b1bd80667e153f664cec
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
Various fixes for non-rooted devices running under java console:
* Improve navigation (caching unsused data on chrooted mode: aids, mountpoints, ...)
* Editor: Don't ask user to gain privileges (non rooted devices never can gain privileged access)
* Move common file operations to FileHelper
* MoveCommand: As shell console, java console doesn't allow to move between filesystems. Use
a copy-delete operation when renameTo is not allowed.
* On non-rooted devices, not allow to change to other access mode.
Change-Id: I7ae8b4f4203fc8a20f498e43f45c0a956731b02e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
text file.
When open a text file, in the choose application to open and select
the CMFileManager internal editor to open, the CMFileManager will crash.
Because the ri.filter is null.
Patch Set 2:
Implement the logical as Jorge Ruesga suggestion. Check it's interneal editor
before to process system association.
Patch Set 3:
Add the ri.filter valid check before to process system association.
Change-Id: I2d9698d9cb862de2b1141e84bc2f540e4ced92e6
|
| |
|
|
|
|
|
|
|
|
|
|
| |
white spaces.
When the file name include mutiple white spaces and it fit for the search condition.
The highlight logical call Html.fromHtml will convert mutiple white spaces to one white
space (For example, the file name is "A .mp3", after conver it will change to "A .mp3"),
the span length will less than the orginal file name. When call setSpan,
it will throw IndexOutOfBoundsException.
Change-Id: I00e26464427538de8f5f85ac8d6d009493767b1e
|