Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳
Действительно, что означают цифры которые мы получили в прошлом посте?
Это кодировка, заключающая в себе режимы доступа к файлу.
Подробней можно почитать в статье про chmod.
Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение.
Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция
>>> stat.filemode(0o755)
'?rwxr-xr-x'
Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров.
А что за знак вопроса в начале?
Давайте передадим в эту функцию необрезанное значение от os.stat
>>> stat.filemode(os.stat(path).st_mode)
'drwxr-xr-x'
Это данные, которые мы безжалостно обрезали в прошлый раз😼
Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l).
Вот простая схема данной кодировки
[1][3][3][3]
│ │ │ │
│ │ │ └──> Others Permissions
│ │ └─────> Group Permissions
│ └────────> Owner Permissions
└───────────> File Type
(разверните экран если вы с телефона)
Если вы попробуете получить пермишены для симлинка то получите пермишены для файла
>>> path = '.venv/bin/python3'
>>> stat.filemode(os.stat(path).st_mode)
'-rwxr-xr-x'
Чтобы получить свойства именно симлинка, нужно это явно указать
>>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode)
'lrwxrwxrwx'
#tricks#basic
#InfinityX#qpr2#Diting#A15
Project InfinityX - v2.8 | Android 15
Released: 8/05/2025
▪️Gapps: Gdrive
▪️Vanilla: Gdrive
▪️Recovery: Ofox
▪️Screenshots
Notes:
It is recommended to use ofox recovery if you are flashing via fastboot.
fastboot flash recovery_ab recovery.img
Changelogs:
• Synchronized with the latest changes
• Device integrity passes (signed build)
• fixed the problem with freezing when the battery reaches 5%?
• KernelSU Support
• Firmware included
• Dolby Audio by default
• HyperOS Camera by default
Credits:
Thanks to @TeamMEX_XDA❤️
Thanks to @zED141 for giving me space on gdrive
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#InfinityX#qpr2#Diting#A15
Project InfinityX - v2.7 HotFix | Android 15
Released: 3/05/2025
▪️Gapps: Mirror | Gdrive
▪️Vanilla: Mirror | Gdrive
▪️Recovery: Ofox
▪️Screenshots
Notes:
It is recommended to use ofox recovery if you are flashing via fastboot.
fastboot flash recovery_ab recovery.img
Changelogs:
• Synchronized with the latest changes
• Device integrity passes (signed build)
• Fixed the error when installing gapps due to missing partition.
• Slot 2 problem for Sim cards solved
• Firmware included
• Dolby Audio by default
• HyperOS Camera by default
• and many more changes...
Credits:
Thanks to @TeamMEX_XDA❤️
Thanks to @zED141 for giving me space on gdrive
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#InfinityX#qpr2#Diting#A15
Project Infinity X - v2.7 | Android 15
Released: 3/05/2025
▪️Gapps: Mirror | SF
▪️Vanilla: Mirror | SF
▪️Screenshots
Notes:
• Synchronized with the latest changes
• Device integrity passes (signed build)
• Thermal menu was removed for now
• Remove some ARM blobs
• Now with oss kernel
• Fixed some vibration bugs. now works 100%.
• Added KernelSU support
• Improved performance
• Firmware included
• Dolby Audio by default
• HyperOS Camera by default
• and many more changes...
Credits:
Thanks to @TeamMEX_XDA❤️
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#InfinityX#qpr2#Diting#A15
Project Infinity X - v2.7 | Android 15
Released: 20/04/2025
▪️Download: Mirror | SF
▪️Screenshots
Notes:
• Synchronized with the latest changes
• Device integrity passes (signed build)
• Workaround for voip audio routing issue using a monitoring service (Whatsapp calls on speakerphone fixed)
• Firmware included and updated
• Gapps build only
• Dolby Audio by default
• HyperOS Camera by default
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#EvolutionX#UNOFFICIAL#A15#QPR2#diting
EvolutionX 10.6 | UNOFFICIAL | Android 15
Updated: 27/5/2025
▪️Download: Gdrive
▪️Screenshots
Changelogs:
• The device tree has been completely reworked
• The kernel has also been re-based
• Some new features have been implemented
• Charging with the phone turned off has been solved.
• Xiaomi camera has been updated
• The double tap to wake up has been fixed
• Fingerprint sensor glows when AOD appears has been fixed
• If you want the screen to stay at 120hz, activate it on the screen as minimum frequency.
• LDAC and LHDC support for Bluetooth has been added
• New integrated dolby audio
• KSU Support
• to pass integrity, use your own methods to pass integrity, use your own methods.
• Some more changes have been made and optimized
• More changes coming soon
Credits:
@TeamMEX_XDA
@ArianK16a
@Omar99A
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#EvolutionX#UNOFFICIAL#A15#QPR2#diting
EvolutionX 10.6 | UNOFFICIAL | Android 15
Updated: 18/5/2025
▪️Download: Gdrive
▪️Screenshots
Changelogs:
• May 2025 security patches have been merged into our Android 15 QPR2 branch. The latest version is now 10.6.
• voip fixed problem with calls and voice notes whatsapp telegram
• Optimize native executables for Cortex-A76 CPU Cortex-A510
• Optimize dex2oat for cortex-a76 on cortex-a510
• Migrate powershare to soong_config_set
• Set camera override format from reserved via soong config
• Migrate Lineage Health to soong_config_set
• gps: Avoid access of deprecated LocUnorderedSetMap entry
• Migrate sensor-notifier extension config to soong select
• wlan: Drop unused vendor_cmd.xml
• sepolicy: add missing sysfs wakeup nodes
• sepolicy: Allow CAP_SYS_NICE to zygote
• More changes: Here
• KSU Support
• Dolby Audio incluide
• Hyperos Camera incluide
Credits:
Thanks to @TeamMEX_XDA
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#EvolutionX#UNOFFICIAL#A15#QPR2#diting
EvolutionX 10.5 | UNOFFICIAL | Android 15
Updated: 12/4/2025
▪️Download: SF | Mirror
▪️Screenshots
Changelogs:
• April 2025 security patches have been merged into Evolution X. Latest version is now 10.5.
• Dolby Audio Included
• Hyperos Camera Included
Credits:
Thanks to @TeamMEX_XDA
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat
#EvolutionX#UNOFFICIAL#A15#QPR2#diting
EvolutionX 10.4 | UNOFFICIAL | Android 15
Updated: 9/4/2025
▪️Download: here
▪️Screenshots
Changelogs:
• some bugs fixed
• interfaces: Add prebuilt hidl interfaces declarations
• pixel launcher problems fixed
• the fingerprint icon has been fixed
• Introduce XiaomiEuicc in hardware/xiaomi
• and many more changes that I am too lazy to add to the list XD
• Dolby Audio incluide
• Hyperos Camera incluide
Credits:
Thanks to @TeamMEX_XDA
By@Jezzay97 | Donate
Follow@xiaomi_12tpro_updates
Join@xiaomi12tpro_chat