Android Emulator Signal Strength

Is there any way to simulate signal level changes in an Android emulator. In my application, I have the strength of the registration signal in the phonestatististener. I also use telnet for the emulator and commands like gsm signal 5 5, but I keep getting 99 as the signal strength of rssi and -1 as the error rate in bits.

+6
source share
2 answers

I consider it a good idea to fake the interface in such cases.

interface SignalInformation{ float signalStrength(); //etc... } 

Create some dummy class for bullying, and then change it to a real working class.

 class MockSignal implements SignalInformation{ public float signalStrength(){ return 3.5; //or whatever behaviour you want (ie random number) } } 

Ok, hope you have an idea.

+1
source

I do not think that this is possible to do in the emulator.

A source

0
source

Source: https://habr.com/ru/post/918976/


All Articles