Romain Vimont
Romain Vimont
Oh, I used jadx too, but an old version (v1.2.0). With the latest (v1.4.6), I get the same source as you :tada:
```java IVivoAudioRecord iVivoAudioRecord = this.mVivoAudioRecord; if (iVivoAudioRecord == null) { i = 1; } else { String result = iVivoAudioRecord.isSupportSubMixRecording(); ``` Maybe we can force `mVivoAudioRecord` to be `null` :see_no_evil:
Let's try. @A-viral-dev please replace this binary in the v2.0 release, and run with `scrcpy -Vdebug`: - [`scrcpy-server`](https://tmp.rom1v.com/scrcpy/3805/1/scrcpy-server) `SHA-256: 682d39c1cbe24ae1279378b1c13b4d28106407ae5fa26db72613fdfeaec7f5e8` diff ```diff diff --git a/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java b/server/src/main/java/com/genymobile/scrcpy/AudioCapture.java index 9228e3d71..ce0e09bde 100644 ---...
> The call is in the constructor Oh, it was so far below that I thought it was in another method. :facepalm:
That's with a newer build from `dev` branch. Ibdon't have any solution fornvivo phones.
@yume-chan Great :+1: However, I'm a bit worried that it is a very specific/fragile code in the long run. On Android 11 it fails (because missing AttributeSource, but that's probably...
OK, maybe. The code could may be moved in a new method `Workarounds.createAudioRecord()`, and with native reflection (not to add a `joor` dependency). I think it may be adapted for...
@zwjgi #3862
@631jike Please test this version: https://github.com/Genymobile/scrcpy/pull/3862#issuecomment-1561871804
(To Vivo device users) The Vivo issue with audio is fixed on `dev` branch and it should work on the future scrcpy 2.1 release. However, I'm afraid that a work-in-progress...