I have modified android-emulator-webrtc/src/components/emulator/emulator.js to make use of getSensor and sendSms APIs.
const request = new Proto.SensorValue();
request.setTarget(Proto.SensorValue.SensorType.ORIENTATION);
const response = this.emulator.getSensor(request);
And
const request = new Proto.SmsMessage();
request.setSrcaddress("9900222333");
request.setText("Hello from Web");
const response = this.emulator.sendSms(request);
I have modified android-emulator-webrtc/src/components/emulator/emulator.js to make use of getSensor and sendSms APIs. const request = new Proto.SensorValue(); request.setTarget(Proto.SensorValue.SensorType.ORIENTATION); const response = this.emulator.getSensor(request); And const request = new Proto.SmsMessage(); request.setSrcaddress("9900222333"); request.setText("Hello from Web"); const response = this.emulator.sendSms(request);
Rest API: https://xx.xx.xx.xx/android.emulation.control.EmulatorController/sendSms Request Method: POST Status Code: 200 OK Remote Address: 34.100.245.198:443 Referrer Policy: strict-origin-when-cross-origin
Both the APIs returns null/undefined result.
Please let me know if there is any way to further debug it? How can I know what's happening at the implementation of sendSms Rest API.
Any help is highly appreciated.
Emulator: 31.2.8 Android image: google/sdk_gphone64_x86_64/emulator64_x86_64_arm64:12/S2B2.211203.006/8015633:user/release-keys