You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

OnePlus 3T在TWRP下执行wm/am命令提示未找到,请求解决分辨率问题

Fixing "wm: not found" / "am: not found" in TWRP for OnePlus 3T Resolution Issue

Hey there, let's work through this resolution problem step by step—first, let's clear up why those commands aren't working in TWRP.

Why you're seeing "not found" errors

The wm and am commands are part of the Android system framework, not the TWRP recovery environment. TWRP uses a minimal, standalone shell and doesn't include these system tools in its default command path. That's why typing just wm or am won't locate the commands, even with root access.

Step-by-step fixes

  • 1. Mount the System partition first
    TWRP doesn't mount your device's main system partition by default. Go to the Mount tab in TWRP, check the box next to "System", and wait for it to finish mounting. This lets you access the system tools stored in /system/bin/.

  • 2. Run the commands with their full path
    Now that the System partition is mounted, use the complete file path to execute the commands. In either ADB shell or TWRP's built-in terminal, run:

    /system/bin/wm size reset
    

    Or if you prefer the am command:

    /system/bin/am display-size reset
    
  • 3. Clear cache if the issue persists
    Sometimes cached display settings can cause lingering resolution problems. Head to the Wipe tab in TWRP, select Cache and Dalvik Cache, then swipe to wipe. Reboot your device afterward to check if the resolution is back to normal.

  • 4. Restore your system image (if needed)
    If the above steps don't work, it's possible your system partition has corrupted files. Since you haven't updated your system, download the exact official firmware for your OnePlus 3T's current version, then use TWRP's Install tab to flash the system image. This will repair any missing or broken system files that handle display settings.

Quick ADB tip for first-time users

Make sure your computer has the correct ADB drivers installed for your OnePlus 3T. In TWRP, go to Advanced and ensure ADB debugging is enabled. On your computer, run adb devices first to confirm your device is detected before trying any commands.

内容的提问来源于stack exchange,提问作者Pierpier

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:26:46