No description
Find a file
Linus Björnstam d3b3a79ffb bjogui 0.1.0 from git, not ../bjogui
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 21:11:06 +01:00
src bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
tests bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
.gitignore bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
bjo.lock bjogui 0.1.0 from git, not ../bjogui 2026-11-21 21:11:06 +01:00
icon.png bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
icon.svg bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
LICENSE bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
manifest.bjodat bjogui 0.1.0 from git, not ../bjogui 2026-11-21 21:11:06 +01:00
packages.lock.json bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00
Readme.org bjomarks-android: the Android client of bjomarks 2026-11-21 21:06:11 +01:00

bjomarks-android

Bookmarks on an Android phone. The bookmarks are a bjomarks vault in a folder that a file syncer, such as Syncthing, shares with your other devices. The folder holds only encrypted files.

Running it

bjo run --android              # build, install, start, and show the log
bjo publish --android          # the APK
bjo run src/main.bjo           # on the desktop, in a window
bjo run tests/app.bjo          # the tests, with no window

bjo run --android needs ANDROID_HOME and JAVA_HOME. See "Android" in Bjolang's Docs/Projects.org.

The app id is org.bjoli.bjomarks, the same as the Android build of bjomarks-gui. The two replace each other on a device.

Using it

  1. At the first start, tap "Choose folder…" and choose the shared folder in the system's picker. Then allow the app to use it. The app keeps the access and opens the folder again at each start.
  2. Type the password:

    • When the folder has no vault, the app makes one. Type the password two times.
    • When the folder has the vault of your other devices, this device joins it with their password.
    • After that, the password opens the vault of this device.
  3. The list shows the bookmarks, the newest first.

    • Tap a bookmark for its menu: Open, Open in private window, Copy address, Share, Edit, Remove.
    • Open in private window opens the page in Firefox's private browsing, or in Firefox Focus. Chrome does not let other apps open an incognito tab: then the address is copied, to paste in one.
    • Back clears the search, when one is typed; then it leaves the app.
    • "Undo" brings back the bookmarks that were removed, the last first.
  4. Several vaults: each shared folder is a vault of its own, named by its folder. The password screen has a list of the folders added, with "Add new…" at its end; the app opens the one used last at each start. "Remove from list" takes the one chosen off the list, and deletes nothing: adding its folder again opens it again. "Other bookmarks…", under "More", saves the open vault and goes back to the password screen.

    • Type in "Search" to find bookmarks. A word is looked for in the title, the address and the tags, and may have a typo. t:rust is the tag "rust", d:github.com the domain, a:2011:2012-06 the days added, "two words" exact text, and - before any of them excludes it. See (bjomarks search).
    • "New" adds a bookmark. "Fetch" beside the title gets the title of the page. "Fetch" beside the archive link gets the latest copy of the page in the Wayback Machine, if it has one.
    • "More" has "Import a Firefox backup…", "Help", and the name of the shared folder.
  5. In a browser, share a page to "Bjomarks". The dialog of a new bookmark opens with the address and the title of the page. When the vault is locked, the dialog opens after the password. When a bookmark has that address, the dialog of that bookmark opens.

To import the bookmarks of Firefox, make a backup on a computer: in Firefox's Library (Ctrl+Shift+O), choose Import and Backup, then Backup. Put the JSON file on the phone, then choose it under "More". Each folder of the backup becomes a tag. A bookmark whose address is here already is not changed.

A change is written to the folder at once, in the background. The app also reads the changes of your other devices each minute, when it goes to the background, and when it comes back.

Files

  • The shared folder: keys.bin, and a file for each device in devices/. See bjomarks.
  • This device's own files: a folder for each shared folder, in bjomarks/vaults in the app's folder for data, so that two shared folders are two vaults (see device-folder in bjomarks). The phone keeps the password of each behind its unlock on its own.
  • The settings: bjomarks/settings.json in the app's folder for configuration. It holds the folders added, each with its name and bookmark, and the one used last.

Modules

  • src/main.bjo: the program.
  • src/app.bjo, (bjomarks-android app): the model, the update and the views.
  • src/settings.bjo, (bjomarks-android settings): the settings file.

The shared folder has no path on Android. The app gives bjomarks a storage of functions (function-storage in (bjomarks store)) that reads and writes the folder through (bjogui storage).

Not yet

  • A way to start again on a device: forget this device's vault, and join the vault in the shared folder. Now, a device whose own files are of another vault asks for that vault's password. Clear the app's data to start again.
  • An icon, signing, and an AAB for a store.