Skip to content

Commit

Permalink
3.151
Browse files Browse the repository at this point in the history
  • Loading branch information
rev1si0n committed Apr 16, 2023
1 parent 8f97acb commit 583a13c
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.151
* 高分屏投屏被拉伸的问题 #41

3.150
* 修改定时任务重载时的逻辑
* 修复 scapy 路由的问题
Expand Down
22 changes: 14 additions & 8 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ For **Cloud Mobile**, AliCloud/Huawei Cloud Mobile is supported, X Finger, X Mul
- [File Uploads](#file-uploads)
- [File downloads](#file-downloads)
- [Mobile Proxy](#mobile-proxy)
- [Custom Proxy Configuration](#custom-proxy-configuration)
- [Connecting devices](#connecting-devices)
- [Let's start with a warm up](#lets-start-with-a-warm-up)
- [Setting up a system proxy](#setting-up-a-system-proxy)
Expand Down Expand Up @@ -332,13 +333,19 @@ echo "stat-report.url=http://example.com/report" >>/data/local/tmp/properties.lo

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.

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.
> Configuring automatic updates
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.

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.

```bash
# Enter the adb shell and execute
echo "upgrade.channel=stable" >>/data/local/tmp/properties.local
# Go to the adb shell and execute
echo "upgrade.channel=latest" >> /data/local/tmp/properties.local
```

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

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.

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).
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.
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.

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`.
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.
Expand All @@ -532,9 +538,9 @@ LAMDA's tunnel2 feature, which allows you to use the device running LAMDA as an
curl -x http://192.168.0.2:65000 https://httpbin.org/ip
```

Custom Proxy Configuration
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.
LAMDA requires your Android >= 9.0 in order to use 4G mobile data as a proxy outlet while connected to WIFI.
### Custom Proxy Configuration

If you want to use a mobile network (4G/5G) as a proxy outlet.

```ini
# Append to properties.local configuration file
Expand Down
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ MOMO (vvb2060) 是我们认为目前最强的ROOT特征检测软件,如 MOMO
- [文件上传](#文件上传)
- [文件下载](#文件下载)
- [移动代理](#移动代理)
- [自定义代理配置](#自定义代理配置)
- [连接设备](#连接设备)
- [先来一个热身](#先来一个热身)
- [设置系统代理](#设置系统代理)
Expand Down Expand Up @@ -339,14 +340,19 @@ echo "stat-report.url=http://example.com/report" >>/data/local/tmp/properties.lo

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

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

如果你确实不在意更新时分钟级的服务不可用,启动 LAMDA 之前写入以下配置文件可以确保 LAMDA 始终为最新版本。

```bash
# 进入 adb shell 执行
echo "upgrade.channel=stable" >>/data/local/tmp/properties.local
echo "upgrade.channel=latest" >>/data/local/tmp/properties.local
```

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

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

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

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

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

如果你想使用移动网络(4G/5G)作为代理出口

```ini
# 追加到 properties.local 配置文件
Expand Down
2 changes: 1 addition & 1 deletion lamda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# Distributed under MIT license.
# See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
__version__ = "3.150"
__version__ = "3.151"

0 comments on commit 583a13c

Please sign in to comment.