CMFileManager: AOSP GET_CONTENT_DATA compatibility

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
Issue 6606: CM File Manager will not Remember Selection for "Open With" menu

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
Update Hungarian translations

Change-Id: Iaccfae69ced0570d61661858d8803d0630826fd8
Merge "CMFileManager: AOSP GET_CONTENT_DATA compatibility" into jellybean
Merge "Issue 6606: CM File Manager will not Remember Selection for "Open With" menu" into jellybean
Merge "Update Hungarian translations" into jellybean
CMFileManager: Add Greek translation

Patchset 2: Remove untranslatable strings

Patchset 3: Add missing themes translation

Change-Id: Ica0afe84cdd9fac9c243c817eb407a5d098e2410
CMFileManager: Fix ReadCommand incompatible buffer

Replace Reader buffer for InputStream buffer for avoid incomplatible char[] -> byte[] conversion.

Change-Id: Ic916f55e5b0be96d1b4ffef36ddd5d5858ea3fdc
CMFileManager: Check shell commands on startup

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: updated romanian translation

Change-Id: Ie230346ac607626432a41bcc36ad445ac16da520
Signed-off-by: igoriok <igor_sorocean@hotmail.com>
Merge "CMFileManager: updated romanian translation" into jellybean
Merge "CMFileManager: Add Greek translation" into jellybean
CMFileManager: Escape $ on prepared arguments

Escape $ character when passing arguments to shell. xe: create new file with  name "$My Documents"

Change-Id: I939d830beaa4c372aa679f3d27f7c691a29c421e
CMFileManager: Add Japanese translation

 - Initial Japanese translation for FileManager.
 - patch-2: Add translation for theme.
 - patch-3: Revised translation for theme.

Change-Id: Ie234334b2c09e2093976410046bdc990acd8ad9d
Merge "CMFileManager: Check shell commands on startup" into jellybean
CMFileManager: Formatting

Change-Id: Ia3e72bdad1882afbb151d2f04340a1af88c20682
Merge "CMFileManager: Formatting" into jellybean
CMFileManager: PickerActivity: debug requested paremeters

Add requested parameters to logcat for better debugging.

Change-Id: I52e362ca8ad4b3687b78ee92e18e3015a6e645e0
CMFileManager: Compress type selection dialog has an invalid background

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
CMFileManager: Fix quickfoldersearch command for files with whitespaces

This change fixed the quickfoldersearch command used by InlineAutocompleteTextView
widget, when retrieve items with some whitespace in its name.
Replace awk by cut command, and redirect stderr output of ls to /dev/null.

Change-Id: Id039e573dc5e6ae5755b3251f014f34cd104f426