summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2014-01-09 22:27:30 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2014-01-11 14:44:28 +0000
commite342ea6a38f296e6aa23a5b885d63a0323c0b6f3 (patch)
treef3d1c3bab1bc1e8c75723d8f81f3eba9dc45ce28 /AndroidManifest.xml
parent491a48797e2f9b2522bbf73903c426ad72f0cc5e (diff)
downloadpackages_apps_InCallUI-e342ea6a38f296e6aa23a5b885d63a0323c0b6f3.tar.gz
packages_apps_InCallUI-e342ea6a38f296e6aa23a5b885d63a0323c0b6f3.tar.bz2
packages_apps_InCallUI-e342ea6a38f296e6aa23a5b885d63a0323c0b6f3.zip
Keep InCallUI in memory (1/3)
In lower end devices, startup of the InCallUI process can take up to 10 seconds when the device is busy, which prevents the user from taking the call. Keep the process in memory like previous versions where they are a part of Phone.apk. This converts InCallUI into a dummy apk with the persistent attribute set to true and allows the activity from Dialer.apk, which uses the com.android.incallui process to be loaded into the persistent process. Change-Id: Idfb7fa760eacc8d6e46d50ce682fb06c0acfc8f4
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml48
1 files changed, 10 insertions, 38 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 42d8e317..c7c9180a 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -15,47 +15,19 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ android:sharedUserId="com.android.dialer"
package="com.android.incallui"
coreApp="true" >
- <original-package android:name="com.android.incallui" />
-
- <uses-permission android:name="android.permission.READ_CONTACTS" />
- <uses-permission android:name="android.permission.VIBRATE"/>
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.WAKE_LOCK"/>
-
+ <!--
+ The real code for InCallUI is included in Dialer. This APK only exists
+ to ensure that the com.android.incallui process is marked as persistent
+ since less powerful devices may not be able to initiate the process
+ in time when the process is killed and an incoming call is received.
+ -->
<application
- android:name="InCallApp"
- android:label="@string/inCallLabel"
- android:supportsRtl="true">
-
- <!-- Main in-call UI activity. This is never launched directly
- from outside the phone app; instead, it's either launched by
- the OutgoingCallBroadcaster (for outgoing calls), or as the
- fullScreenIntent of a notification (for incoming calls.) -->
- <activity android:name=".InCallActivity"
- android:theme="@style/Theme.InCallScreen"
- android:label="@string/inCallLabel"
- android:excludeFromRecents="true"
- android:launchMode="singleInstance"
- android:screenOrientation="nosensor"
- android:configChanges="keyboardHidden"
- android:exported="false">
- </activity>
-
- <service android:name="CallHandlerService">
- <intent-filter>
- <action android:name="com.android.services.telephony.common.ICallHandlerService" />
- </intent-filter>
- </service>
-
- <!-- BroadcastReceiver for receiving Intents from Notification mechanism. -->
- <receiver android:name="InCallApp$NotificationBroadcastReceiver" exported="false">
- <intent-filter>
- <action android:name="com.android.incallui.ACTION_HANG_UP_ONGOING_CALL" />
- </intent-filter>
- </receiver>
-
+ android:persistent="true"
+ android:hasCode="false"
+ >
</application>
</manifest>