-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The FP HAL spams like hell when using the fingerprint reader. Touching the reader with the correct finger causes 272(!) logcat lines. This slows the wake up significantly... Since there is no switch built into the HAL to disable this output, just shim the whole log function to return nothing. A good indicator of how much the spamming slows down the wake up are the physical buttons. They light up quite fast but the screen is activated only after all the logging is done. With this shim in place the screen and buttons light up nearly simultaneously. Change-Id: Ic51e8c2ddd7588fdb14a4ecf62b26dd8504c5e16
- Loading branch information
Showing
4 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,7 +177,8 @@ PRODUCT_PACKAGES += \ | |
|
||
# Fingerprint | ||
PRODUCT_PACKAGES += \ | ||
[email protected]_markw | ||
[email protected]_markw \ | ||
fakelogprint | ||
|
||
# FM | ||
PRODUCT_PACKAGES += \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <log/log_transport.h> | ||
#include <private/android_filesystem_config.h> | ||
#include <private/android_logger.h> | ||
|
||
int __android_log_print(int prio, const char* tag, const char* fmt, ...) { | ||
// Goodix: please don't spam that much! | ||
return 0; | ||
} |