GithubHelp home page GithubHelp logo

Comments (7)

rev1si0n avatar rev1si0n commented on July 28, 2024

如果你的手机是多分辨率的(进入 adb shell 执行命令 wm size 有两个大小就是),那么需要到设置里将屏幕设置为固定分辨率,不同手机设置项不同但是都有。

from lamda.

941597815 avatar 941597815 commented on July 28, 2024

分辨率是固定的,我用scrcpy连接手机是正常的,但网页中不行

9N% @9EBJJE1~MXDCDLQ8IL

from lamda.

rev1si0n avatar rev1si0n commented on July 28, 2024

执行 echo 'touch.backend=system' >>/data/usr/properties.local 并重启设备

from lamda.

941597815 avatar 941597815 commented on July 28, 2024

这个问题得到已解决,但是我遇到新的问题

_MG@H 9QSY0SSDRHJX{23C

执行这个代码后报错,并且远程桌面也停止了,服务貌似都寄了。下面是完整报错内容

C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Lenovo\PycharmProjects\lamda\main.py
Traceback (most recent call last):
File "C:\Users\Lenovo\PycharmProjects\lamda\main.py", line 5, in
d.beep()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\lamda\client.py", line 1924, in beep
return self.stub("Util").beep()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\lamda\client.py", line 1325, in beep
r = self.stub.beepBeep(protos.Empty())
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 277, in call
response, ignored_call = self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 343, in with_call
return self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 343, in with_call
return self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 1178, in with_call
return _end_unary_response_blocking(state, call, True, None)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 1004, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:192.168.1.25:65000: Connection refused"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:192.168.1.25:65000: Connection refused {created_time:"2024-05-08T14:14:37.6286821+00:00", grpc_status:14}"

进程已结束,退出代码为 1

from lamda.

rev1si0n avatar rev1si0n commented on July 28, 2024

使用其他接口呢,例如 d.application("com.android.settings").start()

from lamda.

941597815 avatar 941597815 commented on July 28, 2024

A1V`8%WQ{KSM8A$DXN5R}5V
完整报错内容如下
C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Lenovo\PycharmProjects\lamda\main.py
[email protected]:65000
Traceback (most recent call last):
File "C:\Users\Lenovo\PycharmProjects\lamda\main.py", line 6, in
d.application("com.android.settings").start()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\lamda\client.py", line 1026, in start
r = self.stub.startApplication(req)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 277, in call
response, ignored_call = self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 343, in with_call
return self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 343, in with_call
return self._with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 332, in _with_call
return call.result(), call
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 438, in result
raise self
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_interceptor.py", line 315, in continuation
response, call = self._thunk(new_method).with_call(
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 1178, in with_call
return _end_unary_response_blocking(state, call, True, None)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python310\lib\site-packages\grpc_channel.py", line 1004, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:192.168.1.25:65000: socket is null"
debug_error_string = "UNKNOWN:failed to connect to all addresses; last error: UNKNOWN: ipv4:192.168.1.25:65000: socket is null {grpc_status:14, created_time:"2024-05-09T04:54:09.1886935+00:00"}"

进程已结束,退出代码为 1

from lamda.

rev1si0n avatar rev1si0n commented on July 28, 2024

加群说吧

from lamda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.