Skip to content

Commit aa3095f

Browse files
committed
♻️ Move app manifest from resources to tools package
Move app manifest functionality from resources to app_management This completes the resources-to-tools migration by: - Moving app manifest analysis to AppAnalyzer class in app_management - Adding new tools for app info, permissions, and activities retrieval - Deleting the now-empty resources package - Updating imports and references across the codebase - Expanding tools.__all__ to include new app management functions The change improves code organization by consolidating all app analysis functionality in a single location with a more consistent API.
1 parent 230df6e commit aa3095f

File tree

9 files changed

+501
-326
lines changed

9 files changed

+501
-326
lines changed

droidmind/resources/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

droidmind/resources/app_resources.py

Lines changed: 0 additions & 301 deletions
This file was deleted.

droidmind/server.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
from starlette.routing import Mount, Route
2424
import uvicorn
2525

26-
# Annotated modules with MCP prompts, resources, and tools
26+
# Annotated modules with MCP prompts and tools
2727
from droidmind import ( # noqa: F401
2828
console,
2929
prompts,
30-
resources,
3130
tools,
3231
)
3332
from droidmind.context import mcp
@@ -306,4 +305,4 @@ def main(
306305

307306

308307
if __name__ == "__main__":
309-
main(host="127.0.0.1", port=4256, transport="sse", debug=False, log_level="INFO", adb_path="adb")
308+
main(host="127.0.0.1", port=4256, transport="sse", debug=False, log_level="INFO", log_file=None, adb_path="adb")

droidmind/tools/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
from droidmind.devices import get_device_manager
1111
from droidmind.tools.app_management import (
1212
clear_app_data,
13+
get_app_activities,
14+
get_app_info,
15+
get_app_manifest,
16+
get_app_permissions,
1317
install_app,
1418
list_packages,
1519
start_app,
@@ -67,6 +71,8 @@
6771
"app_logs",
6872
# Diagnostics
6973
"capture_bugreport",
74+
# App management
75+
"clear_app_data",
7076
# Device management
7177
"connect_device",
7278
"create_directory",
@@ -81,6 +87,11 @@
8187
"file_exists",
8288
# File operations
8389
"file_stats",
90+
# App management
91+
"get_app_activities",
92+
"get_app_info",
93+
"get_app_manifest",
94+
"get_app_permissions",
8495
# Utilities
8596
"get_device_manager",
8697
# UI automation
@@ -90,6 +101,7 @@
90101
"list_devices",
91102
# File operations
92103
"list_directory",
104+
"list_packages",
93105
"press_key",
94106
"pull_file",
95107
"push_file",
@@ -99,8 +111,11 @@
99111
"screenshot",
100112
# Shell
101113
"shell_command",
114+
"start_app",
102115
"start_intent",
116+
"stop_app",
103117
"swipe",
104118
"tap",
119+
"uninstall_app",
105120
"write_file",
106121
]

0 commit comments

Comments
 (0)