diff --git a/i-Bright7x/WiFiDeviceAPI.jar b/i-Bright7x/WiFiDeviceAPI.jar new file mode 100644 index 0000000..3d1743d Binary files /dev/null and b/i-Bright7x/WiFiDeviceAPI.jar differ diff --git a/i-Bright7x/WiFiDeviceAPI.jnlp b/i-Bright7x/WiFiDeviceAPI.jnlp new file mode 100644 index 0000000..c332014 --- /dev/null +++ b/i-Bright7x/WiFiDeviceAPI.jnlp @@ -0,0 +1,17 @@ + + + + WiFi Device API + Tri Cascade Inc. + + + + + + + + + + + + diff --git a/i-Bright7x/decompile.sh b/i-Bright7x/decompile.sh new file mode 100755 index 0000000..e98d0bc --- /dev/null +++ b/i-Bright7x/decompile.sh @@ -0,0 +1,21 @@ +#!/bin/bash +## decompile.sh - find .class files and decompile them + +DIR=$1 +IB_JAR="./WiFiDeviceAPI.jar" +CFR_JAR="./cfr_0_129.jar" + +if [ ! -f ${CFR_JAR} ]; then + echo "could not find cfr JAR[${CFR_JAR}]" + exit 1 +fi + +7z x ${IB_JAR} + + +for f in $(find ${DIR} -iname '*.class'); do + NEW_F=`echo ${f} | sed -e "s/class/java/"` + echo "${f} -> ${NEW_F}" + java -jar ${CFR_JAR} ${f} > ${NEW_F} +done +