90d5bd8daab404afc50470f5c19ea725bd2466fe |
30-Jan-2015 |
Jon Larimer <jlarimer@google.com> |
am feb362a5: am a0d3bfbe: am 5c9d0de1: am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation * commit 'feb362a5d194b30226caf2efbaae77991007c65c': Fix build breakage in older branches by avoiding <> notation
|
a0d3bfbe8736fd638621ae48371b6e4e237ed4b1 |
30-Jan-2015 |
Jon Larimer <jlarimer@google.com> |
am 5c9d0de1: am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding <> notation * commit '5c9d0de174caf151937f19aa6898f60bce3fb4f4': Fix build breakage in older branches by avoiding <> notation
|
48c95c4370533bf27e537cbca1e64d060a016c5f |
29-Jan-2015 |
Jon Larimer <jlarimer@google.com> |
Fix build breakage in older branches by avoiding <> notation Change-Id: I5e3d523dac1f364f52f0d2cab479c1705d667e5a
arceledListSliceTest.java
|
9570e144fe38a53c507838cc5234225c7a0da315 |
29-Jan-2015 |
Jon Larimer <jlarimer@google.com> |
am ea63fd7f: am 88add689: am a5ccca24: am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev * commit 'ea63fd7f9b4bb2701c9d12ab8775867dbdeefcf1': Fix ParceledListSlice to enforce the same concrete types among its elements.
|
f741c3727383008b131cd3877cbdb3857e07fc9b |
07-Nov-2014 |
Adam Lesinski <adamlesinski@google.com> |
Fix ParceledListSlice to enforce the same concrete types among its elements. Bug:17671747 Change-Id: I896f75738e5b464ccb6c03290f139cc2fa72f966 (cherry picked from commit 3df1c38ee098872352086e03d6f1adb16796ee29)
arceledListSliceTest.java
|
db3d76ab685955aae4a3e363238a2931d89c6f03 |
13-Nov-2014 |
Adam Lesinski <adamlesinski@google.com> |
Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into lmp-mr1-dev
|
521ca5f8fba355f526e82dc3a8fc6520e4379874 |
12-Nov-2014 |
Jeff Sharkey <jsharkey@android.com> |
am 2e700004: am d68b87cd: Recover apps with malformed certificates. * commit '2e7000040e3d836bb591e29515974817afc49488': Recover apps with malformed certificates.
|
d68b87cdd402d46013170d9316a31c82be4e4816 |
12-Nov-2014 |
Jeff Sharkey <jsharkey@android.com> |
Recover apps with malformed certificates. There was a window of time in Lollipop where we persisted certificates after they had passed through a decode/encode cycle. The well-written OpenSSL library was liberal when decoding (allowing slightly malformed certs to be parsed), but then strict when encoding, giving us different bytes for effectively the same certificate. A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b) now returns the original bytes verbatim, fixing both pre-Lollipop installs and installs after that change. This change recovers any apps that had been installed during the window of time described above by doing a one-time check to see if the certs are effectively equal. Bug: 18228011 Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
ignatureTest.java
|
3df1c38ee098872352086e03d6f1adb16796ee29 |
07-Nov-2014 |
Adam Lesinski <adamlesinski@google.com> |
Fix ParceledListSlice to enforce the same concrete types among its elements. Bug:17671747 Change-Id: I896f75738e5b464ccb6c03290f139cc2fa72f966
arceledListSliceTest.java
|
2a53332343c9fbc734595d269a2c35371227904b |
08-Nov-2014 |
Jeff Sharkey <jsharkey@android.com> |
Resurrect dusty PackageManagerTests. Mostly just getting them running again, still a few failures related to native library symlinks that need more investigation. Bug: 18048725 Change-Id: I4642adab9fb2b9ec1488b700edcee48c09e36005
ackageManagerTests.java
|
941a8ba1a6043cf84a7bf622e44a0b4f7abd0178 |
21-Aug-2014 |
Jeff Sharkey <jsharkey@android.com> |
Installing splits into ASECs! Sessions can now zero-copy data directly into pre-allocated ASEC containers. Then at commit time, we compute the total size of the final app, including any inherited APKs and unpacked libraries, and resize the container in one step. This supports both brand new ASEC installs and inheriting from existing ASEC installs. To keep things simple, it currently requires copying any inherited ASEC contents, but this could be optimized in the future. Expose new vold resize command, and allow read-write mounting of ASEC containers. Move native library extraction into the installer flow, since it needs to happen before ASEC is sealed. Move multiArch flag into NativeLibraryHelper, instead of making everyone pass it around. Migrate size calculation to shared location. Separate "other" package name in public API, provide a path to a storage device when relevant, and add more docs. Bug: 16514385 Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
ackageHelperTests.java
|
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
ackageManagerTests.java
|
5de7377feca5242fe7127e2d4dc7792d4886d365 |
12-Jul-2014 |
dcashman <dcashman@google.com> |
Revert "Initial KeySet API." This reverts commit 9a643fe02bc960e266484547dda5572b094a4c72.
ackageManagerTests.java
|
405912bce074e9e59a246e2357a108e50dffabf8 |
09-Jun-2014 |
dcashman <dcashman@google.com> |
Initial KeySet API. Bug: 6967056 Change-Id: I47a01bd5dc25591cc70f58f38920ad0a021094ae
ackageManagerTests.java
|
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
ackageManagerTests.java
|
275e085d5a42ced54bb79e40ff76c77539e7d82d |
18-Jun-2014 |
Jeff Sharkey <jsharkey@android.com> |
Stronger PackageParser contract, more split work. Require that method callers always provide relevant paths, instead of relying on constructor. Move DisplayMetrics to be an overall parser parameter, and move PARSE_TRUSTED_OVERLAY to flags. Parse split APKs and apply deterministic ordering based on split names. Assert consistent package name and version code across all split APKs in a package, and enforce unique split names and required base APK. Collect certificates for split APKs, enforcing they're all signed consistently. Better flow control and resource cleanup when collecting certs. Refactor validation code so it's easier to reason about. Cleaner maintenance of read buffer when draining stream contents. Change-Id: I8bc8c62095fbb933227b9e76ad8771f4b1246fe8
ackageManagerTests.java
|
c4858a2ba972e86436d629c4d3f18eb49116de14 |
16-Jun-2014 |
Jeff Sharkey <jsharkey@android.com> |
Switch PackageParser to reference single path. It previously kept mPath separate from mScanPath for some very odd edge cases around moving apps-on-SD. This changes it to always use a single path, refactors moving to keep separate paths. Refactors method names in PackageParser to be clearer about their APK-versus-package relationship. Beginnings of a split package parser. Instead of requiring that callers check error codes when null, switch to always throwing on parse errors, to require that callers deal with the error. Longer term the entire parser should switch to this style, but its too pervasive for a simple refactoring. Change-Id: If071d8e55e46e56cc201fadfb51cb471713ae973
ackageManagerTests.java
|
812ad2265ed1386b347c98f48cc8a2b2925541b3 |
28-Apr-2014 |
Elliott Hughes <enh@google.com> |
am d937f275: am 12928a07: am 2336c4ec: Merge "Fix build." * commit 'd937f2750c6edc2c1a03901605b22dad02b89147': Fix build.
|
10596fbcce710a76ffc7e917400df13af5c2ebcb |
28-Apr-2014 |
Elliott Hughes <enh@google.com> |
resolved conflicts for merge of 3ce4f3d0 to master Change-Id: Id5c5997ad8f801b32e1dbd97413ea42e38c27210
|
9790190feecba4bbd66d54c9b942737722e5a16f |
28-Apr-2014 |
Elliott Hughes <enh@google.com> |
Fix build. Change-Id: I0bd6e1aac19276bf664accd8d38f86d2cc7450cc
ackageManagerTests.java
|
34385d352da19805ae948215e2edbeedd16b7941 |
28-Apr-2014 |
Elliott Hughes <enh@google.com> |
Track libcore.os' move to android.system. (This is partial, but should cover everything in AOSP master except for the zygote.) Change-Id: I1042c99245765746a744c44e714095cb2c6cb75d
ackageManagerTests.java
|
f1977b4500e82b72ea6aa5c46d97406a20017caf |
25-Mar-2014 |
Christopher Tate <ctate@google.com> |
Expand install observer semantics ...and now fail conservatively when two apps both attempt to define the same permission. Apps signed with the same certificate are permitted to redefine permissions. We also finally have a (hidden) interface class for observing package installation so that we can now rev the interface without breaking existing callers. Bug 13551375 Change-Id: Ifa4e59154dcccbb286ee46a35a6f25e4ad0f0f01
ackageManagerTests.java
|
7629a18a3f190368e6268d3f2827824905683268 |
26-Mar-2014 |
Glenn Kasten <gkasten@google.com> |
Revert "Expand install observer semantics" This reverts commit ab8a501f255b272af887acb0e66eb71cdf24c755. Change-Id: I4ab4ae1a96efa2adf9d5a513793d8b84eef38b4e
ackageManagerTests.java
|
ab8a501f255b272af887acb0e66eb71cdf24c755 |
25-Mar-2014 |
Christopher Tate <ctate@google.com> |
Expand install observer semantics ...and now fail conservatively when two apps both attempt to define the same permission. We also finally have a (hidden) interface class for observing package installation so that we can now rev the interface without breaking existing callers. Bug 13551375 Change-Id: I3a286d024a30e812ee4b098f345401df3c00e178
ackageManagerTests.java
|
6c918cec31f396bb19597d107856122173c90594 |
02-Apr-2013 |
Kenny Root <kroot@google.com> |
Add direct API to get ManifestDigest This makes it faster for applications that don't want to collect all the certificates but do want the AndroidManifest.xml digest. Bug: 8528639 Change-Id: Ide9498d0981188960af194a9568387337c075bcc
anifestDigestTest.java
|
58ed5d748c0b9b64845975ef5844ad313de7c3f6 |
07-Nov-2012 |
Kenny Root <kroot@google.com> |
am 768d9e1a: Merge "Correct executable bit for source files" * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
|
3a084af2e90849aaa8beb3a610189e3399c63ea0 |
07-Nov-2012 |
Kenny Root <kroot@google.com> |
Correct executable bit for source files Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
ppCacheTest.java
ackageManagerTests.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
ackageManagerTests.java
|
9dbbfcda81f251f23aded866f7f9d49d8a744c75 |
28-Sep-2012 |
Ben Gruver <bgruv@google.com> |
Merge "Pass the originating uid to the package verifier" into jb-mr1-dev
|
625239a05401bbf18b04d9874cea3f82da7c29a1 |
27-Sep-2012 |
Jeff Sharkey <jsharkey@android.com> |
Migrate more Secure settings to Global. Migrate networking, storage, battery, DropBox, and PackageManager related Secure settings to Global table. Bug: 7232014, 7231331, 7231198 Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
ackageManagerTests.java
|
37d83a3caf138e35fa1a355787d20c351f6b37a6 |
27-Sep-2012 |
Ben Gruver <bgruv@google.com> |
Pass the originating uid to the package verifier Bug: 6923241 Change-Id: I85a3e0d53b469543cb0551d3a440d2663b5d0697
erificationParamsTest.java
|
e15bdc2da4c74c8d16db8c1d067a42c4767d1003 |
17-Sep-2012 |
Kenny Root <kroot@google.com> |
Add test for failed dexopt Bug: 7010829 Change-Id: Ie0616ff2c3739ad73733857de6d04243b2be2fca
ackageManagerTests.java
|
13d428e8306d1bb1a3017045bc5d2f76edec32df |
13-Sep-2012 |
rich cannings <richc@google.com> |
Send more information to verifiers Send package name, version code and the uid of the application requesting the install to package verifiers. Bug: 7164155 Change-Id: I2464dc5d4551f60b4f38f7982495a8920c83e1cd
erificationParamsTest.java
|
ddbe50df2ca70700a46e5849347989b520d1113e |
06-Sep-2012 |
Kenny Root <kroot@google.com> |
Move native libraries to /data/app-lib Instead of unpacking libraries into /data/data/<appname>/lib, unpack them into /data/app-lib so that multi-user applications can use the same libraries. Change-Id: I636dafb5a9eea8cf5a41f1360698e7695455f385
ackageManagerTests.java
|
7e921a157d1aca97506302637d4f3843ddc2b982 |
09-Sep-2012 |
Kenny Root <kroot@google.com> |
Add more testing for native libraries Make sure that native library paths have the correct permissions and owners. Also make it easier to do a "String#startsWith" test so we can get better errors when it fails. Change the observer to have more sane semantics with a CountDownLatch instead of weird synchronization on a local variable. Change-Id: I2437e5ea886d6e6cb8b4edeab80d6053b79857d4
ackageManagerTests.java
|
25c925e6659e57f1cc8fef83be07f3917a108e3c |
09-Sep-2012 |
Kenny Root <kroot@google.com> |
Throw ALL the exceptions! (in the PackageManagerTests) Change all the test method headers to throw Exception so we don't have to try to catch anything during the tests. Catching an exception might mask an error during the tests. Also fix a lot of formatting errors that have built up over the years. This includes 3-space indentations instead of 4-space, missing spaces between braces and parens, too-long lines, wrapping when it isn't needed, etc. Change-Id: Ifccea5f0706b6f9235f37974a5f80bee76c654dd
ackageManagerTests.java
|
7de350a91301985b7f2d9f28edde5aade8495d9b |
08-Sep-2012 |
Nick Kralevich <nnk@google.com> |
installd: fix forward locking symlink installd was not creating a compatibility symlink when installing a forward locked application. Fix. Bug: 7121527 Change-Id: Ied507ab2b759d8658af563e6ac8f0dbb0d286cce
ackageManagerTests.java
|
7767eac3232ba2fb9828766813cdb481d6a97584 |
24-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Keep track of whether an app is installed for each user. This add a new per-user state for an app, indicating whether it is installed for that user. All system apps are always installed for all users (we still use disable to "uninstall" them). Now when you call into the package manager to install an app, it will only install the app for that user unless you supply a flag saying to install for all users. Only being installed for the user is just the normal install state, but all other users have marked in their state for that app that it is not installed. When you call the package manager APIs for information about apps, uninstalled apps are treated as really being not visible (somewhat more-so than disabled apps), unless you use the GET_UNINSTALLED_PACKAGES flag. If another user calls to install an app that is already installed, just not for them, then the normal install process takes place but in addition that user's installed state is toggled on. The package manager will not send PACKAGE_ADDED, PACKAGE_REMOVED, PACKAGE_REPLACED etc broadcasts to users who don't have a package installed or not being involved in a change in the install state. There are a few things that are not quite right with this -- for example if you go through a full install (with a new apk) of an app for one user who doesn't have it already installed, you will still get the PACKAGED_REPLACED messages even though this is technically the first install for your user. I'm not sure how much of an issue this is. When you call the existing API to uninstall an app, this toggles the installed state of the app for that user to be off. Only if that is the last user user that has the app uinstalled will it actually be removed from the device. Again there is a new flag you can pass in to force the app to be uninstalled for all users. Also fixed issues with cleaning external storage of apps, which was not dealing with multiple users. We now keep track of cleaning each user for each package. Change-Id: I00e66452b149defc08c5e0183fa673f532465ed5
ackageManagerTests.java
|
0c3804950236fe170ebf6cc7a5f1e3e305b8f315 |
21-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Improve multi-user app management. Introduce API to get per-user storage information, keep track of services associated with users, and various small cleanup. Change-Id: I5d4e784e7ff3cccfed627d66a090d2f464202634
ppCacheTest.java
|
706e8ba26bf0de19ad5f736516dae40c4c88c2d7 |
20-Aug-2012 |
rich cannings <richc@google.com> |
Pass URLs to package verifiers This change passes the originating URL and accompanied referrer to package verifiers, when available. Bug: 6544677 Change-Id: I9ebc71bc13f549bd88267e444816151a99bda000
erificationParamsTest.java
|
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 |
16-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Rename UserId to UserHandle. This is the start of turning this into a formal public API. Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
ppCacheTest.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
ackageManagerTests.java
|
103d53005e7a3c2735f4ac76fa9b795a7e7e39d7 |
10-May-2012 |
Kenny Root <kroot@google.com> |
Use long instead of int for file offsets Use long instead of int so we don't run into a 2GB file limit. Fix possible overflows in offset and length. Change-Id: Idb3a34f5600f9c2372b9c89256f21757049fa43b
imitedLengthInputStreamTest.java
|
ceb1b0bfaea56251796b08c07b963de7403d84eb |
24-Apr-2012 |
Anonymous Coward <nobody@android.com> |
Add encryption parameters to package installation Change-Id: Ic9f8ab9f8110f08bb3c00725cfce5b8ee7b766f3
ontainerEncryptionParamsTest.java
imitedLengthInputStreamTest.java
acAuthenticatedInputStreamTest.java
|
bf023589b3d9994f43823c7cb0450d278b084f9b |
03-May-2012 |
Kenny Root <kroot@google.com> |
Fix some problems with ASECs On devices that had external storage, permissions weren't set correctly on non-forward-locked applications. Also, moving forward locked applications didn't work since DefaultContainerService wasn't able to read it. Fixed some faulty unit tests as well. Bug: 6427212 Change-Id: I5c1f0bf5278549069c78939f0708c4c43a7d4006
ackageManagerTests.java
|
6dceb88f1c7c42c6ab43834af2c993d599895d82 |
12-Apr-2012 |
Kenny Root <kroot@google.com> |
Allow forward locked apps to be in ASECs We couldn't put forward-locked apps in ASEC containers before since we didn't have any permissioned filesystems. This adds the ability for forward-locked applications to be in ASEC containers. This means that forward locked applications will be able to be on the SD card now. This change also removes the old type of forward-locking that placed parts of apps in /data/app-private. Now all forward-locked applications will be in ASEC containers. Change-Id: I17ae0b0d65a4a965ef33c0ac2c47e990e55707ad
ackageHelperTests.java
ackageManagerTests.java
|
b7c24702c26c7824f025d603d703ddf2f19ddb30 |
15-Apr-2012 |
Kenny Root <kroot@google.com> |
Better error reporting for PackageManager tests The unit tests were eating failure reasons. Remove some assertions so the useful messages percolate up to the JUnit report. Change-Id: Ica8efe403ca3eb4f0c4f2a18939a22085f74a08f
ackageManagerTests.java
|
483f3b06ea84440a082e21b68ec2c2e54046f5a6 |
14-Mar-2012 |
Amith Yamasani <yamasani@google.com> |
Package restrictions per user Packages can be enabled/disabled per user. This requires maintaining stopped/launched states and enabled / disabled components and packages per user. Refactored pm.Settings and PackageSettingsBase to keep track of states per user. Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml Changed intent resolution to handle individual user restrictions. Bunch of IPackageManager calls now have a userId argument. Make AppWidgetService handle removals of packages. Added some tests for pm.Settings and PackageManager. Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
ppCacheTest.java
|
a0f264e1afa3c0a00a5af0db362f884b122d978d |
14-Sep-2011 |
Kenny Root <kroot@google.com> |
Be more forgiving in parsing verifier IDs RFC 4648's Base32 is made to be forgiving for users doing manual entry of the digits. For this reason we want to be able to parse lowercase letters as uppercase and number 0 (zero) as letter O along with number 1 (one) as letter I. Change-Id: Ide760aff84f97c3e06af8bf8d006f36c74033a41
erifierDeviceIdentityTest.java
|
0aaa0d931716e9f57a1d84d795fab2df75092756 |
13-Sep-2011 |
Kenny Root <kroot@google.com> |
Add verifier device identity This adds a special device identifier that is usable only for device validation. The user will be presented with this number encoded in easily-transcribable Base32 in the Developer options of Settings. Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
anifestDigestTest.java
ackageManagerTests.java
erifierDeviceIdentityTest.java
|
13c7197da8a16f77f6398708a6314c80cb01e0d1 |
08-Sep-2011 |
Ben Komalo <benkomalo@google.com> |
Revert encryption mapping for device wipes. External storage volumes that were emulated+encrypted needed to have their encryption mapping removed so that it doesn't try to encrypt the volume after formatting them. This just wires through an argument through vold, and assumes that vold will do the right thing even if there is no encryption mapping set. Bug: 5017638 Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
ackageManagerTests.java
|
bcc954d772e8cd5ef640060cbc0be50e7e4778f2 |
09-Aug-2011 |
Kenny Root <kroot@google.com> |
Manifest digest stored during package scanning This allows things that scanned an APK to pass a hash of the manifest to others that would then be able to compare it. Change-Id: I465f5edf3acab2a952c3d321c8df2247ffe012ea
anifestDigestTest.java
|
1ebd74acf9977daa42133507e970dab88e08f0ef |
04-Aug-2011 |
Kenny Root <kroot@google.com> |
Better error codes for missing files Make sure that files that don't exist aren't returning bogus 'out of space' error codes. Add some Javadoc so I can remember what each thing does in an IDE. Add copyright header to NativeLibraryHelper Bug: 3375299 Change-Id: Iac46019160921daca65b21d38897e5165063316e
ackageManagerTests.java
|
8f7aad147d790b25bae7301827e070df72690341 |
05-Apr-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
am f7a34b15: am e558a000: Merge "Avoid crash in system server when mounting container" * commit 'f7a34b15986f8c00bc6fb941a40f9acbe2c21aff': Avoid crash in system server when mounting container
|
a20c8ef471666cf8b0dca91a8739ff18af1741a5 |
09-Feb-2011 |
Fredrik Helmer <fredrik.helmer@sonyericsson.com> |
Avoid crash in system server when mounting container A race condition when mounting a container in PackageHelper may cause the system_server to crash (uncaught exception). Calling methods are prepared to handle null, so return null instead. Change-Id: I852ee21a2d847e37d81c1b900c27ddf94ef24fcb
ackageHelperTests.java
|
c39bb4aaa7be1b9b0cc9fb0b1f03d54f7609ffeb |
28-Feb-2011 |
Kenny Root <kroot@google.com> |
Switch to returnCode for IPackageDeleteObserver Before the IPackageDeleteObserver only knew whether the deletion succeeded or failed, but not the reason why. Bug: 2520191 Change-Id: I1f0d7c04f06c539660b6e17e7e133defb0f61b5b
ackageManagerTests.java
|
4c3915a0f73e51d0c70d93fe5b9ed125d5739b93 |
01-Feb-2011 |
Kenny Root <kroot@google.com> |
Do not check features in PackageManagerService PackageManagerService shouldn't check features that a package declares that it uses because this will cause problems in the future when we add more features that older phones didn't explicitly declare. We must rely on markets to know about phones and filter them for us to avoid this situation. Bug: 3409434 Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
ackageManagerTests.java
|
fa2ae1ad1ad2f6c905a9de713038338a24d9ae7c |
01-Feb-2011 |
Kenny Root <kroot@google.com> |
Do not check features in PackageManagerService DO NOT MERGE PackageManagerService shouldn't check features that a package declares that it uses because this will cause problems in the future when we add more features that older phones didn't explicitly declare. We must rely on markets to know about phones and filter them for us to avoid this situation. Bug: 3409434 Change-Id: I0d51b2de33d8110edc6824af4b5b8c901f96077f
ackageManagerTests.java
|
a1cbb94dbc9a82d4eb3a47242fe161af21803858 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Revert "Add the {get,set}PackageObbPaths calls to API" This reverts commit 5d40fe9c6846ba765072e50ed1254293cb9195e4. Change-Id: Ie41010c92fb860b19a12bcf63f6fe95ffa68da81
ackageManagerTests.java
|
34d2b41e48281d1df2c844e004740f008e699093 |
17-Jan-2011 |
Kenny Root <kroot@google.com> |
Revert "Add the {get,set}PackageObbPaths calls to API" This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb. Going with a different tactic that doesn't dump stuff on PackageManagerService. Bug: 3214719 Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4
ackageManagerTests.java
|
5d40fe9c6846ba765072e50ed1254293cb9195e4 |
14-Jan-2011 |
Kenny Root <kroot@google.com> |
Add the {get,set}PackageObbPaths calls to API Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: I8627b5f674a795d5780eb5c08911419110670a41
ackageManagerTests.java
|
6c46760b723cf010a456f71b5d3013bff60f33d8 |
12-Jan-2011 |
Kenny Root <kroot@google.com> |
Make sure AppCacheTest casts to long AppCacheTest was multiplying two integers that were too large for devices that had more free space than 32-bits could represent. Hopefully no one releases devices with 1TB soon. The testAppCacheClear test doesn't work currently because it has an "imax" attribute that doesn't allow the disk to be filled up entirely. It only writes a couple hundred MB before it gives up. Bug: 3216419 Change-Id: Ie371f42211bab65f2c767b36d9837ce76922501e
ppCacheTest.java
|
3c6768958433a7a1f1724ab97481b2c8affcfba1 |
12-Jan-2011 |
Kenny Root <kroot@google.com> |
Skip SD card tests on devices without SD cards Tests were giving false failures when they should instead be skipped. Forcing an install to an SD card on a device without one shouldn't count as a failure. It's expected behavior. Bug: 3216422 Change-Id: Ia523861d1331e74c76b434f7ba73b642d474a9cc
ackageManagerTests.java
|
6c4d904851772313930f800ac7c323cf90c709bb |
19-Nov-2010 |
Kenny Root <kroot@google.com> |
Add the {get,set}PackageObbPaths calls to API Add getPackageObbPaths() and setPackageObbPaths() to the public API. Bug: 3214719 Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
ackageManagerTests.java
|
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
ackageManagerTests.java
|
6a6b007c77e5cab7ee435506a4f65824f52028b6 |
08-Oct-2010 |
Kenny Root <kroot@google.com> |
Symlink application lib directory when on SD card This will help legacy games that use dlopen() to directly access the /data/data/<app>/lib directory before the ApplicationInfo.nativeLibraryDir was part of the API. Change-Id: Ie9f3e7239b6334708b5d086ffafe66a507f6d9da
ackageManagerTests.java
|
831baa2e2566bf1d243c06918672abd5ff786105 |
05-Oct-2010 |
Kenny Root <kroot@google.com> |
Remove lingering system app native libs in /data If a system app had a lingering native library in /data/data/<app>/lib, it would prefer that over the one in /system/lib due to recent changed in the Dalvik JNI class loading code. To "fix" that we need to check if there are any native libraries in a /data/data/<app>/lib directory for any non-updated system apps and delete them during scanning. Change-Id: If3a22e41a8531e9e5a44ba001dcea46253d47d45
ackageManagerTests.java
|
94e0acbf2f2b74a89c4ab0c81a4c1330964bde5f |
22-Sep-2010 |
Kenny Root <kroot@google.com> |
Better errors in PackageManagerTests PackageManagerTests was catching assertion errors and just spitting out a generic "Hey, there was an error!" message. This eliminates that and adds some expected outcomes in the assertions. Change-Id: I27baa3c57c85b0cae4ea76aaf1e2a9b61b2c32b7
ackageManagerTests.java
|
0ac83f5a7c05ff5b7e213e5953590bfbeb4efb43 |
31-Aug-2010 |
Kenny Root <kroot@google.com> |
Native libraries on SD * Add native library tests during package move * Fix omission that let PackageSettings and ApplicationInfo get out of sync. Change-Id: Ic4958f971cb2c9cfd270522fdc120b4031c1124a
ackageManagerTests.java
|
85387d7ba36e56b291cbde87acb5a5b2200fe01c |
26-Aug-2010 |
Kenny Root <kroot@google.com> |
Allow native shared libraries in ASEC containers This change moves the native library handling earlier in the package installation process so that it may be inserted into ASEC containers before they are finalized in the DefaultContainerService. Note that native libraries on SD card requires that vold mount ASEC containers without the "noexec" flag on the mount point. Change-Id: Ib34b1886bf6f94b99bb7b3781db6e9b5a58807ba
ackageManagerTests.java
|
d7b421b4de68d803252a5d9b3cb0106731217ad7 |
05-Aug-2010 |
Kenny Root <kroot@google.com> |
Fix up PackageManager tests PackageManagerTests was trying to mount and unmount the media without waiting for the correct state to arrive. It was proceeding with any state transition. Some tests had their own volume mounting and unmounting code that was flawed, so switch it to the more robust mountMedia() and unmountMedia() implementations. Change-Id: If464927bb09dd15cb040c6cce195a6ad8452de95
ackageManagerTests.java
|
f76c56bcaa9df1d1afa711177f813dc63f399795 |
27-Jul-2010 |
Brett Chabot <brettchabot@android.com> |
Frameworks core tests size cleanup. Adjust test sizes to better align with the test's runtime. Also do some import cleanup and migrate to non-deprecated classes. Change-Id: Ib2b190ddbe84f9ea8f5d6d3604bd4855d00df7a9
ppCacheTest.java
omponentTest.java
ackageManagerTests.java
|
fb7bacf6ba9504f3a863dc954b6147985fc74778 |
18-May-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Uncomment a test that was marked as STOPSHIP Add MediumTest tag Change-Id: I0699d168d7ec70c076f4713e0e405c0779a290c6
ackageManagerTests.java
|
9a212adcffbc4b32d51f512889b33ba584647aa9 |
18-May-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Fix 2641875 Initialize the cache path only if the container exists. This did exist before but was somehow removed. Fix a known test failure as well. Change-Id: I63219369b0e7abca4919fbde2a04035a0fea9e35
ackageManagerTests.java
|
1ace5bc070b7271a3f5835b13e326875785f718c |
13-May-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Fix 2672155 Check the code path when enabling disabling packages. Add unit test Change-Id: I0f0f482a3735234eab3f63ba1f6462574b70144e
ackageManagerTests.java
|
edb979a331ba3cdb12e9b7ce3944611cff1b51aa |
22-Apr-2010 |
Neal Nguyen <tommyn@google.com> |
Re-enabling unit tests for PackageManager/Apps on SD. Change-Id: I305d2e6d96418ab5b2df0ee7a31261180676204f
ackageManagerTests.java
|
315a5fb91dbafe6073435a13d937cee9d26877f6 |
13-Apr-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Dont fall back to installing on sdcard when internal storage is filled up when the install location is set to internal only. Similary if install location is set to external only(via adb), dont fall back to installing on internal storage if sdcard is filled up. If nothing is specified ie install location is set to let system decide, we just check on internal storage. Fix tests Change-Id: I7400ccc131782d9c45284bd9ebd0dee43a3b412b
ackageManagerTests.java
|
40e472521a544f26cb6956995788f7c36fff1404 |
08-Apr-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Fix 2579461 Move install location values to secure settings. Diable attribute for UI. Set default value to auto. Add command line interface to set install location via pm. Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
ackageManagerTests.java
|
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
ackageManagerTests.java
|
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
ppCacheTest.java
omponentTest.java
ackageManagerTests.java
|
ae18171acd3c70fc6d27fc6bbe85828e0f928fad |
30-Mar-2010 |
Suchi Amalapurapu <asuchitra@google.com> |
Change certificate policy. The certificates of the package and its shared user certificates are initialized only when installing the package. When scanning the packages, the certificates are collected from the apk if the time stamp changes. If not the one's from PackageSetting(read from packages.xml) are reused. Removed mergeSignatures and updateSignatures since we don't support this any more. Also fix some bugs related to reinstalling failed upgrades. Some unit tests. Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb
ackageManagerTests.java
|
a3de74555120cc4dc205a3f93ef44c843b8d64a8 |
25-Mar-2010 |
Brett Chabot <brettchabot@android.com> |
Move PackageManagerTests and AsecTests. Remove PackageManagerTests test's from continuous due to flakiness. merged from abandoned master. Change-Id: I0a542df9df572c37bd1aa987cdc9fb2f95001a7c
ackageManagerTests.java
|