Debian Codegraph @

build-system/manifest-merger/src/test/java/com/android/manifmerger/data2/78_removeAll.xml

raw
1 #
2 # Tests for removeAll node operation type. all permission nodes
3 # should be deleted.
4 #
5
6 @fails
7
8 @main
9
10 <?xml version="1.0" encoding="utf-8"?>
11 <!--
12 ~ Copyright (C) 2014 The Android Open Source Project
13 ~
14 ~ Licensed under the Apache License, Version 2.0 (the "License");
15 ~ you may not use this file except in compliance with the License.
16 ~ You may obtain a copy of the License at
17 ~
18 ~ http://www.apache.org/licenses/LICENSE-2.0
19 ~
20 ~ Unless required by applicable law or agreed to in writing, software
21 ~ distributed under the License is distributed on an "AS IS" BASIS,
22 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 ~ See the License for the specific language governing permissions and
24 ~ limitations under the License.
25 -->
26
27 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
28 xmlns:tools="http://schemas.android.com/tools"
29 package="com.example.app1"
30 android:versionCode="100"
31 android:versionName="1.0.0">
32
33 <application
34 android:name="TheApp"
35 android:backupAgent=".MyBackupAgent" >
36 <permission tools:node="removeAll" />
37 </application>
38
39 </manifest>
40
41
42 @lib1
43
44 <manifest
45 xmlns:android="http://schemas.android.com/apk/res/android"
46 package="com.example.app1">
47
48 <application android:name="TheApp" >
49 <permission
50 android:description="Insert boring description here"
51 android:icon="@drawable/robot"
52 android:label="Danger, Will Robinson!"
53 android:name="com.example.DangerWillRobinson"
54 android:protectionLevel="dangerous" />
55
56 <permission
57 android:name="com.example.WhatWereYouThinking"
58 android:protectionLevel="signatureOrSystem" />
59 </application>
60
61 </manifest>
62
63 @lib2
64
65 <manifest
66 xmlns:android="http://schemas.android.com/apk/res/android"
67 package="com.example.app1">
68
69 <application android:name="TheApp" >
70 <permission
71 android:name="com.example.AnotherPermission"
72 android:protectionLevel="signatureOrSystem" />
73 </application>
74
75 </manifest>
76
77 @result
78
79 <?xml version="1.0" encoding="utf-8"?>
80 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
81 package="com.example.app1"
82 android:versionCode="100"
83 android:versionName="1.0.0">
84
85 <application
86 android:name="TheApp"
87 android:backupAgent=".MyBackupAgent" >
88 </application>
89
90 </manifest>
91
92
93 @errors