Android Question Debugging without Cable

epiCode

Active Member
Licensed User
I use partial wakelock method to keep my app running when screen is off.

The code works fine if screen is off and phone is connected via adb, but not when unplugged.
It seems debug mode prevents the phone to get into sleep.
Since the issue happens only when not connected to PC, It is not possible to debug it either.

Is there some way to be able to debug without being connected to PC ? or a workaround?
 

epiCode

Active Member
Licensed User
Tried that.
Bridge Disconnects after a min or so of screen being off.
"Keep Internet Alive" is turned on phone
Power Saving Mode is disabled.
B4X Bridge and target apk are both added to "do not kill" list of power saving.
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Debugging using a USB cable is more than just debugging. Connecting a USB cable also provides the phone with an external power source that is not available without the USB cable.

The power saving mode has been devised to reduce the draining of your phone battery. So what you want to continue is the communication via the WiFi adapter. You will therefore have to leave the WiFi adapter in power saving mode and accept the risk of an empty battery.

Also be aware that some (antivirus) applications in their "optimization" services put the WiFi device in the power saving mode to save the battery power.
 
Upvote 0
Top