mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
patcher: create BOOTCLASSPATH on-the-fly + log
This commit is contained in:
parent
b459d7b2a0
commit
0c0fe2bd8a
@ -451,17 +451,15 @@ setup_patcher () {
|
|||||||
|
|
||||||
call_dalvikvm () {
|
call_dalvikvm () {
|
||||||
if [[ -z "${ND_BOOTCLASSPATH}" ]]; then
|
if [[ -z "${ND_BOOTCLASSPATH}" ]]; then
|
||||||
FRAME=/system/framework
|
|
||||||
APEXB=${APEX_LD}/javalib
|
|
||||||
DALVIKVM_OPTS=""
|
DALVIKVM_OPTS=""
|
||||||
|
|
||||||
ND_BOOTCLASSPATH=\
|
for jar in /system/framework/*.jar; do
|
||||||
${APEXB}/core-oj.jar:${APEXB}/core-libart.jar:${APEXB}/okhttp.jar:\
|
ND_BOOTCLASSPATH="${jar}:${ND_BOOTCLASSPATH}"
|
||||||
${APEXB}/bouncycastle.jar:${APEXB}/apache-xml.jar:${FRAME}/framework.jar:\
|
done
|
||||||
${FRAME}/ext.jar:${FRAME}/telephony-common.jar:${FRAME}/voip-common.jar:\
|
|
||||||
${FRAME}/ims-common.jar:${FRAME}/android.test.base.jar:${FRAME}/telephony-ext.jar:\
|
for jar in /apex/*/javalib/*.jar; do
|
||||||
/apex/com.android.conscrypt/javalib/conscrypt.jar:\
|
ND_BOOTCLASSPATH="${jar}:${ND_BOOTCLASSPATH}"
|
||||||
/apex/com.android.media/javalib/updatable-media.jar
|
done
|
||||||
|
|
||||||
export BOOTCLASSPATH=${ND_BOOTCLASSPATH}
|
export BOOTCLASSPATH=${ND_BOOTCLASSPATH}
|
||||||
|
|
||||||
@ -472,6 +470,9 @@ ${FRAME}/ims-common.jar:${FRAME}/android.test.base.jar:${FRAME}/telephony-ext.ja
|
|||||||
[[ "${supported_opts}" == *verbose:*jit* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:jit"
|
[[ "${supported_opts}" == *verbose:*jit* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:jit"
|
||||||
[[ "${supported_opts}" == *verbose:*jni* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:jni"
|
[[ "${supported_opts}" == *verbose:*jni* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:jni"
|
||||||
[[ "${supported_opts}" == *verbose:*class* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:class"
|
[[ "${supported_opts}" == *verbose:*class* ]] && DALVIKVM_OPTS="${DALVIKVM_OPTS} -verbose:class"
|
||||||
|
|
||||||
|
echo " *** BOOTCLASSPATH=${BOOTCLASSPATH}"
|
||||||
|
echo " *** DALVIKVM_OPTS=${DALVIKVM_OPTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${APEX_LD}/bin/dalvikvm -Xnoimage-dex2oat ${DALVIKVM_OPTS} "${@}"
|
${APEX_LD}/bin/dalvikvm -Xnoimage-dex2oat ${DALVIKVM_OPTS} "${@}"
|
||||||
|
Loading…
Reference in New Issue
Block a user