Created
March 30, 2015 06:51
-
-
Save daanraman/ffbee6fc5d5c0e7f29dc to your computer and use it in GitHub Desktop.
Check if an Android application contains native code (JNI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(find . -type d -maxdepth 1 | cut -c3-) | |
do | |
cd "$i" | |
if [ -d "lib" ]; then | |
# Control will enter here if $DIRECTORY exists. | |
native=`expr $native + 1` | |
else | |
nonnative=`expr $nonnative + 1` | |
fi | |
cd .. | |
done | |
echo "$native (native)" | |
echo "$nonnative (non-native)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment