Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Running Monitor #1

Open
serrapa opened this issue Sep 18, 2024 · 6 comments
Open

Help Running Monitor #1

serrapa opened this issue Sep 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@serrapa
Copy link

serrapa commented Sep 18, 2024

Hello, I am trying to run the monitor as stated in step 2 of "Basic Usage", but I cannot find where it is. On OSX, the command "./gradlew build" did not provide any executable. Can you help me?

@Ch0pin
Copy link
Owner

Ch0pin commented Sep 18, 2024

Can you add here the ./gradlew build output ?

@serrapa
Copy link
Author

serrapa commented Sep 18, 2024

Here we are:

(venv) ~/tools/stheno/Intent-monitor git:main ❯ ./gradlew build

Downloading https://services.gradle.org/distributions/gradle-8.7-bin.zip
............10%.............20%.............30%.............40%............50%.............60%.............70%.............80%.............90%............100%

Welcome to Gradle 8.7!

Here are the highlights of this release:
 - Compiling and testing with Java 22
 - Cacheable Groovy script compilation
 - New methods in lazy collection properties

For more details see https://docs.gradle.org/8.7/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 25s
6 actionable tasks: 6 executed

Nothing useful I suppose, it completed successfully though

@Ch0pin
Copy link
Owner

Ch0pin commented Sep 18, 2024

what about this one ?
/stheno/Intent-monitor/build/install/Intent-monitor/bin/Intent-monitor

@serrapa
Copy link
Author

serrapa commented Sep 18, 2024

I found the answer, inside /stheno/Intent-monitor/build/distributions you need to unzip IntentMonitor.zip and than you have the binary to run. Now I succesfully run the monitor, however I got another problem: I cannot see the intents receive from my app. I am sending a test intent with adb to see if I can see it in the monitor, but nothing appears

@serrapa
Copy link
Author

serrapa commented Sep 18, 2024

I see this error in the monitor log:

org.json.JSONException: JSONObject["targetIsExported"] is not a Boolean (class org.json.JSONObject$Null : null).
	at org.json@20240303/org.json.JSONObject.wrongValueFormatException(JSONObject.java:2949)
	at org.json@20240303/org.json.JSONObject.getBoolean(JSONObject.java:647)
	at org.medusa.intentmonitor/org.medusa.intentmonitor.controllers.MainScreenController.addItem(MainScreenController.java:201)
	at org.medusa.intentmonitor/org.medusa.intentmonitor.socket.SocClient.lambda$startCommunication$0(SocClient.java:39)
	at java.base/java.lang.Thread.run(Thread.java:1583)

@Ch0pin
Copy link
Owner

Ch0pin commented Sep 18, 2024

I see, thanks, I'll check it out.

@Ch0pin Ch0pin added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants