YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
634 stars 179 forks source link

Expose arguments and env to `launch_app` #59

Open oxcug opened 2 years ago

oxcug commented 2 years ago

Hey folks, looks like the rpc call for launching an app hard-codes the args and env parameters. Can these be exposed? Happy to put up a PR. Code in question:

    pid = _rpc_channel.call(channel_name,
                            "launchSuspendedProcessWithDevicePath:bundleIdentifier:environment:arguments:options:", "",
                            bundle_id, {}, [], {"StartSuspendedKey": 0, "KillExisting": 1}).selector
YueChen-C commented 2 years ago

I think it can be exposed. Welcome to submit a pr