Fix AttributionTest for user builds
On user final builds, users can only opt-in to changes (never opt-out)
on debuggable apps. User-debug/eng builds always allowing overrides,
which is why this failure slipped through initially.
This change reverses the assumptions in AttributionTest by
explicitely setting the target SDK version of the AppToBlame app, and
making it debuggable.
This change also sets the force_non_debuggable_final_build_for_compat
global setting at test time. This setting ensures that the compat
framework will be less permissive on userdebug/eng builds with respect
to allowing overrides, and thus catch similar issues quicker in the
future.
Test: atest CtsAppOpsTestCases
Bug: 161714588
Change-Id: I9012d6885dbddf2601e34bfb9168d60079ac0e1f
4 files changed