ARTICLE AD BOX
When developing software for BYD's in-vehicle infotainment system, the app lacks a system signature, and the system is not rooted. How can I obtain information from the system?
package com.findCar.app import android.hardware.bydauto.speed.BYDAutoSpeedDevice import io.flutter.embedding.android.FlutterActivity import io.flutter.plugin.common.MethodChannel class MainActivity: FlutterActivity() { private val CHANNEL = "byd_auto" override fun configureFlutterEngine(flutterEngine: io.flutter.embedding.engine.FlutterEngine) { super.configureFlutterEngine(flutterEngine) MethodChannel( flutterEngine.dartExecutor.binaryMessenger, CHANNEL ).setMethodCallHandler { call, result -> if (call.method == "getSpeed") { val device = BYDAutoSpeedDevice.getInstance(this) val speed = device.currentSpeed result.success(speed) } else { result.notImplemented() } } } }