mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 16:45:57 +03:00
[GH-ISSUE #1389] One Android Emulator Available, But Proxyman Sees Two #1384
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1384
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @armen-y on GitHub (Oct 12, 2022).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1389
Originally assigned to: @NghiaTranUIT on GitHub.
Description
Only one Android emulator exists on my system, as reported by both Android Studio and the
adb devicescommand. Proxyman reports that there are two.Steps to Reproduce
Cannot provide steps to reproduce. But can provide evidence, in the form a a screenshot, attached.
Current Behavior
Proxyman's
Certificate -> Install Certificate on Android -> Emulators -> Override Emulatorunavailable due to phantom second emulator visible to Proxyman, but invisible toadb devices.Expected Behavior
Overriding the one extant emulator should be possible.
Environment
Proxyman Version 3.11.0 (31100)
macOS Monterey 12.6, arm64
Android Debug Bridge version 1.0.41
Version 33.0.3-8952118
Android Studio Dolphin | 2021.3.1
Build #AI-213.7172.25.2113.9014738, built on August 31, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 aarch64
@NghiaTranUIT commented on GitHub (Oct 13, 2022):
Look like it's a bug.
To count the number of emulators, Proxyman reads the Running Processes in the Monitor Activity app. (NSWorkspace.runningApplications), and counts how many processes which has the prefix name:
qemu-systemIf the executable path also contains the
Android/sdk/emulator, it's an Android Emulator.If you don't mind @armen-y, please
qemu-system=> Please kill all of them to fix the bug.
Maybe I also allow running the scripts if there are >= 2 devices.
@NghiaTranUIT commented on GitHub (Oct 13, 2022):
@armen-y let's try this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_3.11.0_Support_multiple_android_emulators.dmg
I've improved the Bash script to support multiple Android Emulators 👍
@armen-y commented on GitHub (Oct 13, 2022):
Hi Nghia,
I like the beta, looks good to me! Here are my findings, from the
screenshot attached.
Android Studio shows only one available emulator.
of them is a "phantom" process for a non-existent emulator. I expect this
will disappear after a reboot or manual kill.
one available emulator without error. It silently ignores the missing
emulator.
I think this is perfect! Many thanks for your help!!
-A.
[image: Devices.png]
On Thu, Oct 13, 2022 at 12:53 AM Nghia Tran @.***>
wrote:
@NghiaTranUIT commented on GitHub (Oct 14, 2022):
Awesome, glad to know that it works 😄
Gonna ship this feature soon 🙌