summaryrefslogtreecommitdiff
path: root/deploy.sh
AgeCommit message (Collapse)Author
2021-09-16Add MODULE_BUILD_FROM_SOURCE=true into deploy.sh Ivan Chiang
Set MODULE_BUILD_FROM_SOURCE=true to ensure we can build the MP from source. Test: deploy.sh. Run with the new version Fix: 200112313 Change-Id: Iec2d37410acecb2a96f86b1e255eab9ae411e658
2021-04-19Update the deploy.sh Ivan Chiang
When APEX compression is enabled, it will mount the decompressed apex that is locate on data/apex. Remove the existed one to update the new apex. Test: deploy.sh Bug: 185734139 Change-Id: Idb95bcdeded4aa189b2e6484392b4760439d7ba5
2020-04-23Open all files with O_NOFOLLOW. Jeff Sharkey
SD cards don't support symlinks, so we have no reason to try following them if somehow an evil caller is able to sneak them into the database. Also fix deploy.sh to work after recent apexd changes. Bug: 124329382 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: Idb1f3ee1db90913a97a50515003f211519037066
2020-01-08deploy.sh: stop execution on error. Narayan Kamath
Test: packages/providers/MediaProvider.deploy.sh Change-Id: I0e87d30a1a6ffbdf7fa387c79ba19f15abb98fd2
2019-12-17Methods to streamline bulk media operations. Jeff Sharkey
The new storage model being built in Android Q and R means that most apps will now be limited to read access to most media items on the device. This change adds a way for developers to request a user to grant narrow access to specific media items. This supports operations like requesting write access, trash/untrash, favorite/unfavorite, and outright delete. Once the user confirms the action in the dialog, the action is carried out with no further action needed by the caller. We transport the set of Uris through a ClipData to pave the way for shifting to ParceledListSlice in a future release. Since there's many permutations of strings needed, generate them with a simple Python script to ensure they stay consistent. Bug: 141911164 Test: atest --test-mapping packages/apps/MediaProvider Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ExternalStorageHostTest#testMediaEscalation Change-Id: I70cda4759b9f0bfdfe397f3ee4dabf42d5bff7d0
2019-12-10Remount devices before deploying. Jeff Sharkey
Bug: 144247087 Test: none Change-Id: I594b303d2d8c8edfbd255f6615b7f40582280aaf
2019-12-07Expand testing of Mainline data migration. Jeff Sharkey
Add tests for audio, video, images, pending, trashed, favorites, and ownership, to verify that they're all migrated as we expect. Since development iteration with APEX can be tricky and slow, add a new "deploy.sh" shell script to avoid the need for a reboot. Expand logging shell script to catch all possible package names. Fix transaction issue with migration logic; we're already in a transaction from SQLiteOpenHelper, and we can't nest transactions, so move to using SAVEPOINT and ROLLBACK instead. Fix bugs in both migration and scanning to ensure that we include all files, including those which are pending or trashed. Fix obscure bug in ID_NOT_PARENT_CLAUSE which would call all media deletions to fail when there was a "NULL" parent anywhere in the database. Bug: 144247087 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: If4e0ec70ecf333d444e2195fe3c005aa2c9c5feb