diff options
author | Nick Pelly <npelly@google.com> | 2011-11-21 14:55:50 -0800 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-11-21 15:17:07 -0800 |
commit | 37bb7b23886d7c058f7e9589ee5522b4a467b1b0 (patch) | |
tree | f903810b5de2dfab6d54c5c406f6a0783d219ae9 | |
parent | bc6535cccf65265677ce4dfab1b34b71efb8fba5 (diff) | |
download | packages_apps_nfc-37bb7b23886d7c058f7e9589ee5522b4a467b1b0.zip packages_apps_nfc-37bb7b23886d7c058f7e9589ee5522b4a467b1b0.tar.gz packages_apps_nfc-37bb7b23886d7c058f7e9589ee5522b4a467b1b0.tar.bz2 |
Replace vendor specific NfcGoogle.apk with generic Nfc.apk
The access control changes allow us to just use Nfc.apk with
the regular platform certificate, instead of the custom signed
NfcGoogle.apk. So we can compeltely get rid of vendor/google/apps/NfcGoogle
and just build it out of packages/apps/Nfc now.
The package name is also reverted from com.android.nfc3 to com.android.nfc
The NFC uid needs to get bumped (25 to 27) to allow the cert change.
Bug: 5608249
Change-Id: I4437dff96f2529f0b9e7d8e65c21359c3eeccd0b
-rwxr-xr-x | AndroidManifest.xml | 8 | ||||
-rw-r--r-- | CleanSpec.mk | 2 | ||||
-rw-r--r-- | migrate_nfc.txt | 6 | ||||
-rwxr-xr-x | res/values/strings.xml | 1 | ||||
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 1 | ||||
-rw-r--r-- | src/com/android/nfc/P2pEventManager.java | 2 | ||||
-rw-r--r-- | src/com/android/nfc/SendUi.java | 2 | ||||
-rw-r--r-- | tests/AndroidManifest.xml | 2 |
8 files changed, 8 insertions, 16 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 3ce49b8..b896e07 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.android.nfc3" + package="com.android.nfc" android:sharedUserId="android.uid.nfc" android:sharedUserLabel="@string/nfcUserLabel" > @@ -20,7 +20,7 @@ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.VIBRATE" /> - <application android:name="com.android.nfc.NfcService" + <application android:name=".NfcService" android:icon="@drawable/icon" android:label="@string/app_name" android:persistent="true" @@ -29,13 +29,13 @@ <meta-data android:name="com.google.android.backup.api_key" android:value="AEdPqrEAAAAIEXGvR1H2lq6SEOC7O7rGHoAmAf-GHCR_EhLqzg" /> - <activity android:name="com.android.nfc.TechListChooserActivity" + <activity android:name=".TechListChooserActivity" android:theme="@*android:style/Theme.Dialog.Alert" android:finishOnCloseSystemDialogs="true" android:excludeFromRecents="true" android:multiprocess="true" /> - <activity android:name="com.android.nfc.NfcRootActivity" + <activity android:name=".NfcRootActivity" android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:excludeFromRecents="true" android:noHistory="true" diff --git a/CleanSpec.mk b/CleanSpec.mk index c236495..fc12f05 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -49,3 +49,5 @@ # ************************************************ $(call add-clean-step, rm -f $(PRODUCT_OUT)/system/app/Nfc.apk) +$(call add-clean-step, rm -f $(PRODUCT_OUT)/system/app/NfcGoogle.apk) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/APPS/NfcGoogle_intermediates) diff --git a/migrate_nfc.txt b/migrate_nfc.txt index 6db107c..00e0d12 100644 --- a/migrate_nfc.txt +++ b/migrate_nfc.txt @@ -1,7 +1,3 @@ -# Migrate the mytag file from the old pacakge name -com.android.nfc3:com.android.nfc - files - # Migrate the prefs from the old package name -com.android.nfc3:com.android.nfc +com.android.nfc:com.android.nfc3 shared_prefs diff --git a/res/values/strings.xml b/res/values/strings.xml index 0963dc7..3fcf047 100755 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="app_name">Nfc Service</string> - <string name="nfcUserLabel">Nfc</string> <!-- A notification description string informing the user that contact details were received over NFC [CHAR-LIMIT=64] --> <string name="inbound_me_profile_title">Contact received over NFC</string> diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index d0ae8c6..edbefbe 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -23,7 +23,6 @@ import com.android.nfc.DeviceHost.NfcDepEndpoint; import com.android.nfc.DeviceHost.TagEndpoint; import com.android.nfc.nxp.NativeNfcManager; import com.android.nfc.nxp.NativeNfcSecureElement; -import com.android.nfc3.R; import android.app.Application; import android.app.KeyguardManager; diff --git a/src/com/android/nfc/P2pEventManager.java b/src/com/android/nfc/P2pEventManager.java index 6a00b43..5677a6f 100644 --- a/src/com/android/nfc/P2pEventManager.java +++ b/src/com/android/nfc/P2pEventManager.java @@ -23,8 +23,6 @@ import android.os.Handler; import android.os.Message; import android.os.Vibrator; -import com.android.nfc3.R; - /** * Manages vibration, sound and animation for P2P events. */ diff --git a/src/com/android/nfc/SendUi.java b/src/com/android/nfc/SendUi.java index 37ac6e0..6fc24d5 100644 --- a/src/com/android/nfc/SendUi.java +++ b/src/com/android/nfc/SendUi.java @@ -16,8 +16,6 @@ package com.android.nfc; -import com.android.nfc3.R; - import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml index 035bb4c..f33d622 100644 --- a/tests/AndroidManifest.xml +++ b/tests/AndroidManifest.xml @@ -31,7 +31,7 @@ "adb shell am instrument -w com.android.email.tests/android.test.InstrumentationTestRunner" --> <instrumentation android:name="android.test.InstrumentationTestRunner" - android:targetPackage="com.android.nfc3" + android:targetPackage="com.android.nfc" android:label="Tests for Nfc."/> </manifest> |