ADB xử lý shell; Appium xử lý UI (tap, swipe, mở app) trên cloud phone. Flow production: vendor API start pad → adb connect host:port → Appium với udid khớp endpoint.
Chi tiết EN: bản đầy đủ.
Stack
Cloud vendor API → start pad → adb connect Appium 2 (worker VM) → UiAutomator2 → Python client Xong job → driver.quit() → vendor stop pad
Cài đặt worker
npm install -g appium@next appium driver install uiautomator2 pip install Appium-Python-Client
Capabilities mẫu
caps = {
"platformName": "Android",
"appium:automationName": "UiAutomator2",
"appium:udid": "203.0.113.10:5555",
"appium:noReset": True,
"appium:appPackage": "com.zhiliaoapp.musically", # TikTok
}
Wrapper Python (rút gọn)
def with_appium(endpoint: str, caps: dict, fn):
adb_connect(endpoint)
driver = webdriver.Remote(APPIUM, options=opts)
try:
fn(driver)
finally:
driver.quit()
Quy tắc anti-ban
- Tap offset ngẫu nhiên ±8px — không tọa độ cố định
- Swipe duration 400–900ms biến thiên
- Một session/account/ngày cho tier warm
- Stop pad khi session kết thúc — tiết kiệm billing
Pair với Multilogin
Appium = lớp app native. TikTok Shop web, Shopee seller center = Multilogin — xem hybrid architecture (VI) và TikTok Shop (VI).
Liên quan
Disclosure: MLX-MMO liên kết với Multilogin. Package name app thay đổi theo bản cập nhật — xác minh trước production. 70+ guides EN.