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

Commit e15bdc2d authored by Kenny Root's avatar Kenny Root
Browse files

Add test for failed dexopt

Bug: 7010829
Change-Id: Ie0616ff2c3739ad73733857de6d04243b2be2fca
parent 306df863
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := install_bad_dex

LOCAL_JAVA_RESOURCE_FILES := $(LOCAL_PATH)/classes.dex

include $(FrameworkCoreTests_BUILD_PACKAGE)
+24 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.frameworks.coretests.install_loc">

    <application android:hasCode="true">
        <activity
            android:name="com.android.frameworks.coretests.TestActivity">
        </activity>
    </application>
</manifest>
+1 −0
Original line number Original line Diff line number Diff line
This is a bad dex
+6 −0
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!-- Just need this dummy file to have something to build. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
  <string name="dummy">dummy</string>
</resources>
+24 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2011 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.android.frameworks.coretests;

import android.app.Activity;

public class TestActivity extends Activity {

}
Loading