82 Commits

Author SHA1 Message Date
CTCaer
68e8517c09 nyx: fix off-by-one bug in emmc part manager
Last step after finish do not have a UMS option, so adjust accordingly.
2026-02-24 01:25:13 +02:00
CTCaer
63c6cfedef hekate/nyx: adjust handling of sdmmc return values 2026-02-22 08:47:22 +02:00
CTCaer
09322216c4 nyx: parted: remove android 10 references
Additionally, swap Legacy and Dynamic button sides and state dynamic is preferred.
2026-02-15 02:42:22 +02:00
CTCaer
5cb44753fc nyx: adjust sdmmc dma buffer name 2026-02-12 21:41:21 +02:00
CTCaer
5cca9025b0 nyx: deduplicate window creation functions
Also rename mbox_action and fix a double lv obj deletion in partition manager.
2026-02-07 00:36:19 +02:00
CTCaer
28ebdc213e nyx: handle exFAT truncation in stat/backup
It's possible for the overflow check to fail if exFAT and file size is big enough.
(4GB + total_size)

So check it properly.
This avoids unnecessary copying before RAM disk gets filled and copy errors out.

No other check is needed since max capacity is RAM disk size.
2026-01-18 21:01:54 +02:00
CTCaer
f0dde780f4 hekate/nyx: remove coreboot support
Everything external is finally updated and beyond parity with old things that needed it.
2026-01-12 04:04:08 +02:00
CTCaer
1d2a7631d9 nyx: update rng calls based on new bdk 2026-01-06 23:04:26 +02:00
CTCaer
ac60695b24 nyx: parted: remove invisible btns in eMMC mode 2025-12-17 06:34:42 +02:00
CTCaer
73d96b7ca8 hos/l4t: deduplicate sc7exit-b01 load
And remove obsolete MWS (L4T one deprecated it 3 years ago).
2025-12-17 06:28:36 +02:00
CTCaer
3eab7889bf nyx: parted: do not allow FULL on upgraded eMMC
It's not allowed on creation anyway because of unknown HOS USER size factors
2025-11-14 18:49:41 +02:00
CTCaer
453ec18048 nyx: part: extend Fix Hybrid MBR/GPT functionality
- Allow invalid/out-of-bounds and empty partitions to be removed from GPT
- Add fix for wrong emuMMC offset because of older bugged Android Dynamic scheme
2025-11-10 15:28:41 +02:00
CTCaer
50d56c7b4b nyx: part: add support for max 24GB resized emuMMC
If a partition is added manually, 28GB is the max allowed to be created.
2025-11-07 13:33:34 +02:00
CTCaer
3896b7cb8f nyx: part mgr: remove gpt 126 entries check
It's done before to validate GPT anyway
2025-08-27 15:48:24 +03:00
CTCaer
aa65e368ba nyx: part mgr: add eMMC partition manager
The eMMC partition manager allows user the following:
- Resize HOS USER partition
- Add and flash Linux partitions
- Add and flash Android partitions

It is hidden and is accessible by holding the `Partition SD Card` button for
5 seconds.
2025-06-22 14:44:43 +03:00
CTCaer
f990190765 nyx: part mgr: fix 64GB emuMMC size
Fix size so the emuMMC data can be aligned properly.
2025-06-22 14:25:39 +03:00
CTCaer
f3e248c0a7 nyx: part mgr: fix android super partition size
The size was incorrectly set before and it would cause unalignment of later partitions.
2025-06-22 14:22:12 +03:00
CTCaer
2fd7163e0d nyx: part mgr: only copy metadata in mbr if they exist 2025-06-22 14:19:34 +03:00
CTCaer
6e93cc42c1 nyx: part mgr: improve layout 2025-06-22 14:18:16 +03:00
CTCaer
525746e968 nyx: part mgr: use globals for storage and minsize
Allow setting these dynamically depending on application.
2025-06-22 14:10:07 +03:00
CTCaer
905c83b568 nyx: part mgr: disable next step if already done 2025-06-22 14:03:36 +03:00
CTCaer
a3f1ae4a06 nyx: part manager: use u16 for names
Simplify logic and have readable partition names.
2025-06-22 13:51:10 +03:00
CTCaer
a1b13214bd nyx: partition: correct android reserved size 2025-04-30 08:40:55 +03:00
CTCaer
69acef4db3 nyx: part manager: change GPT partition colour
Since many confuse that on MBR
2024-10-04 22:19:01 +03:00
CTCaer
cdc1012f50 nyx: part manager: add version on android button
Check partition scheme for android and add the version on the flash button
2024-10-04 22:18:20 +03:00
CTCaer
7b60c3d162 hekate/nyx: constify more args 2024-10-04 22:09:06 +03:00
CTCaer
aacae78420 nyx: partition manager error message improvement
Inform user that there's an issue with bootloader folder when a partial backup is done during partitioning.
2024-07-02 18:04:09 +03:00
CTCaer
e46f54d4e6 hekate/nyx: use static/const where it should 2024-06-02 07:38:07 +03:00
CTCaer
5453c593a3 hekate/nyx: adhere to hw_deinit change 2024-05-19 10:49:46 +03:00
CTCaer
4effaab241 hekate/nyx: use zalloc where appropriate 2024-03-27 09:16:06 +02:00
CTCaer
82925845e3 hekate/nyx: utilize existing block size defines 2024-03-12 15:53:05 +02:00
Thomas Makin
f37ae083ae nyx: add android dynamic partition support
Will be used in Android >=13 for larger capacity and future-proofing.
New full system size: 6 GiB.

Partitions:
- boot
- recovery
- dtb
- misc
- cache
- super
- userdata
2024-02-16 17:17:12 +02:00
CTCaer
2218ae228f nyx: changes to partition manager 2022-12-20 16:50:04 +02:00
CTCaer
efe6e2f206 nyx: also backup payload.bin if full not possible
Partition manager does a backup on the following if it can't do a full backup:
- bootloader (existed)
- Mariko Warmboot Storage (MWS) (existed)
- payload.bin  (newly added)
2022-10-11 06:36:06 +03:00
CTCaer
5cdee01c05 nyx: part manager: rename twrp to recovery
And add support for both twrp.img and recovery.img.
2022-10-11 06:31:24 +03:00
CTCaer
f41d6be8d4 nyx: do not allow padding buttons to be pressed
So closing the window from a miss-touch can be avoided.
2022-10-11 04:32:53 +03:00
CTCaer
3369dcd110 nyx: if no full backup, backup MWS folder also
When full backup is not possible, together with bootloader folder, also backup mariko warmboot storage if it exists.
2022-06-25 06:47:12 +03:00
CTCaer
677770bfee nyx: offer wipe if partitioning can backup files 2022-06-25 06:41:34 +03:00
CTCaer
0e526bf9e8 nyx: tools: fix hybrid mbr changes
- MBR is now checked if it has GPT partition, in order to avoid revival of a dead but valid GPT
- MBR secret attributes can now be cleared even if there's no GPT
2022-05-27 04:44:42 +03:00
CTCaer
fb45804adf nyx: refactor various functions and add comments
Emphasis on partition manager deduplication and remove of some magic numbers.
2022-05-16 13:28:38 +03:00
CTCaer
62d68b33c3 nyx: tools: use actual gpt entries num in part manager 2022-05-08 05:59:57 +03:00
CTCaer
c51877d588 nyx: tools: add mbr hidden attr fixer in hybrid mbr fixer 2022-05-08 05:59:32 +03:00
CTCaer
471f3c50ea nyx: tools: do not allow part manager backup/restore to hang on corruption 2022-05-08 05:57:59 +03:00
CTCaer
af1ece903b nyx: Do not reserve alignment space if no extra partitions 2022-03-23 00:24:51 +02:00
CTCaer
4a13a1d190 nyx: fix aula full emummc creation (for real this time) 2022-01-29 01:39:01 +02:00
CTCaer
aee5861f65 hekate/nyx: improve cyclomatic complexity 2022-01-29 01:23:40 +02:00
CTCaer
d52283f0c2 nyx: add support for FULL emuMMC for OLED model
That supports creating a 64GB emuMMC partition.
That's added for consistency.
Because it's a waste of space, better use resized emuMMC.
2022-01-20 14:11:36 +02:00
CTCaer
28167b7304 hekate/nyx: move emmc ops to bdk and adhere to changes 2022-01-20 13:15:04 +02:00
CTCaer
6092994240 nyx: sd part: set attributes to folders also on restore 2022-01-16 01:38:47 +02:00
CTCaer
5894062b93 hekate/nyx: utilize bdk global header 2022-01-16 00:04:34 +02:00