2020 Way How To Install Cyanogenmod 7, Rom Gốc Samsung Galaxy S2 I9100

Warning: The Samsung Galaxy S II is no longer maintained.

Bạn đang xem: How to install cyanogenmod 7

A build guide is available for developers that would like to make private builds, or even restart official support.
*

Important:
Please read through the instructions at least once before actually following them, so as to lớn avoid any problems due to lớn any missed steps!

Preparing for installation

Samsung devices come with a chất lượng boot mode called “Download mode”, which is very similar khổng lồ “Fastboot mode” on some devices with unlocked bootloaders.Heimdall is a cross-platform, open-source tool for interfacing with tải về mode on Samsung devices.The preferred method of installing a custom recovery is through tải về Mode – rooting the stock firmware is neither necessary nor required.

Download & install the appropriate version of the Heimdall suite for your machine’s OSWindows: Extract the Heimdall suite zip và take chú ý of the new directory containing heimdall.exe. You can verify Heimdall is functioning by opening a Command Prompt or PowerShell in that directory và running heimdall version.Linux: Extract the Heimdall suite zip and take chú ý of the new directory containing heimdall. Now copy heimdall into a directory in $PATH, a common one on most distros will be /usr/local/bin. For example cp heimdall /usr/local/bin. You can verify Heimdall is functioning by opening a Terminal và running heimdall version.macOS: Mount the Heimdall suite DMG. Now drag heimdall down into the /usr/local/bin symlink provided in the DMG. You can verify Heimdall is functioning by opening a Terminal và running heimdall version.

Note:
These Heimdall suite distributions were built by LineageOS Developers Nolen Johnson (npjohnson) và Jan Altensen (Stricted), as the Heimdall suite executables distributed on the official Heimdall website were outdated & the repo mostly abandoned. Modifications were made lớn make it build and function on modern OSes.
Power off the device, & boot it into download mode:With the device powered off, hold Volume Down + home + Power.Now, click the button that the on screen instructions correlate to “Continue”, & insert the USB cable into the device.For Windows user only: install the necessary drivers. A more complete mix of instructions can be found in the Zadig user guide.If nothing relevant appears, try uninstalling any Samsung related Windows software, like Samsung Windows drivers and/or Samsung Kies.Run zadig.exe found in your extracted Heimdall directory.

Choose Options » List all devices from the menu.Select Samsung USB Composite Device or MSM8x60 or Gadget Serial or Device Name from the drop down menu.Click Replace Driver, then selecting Install Driver from the drop down menu built into the button.If you are prompted with a warning that the installer is unable to lớn verify the quảng cáo trên internet of the driver, select Install this driver anyway. You may receive two more prompts about security. Select the options that accept the warnings và allow you to carry on.On your machine, mở cửa a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, và type:
If the device reboots that indicates that Heimdall is installed and working properly. If it does not, please refollow these instructions to verify steps weren’t missed, try a different USB cable, và a different USB port.

Installing a custom recovery using heimdall



Power off the device, & boot it into download mode:With the device powered off, hold Volume Down + trang chủ + Power.Now, click the button that the on screen instructions correlate khổng lồ “Continue”, & insert the USB cable into the device.On your machine, xuất hiện a Command Prompt or PowerShell (Windows) window, or Terminal (Linux or macOS) window, & type:

Tip: The tệp tin may not be named identically khổng lồ what stands in this command, so adjust accordingly. If the tệp tin is wrapped in a zip or tar file, extract the tệp tin first, because Heimdall is not going to vì it for you.
A xanh transfer bar will appear on the device showing the recovery image being flashed.Unplug the USB cable from your device.Manually reboot into recovery, this may require pulling the device’s battery out and putting it back in, or if you have a non-removable battery, press the Volume Down + nguồn buttons for 8~10 seconds until the screen turns black và release the buttons immediately when it does, then boot lớn recovery:With the device powered off, hold Volume Up + home + Power.
Note: Be sure khổng lồ reboot into recovery immediately after installing the custom recovery. If you don’t the stock ROM will overwrite the custom recovery with the stock recovery, và you’ll need khổng lồ flash it again.

Installing LineageOS from recovery

Build a LineageOS installation package.If you are not in recovery, reboot into recovery:With the device powered off, hold Volume Up + home + Power.Now tap Wipe.Now tap Format Data & continue with the formatting process. This will remove encryption và delete all files stored in the internal storage.Return lớn the previous menu & tap Advanced Wipe, then select the Cache and System partitions and then Swipe khổng lồ Wipe.Sideload the LineageOS .zip package:On the device, select “Advanced”, “ADB Sideload”, then swipe to lớn 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.


Note: If you want Google Apps on your device, you must follow this step before booting into LineageOS for the first time!
Warning: Depending on which recovery you use, you may be prompted to install additional apps and services.We strongly advise you to opt out of installing these, as they may cause your device to lớn bootloop,as well as attempt to lớn access or corrupt your data.

Xem thêm: Bệnh Nấm Lưỡi Ở Trẻ Nhỏ - Những Điều Cần Biết Về Bệnh Nấm Lưỡi Ở Trẻ Em


Note:
LineageOS strongly recommends using our builtin Updater app. Alternative methods are supported, however.

Using the LineageOS Updater app

Open Settings, navigate lớn “System”, then “Updater”.Click the Refresh Icon in the vị trí cao nhất right corner.Choose which update you’d like and press “Download”.When the download completes, click “Install”. Your device will reboot to recovery và install the update, then reboot to the updated installation.

From your PC via the push_update script (Linux/macOS only)

Run adb rootRun wget https://raw.githubusercontent.com/LineageOS/android_packages_apps_Updater/lineage-16.0/push-update.sh && chmod +x push-update.shRun: ./push-update.sh /path/to/zipOpen Settings, navigate to “System”, then “Updater”. Then proceed lớn click “Install” on the newly pushed update to commence installation. Your device will reboot to recovery & install the update, then reboot to lớn the updated installation.

Sideloading from Recovery

Run: adb reboot sideload

Run: adb sideload /path/to/zip

Run: adb reboot

Upgrade to a higher version of LineageOS (e.g. Lineage-15.1 -> lineage-16.0) on i9100


Important: Please read through the instructions at least once completely before actually following them lớn avoid any problems because you missed something!
Warning: These instructions only apply to lớn version upgrades. If you wish to lớn downgrade lớn an earlier version of LineageOS, follow your device’s instructions for installing LineageOS the first time.
Tip: In some cases, a newer LineageOS version may not install due to an outdated recovery.Follow your device’s installation guide lớn see how you can update your recovery image.

The updater ứng dụng does not support upgrades from one version of LineageOS lớn another, and will block installation khổng lồ any update for a different version. Upgrading manually requires similar steps to installing LineageOS for the first time.

Build a LineageOS install package.Run adb reboot sideload.
Important:
The device may reboot to lớn a blank đen screen, fear not, this is a known bug on some recoveries, proceed with the instructions.
Run adb sideload /path/to/zip (inserting the path to your LineageOS package).(Optionally): If you want lớn install any additional add-ons, click Advanced, then ADB Sideload, then swipe khổng lồ begin sideload, then adb sideload /path/to/zip those packages in sequence.
Note: If you previously had any Google Apps package installed on your device, you must install an updated package before the first boot of Android! If you did not have Google Apps installed, you must wipe the Data partition (or perform a factory reset) lớn install them.
Warning: Depending on which recovery you use, you may be prompted to lớn install additional apps và services.We strongly advise you to lớn opt out of installing these, as they may cause your device to lớn bootloop,as well as attempt to access or corrupt your data.

Build for i9100

Introduction

These instructions will hopefully assist you to start with a stock Samsung Galaxy S II, unlock the bootloader (if necessary), & then downloadthe required tools as well as the very latest source code for LineageOS (based on Google’s apk operating system) for your device. Using these, you can build botha LineageOS installation zip and a LineageOS Recovery image và install them on your device.

It is difficult lớn 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 và breeze through the steps easily.Others may struggle over the most basic operation. Because people’s experiences, backgrounds, và intuitions differ, it may be a good idea lớn read throughjust 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 lớn boot into a fresh operating system you baked at home :).And once you’re an Android-building ninja, there will be no more need khổng lồ wait for “nightly” builds from anyone. You will have at your fingertips the skills tobuild a full operating system from code & install it to a running device, whenever you want. Where you go from there– maybe you’ll showroom a feature, fix a bug, địa chỉ cửa hàng a translation,or use what you’ve learned to lớn build a new ứng dụng or port to a new device– or maybe you’ll never build again– it’s all really up khổng lồ you.

What you’ll need

A Samsung Galaxy S II.A relatively recent 64-bit computer (Linux, macOS, or Windows) with a reasonable amount of RAM và about 200 GB of không lấy phí storage (more if you enable ccache or build for multiple devices). The less RAM you have, the longer the build will take. Aim for 16 GB RAM or more, enabling ZRAM can be helpful. Using SSDs results in considerably faster build times than traditional hard drives.A USB cable compatible with the Samsung Galaxy S II.A decent mạng internet connection & reliable electricity.

Leave a Reply

Your email address will not be published. Required fields are marked *

x