Skip to content

Instantly share code, notes, and snippets.

@daanraman
Created March 30, 2015 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daanraman/ffbee6fc5d5c0e7f29dc to your computer and use it in GitHub Desktop.
Save daanraman/ffbee6fc5d5c0e7f29dc to your computer and use it in GitHub Desktop.
Check if an Android application contains native code (JNI)
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