1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 * Copyright (C) 2019 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 --> 17 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 package="android.perfetto.cts.app.debuggable"> 20 21 <!-- vmSafeMode="true" disables the JIT. 22 23 HeapprofdJavaCtsTest cover Java heap dumps. 24 25 Java heap dumps are not 100% reliable because they fork the app process, 26 which is multithreaded. If another thread is holding a lock, the forked 27 process can get stuck. This is a known limitation of java heap dumps. 28 29 debuggable apps are not AOT-compiled, so there's a high chance that the 30 JIT is in use. The JIT runs on another thread and can hold locks. To 31 reduce the chance of running into the fork deadlock described earlier, 32 we simply disable the JIT for debuggable apps in tests. 33 --> 34 <application android:debuggable="true" android:vmSafeMode="true"> 35 <activity 36 android:name="android.perfetto.cts.app.MainActivity" 37 android:exported="true"> 38 </activity> 39 <activity-alias 40 android:name="android.perfetto.cts.app.debuggable.MainActivity" 41 android:targetActivity="android.perfetto.cts.app.MainActivity" 42 android:exported="true"> 43 <intent-filter> 44 <action android:name="android.intent.action.MAIN" /> 45 <category android:name="android.intent.category.LAUNCHER" /> 46 </intent-filter> 47 </activity-alias> 48 <activity 49 android:name="android.perfetto.cts.app.BusyWaitActivity" 50 android:exported="true"> 51 </activity> 52 <activity-alias 53 android:name="android.perfetto.cts.app.debuggable.BusyWaitActivity" 54 android:targetActivity="android.perfetto.cts.app.BusyWaitActivity" 55 android:exported="true"> 56 <intent-filter> 57 <action android:name="android.intent.action.MAIN" /> 58 <category android:name="android.intent.category.LAUNCHER" /> 59 </intent-filter> 60 </activity-alias> 61 <activity 62 android:name="android.perfetto.cts.app.JavaAllocActivity" 63 android:exported="true"> 64 </activity> 65 <activity-alias 66 android:name="android.perfetto.cts.app.debuggable.JavaAllocActivity" 67 android:targetActivity="android.perfetto.cts.app.JavaAllocActivity" 68 android:exported="true"> 69 <intent-filter> 70 <action android:name="android.intent.action.MAIN" /> 71 <category android:name="android.intent.category.LAUNCHER" /> 72 </intent-filter> 73 </activity-alias> 74 <activity 75 android:name="android.perfetto.cts.app.JavaOomActivity" 76 android:exported="true"> 77 </activity> 78 <activity-alias 79 android:name="android.perfetto.cts.app.debuggable.JavaOomActivity" 80 android:targetActivity="android.perfetto.cts.app.JavaOomActivity" 81 android:exported="true"> 82 <intent-filter> 83 <action android:name="android.intent.action.MAIN" /> 84 <category android:name="android.intent.category.LAUNCHER" /> 85 </intent-filter> 86 </activity-alias> 87 <activity 88 android:name="android.perfetto.cts.app.NoopActivity" 89 android:exported="true"> 90 </activity> 91 <activity-alias 92 android:name="android.perfetto.cts.app.debuggable.NoopActivity" 93 android:targetActivity="android.perfetto.cts.app.NoopActivity" 94 android:exported="true"> 95 <intent-filter> 96 <action android:name="android.intent.action.MAIN" /> 97 <category android:name="android.intent.category.LAUNCHER" /> 98 </intent-filter> 99 </activity-alias> 100 <provider 101 android:name="android.perfetto.cts.app.FileContentProvider" 102 android:authorities="android.perfetto.cts.app.debuggable" 103 android:exported="true" 104 android:grantUriPermissions="true" /> 105 </application> 106</manifest> 107