57 Commits

Author SHA1 Message Date
guoling 7b20c03c34 Harden encrypted write and key handling 2026-08-05 13:39:29 +08:00
guoling b56ce1004f merge ashmem size with expectedCapacity on Android & OHOS 2026-02-11 12:39:08 +08:00
guoling ed0cade7e8 add MMKVConfig for Android 2026-02-06 20:28:19 +08:00
guoling ac1817575d fix fcntl() OFD lock failure on ashmem #261 #1637 2026-02-02 16:05:38 +08:00
guoling d99404baeb reduce absolutePath() call as much as possible 2025-12-16 18:32:19 +08:00
guoling 0307e43ed7 add aes256 option on Android 2025-11-28 17:26:09 +08:00
guoling 99ec377bc4 fix special relative path not created bug 2025-08-20 12:04:53 +08:00
guoling 82c32013ef remove checkProcessMode() from OHOS 2025-04-23 14:24:33 +08:00
guoling 0a5e78b215 add enableDisableProcessMode() for Android 2025-04-23 12:23:41 +08:00
guoling 608d775bf6 make data file mayfly fd except ashmem on Android/OHOS 2025-04-18 18:11:42 +08:00
guoling 2fe9a47cac add mayfly fd for Android/OHOS 2025-04-18 17:54:54 +08:00
guoling a7d70e187a NameSpace works on POSIX 2025-01-07 20:32:36 +08:00
guoling 147f89dba7 migrate legacy mmap ID to normal ID 2025-01-06 15:58:01 +08:00
guoling fca2582343 fix tryAtomicRename() with src == dst bug 2025-01-06 15:55:51 +08:00
guoling 0bd466efe3 support correct filename on custom root path 2024-12-24 19:29:07 +08:00
guoling 3b8c11d944 fix merge error 2024-12-17 17:45:27 +08:00
guoling 20b68dbc71 fix tryAtomicRename() with src == dst bug 2024-12-17 17:28:43 +08:00
guoling def8e8ab55 fix Android/OHOS init log not printing rootPath bug 2024-11-04 17:52:14 +08:00
guoling 6688793f59 check getMMKVWithID result and throw exception #1399 2024-09-09 20:43:06 +08:00
guoling 47d3c0893a add readonly support 2024-09-06 19:44:11 +08:00
guoling fd06511db8 fix Android compile error 2024-04-24 17:05:09 +08:00
guoling 35d14ff77f fix iOS compile error 2024-04-24 16:41:07 +08:00
guoling 0187c37e48 tested ohos backup & restore 2024-04-10 21:21:11 +08:00
guoling 48d45c5bc4 stash for ohos backup & restore, almost done 2024-04-10 21:06:57 +08:00
guoling 2b8fd0cc21 stash for ohos backup & restore 2024-04-09 17:53:16 +08:00
guoling 92d0a17d82 add back lazy-load on mmkv init 2023-12-25 16:46:58 +08:00
guoling 02e07a7c2b make expectCapacity more consistent 2023-11-21 19:43:32 +08:00
Lishaokai 73f01e5d50 set expected capacity for file length when init #1114 2023-08-11 21:23:12 +08:00
guoling a2757975b0 rollback lazy load as many reported ANR 2023-05-26 15:32:41 +08:00
chenqizheng 95a72c616c lazy load file.
lazy load file. MMKV_Android
2023-04-04 15:36:12 +08:00
guoling a813ae8fd9 backup & restore with customize rootPath works on Android 2021-09-18 15:22:11 +08:00
guoling 8e979910d0 backup & restore works on Android 2021-09-17 17:47:57 +08:00
guoling 05e0ba3250 apply the same fix for single-process mmkv 2020-09-11 21:12:04 +08:00
guoling 6957a363d5 apply the same fix for single-process mmkv 2020-09-11 21:07:38 +08:00
guoling 81187a86bc fix rare lock conflict on checkProcessMode() again 2020-09-11 19:25:27 +08:00
guoling 339d038ab8 fix rare lock conflict on checkProcessMode() 2020-09-11 18:55:39 +08:00
guoling b6d597f2fd dont check process mode on open() failure 2020-08-18 20:42:25 +08:00
guoling 00552f4ffa add multi-process mode check for Android 2020-07-10 18:12:36 +08:00
guoling 96a296d83f fix ItemSizeHolder override bug on crypted MMKV 2020-07-03 18:48:49 +08:00
guoling 8f20ae1846 rename relativePath to rootPath 2020-07-02 17:45:04 +08:00
guoling 74be762dc8 add MMKV_DISABLE_CRYPT preprocess directive 2020-07-01 18:12:00 +08:00
guoling 1d262bb195 hide KeyValueHolder from public header 2020-06-30 18:23:25 +08:00
guoling 177a2a3c68 tidy 2020-01-21 22:04:42 +08:00
guoling 5282c480b1 cleanup ASHMEM_NAME_DEF 2020-01-14 14:40:49 +08:00
guoling 482c1a1b33 remove AESCrypt & MMKVMetaInfo from MMKV public header 2020-01-03 21:43:39 +08:00
guoling 35ef768d16 remove MemoryFile from MMKV public header 2020-01-03 21:31:17 +08:00
guoling 455b9d840c remove ThreadLock & InterProcessLock from MMKV public header 2020-01-03 18:52:00 +08:00
guoling 6db83bc563 more robust codedoutputdata 2020-01-02 21:34:36 +08:00
guoling 3c61c8ea2c fix flock() bug on ashmem in Android 2019-12-30 21:21:42 +08:00
guoling 5325333585 cleanup 2019-12-26 17:15:19 +08:00