forum icon indicating copy to clipboard operation
forum copied to clipboard

Note recovery from an older version backup [Help Wanted]

Open brch-01 opened this issue 2 years ago • 2 comments

Help needed recovering notes from a backup of files from Android app version 3.45.4. Is it possible?

As far as I have seen, there are only sqlite database files which could contain encrypted notes. Is it possible to decrypt them? I have tried installing the old version of the app, but it does not run on my current Xiaomi Mi 9 Lite, running Lineage OS, and the current version of the app arranges the files an a different manner.

Here is the backed up app data file tree:

com.standardnotes
|   _manifest
|
+---a
|       base.apk
|
+---db
|       RKStorage
|       RKStorage-journal
|
+---r
|   +---app_textures
|   +---app_webview
|   |   |   pref_store
|   |   |   variations_seed
|   |   |   variations_seed_new
|   |   |   variations_stamp
|   |   |   webview_data.lock
|   |   |
|   |   \---Default
|   |       |   Web Data
|   |       |   Web Data-journal
|   |       |
|   |       +---blob_storage
|   |       |   \---efde2ded-67e4-47c0-9ad8-f7097e3adb38
|   |       \---Local Storage
|   |           \---leveldb
|   |                   000003.log
|   |                   CURRENT
|   |                   LOCK
|   |                   LOG
|   |                   LOG.old
|   |                   MANIFEST-000001
|   |
|   +---lib-0
|   |       dso_deps
|   |       dso_lock
|   |       dso_manifest
|   |       dso_state
|   |       libbetter.so
|   |       libc++_shared.so
|   |       libconceal.so
|   |       libfabricjni.so
|   |       libfb.so
|   |       libfbjni.so
|   |       libfolly_futures.so
|   |       libfolly_json.so
|   |       libglog.so
|   |       libglog_init.so
|   |       libhermes-executor-common-debug.so
|   |       libhermes-executor-common-release.so
|   |       libhermes-executor-debug.so
|   |       libhermes-executor-release.so
|   |       libhermes-inspector.so
|   |       libhermes.so
|   |       libimagepipeline.so
|   |       libjscexecutor.so
|   |       libjsi.so
|   |       libjsijniprofiler.so
|   |       libjsinspector.so
|   |       liblogger.so
|   |       libmapbufferjni.so
|   |       libnative-filters.so
|   |       libnative-imagetranscoder.so
|   |       libreactconfig.so
|   |       libreactnativeblob.so
|   |       libreactnativejni.so
|   |       libreactnativeutilsjni.so
|   |       libreactperfloggerjni.so
|   |       libreact_codegen_rncore.so
|   |       libreact_debug.so
|   |       libreact_nativemodule_core.so
|   |       libreact_render_animations.so
|   |       libreact_render_attributedstring.so
|   |       libreact_render_componentregistry.so
|   |       libreact_render_core.so
|   |       libreact_render_debug.so
|   |       libreact_render_graphics.so
|   |       libreact_render_imagemanager.so
|   |       libreact_render_leakchecker.so
|   |       libreact_render_mapbuffer.so
|   |       libreact_render_mounting.so
|   |       libreact_render_runtimescheduler.so
|   |       libreact_render_scheduler.so
|   |       libreact_render_telemetry.so
|   |       libreact_render_templateprocessor.so
|   |       libreact_render_textlayoutmanager.so
|   |       libreact_render_uimanager.so
|   |       libreact_utils.so
|   |       librrc_image.so
|   |       librrc_modal.so
|   |       librrc_progressbar.so
|   |       librrc_root.so
|   |       librrc_scrollview.so
|   |       librrc_slider.so
|   |       librrc_switch.so
|   |       librrc_text.so
|   |       librrc_textinput.so
|   |       librrc_unimplementedview.so
|   |       librrc_view.so
|   |       libturbomodulejsijni.so
|   |       libyoga.so
|   |
|   +---lib-1
|   |       dso_deps
|   |       dso_lock
|   |       dso_manifest
|   |       dso_state
|   |
|   +---lib-2
|   |       dso_deps
|   |       dso_lock
|   |       dso_manifest
|   |       dso_state
|   |
|   +---lib-3
|   |       dso_deps
|   |       dso_lock
|   |       dso_manifest
|   |       dso_state
|   |
|   +---lib-4
|   |       dso_deps
|   |       dso_lock
|   |       dso_manifest
|   |       dso_state
|   |
|   \---lib-main
|           dso_deps
|           dso_lock
|           dso_manifest
|           dso_state
|
\---sp
        WebViewChromiumPrefs.xml

If any more info is required for coming up with a solution, I will provide it as long as it is within my ability to do so.

brch-01 avatar Aug 31 '23 19:08 brch-01

In a similiar situation, as the app stopped working, it freezes whenever i try to open. So guess only way its by make use of db RKStorage, which after inspect can confirm a few entries in catalystLocalStorage.

└── com.standardnotes
    ├── db
    │   ├── RKStorage
    │   └── RKStorage-journal
    ├── _manifest
    ├── r
    │   ├── app_textures
    │   └── app_webview
    │       ├── Default
    │       │   ├── blob_storage
    │       │   │   └── 317aa8b3-52df-4fd8-9211-b69c043a8aa0
    │       │   ├── Cookies
    │       │   ├── Cookies-journal
    │       │   ├── GPUCache
    │       │   │   ├── index
    │       │   │   └── index-dir
    │       │   │       └── the-real-index
    │       │   ├── Local Storage
    │       │   │   └── leveldb
    │       │   │       ├── 000003.log
    │       │   │       ├── CURRENT
    │       │   │       ├── LOCK
    │       │   │       ├── LOG
    │       │   │       ├── LOG.old
    │       │   │       └── MANIFEST-000001
    │       │   ├── Session Storage
    │       │   │   ├── 000003.log
    │       │   │   ├── CURRENT
    │       │   │   ├── LOCK
    │       │   │   ├── LOG
    │       │   │   └── MANIFEST-000001
    │       │   ├── Web Data
    │       │   └── Web Data-journal
    │       ├── pref_store
    │       ├── variations_seed
    │       ├── variations_stamp
    │       └── webview_data.lock
    └── sp
        ├── RN_KEYCHAIN.xml
        └── WebViewChromiumPrefs.xml

is it possible to generate a backup file so its usable with decrypt.html ?

zuble avatar Feb 06 '24 03:02 zuble

@zuble if you've been able to retrieve the data from RKStorage, you can try to reconstruct a custom JSON backup file by placing the data in sequence like in the sample backup file here

Standard Notes Backup and Import File.txt

effieeee avatar Feb 08 '24 15:02 effieeee