Skip to content

Commit

Permalink
修复Chrome浏览器等应用程序的Session配置错误问题
Browse files Browse the repository at this point in the history
修改控制文件逻辑
修改README

Fix session configuration error of Chrome browser and other applications
Modify control file logic
Modify Readme
  • Loading branch information
w2016561536 committed Feb 5, 2022
1 parent 4ba44f6 commit 8fc438a
Show file tree
Hide file tree
Showing 17 changed files with 248 additions and 82 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@

5. 若在目标应用中拍照却显示真实图片,且出现气泡消息`发现拍照`和分辨率,则需根据此分辨率数据准备一张照片,命名为`1000.bmp`,放入`Camera1`目录下(支持其它格式改后缀为bmp)。如果拍照时无气泡消息提示,则`1000.bmp`无效。

6. 如果需要播放视频的声音,需在`Camera1`目录下创建`no-silent.jpg`文件。
6. 如果需要播放视频的声音,需在`/[内部存储]/DCIM/Camera1/`目录下创建`no-silent.jpg`文件。(全局实时生效)

7. 如果需要临时停用视频替换,需在`Camera1`目录下创建`disable.jpg`
7. 如果需要临时停用视频替换,需在`/[内部存储]/DCIM/Camera1/`目录下创建`disable.jpg`文件。(全局实时生效)

8. 如果觉得Toast消息烦,可以在`/[内部存储]/DCIM/Camera1/`目录下创建`no_toast.jpg`文件。(全局实时生效)

9. 目录重定向消息默认只显示一次,如果错过了目录重定向的Toast消息,可以在`/[内部存储]/DCIM/Camera1/`目录下创建`force_show.jpg`文件来覆盖默认设定。(全局实时生效)


## 常见问题
Expand All @@ -42,9 +46,13 @@ A2. 目前有些应用并不能成功替换(特别是系统相机)。或者
Q3. 画面花屏?
A3. 视频分辨率不对。

Q4. 画面扭曲,变形?
Q4. 画面扭曲,变形?
A4. 请使用剪辑软件修改原视频来匹配屏幕。

Q5. 创建`disable.jpg`无效?
A5. 如果应用版本`<=4.0`,那么`[内部存储]/DCIM/Camera1`目录下的文件对**具有访问存储权限**的应用生效,其余无权限应用应在**私有目录**下创建
如果应用版本`>=4.1`,那么应在`[内部存储]/DCIM/Camera1`创建,无论目标应用是否具有权限。


## 反馈问题

Expand Down
15 changes: 12 additions & 3 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ A virtual camera based on Xposed

5. If there is a toast message when you take photos in app ("发现拍照"),it shows the photo's resolution. You need to prepare a photo which has the same resolution. Name it as `1000.bmp` . Put it under `Camera1` directory. (it support other image format renamed to bmp ). If there isn't a toast message , `1000.bmp` will have nothing to do with replacing capture.

6. If you need to play video's sound, create `no-silent.jpg` under `Camera1` directory.
6. If you need to play video's sound, create `./DCIM/Camera1/Camera1/virtual.mp4` under `Camera1` directory. (Global real-time effective)

7. If you need to turn off the module temporarily, create `./DCIM/Camera1/Camera1/virtual.mp4` under `Camera1` directory. (Global real-time effective)

8. If you find toast messages annoying, you can create a `no_toast.jpg` file in the `/[INTERNEL_STORAGE]/DCIM/Camera1/` directory. (Global real-time effective)

9. The directory redirection message is displayed only once by default. If you miss the toast message of directory redirection, you can create a `force_show.jpg` file in the `/[INTERNEL_STORAGE]/DCIM/Camera1/` directory to override the default setting. (Global real-time effective)

7. If you need to turn off the module temporarily, create `disable.jpg` under `Camera1` directory.

## FAQ

Expand All @@ -39,9 +44,13 @@ A2. Till now ,there are a few apps that can't be hooked, especially the system c
Q3. Blurred screen?
A3. The resolution of video is wrong.

Q4. Distorted picture?
Q4. Distorted picture?
A4. Please use the video editing software to modify the original video to match the screen.

Q5. `disable.jpg` invalid?
A5. If the application version `<=4.0`, then the control files in the `[INTERNEL_STORAGE]/DCIM/Camera1` directory will take effect for the applications that **have access to storage permissions**, and for the rest of the applications without permission, control files should be created in the **private directory**
If the app version `>=4.1`, it should be created in `[INTERNEL_STORAGE]/DCIM/Camera1` regardless of whether the target app has permissions.

## Question report:

raise it in issues directly. If it is a bug, please attach with Xposed **modules** log.
Expand Down
16 changes: 13 additions & 3 deletions README_tc.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@

5. 若在目標應用中拍照卻顯示真實圖片,且出現氣泡消息`發現拍照`和解析度,則需根據此解析度數據準備一張照片,命名為`1000.bmp`,放入`Camera1`目錄下(支持其它格式改尾碼為bmp)。 如果拍照時無氣泡消息提示,則`1000.bmp`無效。

6. 如果需要播放影片的聲音,需在`Camera1`目錄下創建`no-silent.jpg`檔案。
6. 如果需要播放影片的聲音,需在`/[內部存儲]/DCIM/Camera1/`目錄下創建`no-silent.jpg`檔案。(全域實时生效)

7. 如果需要臨時停用影片替換,需在`/[內部存儲]/DCIM/Camera1/`目錄下創建`disable.jpg`檔案。(全域實时生效)

8. 如果覺得Toast消息煩,可以在`/[內部存儲]/DCIM/Camera1/`目錄下創建`no_toast.jpg`檔案。 (全域實时生效)

9. 目錄重定向消息默認只顯示一次,如果錯過了目錄重定向的Toast消息,可以在`/[內部存儲]/DCIM/Camera1/`目錄下創建`force_show.jpg`檔案來覆蓋默認設定。 (全域實时生效)

7. 如果需要臨時停用影片替換,需在`Camera1`目錄下創建`disable.jpg`

## 常見問題

Expand All @@ -39,9 +44,14 @@ A2. 現時有些應用並不能成功替換(特別是系統相機)。 或者
Q3. 畫面花屏?
A3. 影片解析度不對。

Q4. 畫面扭曲,變形?
Q4. 畫面扭曲,變形?
A4. 請使用剪輯軟件修改原視頻來匹配荧幕。

Q5. 創建`disable. jpg`無效?
A5. 如果應用版本`<=4.0`,那麼`[內部存儲]/DCIM/Camera1`目錄下的檔案對**具有訪問存儲許可權**的應用生效,其餘無許可權應用應在**私有目錄**下創建
如果應用版本`>=4.1`,那麼應在`[內部存儲]/DCIM/Camera1`創建,無論目標應用是否具有許可權。


## 迴響問題

請直接在issues中迴響,如果為BUG迴響,請附帶Xposed**模組**日誌資訊。
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.example.vcam"
minSdk 21
targetSdk 27
versionCode 23
versionName "4.0"
versionCode 24
versionName "4.1"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 23,
"versionName": "4.0",
"versionCode": 24,
"versionName": "4.1",
"outputFile": "app-release.apk"
}
],
Expand Down
Loading

0 comments on commit 8fc438a

Please sign in to comment.