-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
events : Change preferences for haptics vars #93
Open
Yilliee
wants to merge
5
commits into
PitchBlackRecoveryProject:android-11.0
Choose a base branch
from
Yilliee:android-11.0
base: android-11.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
events : Change preferences for haptics vars #93
Yilliee
wants to merge
5
commits into
PitchBlackRecoveryProject:android-11.0
from
Yilliee:android-11.0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Mohd Faraz <[email protected]>
The libziparchive TWRP using was outdated, not supported a zip size more than 4 GiB. With the development of technologies, Obviously it was not enough for ROM packages, like Xiaomi's MIUI for Vitrual A/B devices (for example Redmi K40 [alioth]) is more than 4 GiB and TWRP couldn't handle it properly. Since we have updated libziparchive to latest version, we could switch ZipEntry to ZipEntry64 so that TWRP can support a ROM package if its size more than 4 GiB. Co-authored-by: sekaiacg <[email protected]> Signed-off-by: GarfieldHan <[email protected]> Change-Id: Iee811554bb08e02bf2bd8e9057511f36caefdc9d Signed-off-by: Mohd Faraz <[email protected]>
This commit will add EROFS Filesystem mount support Since Huawei announced the new file system EROFS and successfully merged into mainline. More and more OEMs switch the ext4 filesystem to EROFS filesystem for system/vendor/odm/product partitions like Oplus (OPPO / Realme / OnePlus). Test: Import the latest fstab from system, build and boot. EROFS-based partions like system and vendor partitions were sucessfully mounted. Notes: Although I tried to change 'ext4' to 'erofs' for correct partition in twrp.flags, but it was still recognized as 'ext4'. So you can just copy the line related erofs partitions from recovery.fstab and TWRP will failed to recognize the line in twrp.flags, and then skip this line, so the issue was solved. Signed-off-by: GarfieldHan <[email protected]> Change-Id: I49a04e4465f1d92eb589ad6d86b6db9b58d720eb
Enhanced Read-Only File System (EROFS) has been included in Linux kernel, many Linux distributions, buildroot and Android AOSP for a while. Plus, nowadays, it's known that EROFS has been commercially used by several Android vendors for their system partitions. This patch adds support for detecting EROFS filesystem to libblkid. Since util-linux/util-linux@cd129b7 introduced blkid_probe_set_block_size function to report filesystem block size, TWRP is using blkid 2.25.0, which means blkid_probe_set_block_size wasn't supported and required, so remove the blkszbits judgement and blkid_probe_set_block_size for fixing building. Test: Add erofs mount point to twrp.flags, build and boot OP4A7A:/ # logcat | grep erofs I (6)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. I (6)[571:recovery]erofs: (device dm-9): mounted with opts: , root inode @ nid 43. I (6)[571:recovery]erofs: (device dm-1): mounted with opts: , root inode @ nid 52. I (6)[571:recovery]erofs: (device dm-10): mounted with opts: , root inode @ nid 45. I (6)[571:recovery]erofs: (device dm-8): mounted with opts: , root inode @ nid 42. I (0)[571:recovery]erofs: (device dm-12): mounted with opts: , root inode @ nid 38. I (3)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. I (3)[571:recovery]erofs: (device dm-1): mounted with opts: , root inode @ nid 52. I (3)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. I (3)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. I (3)[571:recovery]erofs: (device dm-9): mounted with opts: , root inode @ nid 43. I (2)[571:recovery]erofs: (device dm-1): mounted with opts: , root inode @ nid 52. I (2)[571:recovery]erofs: (device dm-10): mounted with opts: , root inode @ nid 45. I (2)[571:recovery]erofs: (device dm-8): mounted with opts: , root inode @ nid 42. I (2)[571:recovery]erofs: (device dm-12): mounted with opts: , root inode @ nid 38. I (6)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. I (6)[571:recovery]erofs: (device dm-0): mounted with opts: , root inode @ nid 58. OP4A7A:/ # cat /tmp/recovery.log | grep erofs Current_File_System: erofs Fstab_File_System: erofs Current_File_System: erofs Fstab_File_System: erofs Fstab_File_System: erofs Current_File_System: erofs Fstab_File_System: erofs Current_File_System: erofs Fstab_File_System: erofs Current_File_System: erofs Fstab_File_System: erofs Current_File_System: erofs Fstab_File_System: erofs Now TWRP can recognize the EROFS filesystem perfectly after setting fs in twrp.flags Signed-off-by: Gao Xiang <[email protected]> [@pomelohan: Adapt for TWRP's libblkid version and add erofs.c to build] Co-authored-by: GarfieldHan <[email protected]> Signed-off-by: GarfieldHan <[email protected]> Change-Id: I00263757b5b6ed881165e65795ef849d86763165
The previous configuration had set the preference of checking for the activation file to be the greatest which made the AIDL_HAPTICS and SAMSUNG_HAPTICS var useless incase the activation file existed. For some devices, the activation file does indeed exist but is not used by the kernel.
AndroiableDroid
force-pushed
the
android-11.0
branch
2 times, most recently
from
May 14, 2022 17:08
e8d12e4
to
20b239e
Compare
SathamHussainM
force-pushed
the
android-11.0
branch
from
June 8, 2022 14:14
86ccd8d
to
b62ebb8
Compare
SathamHussainM
force-pushed
the
android-11.0
branch
3 times, most recently
from
February 1, 2023 17:43
9ddb6f4
to
264fbae
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The previous configuration had set the preference of
checking for the activation file to be the greatest
which made the AIDL_HAPTICS and SAMSUNG_HAPTICS var
useless incase the activation file existed.
For some devices, the activation file does indeed
exist but is not used by the kernel which results in broken
haptics.