Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eda68e4f authored by Jeff Pu's avatar Jeff Pu
Browse files

Dump fingerprint configurations on CLI dumpsys command

Bug: 326227403
Test: adb shell dumpsys android.hardware.biometrics.fingerprint.IFingerprint/virtual
Change-Id: I75e11b7baef3566411588ea5231f6336d271dc77
parent 1e3f8851
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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];

+2 −0
Original line number Diff line number Diff line
@@ -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;
}