diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2014-01-09 22:27:30 +0700 |
---|---|---|
committer | Cristoforo Cataldo <cristoforo.cataldo@gmail.com> | 2014-12-29 15:17:43 +0100 |
commit | 8996d8ccae51f3acfb343e230f7320a299b5a1c0 (patch) | |
tree | 02e28cd0fc368c0dd2b2c51430eb22e3cab57b14 | |
parent | 498c7061d3b5e08382083065f6f41de36c8884f6 (diff) | |
download | packages_apps_InCallUI-8996d8ccae51f3acfb343e230f7320a299b5a1c0.tar.gz packages_apps_InCallUI-8996d8ccae51f3acfb343e230f7320a299b5a1c0.tar.bz2 packages_apps_InCallUI-8996d8ccae51f3acfb343e230f7320a299b5a1c0.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: Ic6a0461bb0373cd21213a03fec41c98b1e65ee40
-rw-r--r-- | Android.mk | 19 | ||||
-rw-r--r-- | AndroidManifest.xml | 32 |
2 files changed, 51 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 00000000..d5d760df --- /dev/null +++ b/Android.mk @@ -0,0 +1,19 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_MODULE_TAGS := optional + +# Need to specify an invalid resoure path to avoid including resource +LOCAL_RESOURCE_DIR := res_none + +# Without any resource, we don't depend on framework-res in the build +# system, but we actually do to compile AndroidManifest.xml. Avoid +# the issue by setting an SDK version to compile against a historical +# SDK. +LOCAL_SDK_VERSION := 21 + +LOCAL_PACKAGE_NAME := InCallUI +LOCAL_CERTIFICATE := shared +LOCAL_PRIVELEGED_MODULE := false + +include $(BUILD_PACKAGE) diff --git a/AndroidManifest.xml b/AndroidManifest.xml new file mode 100644 index 00000000..df651187 --- /dev/null +++ b/AndroidManifest.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The Android Open Source 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" + android:sharedUserId="com.android.dialer" + package="com.android.incallui" + coreApp="true"> + + <!-- + 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:persistent="true" + android:hasCode="false"> + </application> +</manifest> |