Skip to content

Commit d9f473c

Browse files
committed
merge: bring design/streaming-port-pipeline into main
2 parents 22e8945 + 8d08769 commit d9f473c

18 files changed

Lines changed: 1248 additions & 99 deletions

devices/common/replacements.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,18 @@
103103
"condition_port_os_version_incremental_gte": "OS3.0.0",
104104
"condition_base_android_version_gte": 15,
105105
"condition_base_android_version_lt": 16
106+
},
107+
{
108+
"description": "CN stock to global (non-EU) copy Provision app",
109+
"id": "copy_provision_cn_to_global",
110+
"fixme": "Temporary workaround: On CN hardware, using global Provision can get stuck on Setup Wizard WiFi page (returns to same page after connect/skip). Replacing with CN Provision mitigates the issue until root cause is fixed.",
111+
"type": "file",
112+
"search_path": "system_ext/priv-app",
113+
"match_mode": "exact",
114+
"ensure_exists": true,
115+
"files": ["Provision"],
116+
"condition_is_port_global_rom": true,
117+
"condition_stock_region": "cn"
106118
}
107119
]
108120
}

src/app/cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ def build_parser() -> argparse.ArgumentParser:
2424
help="Inject KernelSU into init_boot/boot. Default: from config or False",
2525
)
2626
parser.add_argument("--work-dir", default="build", help="Working directory (default: build)")
27+
parser.add_argument(
28+
"--workspace-mode",
29+
choices=["legacy", "production"],
30+
default="legacy",
31+
help=(
32+
"Workspace layout mode: legacy keeps port extracted and then copies to target; "
33+
"production extracts port partitions directly into target."
34+
),
35+
)
2736
parser.add_argument("--clean", action="store_true", help="Clean working directory before starting")
2837
parser.add_argument("--debug", action="store_true", help="Enable debug logging")
2938
parser.add_argument(

0 commit comments

Comments
 (0)