1# Boot jar package name allowed list.
2# Each line is interpreted as a regular expression.
3
4###################################################
5# core-libart.jar & core-oj.jar
6java\.awt\.font
7java\.beans
8java\.io
9java\.lang
10java\.lang\.annotation
11java\.lang\.invoke
12java\.lang\.ref
13java\.lang\.reflect
14java\.math
15java\.net
16java\.nio
17java\.nio\.file
18java\.nio\.file\.spi
19java\.nio\.file\.attribute
20java\.nio\.channels
21java\.nio\.channels\.spi
22java\.nio\.charset
23java\.nio\.charset\.spi
24java\.security
25java\.security\.acl
26java\.security\.cert
27java\.security\.interfaces
28java\.security\.spec
29java\.sql
30java\.text
31java\.text\.spi
32java\.time
33java\.time\.chrono
34java\.time\.format
35java\.time\.temporal
36java\.time\.zone
37java\.util
38java\.util\.concurrent
39java\.util\.concurrent\.atomic
40java\.util\.concurrent\.locks
41java\.util\.function
42java\.util\.jar
43java\.util\.logging
44java\.util\.prefs
45java\.util\.regex
46java\.util\.spi
47java\.util\.stream
48java\.util\.zip
49# TODO: Remove javax.annotation.processing if possible, see http://b/132338110:
50javax\.annotation\.processing
51javax\.crypto
52javax\.crypto\.interfaces
53javax\.crypto\.spec
54javax\.net
55javax\.net\.ssl
56javax\.security\.auth
57javax\.security\.auth\.callback
58javax\.security\.auth\.login
59javax\.security\.auth\.x500
60javax\.security\.cert
61javax\.sql
62javax\.xml
63javax\.xml\.datatype
64javax\.xml\.namespace
65javax\.xml\.parsers
66javax\.xml\.transform
67javax\.xml\.transform\.dom
68javax\.xml\.transform\.sax
69javax\.xml\.transform\.stream
70javax\.xml\.validation
71javax\.xml\.xpath
72jdk\.internal\.util
73jdk\.internal\.vm\.annotation
74jdk\.net
75org\.w3c\.dom
76org\.w3c\.dom\.ls
77org\.w3c\.dom\.traversal
78# OpenJdk internal implementation.
79sun\.invoke\.util
80sun\.invoke\.empty
81sun\.misc
82sun\.util.*
83sun\.text.*
84sun\.security.*
85sun\.reflect.*
86sun\.nio.*
87sun\.net.*
88com\.sun\..*
89
90# TODO: Move these internal org.apache.harmony classes to libcore.*
91org\.apache\.harmony\.crypto\.internal
92org\.apache\.harmony\.dalvik
93org\.apache\.harmony\.dalvik\.ddmc
94org\.apache\.harmony\.luni\.internal\.util
95org\.apache\.harmony\.security
96org\.apache\.harmony\.security\.asn1
97org\.apache\.harmony\.security\.fortress
98org\.apache\.harmony\.security\.pkcs10
99org\.apache\.harmony\.security\.pkcs7
100org\.apache\.harmony\.security\.pkcs8
101org\.apache\.harmony\.security\.provider\.crypto
102org\.apache\.harmony\.security\.utils
103org\.apache\.harmony\.security\.x501
104org\.apache\.harmony\.security\.x509
105org\.apache\.harmony\.security\.x509\.tsp
106org\.apache\.harmony\.xml
107org\.apache\.harmony\.xml\.dom
108org\.apache\.harmony\.xml\.parsers
109
110org\.json
111org\.xmlpull\.v1
112org\.xmlpull\.v1\.sax2
113
114# TODO:  jarjar org.kxml2.io to com.android org\.kxml2\.io
115org\.kxml2\.io
116org\.xml
117org\.xml\.sax
118org\.xml\.sax\.ext
119org\.xml\.sax\.helpers
120
121dalvik\..*
122libcore\..*
123android\..*
124com\.android\..*
125###################################################
126# android.test.base.jar
127junit\.extensions
128junit\.framework
129android\.test
130android\.test\.suitebuilder\.annotation
131
132
133###################################################
134# ext.jar
135# TODO: jarjar javax.sip to com.android
136javax\.sip
137javax\.sip\.address
138javax\.sip\.header
139javax\.sip\.message
140
141# TODO: jarjar org.apache.commons to com.android
142org\.apache\.commons\.codec
143org\.apache\.commons\.codec\.binary
144org\.apache\.commons\.codec\.language
145org\.apache\.commons\.codec\.net
146org\.apache\.commons\.logging
147org\.apache\.commons\.logging\.impl
148org\.apache\.http
149org\.apache\.http\.auth
150org\.apache\.http\.auth\.params
151org\.apache\.http\.client
152org\.apache\.http\.client\.entity
153org\.apache\.http\.client\.methods
154org\.apache\.http\.client\.params
155org\.apache\.http\.client\.protocol
156org\.apache\.http\.client\.utils
157org\.apache\.http\.conn
158org\.apache\.http\.conn\.params
159org\.apache\.http\.conn\.routing
160org\.apache\.http\.conn\.scheme
161org\.apache\.http\.conn\.ssl
162org\.apache\.http\.conn\.util
163org\.apache\.http\.cookie
164org\.apache\.http\.cookie\.params
165org\.apache\.http\.entity
166org\.apache\.http\.impl
167org\.apache\.http\.impl\.auth
168org\.apache\.http\.impl\.client
169org\.apache\.http\.impl\.client
170org\.apache\.http\.impl\.conn
171org\.apache\.http\.impl\.conn\.tsccm
172org\.apache\.http\.impl\.cookie
173org\.apache\.http\.impl\.entity
174org\.apache\.http\.impl\.io
175org\.apache\.http\.impl\.io
176org\.apache\.http\.io
177org\.apache\.http\.message
178org\.apache\.http\.params
179org\.apache\.http\.protocol
180org\.apache\.http\.util
181
182# TODO: jarjar gov.nist to com.android
183gov\.nist\.core
184gov\.nist\.core\.net
185gov\.nist\.javax\.sip
186gov\.nist\.javax\.sip\.address
187gov\.nist\.javax\.sip\.clientauthutils
188gov\.nist\.javax\.sip\.header
189gov\.nist\.javax\.sip\.header\.extensions
190gov\.nist\.javax\.sip\.header\.ims
191gov\.nist\.javax\.sip\.message
192gov\.nist\.javax\.sip\.parser
193gov\.nist\.javax\.sip\.parser\.extensions
194gov\.nist\.javax\.sip\.parser\.ims
195gov\.nist\.javax\.sip\.stack
196
197org\.ccil\.cowan\.tagsoup
198org\.ccil\.cowan\.tagsoup\.jaxp
199
200###################################################
201# framework.jar
202javax\.microedition\.khronos\.opengles
203javax\.microedition\.khronos\.egl
204
205android
206
207###################################################
208# apache-xml.jar
209org\.apache\.xml\.res
210org\.apache\.xml\.utils
211org\.apache\.xml\.utils\.res
212org\.apache\.xml\.dtm
213org\.apache\.xml\.dtm\.ref
214org\.apache\.xml\.dtm\.ref\.dom2dtm
215org\.apache\.xml\.dtm\.ref\.sax2dtm
216org\.apache\.xml\.serializer
217org\.apache\.xml\.serializer\.utils
218org\.apache\.xml\.serializer\.dom3
219org\.apache\.xpath
220org\.apache\.xpath\.operations
221org\.apache\.xpath\.domapi
222org\.apache\.xpath\.functions
223org\.apache\.xpath\.res
224org\.apache\.xpath\.axes
225org\.apache\.xpath\.objects
226org\.apache\.xpath\.patterns
227org\.apache\.xpath\.jaxp
228org\.apache\.xpath\.compiler
229org\.apache\.xalan
230org\.apache\.xalan\.res
231org\.apache\.xalan\.templates
232org\.apache\.xalan\.serialize
233org\.apache\.xalan\.extensions
234org\.apache\.xalan\.processor
235org\.apache\.xalan\.transformer
236org\.apache\.xalan\.xslt
237
238###################################################
239# Packages in the google namespace across all bootclasspath jars.
240com\.google\.android\..*
241com\.google\.vr\.platform.*
242com\.google\.i18n\.phonenumbers\..*
243com\.google\.i18n\.phonenumbers
244
245###################################################
246# Packages used for Android in Chrome OS
247org\.chromium\.arc
248org\.chromium\.arc\..*
249