refactor: remove non-build/deploy content from harmonyos-build-deploy skill
- Remove Wireless Debugging (hdc tconn) section — environment setup, not build/deploy - Remove Restart App workflow — runtime operation, not build/deploy - Remove aa dump -a command — runtime debugging, not build/deploy - Remove duplicate Build Output Structure from device-installation.md
This commit is contained in:
@@ -15,9 +15,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|||||||
- **harmonyos-build-deploy**: Extracted module discovery, build outputs, and unwanted modules into `references/module-discovery.md` (~138 lines moved out of SKILL.md)
|
- **harmonyos-build-deploy**: Extracted module discovery, build outputs, and unwanted modules into `references/module-discovery.md` (~138 lines moved out of SKILL.md)
|
||||||
- **harmonyos-build-deploy**: Fixed unquoted variable in install.sh script
|
- **harmonyos-build-deploy**: Fixed unquoted variable in install.sh script
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- **harmonyos-build-deploy**: Wireless debugging (hdc tconn) section — environment setup, not build/deploy
|
||||||
|
- **harmonyos-build-deploy**: Restart App workflow — runtime operation, not build/deploy
|
||||||
|
- **harmonyos-build-deploy**: `aa dump -a` command — runtime debugging, not build/deploy
|
||||||
|
- **harmonyos-build-deploy**: Duplicate Build Output Structure from device-installation.md (already in SKILL.md and module-discovery.md)
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- **harmonyos-build-deploy**: Wireless debugging documentation (hdc tconn)
|
|
||||||
- **harmonyos-build-deploy**: Additional bm commands (install -r reinstall, clean cache/data)
|
- **harmonyos-build-deploy**: Additional bm commands (install -r reinstall, clean cache/data)
|
||||||
- **harmonyos-build-deploy**: Cross-reference to arkts-development skill
|
- **harmonyos-build-deploy**: Cross-reference to arkts-development skill
|
||||||
- **harmonyos-build-deploy**: New reference file `references/module-discovery.md`
|
- **harmonyos-build-deploy**: New reference file `references/module-discovery.md`
|
||||||
|
|||||||
@@ -85,14 +85,6 @@ Delegate to subagent with the following steps:
|
|||||||
3. Launch: `hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"`
|
3. Launch: `hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"`
|
||||||
4. Report success/failure with details
|
4. Report success/failure with details
|
||||||
|
|
||||||
### Restart App
|
|
||||||
|
|
||||||
Delegate to subagent:
|
|
||||||
|
|
||||||
1. Force stop: `hdc -t <UDID> shell "aa force-stop <bundleName>"`
|
|
||||||
2. Launch: `hdc -t <UDID> shell "aa start -a EntryAbility -b <bundleName>"`
|
|
||||||
3. Report success/failure
|
|
||||||
|
|
||||||
### Clean App Cache/Data
|
### Clean App Cache/Data
|
||||||
|
|
||||||
Delegate to subagent:
|
Delegate to subagent:
|
||||||
@@ -284,32 +276,10 @@ hdc -t <UDID> shell "bm uninstall -n <bundleName>"
|
|||||||
| `hdc -t <UDID> shell "<cmd>"` | Execute shell command on device |
|
| `hdc -t <UDID> shell "<cmd>"` | Execute shell command on device |
|
||||||
| `hdc -t <UDID> file send <local> <remote>` | Push file/directory to device |
|
| `hdc -t <UDID> file send <local> <remote>` | Push file/directory to device |
|
||||||
| `hdc -t <UDID> file recv <remote> <local>` | Pull file/directory from device |
|
| `hdc -t <UDID> file recv <remote> <local>` | Pull file/directory from device |
|
||||||
| `hdc tconn <IP>:<port>` | Connect to device over Wi-Fi |
|
|
||||||
| `hdc kill` | Kill hdc server |
|
| `hdc kill` | Kill hdc server |
|
||||||
| `hdc start` | Start hdc server |
|
| `hdc start` | Start hdc server |
|
||||||
| `hdc version` | Show hdc version |
|
| `hdc version` | Show hdc version |
|
||||||
|
|
||||||
### Wireless Debugging (Wi-Fi)
|
|
||||||
|
|
||||||
Connect to a device over the network instead of USB:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# 1. Connect device via USB first and get its IP address
|
|
||||||
hdc -t <UDID> shell "ifconfig" # Find wlan0 IP
|
|
||||||
|
|
||||||
# 2. Enable TCP port on device (if supported)
|
|
||||||
hdc -t <UDID> shell "param set persist.hdc.port 5555"
|
|
||||||
|
|
||||||
# 3. Connect wirelessly
|
|
||||||
hdc tconn <device_IP>:5555
|
|
||||||
|
|
||||||
# 4. Verify connection
|
|
||||||
hdc list targets
|
|
||||||
# Should show the IP-based target alongside or instead of USB target
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note:** Wireless debugging may require the device and host to be on the same network. Not all devices support `hdc tconn`.
|
|
||||||
|
|
||||||
## Bundle Manager (bm)
|
## Bundle Manager (bm)
|
||||||
|
|
||||||
Run via `hdc -t <UDID> shell "bm ..."`:
|
Run via `hdc -t <UDID> shell "bm ..."`:
|
||||||
@@ -333,7 +303,6 @@ Run via `hdc -t <UDID> shell "aa ..."`:
|
|||||||
|---------|-------------|
|
|---------|-------------|
|
||||||
| `aa start -a <ability> -b <bundle>` | Start specific ability |
|
| `aa start -a <ability> -b <bundle>` | Start specific ability |
|
||||||
| `aa force-stop <bundleName>` | Force stop application |
|
| `aa force-stop <bundleName>` | Force stop application |
|
||||||
| `aa dump -a` | Dump all running abilities |
|
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
|
|||||||
@@ -152,18 +152,6 @@ Usage:
|
|||||||
./install.sh 1234567890ABCDEF outputs/default/bundles/signed com.example.app
|
./install.sh 1234567890ABCDEF outputs/default/bundles/signed com.example.app
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build Output Structure
|
|
||||||
|
|
||||||
```
|
|
||||||
outputs/
|
|
||||||
└── default/
|
|
||||||
└── bundles/
|
|
||||||
└── signed/
|
|
||||||
├── entry-default-signed.hap # Main entry HAP
|
|
||||||
├── feature-default-signed.hap # Feature HAP (if any)
|
|
||||||
└── *.hsp # Shared library modules
|
|
||||||
```
|
|
||||||
|
|
||||||
## Troubleshooting Details
|
## Troubleshooting Details
|
||||||
|
|
||||||
### Error: "version code not same"
|
### Error: "version code not same"
|
||||||
|
|||||||
Reference in New Issue
Block a user