Commit 31729b43 authored by Lisa (AI Assistant)'s avatar Lisa (AI Assistant)

Add debug logging for file identity

parent 117bcb2f
...@@ -94,7 +94,10 @@ class NodeClient() { ...@@ -94,7 +94,10 @@ class NodeClient() {
// Use a file instead of SharedPreferences to ensure it works across processes // Use a file instead of SharedPreferences to ensure it works across processes
// SharedPreferences are not shared between processes by default // SharedPreferences are not shared between processes by default
val identityFile = context?.let { File(it.filesDir, "device_identity.json") } val filesDir = context?.filesDir
Log.d(TAG, "filesDir: $filesDir")
val identityFile = filesDir?.let { File(it, "device_identity.json") }
Log.d(TAG, "identityFile: $identityFile, exists: ${identityFile?.exists()}")
if (identityFile?.exists() == true) { if (identityFile?.exists() == true) {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment