** English ** | 简体中文
Run full-featured Trilium on Android. Take your second brain with you, right in your pocket :)
Please stand up and stretch your body for a while if you see this message :)
This project is inspired by and heavily modified from the Cateners/tiny_computer project.
Pocket Trilium allows you to run the powerful Trilium Notes app on Android devices. While originally based on the tiny_computer project, this version has undergone significant modifications to better suit my needs.
Run Trilium on your phone.
You can choose your Trilium version on first start.
- Choose Trilium version
- Works offline
- Copy
trilium-datato phone and use it directly - Sync data with Trilium Server
- You can access pocket trilium with http://your-phone-ip:8080 on your computer in the same wifi
- Image upload from phone works now
-
Backbutton/gesture works in Trilium page now - Reinstall Trilium to upgrade
- Manually clear cache
- Open links in note with system default browser app
- Switch between mobile and desktop mode without restarting Pocket Trilium
- The
trilium-dataFolder:
- You can setup the sync like other Trilium client do. Or, you can copy the
trilium-datafolder from your desktop client to your phone. - With Pocket Trilium open in the background, open android system's built-in File Manager (com.android.documentsui). Some system may hide this app by default, you can access it with https://github.com/sdex/ActivityManager
- You can find Pocket Trilium's container storage in the top left hamburger button.
- Copy your
trilium-datainto Pocket Trilium's/0/home/pocket/folder, restart Pocket Trilium, it will read the data from/0/home/pocket/trilium-data.
-
Open the app and navigate to
Control. If you're currently inside Trilium, you can return to Pocket Trilium’s main UI by pressing the back button or using swipe gesture on your Android device. -
Click
Global Settings. -
Turn on
Reinstall Trilium.Note: This operation will only remove the installed Trilium program itself and will not affect your Trilium data directory (trilium-data). Your data will remain intact after reinstalling, just like when you upgrade Trilium on a computer. You can rest assured that your data will not be lost during the upgrade process :)
-
Restart the app.
Once the app restarts, you'll see a pop-up menu that allows you to select the Trilium version.
Can not connect to Trilium behind Traefik — "unable to resolve internal DNS" or "cert mismatch" error
2 ways to solve this.
- Use server IP and Port instead of domain (works without SSL cert).
- If you need ssl, go to
Control - Advanced Settings - Trilium Startup Commandset your own dns server like this:
echo "nameserver 10.20.30.40" > /etc/resolv.conf
Refer to this Reddit comment
If the app fails to start and you encounter an error such as double free or corruption, I've added a retry mechanism to start trilium for 10 times automatically if this happens.
If that does not work for you, try the following:
- Force close the app.
- Wait a few seconds to allow the system to terminate any associated processes.
- Restart the app.
If needed, repeat this process a few times. The app should eventually start successfully.
If you're using an Android 12+ device, you may need to disable the "Stop restricting child processes" option in the Developer Options menu.
- The APK size has reduced from over 1GB with 4GB of data to approximately 360MB with 1GB of data. Additionally, the first time startup time has decreased dramatically.
- Image upload is now working in the app.
To keep the repository size reasonable, several large files are not included in this repo. You will need to build them yourself.
assets/xa*files (rootfs) — Build them by following the instructions in rootfs.md.assets/trilium.tar.xz— Built-in Trilium Notes. The original 0.63.7 version requires recompilation for arm64 platforms. The included version is a recompiled Chinese localization from Nriver/trilium-translation.android/app/src/main/jniLibs/arm64-v8a/*.so— Native libraries compiled and extracted from termux-packages. See detailed instructions in jniLibs.md.
A huge thank you to the Cateners/tiny_computer project for laying the groundwork for this project. The initial code for Pocket Trilium was based on the following commit: 6425e04.
While I’ve made many changes to adapt the project to my use case, I decided to start a new repository instead of maintaining it as a fork, since the goals of this project diverged significantly from the original.
Thank Zadam for creating the wonderful Trilium in the first place. Thanks to everyone in the Trilium community.
And some credit to my old studies years ago :) Tutorial to Run Trilium Server in Termux on Android and Tutorial: Run TriliumNext Server in Termux on Android.
A big thank you to everyone who participated in the Google Play closed testing of Pocket Trilium.
Your feedback, bug reports, and suggestions were incredibly helpful and directly influenced the stability and usability of the app before its public release.
The following names are provided voluntarily by the testers (nicknames or real names), listed in no particular order:
- Icixy
- 2sr.fun
- hishuxs
- ziven要加油啊
- 蓝天龙
- 辰星
- zm
- hikit
- YIGEHAOR8.
- Neuro
- 刘世杰
- catalpa
- 信
- 阿华田
- 欧神小白
- 腐草
- 风中笑
- Yida
- Cleavory
- AT
- 天涯056
- 卑以自牧
- joshooear
- 1v7w
- 李重茂
- Black bat 3625
- TonyMin
- 冰
- 小辉哥
- 浸月
- T_L
- Bry
- sang
- nsf
And thanks as well to all testers who chose to remain anonymous — your support is equally appreciated ❤️
This project is licensed under the GNU Affero General Public License v3.0. See the LICENSE file for more details.
Hello! If you appreciate my creations, kindly consider backing me. Your support is greatly appreciated. Thank you!











