Willy-JL
dea44f0daf
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into dev
2023-12-13 00:35:37 +00:00
あく
90cb1c4f2e
FuriHal: RTC register reset API. New factory reset routine that wipes all RTC backup registers content. ( #3288 )
2023-12-12 19:12:57 +04:00
Willy-JL
e0fa360640
Fix rename/move API, now rename/rename_safe ( #468 )
...
On OFW "rename" acts like "move", it replaces the destination
XFW had an extra "move" like that, and "rename" errored if dest exists
Now for compatibility "rename" acts as OFW, and new "rename_safe" errors
Tweaked all usages to work properly
Decided for CLI and RPC to use "rename_safe" so user cant lose files
2023-11-28 00:00:40 +00:00
Willy-JL
750f371182
Fix copy/paste and rename behaviors
...
Same beginning of name != same file/folder
Must check with a / suffixed
And never hold a pointer to furi string cstr
2023-11-25 18:11:54 +00:00
Willy-JL
09c6cf168e
Merge and improve new storage rename/move
2023-11-16 03:03:41 +00:00
Willy-JL
a4d01d5d88
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
2023-11-16 02:19:28 +00:00
Sergey Gavrilov
4b3e8aba29
[FL-3664] 64k does not enough ( #3216 )
...
* Unit tests: add "exists" to furi_record tests
* Unit tests: mu_warn, storage 64k test
* Storage: read/write over 64k
* Unit tests: moar tests for storage r/w for >64k cases
* Apps, libs: replace uint16_t with size_t on storage r/w operations
* Unit tests: better data pattern, subghz: warning if transmission is prohibited
Co-authored-by: あく <alleteam@gmail.com >
2023-11-16 01:39:27 +09:00
Georgii Surkov
ba074068b0
[FL-3662] Do not remove file when renaming to itself ( #3193 )
...
* Do not allow overwriting a file with dir and support renaming file to itself
* Fix operator precedence error
* Add support for storage-specific path equivalence checks
* Fix typo
* Fix updater compilation
* Update Doxygen comments in storage.h
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2023-11-15 17:56:13 +09:00
Willy-JL
418f44fef1
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
2023-11-12 02:56:30 +00:00
あく
176fb21f5f
Storage: speedup write_chunk cli command ( #3173 )
...
* Storage: speedup write_chunk cli command
* Storage: handle disconnect on write_chunk correctly
2023-10-30 18:51:51 +04:00
Willy-JL
f8fc8cbdf8
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-10-15 06:25:14 +01:00
MX
b87a8ca329
Merge branch 'ofw_dev' into dev
2023-10-15 01:30:55 +03:00
あく
f45a5dff43
Fix various crashes if debug libraries used ( #3144 )
...
* FuriHal: enable HSI in stop mode only if we use STOP0, proper SMPS selected clock assert
* Furi: fix double crash caused by bkpt use outside of debug session
* Libs: update ERC and MGG contrast
* Fix various crashes with LIB_DEBUG=1
* BadUsb: size_t where it should be and proper printf types
* Various fixes and make PVS happy
* FuriHal: proper CCID status and make PVS happy
* boot: update mode: graceful handling of corrupted stage file
---------
Co-authored-by: hedger <hedger@nanode.su >
2023-10-12 20:34:30 +04:00
Willy-JL
4b2cc53280
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-09-16 19:28:54 +02:00
MX
eb2607f308
Merge branch 'ofw_dev' into dev
2023-09-11 15:26:26 +03:00
Sergey Gavrilov
4705812d24
SD-Card: proper HAL ( #3058 )
...
* Storage: remove unused error from SDInfo
* FatFS: remove sd_spi_io
* HAL: sd card api
* Update: use sd hal
* FatFS: use sd hal
* Storage: use sd hal
* API: sd hal
* Fix TODO workflow
* SD Hal: Fix source buffer overflow
* fix for fix!
* HAL: cleanup sd detection api
* HAL: FURI_HAL_SD_SPI_DEBUG flag
* HAL: FuriHalSdStatus -> FuriStatus
* API: downgrade
* Change define logic
* HAL: presence
2023-09-11 18:30:56 +09:00
Willy-JL
cd301b4045
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev --nobuild
2023-09-04 23:36:06 +02:00
MX
9c6e20356f
Merge branch 'ofw-dev' into dev
2023-09-04 16:47:08 +03:00
Sergey Gavrilov
0b806c2360
Storage: force mount ( #3033 )
...
* Storage: count opened files
* Storage: sd mount
* Storage: prompt to mount SD card if not mounted
* F18: update API
* F18: update API version
* Fix logger naming scheme
* Storage: storage_files_count -> storage_open_files_count
Co-authored-by: あく <alleteam@gmail.com >
2023-09-04 14:10:07 +09:00
Willy-JL
034edf50ce
Mass storage revert to expand (max 2G img w/ seek)
...
This reverts commit 54804fcc66 .
2023-08-29 03:25:45 +02:00
Willy-JL
d7aa3ea60f
Make all service memory structures OFW comaptible
2023-08-29 01:57:06 +02:00
Willy-JL
54804fcc66
Remove file expand, use seek for mass storage
2023-08-29 01:33:31 +02:00
Willy-JL
8bdbdaa6f5
Tweak services orders
...
Same order but numbers match OFW
2023-08-29 00:49:15 +02:00
Willy-JL
17a6822a09
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev
2023-08-27 22:14:33 +02:00
MX
20593d56c0
Merge branch 'ofw-dev' into dev
2023-08-22 21:53:50 +03:00
Astra
e353433cd8
[FL-3488] Assign tickets to all TODO items ( #2988 )
...
Co-authored-by: あく <alleteam@gmail.com >
2023-08-23 02:56:27 +09:00
Willy-JL
367389367a
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into xfw-dev
2023-08-10 02:18:22 +02:00
MX
7027f6a4c4
Merge branch 'ofw-dev' into dev
2023-08-09 15:05:12 +03:00
Sergey Gavrilov
00cdc3d1cb
[FL-3461] RPC: md5 in storage list ( #2929 )
...
* Protobuf: update
* Toolbox: md5 for file. Unit-Tests: test md5_calc.
* Storage RPC, CLI, unit tests: use new md5_calc
* Protobuf: update
* RPC, StorageList: append md5 info to file
* fbt: attempt to fix shallow submodule checkouts
* pvs: make happy
* Protobuf: update to latest release
Co-authored-by: hedger <hedger@nanode.su >
Co-authored-by: hedger <hedger@users.noreply.github.com >
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com >
2023-08-09 06:34:54 +09:00
Willy-JL
21eeb53960
Storage error handling improvements
2023-08-03 15:20:54 +02:00
Willy-JL
e8f11e5521
Add storage_file_expand()
2023-08-02 23:33:27 +02:00
Willy-JL
4d6d7adf30
Format
2023-07-23 21:35:06 +02:00
Willy-JL
fbc000423e
Add description for storage cli migrate
2023-07-23 20:23:17 +02:00
Willy-JL
23cee7197e
<:N1:1130620612352679958><:N2:1130620354440745162>
2023-07-18 00:25:15 +01:00
Willy-JL
bd9f2b6ff7
Add migrate to storage cli
2023-07-18 00:23:05 +01:00
Willy-JL
843133295f
Storage fast migrate (use rename recursively)
2023-07-18 00:22:49 +01:00
Willy-JL
b5744fac21
Storage check trailing slash on subdir check
2023-07-14 19:48:41 +02:00
MX
635c824b1b
Merge branch 'ofw-dev' into dev
2023-07-14 16:53:45 +03:00
Nikolay Minaylov
e073c603a4
[FL-3334] Storage: explosive rename fix ( #2876 )
...
Co-authored-by: あく <alleteam@gmail.com >
2023-07-14 13:16:22 +04:00
MX
c4b04a06bb
Merge branch 'ofw-dev' into dev
2023-07-12 21:19:16 +03:00
あく
a4b4802897
Revert "[FL-3420] Storage: directory sort ( #2850 )" ( #2868 )
...
This reverts commit 136114890f .
2023-07-12 21:02:52 +10:00
MX
9d98724dcb
Merge branch 'ofw-dev' into dev
2023-07-11 13:31:59 +03:00
Sergey Gavrilov
136114890f
[FL-3420] Storage: directory sort ( #2850 )
...
* Storage: sort_data holder in file structure
* Storage: sort directory if it possible
* make pvs happy
* Storage: fail sorting if there is no more space for realloc
* Storage: case insensitive sorting.
Co-authored-by: あく <alleteam@gmail.com >
2023-07-11 11:29:45 +04:00
Willy-JL
4ecab40fde
Max file name length is actually 253 + null term
...
More than that and fatfs will truncate like name~1
Also dir_read already accounts for null term in buf size, dont malloc +1
2023-06-13 03:10:10 +01:00
Willy-JL
cb1d05d761
Who tf made extensions have limited length???
2023-06-12 23:32:36 +01:00
Willy-JL
df8b7cbe48
Random cleanup and housekeeping
2023-06-01 01:46:19 +01:00
Willy-JL
c5cf2ce53f
Fix brick on rename across filesystems
2023-05-31 15:43:11 +01:00
Willy-JL
fa89ef848c
Add an actual move function (OFW, rename != move)
2023-05-26 22:06:14 +01:00
Willy-JL
20dd1ba9da
Fail early on actual rename
2023-05-26 22:05:43 +01:00
MX
d094bfaa12
Merge branch 'ofw-dev' into dev
2023-05-25 16:48:28 +03:00