summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-07-10 20:02:13 +0100
committerNarayan Kamath <narayan@google.com>2014-07-11 15:07:49 +0100
commite99f69a4845c80d46df1674581461d1f8553ed92 (patch)
tree38e93bf0b7fd38dce610b80685a9b5d1b593084b
parentd05f67f9721e1f9194a1f57cf7481b4be65366b3 (diff)
downloadframeworks_base-e99f69a4845c80d46df1674581461d1f8553ed92.zip
frameworks_base-e99f69a4845c80d46df1674581461d1f8553ed92.tar.gz
frameworks_base-e99f69a4845c80d46df1674581461d1f8553ed92.tar.bz2
Add a test multiarch app.
Will be used in an upcoming change for PackageManagerService handling of multiArch APKs. Change-Id: I363a02ce7b91569bb86880cf511ab9fbfcf2665c
-rw-r--r--core/tests/hosttests/test-apps/SharedUid/dual/Android.mk20
-rw-r--r--core/tests/hosttests/test-apps/SharedUid/dual/dual/AndroidManifest.xml (renamed from core/tests/hosttests/test-apps/SharedUid/dual/AndroidManifest.xml)0
-rw-r--r--core/tests/hosttests/test-apps/SharedUid/dual/multiarch/AndroidManifest.xml29
3 files changed, 49 insertions, 0 deletions
diff --git a/core/tests/hosttests/test-apps/SharedUid/dual/Android.mk b/core/tests/hosttests/test-apps/SharedUid/dual/Android.mk
index a7dc1bd0..60af2b9 100644
--- a/core/tests/hosttests/test-apps/SharedUid/dual/Android.mk
+++ b/core/tests/hosttests/test-apps/SharedUid/dual/Android.mk
@@ -34,6 +34,26 @@ LOCAL_JNI_SHARED_LIBRARIES = libpmtestdual
LOCAL_PROGUARD_ENABLED := disabled
+LOCAL_MANIFEST_FILE := dual/AndroidManifest.xml
+
+LOCAL_SDK_VERSION := current
+include $(BUILD_PACKAGE)
+
+LOCAL_PATH:= $(TOP_LOCAL_PATH)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-subdir-java-files)
+
+LOCAL_PACKAGE_NAME := PMTest_Java_multiarch
+LOCAL_MULTILIB := both
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_MANIFEST_FILE := multiarch/AndroidManifest.xml
+
+LOCAL_JNI_SHARED_LIBRARIES = libpmtestdual
+
+LOCAL_PROGUARD_ENABLED := disabled
+
LOCAL_SDK_VERSION := current
include $(BUILD_PACKAGE)
diff --git a/core/tests/hosttests/test-apps/SharedUid/dual/AndroidManifest.xml b/core/tests/hosttests/test-apps/SharedUid/dual/dual/AndroidManifest.xml
index b7ff46a..b7ff46a 100644
--- a/core/tests/hosttests/test-apps/SharedUid/dual/AndroidManifest.xml
+++ b/core/tests/hosttests/test-apps/SharedUid/dual/dual/AndroidManifest.xml
diff --git a/core/tests/hosttests/test-apps/SharedUid/dual/multiarch/AndroidManifest.xml b/core/tests/hosttests/test-apps/SharedUid/dual/multiarch/AndroidManifest.xml
new file mode 100644
index 0000000..d53ba50
--- /dev/null
+++ b/core/tests/hosttests/test-apps/SharedUid/dual/multiarch/AndroidManifest.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2008 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.
+-->
+
+<!-- This is an example of writing an application that bundles a
+ native code library. -->
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.framework.shareduid.multiarch" android:sharedUserId="com.framework.shareduid">
+ <application android:label="Main Activity (multiarch)" android:multiArch="true">
+ <activity android:name="com.framework.shareduid.dual.MainActivity">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+ </application>
+</manifest>