ADFA-7138: Rewrite opted-in apps to requery and add the SQLite debugger to debug builds #2262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
davidschachterADFA
wants to merge
110
commits into
sqlite-debugger/ADFA-7135
Choose a base branch
from
sqlite-debugger/ADFA-7138
base: sqlite-debugger/ADFA-7135
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
110 commits
Select commit
Hold shift + click to select a range
e6b2e26
ADFA-7138 Add sqlite-rewrite-runtime, the helpers the requery rewrite…
davidschachterADFA e392fe9
ADFA-7138 Rewrite android.database.sqlite to requery in the Gradle pl…
davidschachterADFA 0c28568
ADFA-7138 Code on the Go injects the rewrite runtime AAR and checks t…
davidschachterADFA b65e593
ADFA-7138 Add the SQLite debugger AAR to debuggable variants when opt…
davidschachterADFA 2a5cb6d
ADFA-7138 Apply the rewrite and the debugger from one opt-in property
davidschachterADFA 9dc56f0
ADFA-7138 Do not apply or provision Quick Build for a project that op…
davidschachterADFA dd570d4
ADFA-7138 Add a script that checks an APK carries no SQLite debugger
davidschachterADFA 4a9bc95
ADFA-7138 Docs: describe the SQLite rewrite and the Gradle wiring
davidschachterADFA 2c78e0a
ADFA-7138 Quick Build opt-in check reads the sources Gradle's findPro…
davidschachterADFA 4e4718f
ADFA-7138 Fail the build when a variant's runtime classpath cannot be…
davidschachterADFA 3605133
ADFA-7138: Merge ADFA-7135 (with #2244's sqlite-js 1.4.3) up the stack
davidschachterADFA 627aa94
ADFA-7138: Say how to turn the SQLite debugger on in an app
davidschachterADFA 2394a80
ADFA-7138: Say how to build when the rewrite fails on a library class
davidschachterADFA 810fe1c
ADFA-7138: Merge ADFA-7135 (README corrections) up the stack
davidschachterADFA efc07f7
ADFA-7138: Stub the module directory in the Quick Build provisioner f…
davidschachterADFA 1407eae
ADFA-7138: Check a module's SQLite debugger opt-in after the sync too
davidschachterADFA 7a22763
ADFA-7138: Require androidx.core in the rewrite's classpath check
davidschachterADFA 1573878
ADFA-7138: Make every missing-member entry name its descriptors
davidschachterADFA 9eb00a2
ADFA-7138: Merge ADFA-7135 (F18 one-statement check, F19 tool deadlin…
davidschachterADFA bc4889b
ADFA-7138: Merge ADFA-7135 (F37 backstop rollback, F38 get_schema tru…
davidschachterADFA 57f7b08
ADFA-7138: Merge ADFA-7135 (F51 app functions, F52 get_schema limits)…
davidschachterADFA acab926
ADFA-7138: Quick Build status line says "off", not "setup failed", fo…
davidschachterADFA 19c80cd
ADFA-7138: Merge ADFA-7135 (F108 integrity_check app functions, F109 …
davidschachterADFA 0550b88
ADFA-7138 End a live Quick Build session in the refused state when th…
davidschachterADFA babc5fe
ADFA-7138 Drop the unused sqliteDebuggerMessage and share the AAR-pro…
davidschachterADFA b93bf8e
ADFA-7138 Document that the SQLite debugger opt-in is decided from al…
davidschachterADFA 541a706
ADFA-7138 Watch every gradle.properties the SQLite debugger opt-in reads
davidschachterADFA 5ebd1fc
ADFA-7138 Name the Quick Build refusal that replaced sqliteDebuggerMe…
davidschachterADFA b843c60
ADFA-7138 Describe the opt-in rule: the first file that defines it de…
davidschachterADFA 875ec57
Merge sqlite-debugger/ADFA-7135 into sqlite-debugger/ADFA-7138
davidschachterADFA 0e61956
ADFA-7138: Merge ADFA-7135 (F149 consumer rules, F151 recheck path, F…
davidschachterADFA 90266f2
ADFA-7138 Narrow the watchedFiles KDoc to the modules the scan finds
davidschachterADFA a569ee8
ADFA-7138: Merge ADFA-7135 (F168 batch bound KDoc, F169 README batch …
davidschachterADFA 98c2eb7
ADFA-7138: Merge ADFA-7135 (F172 first-row exception to the 4 MiB cap…
davidschachterADFA ebe4eda
ADFA-7138: Merge ADFA-7135 (F181 half-deadline KDoc, and stage with #…
davidschachterADFA 27e004b
ADFA-7138 Run the release-APK guard on every push
davidschachterADFA 298071c
ADFA-7138 Document that COPY_FRAMES cannot weaken another instrumenta…
davidschachterADFA 61104a7
ADFA-7138 Warn about strings that name a class the rewrite moves to r…
davidschachterADFA 9ca47ff
ADFA-7138 Run the release-APK guard without the Maven signing key
davidschachterADFA 22d390f
ADFA-7138 Do not warn about a string that only contains a renamed cla…
davidschachterADFA 6fd1fdc
ADFA-7138 Docs: say SqliteReleaseApkTest skips without its AAR paths …
davidschachterADFA 9fedd91
ADFA-7138 Fail the build for a SQLiteQueryBuilder override of query w…
davidschachterADFA 7e38a3f
ADFA-7138 Fail a call a rule could match when its owner cannot be res…
davidschachterADFA 3bdeb36
ADFA-7138 Fail the build for an SQLite cursor used as an Android curs…
davidschachterADFA 183a69f
ADFA-7138 Check the SQLite debugger opt-in again after the model wait…
davidschachterADFA 1648b5a
ADFA-7138 Do not refuse Quick Build from the root opt-in before the m…
davidschachterADFA 6259246
ADFA-7138 Replace the SQLite AARs in one rename when app init extract…
davidschachterADFA 72e44e8
ADFA-7138 Accept an instanceof guard only when it holds on every path…
davidschachterADFA abf7002
ADFA-7138 Cancel every query that shares an Android CancellationSignal
davidschachterADFA 68bf024
ADFA-7138 Docs: say a cancelled query throws androidx.core's Operatio…
davidschachterADFA ade142c
ADFA-7138 Look up the SQLite rewrite tests' jars in the active Gradle…
davidschachterADFA bf86cdd
ADFA-7138 Do not inherit constructors when the tests resolve a reference
davidschachterADFA 0cab2d4
ADFA-7138 Bound the release-APK check script by its timeout before re…
davidschachterADFA 7572ece
ADFA-7138 Check this run's helper in the transform test, not any cach…
davidschachterADFA 5a2fd6e
ADFA-7138: Tapping the "Quick Build: off" status line shows the refus…
davidschachterADFA 5ad480d
ADFA-7138 Delete a failed SQLite AAR copy's temp file, and sync it be…
davidschachterADFA 586a9b9
ADFA-7138 Fail the build for an SQLite cursor stored into an Android …
davidschachterADFA db7781c
ADFA-7138 Docs: list getWindow() on an unresolvable SQLiteCursor subc…
davidschachterADFA 229feb0
ADFA-7138 Say to retry when an SQLite AAR is missing right after Code…
davidschachterADFA f556c0c
ADFA-7138 Test that the SQLite rewrite tests find requery in a non-de…
davidschachterADFA 85c3068
ADFA-7138: Warn, not fail, for an unresolvable owner unless the membe…
claude d392bf6
ADFA-7138 Fix the rewriter tests' comments about getUniqueId after th…
davidschachterADFA 56e26ff
ADFA-7138 Docs: say which rule-table matches on an unresolvable class…
davidschachterADFA 36bdf96
ADFA-7138 Pin the SQLite descriptor tokens and which unresolved-owner…
davidschachterADFA fbd4451
ADFA-7138 Check in a real AGP build that the unresolved-owner warning…
davidschachterADFA 6e16bdb
ADFA-7138 Hold CancelForwarders weakly so a dropped signal's forwarde…
davidschachterADFA b0ceebe
ADFA-7138 Warn, not fail, for an unresolvable owner's setWindow(Curso…
davidschachterADFA d362637
ADFA-7138 Fail the build for an SQLite cursor stored into an Android …
davidschachterADFA 30e7820
ADFA-7138 Keep an Android cursor array's tag across a merge with null…
davidschachterADFA 9f84175
ADFA-7138 Log any exception from an SQLite AAR extraction, so the res…
davidschachterADFA f6c8bf0
ADFA-7138 Warn, not fail, for an SQLite cursor stored into an Android…
davidschachterADFA dbe5411
ADFA-7138 Treat a row loaded from a null array as null, so a merge ke…
davidschachterADFA 95f1c49
ADFA-7138 Say an SQLiteCursor[] stored into an array of Android curso…
davidschachterADFA a91559d
ADFA-7138 Merge sqlite-debugger/ADFA-7135 into sqlite-debugger/ADFA-7…
davidschachterADFA e723fd8
ADFA-7138 Flash why Quick Build is greyed out when its status line is…
davidschachterADFA 542307f
ADFA-7138 Count a row of an SQLiteCursor[] as an SQLite cursor in the…
davidschachterADFA e7d0da9
ADFA-7138 Test and document that a row of an SQLiteCursor[] is an SQL…
davidschachterADFA 6858c9f
ADFA-7138 Follow a row of an SQLiteCursor[][] as an SQLiteCursor[] fo…
davidschachterADFA b68446b
ADFA-7138 Call onQuickBuildStatusLineTapped directly in the greyed-ou…
davidschachterADFA 2ae43d2
ADFA-7138 Keep the cursor-array tag when a merge mixes SQLiteCursor[]…
davidschachterADFA f77079c
ADFA-7138 Test a 3D SQLite cursor array, and name the 1D merge test a…
davidschachterADFA b9e037f
ADFA-7138 Test that an SQLiteCursor[] merged with an Object[] or a 2D…
davidschachterADFA 7b270b4
ADFA-7138 Test that merge keeps the cursor-array tag only for the sam…
davidschachterADFA b2d7bbe
ADFA-7138 Name the opt-out that works with property precedence
davidschachterADFA ece7a67
ADFA-7138 Find COLLATE UNICODE through comments and quotes, and not i…
davidschachterADFA 6f0ee16
ADFA-7138 Reject a driver that declares both query overloads
davidschachterADFA cb95693
ADFA-7138 Check the missing-member descriptors by rebuilding them
davidschachterADFA e2690c8
ADFA-7138 Throw the NullPointerException for a null Context in delete…
davidschachterADFA d1f8094
ADFA-7138 Keep the status-line tap with the text it was bound for
davidschachterADFA bd26c30
ADFA-7138 Docs: name four rare false positives of the rewrite checks
davidschachterADFA 918e5f7
ADFA-7138 Test the status-line tap wiring in EditorBottomSheet
davidschachterADFA 5407497
ADFA-7138 README: name the opt-out that works with property precedence
davidschachterADFA f4cf4c3
ADFA-7138 COLLATE rule: a quoted name must end at its closing character
davidschachterADFA eec3d54
ADFA-7138 Docs: correct the cast and subclass false-positive sentences
davidschachterADFA c284f2c
ADFA-7138 Status-line tap: bind again when the refusal text is writte…
davidschachterADFA 4bb66f7
ADFA-7138 Merge sqlite-debugger/ADFA-7135 into sqlite-debugger/ADFA-7…
davidschachterADFA 9ff51c2
ADFA-7138 Docs: a cast to a non-SQLite cursor type can be a false pos…
davidschachterADFA f532ce6
ADFA-7138 Status-line tap test: place the sheet in a CoordinatorLayou…
davidschachterADFA 3dc0d01
ADFA-7138 Merge sqlite-debugger/ADFA-7135 into sqlite-debugger/ADFA-7…
davidschachterADFA 3412fe0
ADFA-7138 Quick Build tap: no "Replace the installed app?" when the S…
davidschachterADFA 6926346
ADFA-7138 Quick Build SQLite debugger opt-in: decide it for the modul…
davidschachterADFA 33c9bac
ADFA-7138 Reject OpenParams in array instructions (MULTIANEWARRAY, ar…
davidschachterADFA ae88e4f
ADFA-7138 COLLATE rule: a quoted or bracketed collation name needs no…
davidschachterADFA 650d1fc
ADFA-7138 COLLATE rule: a block comment ends at its first star-slash
davidschachterADFA 1651a0c
ADFA-7138 COLLATE LOCALIZED warning: say what happens to existing ind…
davidschachterADFA 0a7a0b2
ADFA-7138 Runtime openOrCreateDatabase: throw for world-access modes …
davidschachterADFA bb6194e
ADFA-7138 sqlite-rewrite.md: an inherited query(CursorFactory, Object…
davidschachterADFA 87f3017
ADFA-7138 SQLite debugger opt-out wording: name parent projects in th…
davidschachterADFA 4ff13a5
ADFA-7138 COLLATE check: take each comment and whitespace run whole, …
davidschachterADFA 7570c49
ADFA-7138 Merge sqlite-debugger/ADFA-7135 into sqlite-debugger/ADFA-7…
davidschachterADFA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MINOR: the replace question is skipped on the tap's own refusal check, but the provisioner decides again after it waits for the model. If the two disagree, the tap installs over the Standard Run app without asking.
Not reproduced (PLAUSIBLE): the tap reads a stale model whose first app module opts in (
refused = true, no question). A sync then publishes a model whose Quick Build module does not opt in, or the line is removed before provisioning.sqliteDebuggerRefusalafter the wait returns null, and the proxy app replaces the installed app under the same applicationId with no "Replace the installed app?" (ADFA-4128).Have the provisioner ask for the confirmation itself when the tap skipped it and its own check says "not refused", or pass the tap's decision through so the provisioner refuses instead of installing.