CMFileManager: Fixes for non-rooted devices

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

Updated some Hungarian strings to be a bit easier to understand.
Added Dark Theme strings.

Change-Id: Id1469ee5a6f042ee875712e976775ce8e7c51720
Issue 6624: CM File manager: Mount RW does not work if i slide the slider 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
CMFileManager: Overlay activity must use overlay style

Use FileManager.Theme.Holo.Light.Overlay and FileManager.Theme.Holo.Overlay for overlay
activities

Change-Id: I722b77e85753a81d360c87abc6b377acdbd147fd
CMFileManager: Fix invalid resource on create shortcut

Resource must be drawable and not string. Otherwise the resource is not found
and shortcut is not created.
activities

Change-Id: I6f526b2e8ca4458e6fa8b1bd80667e153f664cec
Merge "CMFileManager: Fixes for non-rooted devices" into jellybean
Merge "CMFileManager: Fix invalid resource on create shortcut" into jellybean
Merge "CMFileManager: Overlay activity must use overlay style" into jellybean
Merge "Issue 6624: CM File manager: Mount RW does not work if i slide the slider from ro to rw." into jellybean
CMFileManager: Remove duplicate code

Remove duplicate code for creation of privileged console

Change-Id: I124286f6f33385f8c0faa98406b12fba67310775
Fix possible NPE, and log path of "not found" commands

Patchset 2: Added more log from https://github.com/tpruvot/android_packages_apps_CMFileManager/commit/6634611ba820f2a2c90f6ed9a7658f1d076bb32c

Change-Id: I1612e16b7e144f688909501434230f7e55d5d459
CMFileManager : French translation correction

Patch 5: No-break spaces, update typo, more understandable, ...
Patch 6: Add themes
Patch 7: Dark theme, fichiers, ...

Change-Id: I092625fe29534c24f02476c8cafc9a81d79d67f1
Merge "CMFileManager : French translation correction" into jellybean
CMFileManager: fr_FR - Remove unnecessary translatable tag

See comment on http://review.cyanogenmod.org/#/c/26417/8

Change-Id: I493dd23bc6987aa23d4c2758cc68733e27696fba
CMFileManager: fr_FR - Remove unnecessary translatable string

See comment on http://review.cyanogenmod.org/#/c/26616/

Change-Id: I71eafaad82c41bed56166518490f4dcd4d4d20a9
CMFileManager: Fix Typo

Change-Id: I159e434573698e5e437aa63783a233cb96046f46
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
CMFileManager: Fix ReadCommand incompatible buffer

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

Change-Id: Ic916f55e5b0be96d1b4ffef36ddd5d5858ea3fdc