Updating hook to support android apps