为什么adb shell输入滑动会返回错误

时间:2018-09-23 22:55:31

标签: windows adb swipe

我只是打电话给

adb shell input swipe 245 893 846 893
adb shell input swipe 846 893 245 1535
adb shell input swipe 245 1535 846 1535
adb shell input swipe 846 1535 846 1204

对于每个电话,我都会收到此错误:

Error: TV display id Invalid, will send event to default displayId

问题是此错误消息延迟了4次滑动的执行,并且全局手势失败。
我不知道如何正确设置“电视显示ID”。
我已经在互联网上进行搜索,但没有发现与此问题有关的任何内容。

我在Windows 7平台上使用adb,而我的手机是Lenovo K6。

这是命令abd shell dumpsys display的结果:

DISPLAY MANAGER (dumpsys display)
  mOnlyCode=false
  mSafeMode=false
  mPendingTraversal=false
  mGlobalDisplayState=OFF
  mNextNonDefaultDisplayId=1
  mDefaultViewport=DisplayViewport{valid=true, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 1080, 1920), physicalFrame=Rect(0, 0 - 1080, 1920), deviceWidth=1080, deviceHeight=1920}
  mExternalTouchViewport=DisplayViewport{valid=false, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 0, 0), physicalFrame=Rect(0, 0 - 0, 0), deviceWidth=0, deviceHeight=0}
  mSingleDisplayDemoMode=false
  mWifiDisplayScanRequestCount=0

Display Adapters: size=4
  LocalDisplayAdapter
  OverlayDisplayAdapter
    mCurrentOverlaySetting=
    mOverlays: size=0
  WifiDisplayAdapter
    mCurrentStatus=WifiDisplayStatus{featureState=2, scanState=0, activeDisplayState=0, activeDisplay=null, displays=[], sessionInfo=WifiDisplaySessionInfo:
        Client/Owner: Client
        GroupId: 
        Passphrase: 
        SessionId: 0
        IP Address: }
    mFeatureState=2
    mScanState=0
    mActiveDisplayState=0
    mActiveDisplay=null
    mDisplays=[]
    mAvailableDisplays=[]
    mRememberedDisplays=[]
    mPendingStatusChangeBroadcast=false
    mSupportsProtectedBuffers=true
    mDisplayController:
      mWifiDisplayOnSetting=false
      mWifiP2pEnabled=true
      mWfdEnabled=false
      mWfdEnabling=false
      mNetworkInfo=[type: WIFI_P2P[], state: UNKNOWN/IDLE, reason: (unspecified), extra: (none), failover: false, available: true, roaming: false, metered: false]
      mScanRequested=false
      mDiscoverPeersInProgress=false
      mDesiredDevice=null
      mConnectingDisplay=null
      mDisconnectingDisplay=null
      mCancelingDisplay=null
      mConnectedDevice=null
      mConnectionRetriesLeft=0
      mRemoteDisplay=null
      mRemoteDisplayInterface=null
      mRemoteDisplayConnected=false
      mAdvertisedDisplay=null
      mAdvertisedDisplaySurface=null
      mAdvertisedDisplayWidth=0
      mAdvertisedDisplayHeight=0
      mAdvertisedDisplayFlags=0
      mAvailableWifiDisplayPeers: size=0
  VirtualDisplayAdapter

Display Devices: size=1
  DisplayDeviceInfo{"Écran intégré": uniqueId="local:0", 1080 x 1920, modeId 1, defaultModeId 1, supportedModes [{id=1, width=1080, height=1920, fps=60.000004}], colorTransformId 1, defaultColorTransformId 1, supportedColorTransforms [{id=1, colorTransform=0}], HdrCapabilities android.view.Display$HdrCapabilities@3b82f68, density 480, 442.451 x 443.345 dpi, appVsyncOff 0, presDeadline 17666666, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
    mAdapter=LocalDisplayAdapter
    mUniqueId=local:0
    mDisplayToken=android.os.BinderProxy@12b2a73
    mCurrentLayerStack=-1
    mCurrentOrientation=0
    mCurrentLayerStackRect=Rect(0, 0 - 1080, 1920)
    mCurrentDisplayRect=Rect(0, 0 - 1080, 1920)
    mCurrentSurface=null
    mBuiltInDisplayId=0
    mActivePhysIndex=0
    mActiveModeId=1
    mActiveColorTransformId=1
    mState=OFF
    mBrightness=0
    mBacklight=com.android.server.lights.LightsService$LightImpl@e424d30
    mDisplayInfos=
      PhysicalDisplayInfo{1080 x 1920, 60.000004 fps, density 3.0, 442.451 x 443.345 dpi, secure true, appVsyncOffset 0, bufferDeadline 17666666, colorTransform 0}
    mSupportedModes=
      DisplayModeRecord{mMode={id=1, width=1080, height=1920, fps=60.000004}}
    mSupportedColorTransforms=[
    {id=1, colorTransform=0}]

Logical Displays: size=1
  Display 0:
    mDisplayId=0
    mLayerStack=0
    mHasContent=true
    mRequestedMode=0
    mRequestedColorTransformId=0
    mDisplayOffset=(0, 0)
    mPrimaryDisplayDevice=Écran intégré
    mBaseDisplayInfo=DisplayInfo{"Écran intégré", uniqueId "local:0", app 1080 x 1920, real 1080 x 1920, largest app 1080 x 1920, smallest app 1080 x 1920, mode 1, defaultMode 1, modes [{id=1, width=1080, height=1920, fps=60.000004}], colorTransformId 1, defaultColorTransformId 1, supportedColorTransforms [{id=1, colorTransform=0}], hdrCapabilities android.view.Display$HdrCapabilities@3b82f68, rotation 0, density 480 (442.451 x 443.345) dpi, layerStack 0, appVsyncOff 0, presDeadline 17666666, type BUILT_IN, state OFF, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
    mOverrideDisplayInfo=DisplayInfo{"Écran intégré", uniqueId "local:0", app 1080 x 1920, real 1080 x 1920, largest app 1920 x 1848, smallest app 1080 x 1008, mode 1, defaultMode 1, modes [{id=1, width=1080, height=1920, fps=60.000004}], colorTransformId 1, defaultColorTransformId 1, supportedColorTransforms [{id=1, colorTransform=0}], hdrCapabilities android.view.Display$HdrCapabilities@3b82f68, rotation 0, density 480 (442.451 x 443.345) dpi, layerStack 0, appVsyncOff 0, presDeadline 17666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

Callbacks: size=56
  0: mPid=733, mWifiDisplayScanRequested=false
  1: mPid=1131, mWifiDisplayScanRequested=false
  2: mPid=1158, mWifiDisplayScanRequested=false
  3: mPid=1293, mWifiDisplayScanRequested=false
  4: mPid=1485, mWifiDisplayScanRequested=false
  5: mPid=1716, mWifiDisplayScanRequested=false
  6: mPid=1757, mWifiDisplayScanRequested=false
  7: mPid=1927, mWifiDisplayScanRequested=false
  8: mPid=1940, mWifiDisplayScanRequested=false
  9: mPid=1961, mWifiDisplayScanRequested=false
  10: mPid=2039, mWifiDisplayScanRequested=false
  11: mPid=2057, mWifiDisplayScanRequested=false
  12: mPid=2123, mWifiDisplayScanRequested=false
  13: mPid=2317, mWifiDisplayScanRequested=false
  14: mPid=2358, mWifiDisplayScanRequested=false
  15: mPid=2372, mWifiDisplayScanRequested=false
  16: mPid=2385, mWifiDisplayScanRequested=false
  17: mPid=2397, mWifiDisplayScanRequested=false
  18: mPid=2410, mWifiDisplayScanRequested=false
  19: mPid=2424, mWifiDisplayScanRequested=false
  20: mPid=2437, mWifiDisplayScanRequested=false
  21: mPid=2450, mWifiDisplayScanRequested=false
  22: mPid=2513, mWifiDisplayScanRequested=false
  23: mPid=2705, mWifiDisplayScanRequested=false
  24: mPid=3141, mWifiDisplayScanRequested=false
  25: mPid=5491, mWifiDisplayScanRequested=false
  26: mPid=5521, mWifiDisplayScanRequested=false
  27: mPid=5633, mWifiDisplayScanRequested=false
  28: mPid=5704, mWifiDisplayScanRequested=false
  29: mPid=6107, mWifiDisplayScanRequested=false
  30: mPid=6145, mWifiDisplayScanRequested=false
  31: mPid=6268, mWifiDisplayScanRequested=false
  32: mPid=6556, mWifiDisplayScanRequested=false
  33: mPid=6798, mWifiDisplayScanRequested=false
  34: mPid=7830, mWifiDisplayScanRequested=false
  35: mPid=9025, mWifiDisplayScanRequested=false
  36: mPid=14122, mWifiDisplayScanRequested=false
  37: mPid=15000, mWifiDisplayScanRequested=false
  38: mPid=17141, mWifiDisplayScanRequested=false
  39: mPid=20441, mWifiDisplayScanRequested=false
  40: mPid=20580, mWifiDisplayScanRequested=false
  41: mPid=20684, mWifiDisplayScanRequested=false
  42: mPid=23342, mWifiDisplayScanRequested=false
  43: mPid=27765, mWifiDisplayScanRequested=false
  44: mPid=27975, mWifiDisplayScanRequested=false
  45: mPid=28233, mWifiDisplayScanRequested=false
  46: mPid=29713, mWifiDisplayScanRequested=false
  47: mPid=31605, mWifiDisplayScanRequested=false
  48: mPid=32024, mWifiDisplayScanRequested=false
  49: mPid=32381, mWifiDisplayScanRequested=false
  50: mPid=32421, mWifiDisplayScanRequested=false
  51: mPid=32464, mWifiDisplayScanRequested=false
  52: mPid=32641, mWifiDisplayScanRequested=false
  53: mPid=32657, mWifiDisplayScanRequested=false
  54: mPid=32702, mWifiDisplayScanRequested=false
  55: mPid=32760, mWifiDisplayScanRequested=false

Display Power Controller Locked State:
  mDisplayReadyLocked=true
  mPendingRequestLocked=policy=OFF, useProximitySensor=false, screenBrightness=105, screenAutoBrightnessAdjustment=0.7910156, brightnessSetByUser=true, useAutoBrightness=true, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN, useTwilight=false
  mPendingRequestChangedLocked=false
  mPendingWaitForNegativeProximityLocked=false
  mPendingUpdatePowerStateLocked=false

Display Power Controller Configuration:
  mScreenBrightnessDozeConfig=3
  mScreenBrightnessDimConfig=3
  mScreenBrightnessDarkConfig=3
  mScreenBrightnessRangeMinimum=3
  mScreenBrightnessRangeMaximum=256
  mUseSoftwareAutoBrightnessConfig=true
  mAllowAutoBrightnessWhileDozingConfig=false
  mColorFadeFadesConfig=false

Display Power Controller Thread State:
  mPowerRequest=policy=OFF, useProximitySensor=false, screenBrightness=105, screenAutoBrightnessAdjustment=0.7910156, brightnessSetByUser=true, useAutoBrightness=true, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN, useTwilight=false
  mWaitingForNegativeProximity=false
  mProximitySensor={Sensor name="EPL259x ALS/PS EPL259x", vendor="Eminent", version=2, type=8, maxRange=5.000305, resolution=0.10070801, power=0.32, minDelay=0}
  mProximitySensorEnabled=false
  mProximityThreshold=5.0
  mProximity=Unknown
  mPendingProximity=Unknown
  mPendingProximityDebounceTime=-1 (81560583 ms ago)
  mScreenOffBecauseOfProximity=false
  mAppliedAutoBrightness=false
  mAppliedDimming=false
  mAppliedLowPower=false
  mPendingScreenOnUnblocker=null
  mPendingScreenOff=false
  mReportedToPolicy=REPORTED_TO_POLICY_SCREEN_OFF
  mScreenBrightnessRampAnimator.isAnimating()=false
  mColorFadeOnAnimator.isStarted()=false
  mColorFadeOffAnimator.isStarted()=false

Display Power State:
  mScreenState=OFF
  mScreenBrightness=0
  mScreenReady=true
  mScreenUpdatePending=false
  mColorFadePrepared=false
  mColorFadeLevel=0.0
  mColorFadeReady=true
  mColorFadeDrawPending=false

Photonic Modulator State:
  mPendingState=OFF
  mPendingBacklight=0
  mActualState=OFF
  mActualBacklight=0
  mStateChangeInProgress=false
  mBacklightChangeInProgress=false

Color Fade State:
  mPrepared=false
  mMode=0
  mDisplayLayerStack=0
  mDisplayWidth=0
  mDisplayHeight=0
  mSurfaceVisible=false
  mSurfaceAlpha=0.0

Automatic Brightness Controller Configuration:
  mScreenBrightnessRangeMinimum=3
  mScreenBrightnessRangeMaximum=256
  mLightSensorWarmUpTimeConfig=0

Automatic Brightness Controller State:
  mLightSensor={Sensor name="EPL259x ALS/PS EPL259x", vendor="Eminent", version=1, type=5, maxRange=30000.0, resolution=0.0010070801, power=0.32, minDelay=0}
  mTwilight.getCurrentState()={TwilightState: isNight=true, mAmount=1.0}
  mLightSensorEnabled=false
  mLightSensorEnableTime=81303781 (256803 ms ago)
  mAmbientLux=130.0
  mBrighteningLuxThreshold=143.0
  mDarkeningLuxThreshold=104.0
  mLastObservedLux=126.0
  mLastObservedLuxTime=81317164 (243420 ms ago)
  mRecentLightSamples=0
  mAmbientLightRingBuffer=[]
  mScreenAutoBrightness=-1
  mScreenAutoBrightnessAdjustment=0.7910156
  mLastScreenAutoBrightnessGamma=0.57793707
  mDozing=true

SplineManager:
  USE_TWILIGHT_ADJUSTMENT=true
  mTwilight.getCurrentState()={TwilightState: isNight=true, mAmount=1.0}
  mTwilightState={TwilightState: isNight=true, mAmount=1.0}
  mFakeTwilightState={TwilightState: { mTodaySunrise=21 sept. 2018 06:30:39, mTodaySunset=21 sept. 2018 19:00:39}

 BrightnessSplineDay:MonotoneCubicSpline{[(0.0, 0.0546875: 0.02734375), (5.0, 0.19140625: 0.0), (30.0, 0.19140625: 0.0), (60.0, 0.19140625: 0.0), (90.0, 0.19140625: 0.0), (150.0, 0.234375: 7.877604E-4), (200.0, 0.27734375: 5.46875E-4), (350.0, 0.3125: 2.5390624E-4), (450.0, 0.33984375: 3.3203125E-4), (550.0, 0.37890625: 4.825368E-4), (720.0, 0.4765625: 4.6555308E-4), (950.0, 0.55859375: 4.9082877E-4), (1100.0, 0.65234375: 4.9316406E-4), (1500.0, 0.796875: 3.2128906E-4), (2000.0, 0.9375: 1.5885416E-4), (3500.0, 0.9921875: 5.5737933E-6), (5600.0, 0.99609375: 0.0), (6700.0, 0.99609375: 0.0), (10000.0, 1.0: 1.1837121E-6)]}
 BrightnessSplineNight:MonotoneCubicSpline{[(0.0, 0.015625: 0.0078125), (5.0, 0.0546875: 0.0046093753), (30.0, 0.08984375: 0.0011588542), (60.0, 0.1171875: 0.0016927083), (90.0, 0.19140625: 0.0015950521), (150.0, 0.234375: 7.877604E-4), (200.0, 0.27734375: 5.46875E-4), (350.0, 0.3125: 2.5390624E-4), (450.0, 0.33984375: 3.3203125E-4), (550.0, 0.37890625: 4.825368E-4), (720.0, 0.4765625: 4.6555308E-4), (950.0, 0.55859375: 4.9082877E-4), (1100.0, 0.65234375: 4.9316406E-4), (1500.0, 0.796875: 3.2128906E-4), (2000.0, 0.9375: 1.5885416E-4), (3500.0, 0.9921875: 5.5737933E-6), (5600.0, 0.99609375: 0.0), (6700.0, 0.99609375: 0.0), (10000.0, 1.0: 1.1837121E-6)]}

  mSplineManager(0 -> 9)= [4, 6, 8, 11, 13, 14, 15, 16, 17, 18]
  mSplineManager(10 -> 90)= [18, 22, 23, 25, 27, 30, 36, 43, 49]
  mSplineManager(100 -> 900)= [52, 71, 78, 83, 92, 104, 119, 130, 138]
  mSplineManager(1000 -> 12000)= [151, 240, 255, 255, 255, 255, 255, 255, 256, 256, 256, 256]

StateManager
  state=STATE_UNKNOWN

似乎错误来自这里:

E libmdmdetect: Failed to open /sys/bus/msm_subsys/devices/subsys0/name: Permission denied

如何纠正拒绝的此权限?

任何帮助将不胜感激。
拉富因

0 个答案:

没有答案