Added an AlertActivity to intercept the start for an activity belonging to a suspended app. More details will be shown if the suspending app also defines an activity to handle the API action SHOW_SUSPENDED_APP_DETAILS. Test: Added tests to existing classes. Can be run via: atest com.android.server.pm.SuspendPackagesTest atest com.android.server.pm.PackageManagerSettingsTests atest com.android.server.pm.PackageUserStateTest Bug: 75332201 Change-Id: I85dc4e9efd15eedba306ed5b856f651e3abd3e99
78 lines
2.0 KiB
Makefile
78 lines
2.0 KiB
Makefile
#########################################################################
|
|
# Build FrameworksServicesTests package
|
|
#########################################################################
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
# We only want this apk build for tests.
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Include all test java files.
|
|
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
frameworks-base-testutils \
|
|
services.accessibility \
|
|
services.appwidget \
|
|
services.autofill \
|
|
services.backup \
|
|
services.core \
|
|
services.devicepolicy \
|
|
services.net \
|
|
services.usage \
|
|
guava \
|
|
android-support-test \
|
|
mockito-target-minus-junit4 \
|
|
platform-test-annotations \
|
|
ShortcutManagerTestUtils \
|
|
truth-prebuilt \
|
|
testables \
|
|
testng \
|
|
ub-uiautomator\
|
|
platformprotosnano
|
|
|
|
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/aidl
|
|
|
|
LOCAL_SRC_FILES += aidl/com/android/servicestests/aidl/INetworkStateObserver.aidl \
|
|
aidl/com/android/servicestests/aidl/ICmdReceiverService.aidl
|
|
LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/JobTestApp/src)
|
|
LOCAL_SRC_FILES += $(call all-java-files-under, test-apps/SuspendTestApp/src)
|
|
|
|
LOCAL_JAVA_LIBRARIES := \
|
|
android.hidl.manager-V1.0-java \
|
|
android.test.mock \
|
|
android.test.base android.test.runner \
|
|
|
|
LOCAL_PACKAGE_NAME := FrameworksServicesTests
|
|
LOCAL_PRIVATE_PLATFORM_APIS := true
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
# These are not normally accessible from apps so they must be explicitly included.
|
|
LOCAL_JNI_SHARED_LIBRARIES := \
|
|
libbacktrace \
|
|
libbase \
|
|
libbinder \
|
|
libc++ \
|
|
libcutils \
|
|
liblog \
|
|
liblzma \
|
|
libnativehelper \
|
|
libnetdaidl \
|
|
libui \
|
|
libunwind \
|
|
libutils
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
|
|
|
LOCAL_JACK_FLAGS := --multi-dex native
|
|
LOCAL_DX_FLAGS := --multi-dex
|
|
|
|
LOCAL_PROGUARD_ENABLED := disabled
|
|
|
|
include $(BUILD_PACKAGE)
|
|
|
|
include $(call all-makefiles-under, $(LOCAL_PATH))
|