Skip to content

Commit 583a13c

Browse files
committed
3.151
1 parent 8f97acb commit 583a13c

File tree

4 files changed

+30
-16
lines changed

4 files changed

+30
-16
lines changed

CHANGELOG.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.151
2+
* 高分屏投屏被拉伸的问题 #41
3+
14
3.150
25
* 修改定时任务重载时的逻辑
36
* 修复 scapy 路由的问题

README.en.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ For **Cloud Mobile**, AliCloud/Huawei Cloud Mobile is supported, X Finger, X Mul
115115
- [File Uploads](#file-uploads)
116116
- [File downloads](#file-downloads)
117117
- [Mobile Proxy](#mobile-proxy)
118+
- [Custom Proxy Configuration](#custom-proxy-configuration)
118119
- [Connecting devices](#connecting-devices)
119120
- [Let's start with a warm up](#lets-start-with-a-warm-up)
120121
- [Setting up a system proxy](#setting-up-a-system-proxy)
@@ -332,13 +333,19 @@ echo "stat-report.url=http://example.com/report" >>/data/local/tmp/properties.lo
332333

333334
This will cause LAMDA to **POST** device status information (JSON) to this link **every minute** after startup, which will not be listed here due to the number of fields.
334335

335-
LAMDA is updated regularly from github, the default channel update frequency is approximately 1-2 months, for stable the update frequency is 3-6 months, it is recommended to manually download the latest version from github release and update it manually on a regular basis. If this frequency affects your usage, run the following command to create an update configuration before starting LAMDA for the first time.
336+
> Configuring automatic updates
337+
338+
LAMDA has a logic for automatic updates, but due to minute service interruptions, this is currently limited to internal use. Please download and install the latest version from github at your leisure at regular intervals.
339+
340+
If you really don't care if the service is unavailable by the minute when you update, writing the following configuration file before starting LAMDA will ensure that LAMDA is always up to date.
336341

337342
```bash
338-
# Enter the adb shell and execute
339-
echo "upgrade.channel=stable" >>/data/local/tmp/properties.local
343+
# Go to the adb shell and execute
344+
echo "upgrade.channel=latest" >> /data/local/tmp/properties.local
340345
```
341346

347+
> properties.local startup configuration
348+
342349
Before we start, it is important to introduce the `properties.local` file above.
343350
properties.local is the LAMDA startup configuration file, usually stored on top of the device, which contains strings of type `a=b`.
344351
By writing this file you can implement automatic connections to OpenVPN, proxies, port forwarding etc. when LAMDA starts.
@@ -507,8 +514,7 @@ The remote desktop feature is designed for Chrome 95+ only, it does not support
507514

508515
Open the link `http://192.168.0.2:65000` in your browser to access the web remote desktop, where you can operate the device and execute commands through the root emulation terminal of the interface. If you specify the PEM certificate `--certificate` when starting the server, the remote desktop will require you to enter a password in order to continue accessing it, which you can find in the last line of the PEM certificate as a fixed 32-bit password.
509516

510-
You can also customise the video frame rate (fps), resolution scaling (res) and image quality of the remote desktop. Also, H.264 soft encoding is supported (less traffic and smoother in some cases, only with the latest Chrome browser).
511-
All you need to do is compose the above parameters into the following link `http://192.168.0.2:65000/?fps=25&quality=20&res=0.5&h264`, this link means that the remote desktop is displayed at 25fps with image quality of 20, scaled to 0.5 times the original resolution, and H264 support is enabled. These are the defaults, except for h264 which is not enabled by default. Please note, however, that adjusting the above parameters will not necessarily produce positive results, so please adjust according to the facts.
517+
You can also customise the video frame rate (fps), resolution scaling (res) and image quality of the Remote Desktop. Also, H.264 soft encoding is supported (in some cases less traffic and smoother, only with the latest version of Chrome). You can adjust this via the small gear in the top right corner of Remote Desktop, but please note that adjusting the above parameters will not necessarily have a positive effect, so please adjust according to the facts.
512518

513519
For a more user-friendly experience such as keyboard input, see the following section `Wirelessly connecting to a WIFI ADB with built-in root privileges`.
514520
After completing adb connect to LAMDA, install [Genymobile/scrcpy](https://github.com/Genymobile/scrcpy) or [barry-ran/QtScrcpy](https://github.com/barry-ran/QtScrcpy), see their documentation for details.
@@ -532,9 +538,9 @@ LAMDA's tunnel2 feature, which allows you to use the device running LAMDA as an
532538
curl -x http://192.168.0.2:65000 https://httpbin.org/ip
533539
```
534540

535-
Custom Proxy Configuration
536-
If you wish to use a mobile network (4G/5G) as a proxy outlet, it should be noted that native rmnet mobile data does not co-exist with WIFI.
537-
LAMDA requires your Android >= 9.0 in order to use 4G mobile data as a proxy outlet while connected to WIFI.
541+
### Custom Proxy Configuration
542+
543+
If you want to use a mobile network (4G/5G) as a proxy outlet.
538544

539545
```ini
540546
# Append to properties.local configuration file

README.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ MOMO (vvb2060) 是我们认为目前最强的ROOT特征检测软件,如 MOMO
121121
- [文件上传](#文件上传)
122122
- [文件下载](#文件下载)
123123
- [移动代理](#移动代理)
124+
- [自定义代理配置](#自定义代理配置)
124125
- [连接设备](#连接设备)
125126
- [先来一个热身](#先来一个热身)
126127
- [设置系统代理](#设置系统代理)
@@ -339,14 +340,19 @@ echo "stat-report.url=http://example.com/report" >>/data/local/tmp/properties.lo
339340

340341
这样 LAMDA 会在启动后**每分钟**向此链接**POST**设备状态信息(JSON),由于字段较多,将不在此罗列。
341342

343+
> 配置自动更新
342344
343-
LAMDA 会定期从 github 更新,默认频道更新频率约1-2月一次,stable 的更新频率为 3-6 月,建议定期手动从 github release 下载最新版本手动更新。如果该频率会影响到你的使用,在首次启动 LAMDA 之前执行以下命令创建更新配置。
345+
LAMDA 存在一个自动更新的逻辑,但是由于存在分钟级的服务中断,目前仅限于内部自用。除了存在紧急安全问题或者致命BUG等情况,LAMDA 不会进行任何自动更新,请自行定期在闲时从 github 下载并安装最新版本。
346+
347+
如果你确实不在意更新时分钟级的服务不可用,启动 LAMDA 之前写入以下配置文件可以确保 LAMDA 始终为最新版本。
344348

345349
```bash
346350
# 进入 adb shell 执行
347-
echo "upgrade.channel=stable" >>/data/local/tmp/properties.local
351+
echo "upgrade.channel=latest" >>/data/local/tmp/properties.local
348352
```
349353

354+
> properties.local 启动配置
355+
350356
在开始前,有必要介绍一下上面的 `properties.local` 文件,
351357
properties.local 为 LAMDA 的启动配置文件,通常存储于设备之上,其中包含了 `a=b` 类型的字符串,
352358
通过编写此文件,你可以实现在 LAMDA 启动时自动连接到 OpenVPN、代理、端口转发等。
@@ -516,8 +522,7 @@ reboot
516522

517523
在浏览器中打开链接 `http://192.168.0.2:65000` 可进入 web 远程桌面,你可以在此操作设备以及通过该界面的root模拟终端执行命令。如果启动服务端时指定了PEM证书 `--certificate`,远程桌面将需要你输入密码才能继续访问,你可以在PEM证书最后一行找到这个32位的固定密码。
518524

519-
你也可以自定义远程桌面的 视频帧率(fps)、分辨率缩放比例(res)以及图像质量(quality)。同时,支持 H.264 软编码(部分情况下使用流量更少更流畅,仅支持最新版 Chrome 浏览器)。
520-
你只需要将以上参数组成如下链接即可 `http://192.168.0.2:65000/?fps=25&quality=20&res=0.5&h264`,此链接代表,显示25fps的远程桌面,图像质量为20,缩放到原始分辨率的0.5倍,同时开启H264支持。除 h264 默认为不开启外,其他均为默认值。但是请注意,调整以上参数并不一定会产生正向效果,请依据事实调整。
525+
你也可以自定义远程桌面的 视频帧率(fps)、分辨率缩放比例(res)以及图像质量(quality)。同时,支持 H.264 软编码(部分情况下使用流量更少更流畅,仅支持最新版 Chrome 浏览器)。你可以通过远程桌面右上角的小齿轮进行调整,但是请注意,调整以上参数并不一定会产生正向效果,请依据事实调整。
521526

522527
如果需要键盘输入等更加人性化的操作体验,请先看下面的章节 `无线连接内置 root 权限的 WIFI ADB`
523528
完成 adb connect 到 LAMDA 后,安装使用 [Genymobile/scrcpy](https://github.com/Genymobile/scrcpy) 或者 [barry-ran/QtScrcpy](https://github.com/barry-ran/QtScrcpy) 即可,具体使用方法请查看其使用文档。
@@ -541,9 +546,9 @@ LAMDA 的 tunnel2 功能,支持你将运行 LAMDA 的设备作为 http 网络
541546
curl -x http://192.168.0.2:65000 https://httpbin.org/ip
542547
```
543548

544-
自定义代理配置
545-
如果你想使用移动网络(4G/5G)作为代理出口,需要说明的是,原生 rmnet 移动数据 与 WIFI 无法共存。
546-
LAMDA 需要你的安卓 >= 9.0的才能在连接WIFI的情况下使用4G移动数据作为代理出口
549+
### 自定义代理配置
550+
551+
如果你想使用移动网络(4G/5G)作为代理出口
547552

548553
```ini
549554
# 追加到 properties.local 配置文件

lamda/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# Distributed under MIT license.
44
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5-
__version__ = "3.150"
5+
__version__ = "3.151"

0 commit comments

Comments
 (0)