Skip to content

Commit 46ca257

Browse files
authored
Merge pull request #1712 from NativeScript/fix/direct-boot-crash
fix: direct boot should not crash/ANR
2 parents e7e8eaf + d2b18d7 commit 46ca257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-app/runtime/src/main/cpp/MetadataNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ void MetadataNode::BuildMetadata(const string& filesPath) {
18121812

18131813
// TODO: Is there a way to detect if the screen is locked as verification
18141814
// We assume based on the error that this is the only way to get this specific error here at this point
1815-
if (errno == ENOENT) {
1815+
if (errno == ENOENT || errno == EACCES) {
18161816
// Log the error with error code
18171817
__android_log_print(ANDROID_LOG_ERROR, "TNS.error", "%s", ss.str().c_str());
18181818

0 commit comments

Comments
 (0)