- LineageOs ROM HTC One M7 (GSM) (m7, m7att, m7lte, m7tmo, m7ul)
- Install LineageOS on m7
- Basic requirements
- Unlocking the bootloader
- Installing a custom recovery using fastboot
- Installing LineageOS from recovery
- Update to a newer build of the same LineageOS version on m7
- Updating your device
- Using the LineageOS Updater app
- From your PC via the push_update script (Linux/macOS only)
- Sideloading from Recovery
- Upgrade to a higher version of LineageOS (e.g. lineage-15.1 -> lineage-16.0) on m7
- Manually upgrading LineageOS
- Build for m7
- Introduction
- Build for m7
- Introduction
- Linux на htc one m7
LineageOs ROM HTC One M7 (GSM) (m7, m7att, m7lte, m7tmo, m7ul)
Install LineageOS on m7
Basic requirements
- Make sure your computer has adb and fastboot . Setup instructions can be found here.
- Enable USB debugging on your device.
Unlocking the bootloader
Enable OEM unlock in the Developer options under device Settings, if present.
You can also boot into fastboot mode via a key combination:
Once the device is in fastboot mode, verify your PC finds it by typing:
Visit the HTCDev Bootloader Unlock website and follow the instructions there to obtain your unlock key and unlock your bootloader. If your device does not appear in the drop-down list, select All Other Supported Models.
Installing a custom recovery using fastboot
Download a custom recovery – you can download TWRP. Simply download the latest recovery file, named something like twrp-x.x.x-x-m7.img .
You can also boot into fastboot mode via a key combination:
Once the device is in fastboot mode, verify your PC finds it by typing:
Alternatively, on some devices and recoveries you can use fastboot to boot directly into the freshly flashed or any other desired recovery:
Installing LineageOS from recovery
- Build a LineageOS installation package.
- Optionally, download additional application packages such as Google Apps (use the arm architecture).
- If you are not in recovery, reboot into recovery:
- With the device powered off, hold Volume Down + Power .
- Now tap Wipe.
- Now tap Format Data and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
- Return to the previous menu and tap Advanced Wipe, then select the Cache and System partitions and then Swipe to Wipe.
- Sideload the LineageOS .zip package:
- On the device, select “Advanced”, “ADB Sideload”, then swipe to begin sideload.
- On the host machine, sideload the package using: adb sideload filename.zip
(Optionally): If you want to install any additional add-ons, repeat the sideload steps above for those packages in sequence.
Update to a newer build of the same LineageOS version on m7
Updating your device
Using the LineageOS Updater app
- Open Settings, navigate to “System”, then “Updater”.
- Click the Refresh Icon in the top right corner.
- Choose which update you’d like and press “Download”.
- When the download completes, click “Install”. Your device will reboot to recovery and install the update, then reboot to the updated installation.
From your PC via the push_update script (Linux/macOS only)
- Make sure your computer has working adb . Setup instructions can be found here.
- Enable USB debugging on your device. Additionally, open Settings, then “System”, then “Developer Options”, and then either check “Rooted Debugging” (LineageOS 17.1 or above) or select “Root Access Options”, then “ADB Only”.
- Run adb root
- Run wget https://raw.githubusercontent.com/LineageOS/android_packages_apps_Updater/lineage-16.0/push-update.sh && chmod +x push-update.sh
- Run: ./push-update.sh /path/to/zip
- Open Settings, navigate to “System”, then “Updater”. Then proceed to click “Install” on the newly pushed update to commence installation. Your device will reboot to recovery and install the update, then reboot to the updated installation.
Sideloading from Recovery
- Make sure your computer has working adb . Setup instructions can be found here.
- Enable USB debugging on your device. Additionally, open Settings, then “System”, then “Developer Options”, and then either check “Rooted Debugging” (LineageOS 17.1 or above) or select “Root Access Options”, then “ADB Only”.
- Run: adb reboot sideload
Run: adb sideload /path/to/zip
Upgrade to a higher version of LineageOS (e.g. lineage-15.1 -> lineage-16.0) on m7
Manually upgrading LineageOS
The updater app does not support upgrades from one version of LineageOS to another, and will block installation to any update for a different version. Upgrading manually requires similar steps to installing LineageOS for the first time.
- Build a LineageOS install package.
- Optionally, download additional application packages such as Google Apps (use the arm architecture).
- Make sure your computer has working adb . Setup instructions can be found here.
- Enable USB debugging on your device. Additionally, open Settings, then “System”, then “Developer Options”, then select “Root Access Options”, and finally “ADB Only”. Now, run adb root ’
- Run adb reboot sideload .
Build for m7
Introduction
These instructions will hopefully assist you to start with a stock HTC One (GSM), unlock the bootloader (if necessary), and then download
the required tools as well as the very latest source code for LineageOS (based on Google’s Android operating system) for your device. Using these, you can build both
a LineageOS installation zip and a LineageOS Recovery image and install them on your device.
It is difficult to say how much experience is necessary to follow these instructions. While this guide is certainly not for the extremely uninitiated,
these steps shouldn’t require a PhD in software development either. Some readers will have no difficulty and breeze through the steps easily.
Others may struggle over the most basic operation. Because people’s experiences, backgrounds, and intuitions differ, it may be a good idea to read through
just to ascertain whether you feel comfortable or are getting over your head.
Remember, you assume all risk of trying this, but you will reap the rewards! It’s pretty satisfying to boot into a fresh operating system you baked at home :).
And once you’re an Android-building ninja, there will be no more need to wait for “nightly” builds from anyone. You will have at your fingertips the skills to
build a full operating system from code and install it to a running device, whenever you want. Where you go from there– maybe you’ll add a feature, fix a bug, add a translation,
or use what you’ve learned to build a new app or port to a new device– or maybe you’ll never build again– it’s all really up to you.
Build for m7
Introduction
These instructions will hopefully assist you to start with a stock HTC One (GSM), unlock the bootloader (if necessary), and then download the required tools as well as the very latest source code for LineageOS (based on Google’s Android operating system) for your device. Using these, you can build both a LineageOS installation zip and a LineageOS Recovery image and install them on your device.
It is difficult to say how much experience is necessary to follow these instructions. While this guide is certainly not for the extremely uninitiated, these steps shouldn’t require a PhD in software development either. Some readers will have no difficulty and breeze through the steps easily. Others may struggle over the most basic operation. Because people’s experiences, backgrounds, and intuitions differ, it may be a good idea to read through just to ascertain whether you feel comfortable or are getting over your head.
Remember, you assume all risk of trying this, but you will reap the rewards! It’s pretty satisfying to boot into a fresh operating system you baked at home :). And once you’re an Android-building ninja, there will be no more need to wait for “nightly” builds from anyone. You will have at your fingertips the skills to build a full operating system from code and install it to a running device, whenever you want. Where you go from there– maybe you’ll add a feature, fix a bug, add a translation, or use what you’ve learned to build a new app or port to a new device– or maybe you’ll never build again– it’s all really up to you.
Linux на htc one m7
Сообщение отредактировал PlutonLine — 08.06.20, 18:05
Что такое firmware.zip? (Далее FW)
Firmware.zip это часть каждого OTA обновления от HTC. Оно содержит важные части прошивки: radio, bootloader, recovery, kernel и т.п..
Почему важно прошивать firmware.zip и зачем мне нужно его прошить?
Рекомендуется иметь прошитым последний FW для вашего устройства для наилучшей работы модемной части и стабильности системы. Иногда необходимо иметь последнюю версию bootloader, иначе ваше устройство может начать работать некорректно с новыми системными обновлениями.
Содержит ли firmware.zip прошивку модуля radio?
Да, в FW включена прошивка radio, и на S-ON устройствах единственный метод обновить radio — это прошить последний firmware.zip
Почему так важно прошивать FW до установки кастомной прошивки?
Потому, что firmware.zip содержит boot.img (ramdisk и kernel) которые заменят кастомный boot.img из любой прошивки, что у вас стоит. Поэтому необходимо прошивать firmware.zip первым, иначе boot.img кастомной прошивки будет перезаписан стоковым из FW.
Если же вы прошили firmware.zip уже после того, как был установлен custom ROM, просто прошейте этот самый custom ROM заново.
Содержит ли firmware.zip образ recovery?
Да, FW содержит образ recovery, поэтому после прошивки firmware.zip вам будет необходимо прошить заново кастомный рекавери, чтобы из него можно было в дальнейшем устанавливать кастомные прошивки.
Могу ли я прошить любой firmware.zip на любой HTC One?
Нет, если ваше устройство в состоянии S-ON. Чтобы иметь возможность прошить FW на устройстве с S-ON, ваш MID (modelid, например: PN0710000) и CID (cidnum, например: HTC__001) должны совпадать с той версией firmware.zip, которую вы хотите прошить. Также FW должна быть подписана, т.е. неизмененная. S-Off позволяет прошить любые FW (для своего CID и MID)
Если мой MID или CID не соответствуют, могу ли я окирпичить устройство, пытаясь прошить firmware.zip, невзирая на их несоответствие?
Пока ваше устройство в состоянии S-ON, прошивка firmware.zip с несоответствующими MID или CID будет прервана с ошибкой, ничего в итоге прошито не будет, так что риска получить кирпич в данном случае нет.
Нужен ли мне заблокированный или разблокированный загрузчик, для того, чтобы я мог прошить firmware.zip?
Ваш bootloader должен быть заблокирован (relocked).
Если я не могу прошить более новый firmware.zip из-за того, что MID или CID не совпадают, значит ли это, что я не смогу использовать кастомные прошивки, основанные на последних обновлениях от HTC?
В большинстве случаев вы сможете использовать любую кастомную прошивку, до тех пор пока вам не потребуется обновить версию hboot.
- [OTA]Необходимые условия для установки OTA обновлений: полностью стоковая прошивка без каких либо изменений для своих CID/MID , ( рут не мешает ), СТОКОВОЕ РЕКАВЕРИ , ядро
- [RUU] Ruu 1.28 не встанет на базы 3.хх, сначала надо понизить firmware до 2.24.401.8
- [Firmware] Firmware (HBOOT) можно понизить только при наличии S-OFF, без него прошивка Firmware возможна только равнозначная или на повышение!
В-общем, проблема решается так- ложится папка preload в системную область по пути \data. А затем обязательно нужно выставить разрешения:
—Для самой папки —- rwxrwx-x
—Для всех файлов — rwxr-xr-x
Анимация начинает работать.
Сообщение отредактировал Mihail533 — 09.10.14, 21:58
Для того чтобы прошить кастомную (неофициальную) прошивку нужно:
1. Разблокированный загрузчик (bootloader)
2. Установленное кастомное рекавери (CWM или TWRP) Для прошивок на базе Android 4.4 нужно рекавери TWRP 2.6.3.3, CWM 6.0.4.5 и выше
3. Скачанная прошивка в *.zip в телефоне. Удобнее положить в корень SDCard
4. S-Off не нужен!
5. Прямые руки
Установка:
1. Любое вмешательство в прошивку следует начинать с бэкапа! .
1.1. Сначала бэкап приложений и данных, чтобы потом восстановить их на новой прошивки. Для этого удобно использовать ® Titanium Backup .
1.2. Далее бэкап имеющейся прошивки. Для этого в рекавери нужно выбрать пункт Backup: в CWM — Backup and Restore/Backup, в TWRP — Backup
2. Вайпы, то есть приведение к заводскому состоянию.
Если вы ставите свежую версию имеющейся прошивки (например, Elegancia 18 поверх Elegancia 17), то вайп делать не надо, переходите к следующему пункту.
В CWM — Wipe data/factory reset, wipe cache partition, Advanced/Wipe dalvik cache. В TWRP — Wipe, свайп для выполнения. Можно вручную выбрать пункты для очистки: Dalvik Cache, Cache, Data, System. Для этого нажимаем Advanced Wipe.
Или воспользуйтесь скриптом полной очистки
3. Установка прошивки. В CWM — Install zip from Sdcard -> Choose zip from sdcard -> выбираем скачанную прошивку -> подтверждаем. В TWRP — Install -> выбираем скачанную прошивку -> подтверждаем
4. Готово! Прошивка будет установлена!
5. Перезагружаем устройство
Для того чтобы прошить архив нужно иметь:
1. Разблокированный загрузчик (bootloader)
2. Установленное кастомное рекавери (CWM или TWRP)
3. Скачанный архив в *.zip в телефоне. Удобнее положить в корень SDCard
4. S-Off не нужен!
5. Прямые руки
Установка:
1. Любое вмешательство в прошивку следует начинать с бэкапа! .
1.1. Бэкап имеющейся прошивки. Для этого в рекавери нужно выбрать пункт Backup: в CWM — Backup and Restore/Backup, в TWRP — Backup
2. Установка архива. В CWM — Install zip from Sdcard -> Choose zip from sdcard -> выбираем скачанную прошивку -> подтверждаем. В TWRP — Install -> выбираем скачанную прошивку -> подтверждаем
3. Готово!
4. Перезагружаем устройство
Что такое загрузчик (bootloader) и для чего нужно его разблокировать?
Bootloader (загрузчик) — это специальная программа позволяющая загрузить основную прошивку, по-умолчанию загрузчик заблокирован. Разблокировать его нужно для того, чтобы иметь возможность поставить сторонний Recovery (который более удобен и функционален). Так же разблокированный загрузчик в дальнейшем нам пригодится для получения S-OFF .
Как включить телефон в режиме загрузчика?
Для того, чтобы включить телефон в режиме загрузчика, надо:
- Выключить телефон полностью без быстрой загрузки(можно зажать и держать кнопку «power» больше 10секунд)
- Зажать кнопку понижения громкости и не отпуская кнопку понижения громкости нажать кнопку включения телефона.
Как включить телефон в режиме Fastboot USB?
Для того, чтобы включить телефон в режиме Fastboot USB, надо:
- Включить телефон в режиме загрузчика,
- С помощью клавиш громкости выбрать пункт Fastboot,
- Подключить телефон к компьютеру с помощью USB-кабеля (на компьютере должен быт установлен последний HTC Sync),
- После подключения телефона к компьютеру, режим Fastboot должен смениться режимом Fastboot USB. Если этого не случилось, необходимо переустановить драйвера для вашего телефона(в шапке инструменты).
Как разблокировать загрузчик?
Чтобы разблокировать загрузчик, заходим на этот сайт, выполняем инструкции. Если есть трудности с английским, то воспользуйтесь переводчиком
Подробная инструкция как разблокировать загрузчик здесь
Надо запустить телефон в режиме загрузчика, в первой строчке должно быть указано белым текстом по розовому фону *** UNLOCKED ***
Если появилась строчка *** TAMPERED *** вверху, это нормально!.
Чтобы закрыть загрузчик используйте команду