Skip to content

Commit

Permalink
internal1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao committed Oct 11, 2023
1 parent a5fa78c commit 81d0fc9
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 1 deletion.
122 changes: 122 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"justMyCode": true
},
{
"name": "Python: Current File2",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: launch Main",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/pymobiledevice3",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: launch Sniff",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/misc/remotexpc_sniffer.py",
"args": [
"live",
"utun5"
],
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: launch remote1",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/pymobiledevice3",
"args": [
"remote",
"browse",

],
"console": "integratedTerminal",
"justMyCode": true,
"sudo": true
},
{
"name": "Python: Start quic tunnel",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/pymobiledevice3",
"args": [
"remote",
"start-quic-tunnel",

],
"console": "integratedTerminal",
"justMyCode": true,
"sudo": true
},
{
"name": "Python: test dvt ls ",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/pymobiledevice3",
"args": [
"developer",
"dvt",
"ls",
"/Applications"
],
"console": "integratedTerminal",
"justMyCode": true,
"sudo": false
},

{
"name": "Python: test dvt ls --rds ",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/pymobiledevice3",
"args": [
"developer",
"dvt",
"ls",
"/Applications",
"--rsd",
"fd0f:98cc:55fc::1",
"62456"

],
"console": "integratedTerminal",
"justMyCode": true,
"sudo": true
},
{
"name": "Python Debug",
"type": "python",
"request": "launch",
"module": "/Users/xiao/work2/pymobiledevice3/pymobiledevice3/__main__",
"args": [],
"env": {
"PYTHONPATH": "/Users/xiao/miniconda3/envs/py310/bin/python"
},
"console": "integratedTerminal",
"cwd": "${workspaceFolder}"
}

]
}
4 changes: 3 additions & 1 deletion pymobiledevice3/remote/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def stop_remoted_if_required() -> None:
if platform.system() != 'Darwin':
# only Darwin systems require it
return

print("stop_remoted_if_required")
remoted = get_remoted_process()
if remoted is None:
return
Expand All @@ -43,6 +43,8 @@ def resume_remoted_if_required() -> None:
if platform.system() != 'Darwin':
# only Darwin systems require it
return

print(resume_remoted_if_required)

remoted = get_remoted_process()
if remoted is None:
Expand Down
Loading

0 comments on commit 81d0fc9

Please sign in to comment.