add check apk memory script