question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broadcast returned 0

See original GitHub issue

Hello everyone. I already know about the #117 and some others issues that are related. Whoever that issues did not solve the problem for me.

My computer: I am on fedora 27, running adb 1.0.40. My phone: wiko lenny 3, android 6, usb debug enabled. Other software requiring android 5 works properly (scrcpy) Gnirehtet version: rust binary, gnirehtet-rust-linux64-v2.3

The error:

2019-09-21 13:37:23.590 INFO Main: Starting relay server...
2019-09-21 13:37:23.590 INFO Main: Checking gnirehtet client...
2019-09-21 13:37:23.590 INFO Relay: Relay server started
2019-09-21 13:37:23.664 INFO Main: Starting client...
Broadcasting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver }
Broadcast completed: result=0

The first run of gnirehtet correctly install the apk on the phone:

gnirehtet.apk: 1 file pushed. 0.6 MB/s (21564 bytes in 0.035s)
	pkg: /data/local/tmp/gnirehtet.apk
Success

The output of adb logcat by running adb logcat -c -> ./gnirehtet run -> adb logcat -d :

01-01 02:31:22.922   832  3168 V ActivityManager: Broadcast: Intent { act=com.genymobile.gnirehtet.START flg=0x10 cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver } ordered=true userid=-2 callerApp=null

01-01 02:31:22.923   832  3168 D LRRejector:  isLowMemory isBackgroundAppEn=false, packageName=com.genymobile.gnirehtet
01-01 02:31:22.923   832  3168 D LRRejector: isShouldReject broadcast packageName=com.genymobile.gnirehtet , isAlowwAppflag =false ,islowramnow=true , isAboutForegroudApp = false , success=true

These are the only lines in the log regarding gnirehtet. The connection doesn’t work and the confirmation popup didn’t show up.

What I tried (in mixed order)

  • ./gnirehtet reinstall
  • reboot phone (after reinstall)
  • kill adb server and restart adb
  • browse the web regardless of the missing confirmation prompt

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:38

github_iconTop GitHub Comments

5reactions
rom1vcommented, Nov 14, 2019

Here is a build for current master (e87f7e650dc53d37bdf0d03d2f744a873464c6cb):

Do not forget to execute ./gnirehtet uninstall before testing it.

Consider it as a release candidate 😃 Feedbacks welcome.

2reactions
rom1vcommented, Nov 18, 2019

Thank you for all your feedbacks.

I just released v2.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android BroadcastReceiver returns zero - Stack Overflow
I make a broadcast call on my Android 10 device, but it returns zero. I tried the suggested solutions but they didn't work....
Read more >
FTP PASV returning broadcast address - Server Fault
I am trying to configure an FTP server at home with Ubuntu 16.04 Server but there's an issue with PASV. I can't make...
Read more >
EpcTftClassifier::Classify returning 0 ( no match ) for broadcast
Hi,. The fuction Classify returns 0 when I try to broadcast. Classifying packet: localAddr=10.0.0.7 remoteAddr=255.255.255.255 localPort=49153 ...
Read more >
How do I debug why my ActionCable broadcast is returning nil?
First, I'd check to make sure your cable.yml defines using redis in development so that it can be shared between processes. Second, if...
Read more >
Issue BROADCAST-STREAM-RETURN-VALUES Writeup
to broadcast streams doesn't work well for certain kinds of operations,. STREAM-ELEMENT-TYPE being an example. The zero-argument stream case is important, too, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found