Dump fingerprint configurations on CLI dumpsys command

Bug: 326227403
Test: adb shell dumpsys android.hardware.biometrics.fingerprint.IFingerprint/virtual
Change-Id: I75e11b7baef3566411588ea5231f6336d271dc77
This commit is contained in:
Jeff Pu
2024-04-10 15:47:59 -04:00
parent 1e3f885162
commit eda68e4ffe
2 changed files with 3 additions and 0 deletions

View File

@@ -132,6 +132,7 @@ ConfigValue Config::getDefault(const std::string& name) {
}
bool Config::setInternal(const std::string& name, const ConfigValue& val) {
LOG(INFO) << "Config::set " << name << " to " << toString(val);
bool res = false;
auto& data = mMap[name];

View File

@@ -125,6 +125,8 @@ binder_status_t Fingerprint::dump(int fd, const char** /*args*/, uint32_t numArg
}
::android::base::WriteStringToFd(mEngine->toString(), fd);
::android::base::WriteStringToFd(Fingerprint::cfg().toString(), fd);
fsync(fd);
return STATUS_OK;
}