INNER CODE UNIT · Shell
CLASS_PATH_IND
ax/apk.sh · apk.sh:403
CLASS_PATH_IND=$((CLASS_PATH_IND+1))
# ./base/smali/
# ./base/smali_classes2/
CLASS_PATH="./$APK_DIR/smali_classes$CLASS_PATH_IND/$MAIN_ACTIVITY_2PATH.smali"
echo "[?] Looking in $CLASS_PATH..."
done
# Patch the smali with the appropriate loadLibrary call based on whether a constructor already exists or not.
# If an existing constructor is present, the partial_load_library will be used.
# If no constructor is present, the full_load_library will be used.
#
# Checks if there is an existing <clinit> to determine which is the class initializer block,
# executed once when the class loaded into memory,
# then they inject a loadLibrary just after the .locals declaration
#
echo "[>] $CLASS_PATH found!"
echo "[>] Patching smali..."
readarray -t lines < $CLASS_PATH
index=0