OSDN Git Service

Fixed ANR & Memory Leak Associated with 3GP
[android-x86/packages-apps-CMFileManager.git] / AndroidManifest.xml
index edf1f8b..9e4e459 100644 (file)
@@ -1,40 +1,58 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!--
- ** Copyright (C) 2012 The CyanogenMod Project
- **
- ** Licensed under the Apache License, Version 2.0 (the "License");
- ** you may not use this file except in compliance with the License.
- ** You may obtain a copy of the License at
- **
- **      http://www.apache.org/licenses/LICENSE-2.0
- **
- ** Unless required by applicable law or agreed to in writing, software
- ** distributed under the License is distributed on an "AS IS" BASIS,
- ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ** See the License for the specific language governing permissions and
- ** limitations under the License.
--->
+<!-- Copyright (C) 2012 The CyanogenMod Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+ -->
+
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-  package="com.cyanogenmod.explorer"
-  android:versionCode="100"
-  android:versionName="1.0.0">
+  package="com.cyanogenmod.filemanager"
+  android:versionCode="104"
+  android:versionName="3.0.0">
+
+  <original-package android:name="com.cyanogenmod.filemanager" />
 
-  <original-package android:name="com.cyanogenmod.explorer" />
+  <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />
 
-  <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="16" />
+  <uses-feature android:name="android.software.leanback"
+    android:required="false" />
 
+  <uses-feature android:name="android.hardware.touchscreen"
+    android:required="false" />
+
+  <uses-feature android:name="android.hardware.screen.portrait"
+    android:required="false" />
+
+  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+  <uses-permission android:name="android.permission.WRITE_MEDIA_STORAGE" />
   <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
   <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS" />
+  <uses-permission android:name="android.permission.ACCESS_SUPERUSER"/>
+  <uses-permission android:name="android.permission.NFC"/>
+  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
+  <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
   <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
+  <uses-permission android:name="com.cyanogenmod.filemanager.permissions.READ_THEME"/>
 
   <application
-    android:name="ExplorerApplication"
+    android:name="FileManagerApplication"
     android:description="@string/app_description"
-    android:icon="@drawable/ic_launcher"
+    android:icon="@mipmap/ic_launcher_filemanager"
+    android:banner="@drawable/banner"
     android:label="@string/app_name"
     android:largeHeap="true"
-    android:theme="@style/Explorer.Theme.Holo.Ligth" >
+    android:theme="@style/FileManager.Theme.Material.Light"
+    android:supportsRtl="true">
 
     <meta-data
       android:name="android.app.default_searchable"
 
     <provider
       android:name=".providers.RecentSearchesContentProvider"
-      android:authorities="com.cyanogenmod.explorer.providers.recentsearches"
+      android:authorities="com.cyanogenmod.filemanager.providers.recentsearches"
       android:exported="false" />
 
     <provider
       android:name=".providers.BookmarksContentProvider"
-      android:authorities="com.cyanogenmod.explorer.providers.bookmarks"
+      android:authorities="com.cyanogenmod.filemanager.providers.bookmarks"
       android:exported="false" />
 
+    <provider
+      android:name=".providers.SecureResourceProvider"
+      android:authorities="com.cyanogenmod.filemanager.providers.resources"
+      android:grantUriPermissions="true"
+      android:exported="true" />
+
+    <provider
+      android:authorities="com.cyanogenmod.filemanager.providers.index"
+      android:name=".providers.MimeTypeIndexProvider"/>
+
+    <service
+      android:name=".service.MimeTypeIndexService"
+      android:label="@string/app_name">
+      <intent-filter>
+        <action android:name="com.cyanogenmod.filemanager.ACTION_START_INDEX"/>
+      </intent-filter>
+    </service>
+
     <activity
       android:name=".activities.NavigationActivity"
       android:label="@string/app_name"
       android:launchMode="singleTop"
       android:uiOptions="none"
+      android:theme="@style/FileManager.Theme.Material.Light.NoActionBar"
       android:windowSoftInputMode="adjustNothing"
+      android:configChanges="keyboardHidden|screenSize"
       android:exported="true">
       <intent-filter>
         <action android:name="android.intent.action.MAIN" />
         <category android:name="android.intent.category.LAUNCHER" />
+        <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
         <category android:name="android.intent.category.DEFAULT" />
       </intent-filter>
       <intent-filter>
         <action android:name="android.intent.action.SEARCH" />
         <category android:name="android.intent.category.DEFAULT" />
       </intent-filter>
+      <intent-filter>
+        <action android:name="android.intent.action.VIEW" />
+        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="android.intent.category.BROWSABLE" />
+        <data android:mimeType="resource/folder" />
+        <data android:scheme="file" />
+        <data android:scheme="folder" />
+        <data android:scheme="directory" />
+      </intent-filter>
       <meta-data
         android:name="android.app.searchable"
+        android:value=".activities.SearchActivity"
         android:resource="@xml/searchable" />
     </activity>
 
     <activity
-      android:name=".activities.BookmarksActivity"
-      android:label="@string/bookmarks"
-      android:uiOptions="none"
-      android:windowSoftInputMode="adjustNothing"
-      android:exported="false">
-    </activity>
-
-    <activity
-      android:name=".activities.HistoryActivity"
-      android:label="@string/history"
-      android:uiOptions="none"
-      android:windowSoftInputMode="adjustNothing"
-      android:exported="false">
-    </activity>
-
-    <activity
       android:name=".activities.SearchActivity"
       android:label="@string/search"
       android:launchMode="singleTop"
       android:uiOptions="none"
+      android:configChanges="orientation|keyboardHidden|screenSize"
       android:windowSoftInputMode="adjustNothing"
       android:exported="false">
     </activity>
       android:name=".activities.PickerActivity"
       android:label="@string/picker"
       android:uiOptions="none"
-      android:theme="@style/Explorer.Theme.Holo.Ligth.Overlay"
+      android:configChanges="orientation|keyboardHidden|screenSize"
+      android:theme="@style/FileManager.Theme.Material.Light.Overlay"
       android:exported="true">
       <intent-filter>
         <action android:name="android.intent.action.GET_CONTENT" />
         <category android:name="android.intent.category.DEFAULT" />
         <data android:mimeType="*/*" />
       </intent-filter>
+      <intent-filter>
+        <action android:name="android.intent.action.PICK" />
+        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="android.intent.category.BROWSABLE" />
+        <data android:scheme="file" />
+        <data android:scheme="folder" />
+        <data android:scheme="directory" />
+      </intent-filter>
+      <intent-filter>
+        <action android:name="com.android.fileexplorer.action.DIR_SEL" />
+        <category android:name="android.intent.category.DEFAULT"/>
+      </intent-filter>
     </activity>
 
     <activity
       android:name=".activities.preferences.SettingsPreferences"
       android:label="@string/pref"
-      android:icon="@drawable/ic_launcher_settings"
       android:exported="false">
       <intent-filter>
          <category android:name="android.intent.category.PREFERENCE" />
       android:name=".activities.ShortcutActivity"
       android:label="@string/app_name"
       android:uiOptions="none"
-      android:theme="@style/Explorer.Theme.Holo.Ligth.Overlay"
+      android:theme="@style/FileManager.Theme.Material.Light.Overlay"
       android:exported="true">
       <intent-filter>
         <action android:name="android.intent.action.VIEW" />
       </intent-filter>
     </activity>
 
+    <activity
+      android:name=".activities.ChangeLogActivity"
+      android:label="@string/app_name"
+      android:uiOptions="none"
+      android:theme="@style/FileManager.Theme.Material.Light.Overlay"
+      android:exported="false">
+      <intent-filter>
+        <action android:name="android.intent.action.VIEW" />
+      </intent-filter>
+    </activity>
+
+    <activity
+      android:name=".activities.EditorActivity"
+      android:label="@string/editor"
+      android:configChanges="orientation|keyboardHidden|screenSize">
+      <intent-filter>
+        <action android:name="android.intent.action.VIEW" />
+        <action android:name="android.intent.action.EDIT" />
+        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="com.cyanogenmod.filemanager.category.INTERNAL_VIEWER" />
+        <category android:name="com.cyanogenmod.filemanager.category.EDITOR" />
+
+        <data android:scheme="content" />
+        <data android:scheme="file" />
+        <data android:mimeType="text/*" />
+        <data android:mimeType="application/javascript" />
+        <data android:mimeType="application/json" />
+        <data android:mimeType="application/xhtml+xml" />
+        <data android:mimeType="application/xml" />
+        <data android:mimeType="application/x-msdownload" />
+        <data android:mimeType="application/x-csh" />
+        <data android:mimeType="application/x-sh" />
+      </intent-filter>
+      <intent-filter>
+        <action android:name="android.intent.action.VIEW" />
+        <action android:name="android.intent.action.EDIT" />
+        <category android:name="android.intent.category.DEFAULT" />
+        <category android:name="com.cyanogenmod.filemanager.category.INTERNAL_VIEWER" />
+        <category android:name="com.cyanogenmod.filemanager.category.EDITOR" />
+      </intent-filter>
+    </activity>
+
+    <activity
+      android:name=".console.secure.SecureStorageKeyPromptDialog$SecureStorageKeyPromptActivity"
+      android:label="@string/app_name"
+      android:uiOptions="none"
+      android:configChanges="orientation|keyboardHidden|screenSize"
+      android:theme="@android:style/Theme.Material.Light.Dialog"
+      android:exported="true">
+      <intent-filter>
+        <action android:name="android.intent.action.VIEW" />
+      </intent-filter>
+    </activity>
+    <service android:name=".providers.secure.SecureCacheCleanupService">
+      <intent-filter>
+        <action android:name="android.intent.action.BOOT_COMPLETED" />
+        <action android:name="android.intent.action.QUICKBOOT_POWERON" />
+        <action android:name="com.cyanogenmod.filemanager.ACTION_START_CLEANUP"/>
+      </intent-filter>
+    </service>
+
   </application>
 
 </manifest>