43b1b3ff0b92eb4ef97038176a26ea05679b592d |
17-Nov-2016 |
Dimitry Ivanov <dimitry@google.com> |
Fix coretests: Remove dependency on libnativehelper This dependency was never needed and it makes test app depend on private platform libraries - which is no longer allowed. This change fixes these problems by removing dependency and renaming JNI method. Test: Install the test and start it. Change-Id: I9878627148917c1b5928b98f3c86f6e6097093d6
nstall_jni_lib/Android.mk
nstall_jni_lib/com_android_frameworks_coretests_JNITest.cpp
|
b61e405397200f78b1c652143cba7c751df05a00 |
20-May-2016 |
Adam Lesinski <adamlesinski@google.com> |
Improve performance of LocaleList with Resources We allow each individual Resources object to select the best Locale for the given APK. This allows one update to the configuration instead of multiple updates, once the locale is chosen. The Java locale is selected from the app context's locale. Bug:28625993 Bug:27325465 Change-Id: I99e1e53f522e560f3b80bbd1e1c605f552dbdff0
ocales/Android.mk
ocales/AndroidManifest.xml
ocales/res/values-pl/values.xml
ocales/res/values/values.xml
|
1c8cbb54407b9c1d56626de80a796a395012a92c |
19-Feb-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix a set of random warnings in frameworks/base/ Bug: 26936282 Change-Id: Ic411d7a1673503d5945f952ebf5a8be964bb54a4
nstall_jni_lib/Android.mk
nstall_jni_lib/com_android_frameworks_coretests_JNITest.cpp
|
dd4e412172dfb5694b37f7f6450ed631856841a4 |
03-Dec-2015 |
Alex Klyubin <klyubin@google.com> |
Merge "Stop using 512 bit RSA keys in keyset unit tests." am: 59c9bfd41b am: b1e7f6d287 am: 64868d11dd * commit '64868d11dd1597267631bc6b519c1eacbfd90396': Stop using 512 bit RSA keys in keyset unit tests.
|
377e70ae9fd98b027ead17b1d5e9a7aff52f1e17 |
03-Dec-2015 |
Alex Klyubin <klyubin@google.com> |
Stop using 512 bit RSA keys in keyset unit tests. This switches keyset unit tests from two unrealistically short 512 bit RSA keys to a more realistic 2048 bit RSA key and a NIST P-256 EC key. Change-Id: If615b97dff22a2a4f7f0e6015e410e98b8d395cd
eyset/permUse/AndroidManifest.xml
eyset/uA/AndroidManifest.xml
eyset/uAB/AndroidManifest.xml
eyset/uAuB/AndroidManifest.xml
eyset/uB/AndroidManifest.xml
|
c4d372f6ffb0866af5d457be99011c3c23bdfa26 |
02-Dec-2015 |
dcashman <dcashman@google.com> |
Fix getKeySetByAlias PackageMgr test. commit 42aed1b8ecf591009f9e2df8eaca4f41074c37c8 changed the hidden KeySet API to allow packages to retrieve keysets of other packages. Change the PackageManagerTests to not expect a SecurityExeption anymore and also make sure that this is supported. Bug: 25935839 Change-Id: I18c00997a627c9df1eb3826650c1aa71f563a2bd
eyset/api_test/AndroidManifest.xml
|
9f3a78cbaa0e46159dd9925d8acaf57386f05420 |
01-Dec-2015 |
Todd Kennedy <toddke@google.com> |
Fix tests The majority of the test failures were around the method assertInstall() failing a check for a symlink between the data directory in /data/data/ to the application directory in /mnt/asec/. There are a handful of other failures that will be dealt with separately; those have all been suppressed from running. Also took the opportunity of adjusting some of the tests to ensure the device is properly cleaned up. Packages remained installed after a failure. Bug: 18048725 Change-Id: Id8f6ac53cfe17de43b5d527993d57812b1a63bef
nstall_complete_package_info/Android.mk
|
b57dd722f1dc0663417da37d3a82f8283ad3c982 |
24-Sep-2015 |
Elliott Hughes <enh@google.com> |
resolved conflicts for a884d81e to stage-aosp-master Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
|
76f6a86de25e1bf74717e047e55fd44b089673f3 |
19-Sep-2015 |
Daniel Micay <danielmicay@gmail.com> |
constify JNINativeMethod function pointer tables Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
nstall_jni_lib/com_android_frameworks_coretests_JNITest.cpp
|
559ea2fd8c8c979231ab78e2216effa818b2cc60 |
26-Jun-2015 |
Ying Wang <wangying@google.com> |
Remove the obsolete LOCAL_PAGE_ALIGN_JNI_SHARED_LIBRARIES Change-Id: I08c2439bcab934e23c697b93aec47b2c7bcba037
nstall_jni_lib_open_from_apk/Android.mk
|
811b7266fdc80a4529cf0c2024f865b4aa154270 |
17-Apr-2015 |
Dmitriy Ivanov <dimitry@google.com> |
Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS It is no longer needed. Change-Id: I1b5a58528507df35cc0792a18be5583e3605cbe0
nstall_jni_lib_open_from_apk/Android.mk
|
dec4688f40b0018fbd1f00db05581966f531d88f |
01-Oct-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Load libraries directly from apk Introduced new 'extractNativeLibs' attribute to manifest/application. Setting it to false prevents installer from extracting library from apk. The default value for extractNativeLibs is true. Bug: 8076853 (cherry picked from commit ff193d642eea7128faad837d19e347cd25212c27) Change-Id: I1aa2c039bb2a590ae72f256acc9ba5401c2c59b1
nstall_jni_lib/Android.mk
nstall_jni_lib/com_android_frameworks_coretests_JNITest.cpp
nstall_jni_lib_open_from_apk/Android.mk
nstall_jni_lib_open_from_apk/AndroidManifest.xml
nstall_jni_lib_open_from_apk/res/values/strings.xml
nstall_jni_lib_open_from_apk/src/com/android/frameworks/coretests/JNITests.java
nstall_jni_lib_open_from_apk/src/com/android/frameworks/coretests/OpenFromApkActivity.java
|
b643624d2f01145f200dfe15b6b7627241deee29 |
15-Jan-2015 |
Ying Wang <wangying@google.com> |
New trick to install bad dex file. Previously we use LOCAL_JAVA_RESOURCE_FILES to override the normally generated classes.dex with a bad dex file. Now as we have moved Java resource processing before running jarjar, dx would fail for the bad classes.dex inside the classes.jar. Instead we override the target specific variable PRIVATE_DEX_FILE to inject the bad dex file. (cherry-picked from commit f122d90c290c789e0d0085127beebdcf1935c127) Bug: 18837479 Change-Id: I73f82c8a15e1d8935d9c2f290ba9456184a56ec7
nstall_bad_dex/Android.mk
|
9d2f441f9bb2c8dcac1150e2cba1d15a86a4efb1 |
09-Jun-2014 |
dcashman <dcashman@google.com> |
Initial KeySet API. Previously submitted but reverted due to doc-compilation bug. Bug: 6967056 Change-Id: I9bd7ef299a4c92c4b327f5b5d7e951f0753b4c8a
eyset/Android.mk
eyset/api_test/AndroidManifest.xml
|
5de7377feca5242fe7127e2d4dc7792d4886d365 |
12-Jul-2014 |
dcashman <dcashman@google.com> |
Revert "Initial KeySet API." This reverts commit 9a643fe02bc960e266484547dda5572b094a4c72.
eyset/Android.mk
eyset/api_test/AndroidManifest.xml
|
405912bce074e9e59a246e2357a108e50dffabf8 |
09-Jun-2014 |
dcashman <dcashman@google.com> |
Initial KeySet API. Bug: 6967056 Change-Id: I47a01bd5dc25591cc70f58f38920ad0a021094ae
eyset/Android.mk
eyset/api_test/AndroidManifest.xml
|
989eb371bf8f572fed1e65c6d8aeeb2548be89a7 |
17-Jun-2014 |
dcashman <dcashman@google.com> |
Change key-set/public-key manifest relationship. Separate definition of public keys and keysets in the manifest to better represent their relationship. The 'key-set' tags should have nested additional 'public-key' tags that indicate which of the defined 'public-key' tags are associated with them. The first use of a given 'public-key' name should define its value; subsequent uses may refer to it only by name. 'key-set' and 'public-key' names may not intersect. Also, change 'keys' tag to 'key-sets' to avoid issues with previous keysets implementation. Bug: 6967056 Change-Id: I7534e4a42326e97b67b55509187c0d3c21a2bb32
eyset/permUse/AndroidManifest.xml
eyset/uA/AndroidManifest.xml
eyset/uAB/AndroidManifest.xml
eyset/uAuB/AndroidManifest.xml
eyset/uB/AndroidManifest.xml
|
55b1078e2a1b56daa85edfd5000a5844d3c7914b |
09-Apr-2014 |
dcashman <dcashman@google.com> |
Initial work for key rotation. Introduces the upgrade-keyset tag to AndroidManifest.xml. This specifies a KeySet by which an apk must be signed in order to update the app. Multiple upgrade KeySets may be specified, in which case one of them must be used to sign the updating apk. If no upgrade-keyset is specified, the current logic involving signatures is used. Current Key Rotation Design Decisions: -Apps using a shared user id may not rotate keys. -All acceptable upgrade keysets must be specified, including the key signing the app. This enables key rotation in one update, but also 'locks' an app if an incorrect upgrade keyset is specified. -Minimal changes to existing KeySet code. Bug: 6967056 Change-Id: Ib9bb693d4e9ea1aec375291ecdc182554890d29c
eyset/Android.mk
eyset/permDef/AndroidManifest.xml
eyset/permUse/AndroidManifest.xml
eyset/res/values/strings.xml
eyset/uA/AndroidManifest.xml
eyset/uAB/AndroidManifest.xml
eyset/uAuB/AndroidManifest.xml
eyset/uB/AndroidManifest.xml
eyset/uNone/AndroidManifest.xml
|
305258da757bc1dff447a27b1c7e510cb65191bb |
22-Oct-2013 |
Brett Chabot <brettchabot@google.com> |
Add 'no system permission' test app. Used in PackageManagerOTATests to verify upgraded system apps are granetd new permissions. Bug 11271490 Change-Id: Idbc07bc043d06ea15dc41285ecbfb8186a7ecc95
ersion_nosys/Android.mk
ersion_nosys/AndroidManifest.xml
ersion_nosys/res/values/strings.xml
ersion_nosys/src/com/android/frameworks/coretests/version_test/NullProvider.java
|
a3e90798b7ad3ed62e5b31842c699b2f98bd457b |
18-Oct-2012 |
Kenny Root <kroot@google.com> |
Robustly add symlink and add for non-primary users Amazingly, some apps still don't use the nativeLibraryPath. So add a lib symlink for non-primary users to fix that. Also, there was an error when the symlink existed that it would give up. This shouldn't really happen, but in that case, just remove it and create a new one to be safe. Also, move the downgrade code to the appropriate place. This downgrade case triggered the above symlink existing bug. Bug: 7318366 Bug: 7371571 Change-Id: Ia175b36d98f00bdc2f2433b909aafd524eb34d15
nstall_bad_dex/AndroidManifest.xml
|
e15bdc2da4c74c8d16db8c1d067a42c4767d1003 |
17-Sep-2012 |
Kenny Root <kroot@google.com> |
Add test for failed dexopt Bug: 7010829 Change-Id: Ie0616ff2c3739ad73733857de6d04243b2be2fca
nstall_bad_dex/Android.mk
nstall_bad_dex/AndroidManifest.xml
nstall_bad_dex/classes.dex
nstall_bad_dex/res/values/strings.xml
nstall_bad_dex/src/com/android/frameworks/coretests/TestActivity.java
nstall_jni_lib/Android.mk
|
e64e0971475409533aec201e4f3d23b31f653217 |
09-Sep-2012 |
Kenny Root <kroot@google.com> |
Add a native library to test APKs In order to make sure we have unpacking and deletion working, add a fake JNI library to every APK. This can be expanded in the future to make sure replacement is working correctly as well. Change-Id: I1ad04c61df9518429aa17795b8a9d3608791cd8e
rameworkCoreTests_apk.mk
nstall_jni_lib/Android.mk
nstall_jni_lib/com_android_frameworks_coretests_JNITest.cpp
|
5293d0cb2e0689dafd5ed821d479babfa6e008f9 |
20-Jun-2012 |
Kenny Root <kroot@google.com> |
Merge "Packages for PackageManagerService tests"
|
ec7e483c55a148490e35661ddb4fc5c1eb3b1a78 |
08-May-2012 |
Kenny Root <kroot@google.com> |
Packages for PackageManagerService tests Change-Id: I3fd96abb0560fd8c596304d9c233e2f8f3fd8089
ersion/Android.mk
ersion/AndroidManifest.xml
ersion/res/values/strings.xml
ersion/src/com/android/frameworks/coretests/version_test/NullProvider.java
|
535d3b3f3363af6a5f2acb620542baec4cb96b45 |
16-Jun-2012 |
Kenny Root <kroot@android.com> |
am 0cf34218: Merge "Adding test cases for getInstalledPackages" * commit '0cf342184e030ee6f65d87eeba48484725910a8b': Adding test cases for getInstalledPackages
|
f2f1b6c94685147a6260cc70909247a96bcbe81f |
26-May-2011 |
Martin Wallgren <martin.wallgren@sonyericsson.com> |
Adding test cases for getInstalledPackages There was an earlier fix for a case where the binder heap would run out of space when calling the getInstalledPackages. This could happen when there were a lot of installed packages. This change adds some test cases to verify that fix. Change-Id: I8e0c5f674bf2098adcff6d40893f94162961031f
nstall_complete_package_info/Android.mk
nstall_complete_package_info/AndroidManifest.xml
nstall_complete_package_info/src/com/android/frameworks/coretests/TestActivity.java
nstall_complete_package_info/src/com/android/frameworks/coretests/TestProvider.java
nstall_complete_package_info/src/com/android/frameworks/coretests/TestReceiver.java
nstall_complete_package_info/src/com/android/frameworks/coretests/TestService.java
|
52c5acacd477cf77a6513ac870251de6bde93a43 |
15-Apr-2012 |
Kenny Root <kroot@google.com> |
Build "install" resource for PMS tests All the APKs in the FrameworkCoreTests's res/raw directory should be built by source. This change makes one more built from source that was causing test failures with mismatched certificates. Change-Id: I1baed15477ee39c45d3d77f9b02b81f771a16ca2
nstall/Android.mk
nstall/AndroidManifest.xml
nstall/res/values/strings.xml
|
24162fc52c739b6d71adc8e0f9bc3768a24c5805 |
11-Jan-2012 |
Ying Wang <wangying@google.com> |
Build all test apks as raw resource in FrameworksCoreTests. Bug: 5848975 Change-Id: I395013ded1c29e0914f72e03d0abd60bb4a7973a
ndroid.mk
rameworkCoreTests_apk.mk
nstall_decl_perm/Android.mk
nstall_loc_auto/Android.mk
nstall_loc_internal/Android.mk
nstall_loc_sdcard/Android.mk
nstall_loc_unspecified/Android.mk
nstall_use_perm_good/Android.mk
nstall_uses_feature/Android.mk
nstall_verifier_bad/Android.mk
nstall_verifier_good/Android.mk
|
05ca4c90644921df9193d92b2abdc81ef77e4a62 |
15-Sep-2011 |
Kenny Root <kroot@google.com> |
Allow non-required package verifiers * Verifiers can be specified in the AndroidManifest.xml * Those verifiers can respond to the new Intent action * PackageManager API for those verifiers: verifyPendingInstall Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
nstall_verifier_bad/Android.mk
nstall_verifier_bad/AndroidManifest.xml
nstall_verifier_bad/res/values/strings.xml
nstall_verifier_good/Android.mk
nstall_verifier_good/AndroidManifest.xml
nstall_verifier_good/res/values/strings.xml
|
1683afac148f5bce186f7af7a6a8ea6294ecd379 |
07-Jan-2011 |
Kenny Root <kroot@google.com> |
Fix check for required features The required features check was in an null check for usesLibraries, so it wasn't checking for required features when an application did not use a library. Bug: 3331713 Change-Id: I96d366ba00d4962b84f3796be97e2b622eb331a5
nstall_uses_feature/Android.mk
nstall_uses_feature/AndroidManifest.xml
nstall_uses_feature/res/values/strings.xml
|
30f775b12ac7d0ff39eef201f997fe54ac60465a |
06-Apr-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Fix 2578016. Add some checks before moving package. Checkin test code. Regenerate test apks Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
nstall_loc_auto/Android.mk
nstall_loc_auto/AndroidManifest.xml
nstall_loc_auto/res/values/strings.xml
nstall_loc_internal/Android.mk
nstall_loc_internal/AndroidManifest.xml
nstall_loc_internal/res/values/strings.xml
nstall_loc_sdcard/Android.mk
nstall_loc_sdcard/AndroidManifest.xml
nstall_loc_sdcard/res/values/strings.xml
nstall_loc_unspecified/Android.mk
nstall_loc_unspecified/AndroidManifest.xml
nstall_loc_unspecified/res/values/strings.xml
|
5a2190877c0cfb945f2e0cdf9b6c3c1ebbed7b87 |
07-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
Add makefile so package manager test apks can get buitl from root. Change-Id: I89e3d50793a48a404c7d8e5699baea8b195b7684
ndroid.mk
|
0dc59e78e18493aecd37427531d093e800846c3e |
02-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
More framework tests cleanup. Move all tests for android.* classes from tests/AndroidTests and tests/CoreTests into framework/base/<core|graphics>/tests. Consolidate all tests for java.* classes to tests/CoreTests. Eventually hopefully these will be moved to dalvik/ somewhere. Remove tests/AndroidTests entirely. Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
nstall_decl_perm/Android.mk
nstall_decl_perm/AndroidManifest.xml
nstall_decl_perm/res/values/strings.xml
nstall_use_perm_good/Android.mk
nstall_use_perm_good/AndroidManifest.xml
nstall_use_perm_good/res/values/strings.xml
|