| name | search_google_photos | |
|---|---|---|
| description | Searches the user's Google Photos library using the system's Search Activity Alias. | |
| tools |
|
This skill triggers the native search interface of Google Photos to find specific people, objects, or locations.
| from mcp.server.fastmcp import FastMCP | |
| import subprocess | |
| # Create an MCP server | |
| mcp = FastMCP("ADB MCP") | |
| @mcp.tool() | |
| def get_devices() -> str: | |
| """Get the list of Android devices connected to the laptop""" |
| import asyncio | |
| import os | |
| from mcp_use import MCPAgent, MCPClient | |
| from langchain_anthropic import ChatAnthropic | |
| from langchain_openai import ChatOpenAI | |
| from langchain_google_genai import ChatGoogleGenerativeAI | |
| async def main(): | |
| print("hello!") | |
| config = { |
| @Composable | |
| fun MainScreen(viewModel: ViewModel) { | |
| val cameraIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE) | |
| var bitmap by remember { mutableStateOf<Bitmap?>(null) } | |
| val textResponse by viewModel.textGenerated.observeAsState() | |
| val isGenerating by viewModel.isGenerating.observeAsState(false) | |
| // Get your image | |
| val resultLauncher = | |
| rememberLauncherForActivityResult(ActivityResultContracts.StartActivityForResult()) { result: ActivityResult -> |
| adb shell settings put global sysui_demo_allowed 1 |
| #!/bin/sh | |
| set -e | |
| # Get the current branch name. | |
| branch=`git rev-parse --abbrev-ref HEAD` | |
| # Determine the commit at which the current branch diverged. | |
| ancestor=`git merge-base master HEAD` | |
| # Stash any uncommited, changed files. | |
| git stash --all | |
| # Revert the branch back to the ancestor SHA. |
| <permission | |
| android:name="your.package.name.permission.BLA" | |
| tools:node="remove"/> |
| Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=your.package.name.permission.BLA pkg=your.package.name] |
| adb shell screenrecord /sdcard/video.mp4 | |
| adb pull /sdcard/video.mp4 |
| // To instantiate a RippleDrawable: | |
| // new RippleDrawable(null, null), the default constructor isn't public. | |
| // Unfortunately, this has no colors set, so the app will crash, here's another way | |
| int[] attrs = new int[] { android.R.attr.selectableItemBackground}; | |
| TypedArray array = getContext().obtainStyledAttributes(attrs); | |
| Drawable drawableFromTheme = array.getDrawable(0); | |
| array.recycle(); | |
| setBackground(drawableFromTheme); |