This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| # Find process with name containing 'launchd_sim' | |
| SIMULATOR_PID=$(pgrep launchd_sim) | |
| echo "Simulator PID: $SIMULATOR_PID" | |
| # Find sub-processes for the app's WebViews | |
| WEBKIT_CONTENT_PID=$(pgrep -P $SIMULATOR_PID 'com.apple.WebKit.WebContent') | |
| echo "WebKit WebContent PID(s):" | |
| echo $WEBKIT_CONTENT_PID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Array of potential package names associated with the WebView | |
| PACKAGE_NAMES=("com.android.webview" "com.google.android.webview") | |
| # Loop through each package name | |
| for PACKAGE_NAME in "${PACKAGE_NAMES[@]}" | |
| do | |
| echo "Checking for package: $PACKAGE_NAME" |