Conversation
… warnings Co-authored-by: cyanmint <[email protected]>
… relative symlinks Co-authored-by: cyanmint <[email protected]>
|
@copilot imported fs not working |
Co-authored-by: cyanmint <[email protected]>
…fallback docs Co-authored-by: cyanmint <[email protected]>
…ins() + indexOf() Co-authored-by: cyanmint <[email protected]>
Fixed in commit 3172dc4. The issue was that when you export a filesystem that has runtime-created symlinks (like The new code now:
Example: The official |
|
the original use rom.7z works https://github.com/cyanmint/twoyi/releases/download/original/rootfs.7z |
|
@copilot the original use rom.7z works https://github.com/cyanmint/twoyi/releases/download/original/rootfs.7z |
…0, /data/data, etc.) Co-authored-by: cyanmint <[email protected]>
Fixed in commit a031cc4. The issue was that my code only checked for the hardcoded path The new code now:
This ensures the imported filesystem works correctly regardless of which Android version or configuration you're using. |
|
@copilot |
Co-authored-by: cyanmint <[email protected]>
Fixed in commit dc07821. The issue was overly aggressive path matching. The previous code checked for ANY path containing The new code is more specific - it only strips the rootfs prefix if the path contains This should now correctly handle:
While avoiding false matches on unrelated paths that happen to contain |
Co-authored-by: cyanmint <[email protected]>
Fix Symlink Extraction Issues
Implementation Complete
/sbin/chargerfrom 7z)/data/data/io.twoyi/rootfs/data/data)Final Implementation
The code now correctly handles symlinks without breaking the container:
Host-absolute paths - Created when exporting/reimporting filesystems
/data/data/io.twoyi/rootfs/data/dataor/data/user/0/io.twoyi/rootfs/data/data/io.twoyi/rootfs/marker (specific to twoyi installation)/io.twoyi/rootfs/to get container pathdata/data→ converted to relative symlink../../dataContainer-absolute paths - From bundled ROMs like 7z
/sbin/charger,/system/lib64/file.so/but doesn't contain/io.twoyi/rootfs//to get container pathsbin/charger→ converted to relative symlinkRelative paths - Already correct
sbin/charger,../initThis ensures imported rootfs filesystems start correctly.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.