Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bc1ea1c authored by Pawan Wagh's avatar Pawan Wagh
Browse files

Install debuggable app via session

When app is installed by session, we should
not see the warning. Test which installs an app
via session is using the non-debuggable app which
causes to return before actually checking the initiating
source.

Test: m PageSizeCompatWarningsTest && atest -c PageSizeCompatWarningsTest
Flag: EXEMPT test_only
Bug: 443089413
Change-Id: I1ad345f709e4743faa63d6934158b664147c0400
parent 33050ed1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@

    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
        <option name="cleanup" value="true" />
        <option name="push" value="app_with_4kb_elf_no_override.apk->/data/local/tmp/pagesizewarnings/app_with_4kb_elf_no_override.apk" />
        <option name="push" value="app_with_4kb_elf_no_override_debuggable.apk->/data/local/tmp/pagesizewarnings/app_with_4kb_elf_no_override_debuggable.apk" />
    </target_preparer>

    <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public class AppWarningsHostTest extends BaseHostJUnit4Test {

    @Test
    @AppModeFull
    public void testWarnings_installedBySession()
    public void testNoWarnings_installedBySession()
            throws FileNotFoundException, DeviceNotAvailableException, TargetSetupError {
        String appPackage = "android.content.pm.tests";
        String testName = "AppWarningsTest";
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ import java.util.concurrent.TimeUnit;
public class AppWarningsTest {

    private static final String TEST_APK_PATH =
            "/data/local/tmp/pagesizewarnings/app_with_4kb_elf_no_override.apk";
            "/data/local/tmp/pagesizewarnings/app_with_4kb_elf_no_override_debuggable.apk";
    private static final String PACKAGE_INSTALLED_ACTION =
            "com.example.android.testing.PACKAGE_INSTALLED";
    private static final String WARNING_TEXT = "Android App Compatibility";