blob: 4049e69912b53005c7c691a0d11d71cf26ee9972 [file] [log] [blame]
The Android Open Source Projectf8057102009-03-15 16:47:16 -07001#!/bin/bash
2#
3# Copyright (C) 2008 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# Set up prog to be the path of this script, including following symlinks,
18# and set up progdir to be the fully-qualified pathname of its directory.
19
20prog="$0"
21while [ -h "${prog}" ]; do
22 newProg=`/bin/ls -ld "${prog}"`
23 newProg=`expr "${newProg}" : ".* -> \(.*\)$"`
24 if expr "x${newProg}" : 'x/' >/dev/null; then
25 prog="${newProg}"
26 else
27 progdir=`dirname "${prog}"`
28 prog="${progdir}/${newProg}"
29 fi
30done
31oldwd=`pwd`
32progdir=`dirname "${prog}"`
33cd "${progdir}"
34progdir=`pwd`
35prog="${progdir}"/`basename "${prog}"`
36cd "${oldwd}"
37
38libdir=`dirname $progdir`/framework
39classpath=$libdir/signature-tools.jar:$libdir/dex-tools.jar:\
40$libdir/stringtemplate.jar:$libdir/antlr-2.7.7.jar
41
42javaOpts=""
43while expr "x$1" : 'x-J' >/dev/null; do
44 opt=`expr "$1" : '-J\(.*\)'`
45 javaOpts="${javaOpts} -${opt}"
46 shift
47done
48
49COREDEX=${ANDROID_PRODUCT_OUT}/../../common/obj/JAVA_LIBRARIES/core_intermediates/classes.dex
50
51if [ ! -f ${COREDEX} ]; then
52 echo ERROR: $COREDEX not found
53 exit -1;
54fi
55
56sig --create dex ${COREDEX} \
57--out ${ANDROID_BUILD_TOP}/out/dex \
58--name cts_dex_1.0.1 \
59--packages \
60java.beans \
61java.io \
62java.lang \
63java.lang.annotation \
64java.lang.ref \
65java.lang.reflect \
66java.math \
67java.net \
68java.nio \
69java.nio.channels \
70java.nio.channels.spi \
71java.nio.charset \
72java.nio.charset.spi \
73java.security \
74java.security.acl \
75java.security.cert \
76java.security.interfaces \
77java.security.spec \
78java.sql \
79java.text \
80java.util \
81java.util.concurrent \
82java.util.concurrent.atomic \
83java.util.concurrent.locks \
84java.util.jar \
85java.util.logging \
86java.util.prefs \
87java.util.regex \
88java.util.zip \
89javax.crypto \
90javax.crypto.interfaces \
91javax.crypto.spec \
92javax.imageio \
93javax.imageio.event \
94javax.imageio.metadata \
95javax.imageio.plugins.bmp \
96javax.imageio.plugins.jpeg \
97javax.imageio.spi \
98javax.imageio.stream \
99javax.net \
100javax.net.ssl \
101javax.security.auth \
102javax.security.auth.callback \
103javax.security.auth.login \
104javax.security.auth.x500 \
105javax.security.cert \
106javax.sql \
107javax.xml.parsers \
108org.w3c.dom \
109org.xml.sax \
110org.xml.sax.ext \
111org.xml.sax.helpers