Skip to content

Add FakeContext.getContentResolver()#5476

Merged
rom1v merged 1 commit intodevfrom
content-resolver
Nov 14, 2024
Merged

Add FakeContext.getContentResolver()#5476
rom1v merged 1 commit intodevfrom
content-resolver

Conversation

@rom1v
Copy link
Collaborator

@rom1v rom1v commented Nov 12, 2024

This avoids the following error on some devices:

Given calling package android does not match caller's uid 2000

This is basically the commit from @yume-chan here: #4639 (comment)
(I've just made minor changes)

Here is a full Windows binary from the current branch (updated on 2024-11-14):

@zlsq
Copy link

zlsq commented Nov 13, 2024

Can you give me the installation file for the Mac intel version so I can help test it?

This avoids the following error on some devices:

    Given calling package android does not match caller's uid 2000

Refs #4639 comment <#4639 (comment)>
Fixes #4639 <#4639>
PR #5476 <#5476>

Signed-off-by: Romain Vimont <rom@rom1v.com>
@rom1v rom1v merged commit 91373d9 into dev Nov 14, 2024
@rom1v
Copy link
Collaborator Author

rom1v commented Nov 14, 2024

@zlsq I rebased this PR on master and built the server:

  • scrcpy-server SHA-256: 1fe9a35ab2f1015f02fa66cc7b2871617e972ec6efce6406a7c26e093a4210d

You can try with scrcpy 2.7 and:

export SCRCPY_SERVER_PATH=path/to/the/scrcpy-sever  # adapt the path
scrcpy

bartsaintgermain pushed a commit to bartsaintgermain/scrcpy that referenced this pull request Apr 11, 2025
This avoids the following error on some devices:

    Given calling package android does not match caller's uid 2000

Refs Genymobile#4639 comment <Genymobile#4639 (comment)>
Fixes Genymobile#4639 <Genymobile#4639>
PR Genymobile#5476 <Genymobile#5476>

Signed-off-by: Romain Vimont <rom@rom1v.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants