Difference between pages "User:Jrr/test" and "Install CM for m7tmo"

From CyanogenMod
(Difference between pages)
Jump to: navigation, search
(Created page with "<languages /> {{Iconbar|devicepage=150px}} <translate> ==Officially-supported CyanogenMod devices == <!--T:1--> </translate> __NOTOC__ <translate> <!--T:2--> {{tip|tip=Choose...")
 
(Created page with "{{device_m7tmo|function=device_install}}")
 
Line 1: Line 1:
<languages />
+
{{device_m7tmo|function=device_install}}
{{Iconbar|devicepage=150px}}
+
<translate>
+
==Officially-supported CyanogenMod devices == <!--T:1-->
+
</translate>
+
__NOTOC__
+
 
+
<translate>
+
<!--T:2-->
+
{{tip|tip=Choose a filter criteria (i.e., select from the ''vendor'' options) to view the specified devices.}}
+
</translate>
+
<br />
+
<p id="cmDeviceFilterList">{{Devices_ALL|function=new_grid_view}}</p>
+
 
+
<div id="cmDeviceFilterEmptyNote"><translate><!--T:3-->
+
No devices have been selected.  Change the filters above to see the results here! Remember to select the appropriate vendor. If you are uncertain about the name of the vendor, select <b>show all devices</b>.</translate></div>
+
<translate>
+
== Unofficial ports & projects == <!--T:4-->
+
 
+
<!--T:5-->
+
Don't see your device in the list above?
+
 
+
<!--T:6-->
+
CyanogenMod is an open source project and many are encouraged to port to various devices. Many of these for one reason or another are not yet "officially recognized" (and do not have official builds), but it may be good to know they exist.
+
 
+
<!--T:7-->
+
[[Unofficial Ports|The list of unofficially-ported devices]]
+
 
+
== Add a new official device to the wiki == <!--T:8-->
+
</translate>
+
<div class="mw-collapsible mw-collapsed"><translate><!--T:9-->
+
Select '''[Expand]''' to the right for instructions.</translate>
+
<div class="mw-collapsible-content">
+
 
+
<div style="background:#27AAE1; color:#fff; padding: 4px; text-align:center;"><translate><!--T:10-->
+
'''Add a device to the wiki'''</translate></div>
+
<translate>
+
<!--T:11-->
+
{{note|note=<div style="font-size:120%">In following these steps, replace CODENAME with the codename for the device.</div>}}
+
 
+
<!--T:12-->
+
'''1. Set up the device template'''
+
: The device template is the "universal settings" template, one per device. Copy the [{{fullurl:Template:Device_CODENAME|action=edit}} generic device template], then paste it into a new page with following template name:
+
 
+
<!--T:13-->
+
::<code>Template:device_CODENAME</code>
+
 
+
<!--T:14-->
+
:(Example:  [[Template:device_grouper|Template:device_grouper]] for the Nexus 7 tablet.)
+
 
+
<!--T:15-->
+
:Then edit the form, filling in as many fields as you are able, and save the new template you have created. (EDIT THE '''NEW''' TEMPLATE FOR YOUR DEVICE. DO NOT EDIT THE GENERIC BLANK ITSELF!)
+
 
+
<!--T:16-->
+
'''2. Add it to the list'''
+
:Next, view the source of [[Template:devices_ALL|this template]] and find the following appropriate place for your device to appear in the list. Then add the following line to the list of devices:
+
</translate>
+
::<code><nowiki>{{device_CODENAME|function={{{function}}}}}</nowiki></code>
+
<translate>
+
<!--T:17-->
+
:Then reload the page.  You should now see a link where you added the line.
+
 
+
<!--T:18-->
+
'''3. Create the device ''Info'' page'''
+
:Click on the generated (red) link for the device.  It should take you to the following empty "info" page:
+
</translate>
+
::<code>CODENAME_Info</code>
+
<translate>
+
<!--T:19-->
+
:In this page, simply insert the following single line of content:
+
</translate>
+
::<code><nowiki>{{device_CODENAME|function=device_info}}</nowiki></code>
+
<translate>
+
<!--T:20-->
+
'''4. Create the device ''How To Install'' page'''
+
:From the device Info page created in the previous step, on the (red) auto-generated link for the device installation instructions.  It should take you to the following empty "How To Install" page:
+
</translate>
+
::<code>Install_CM_for_CODENAME</code>
+
<translate>
+
<!--T:21-->
+
:In this page, simply insert the following single line of content:
+
</translate>
+
::<code><nowiki>{{device_CODENAME|function=device_install}}</nowiki></code>
+
<translate>
+
<!--T:22-->
+
:Save the page.  You now should see an auto-generated installation walkthrough page for the device.
+
 
+
<!--T:23-->
+
'''5. Create the device ''Build Walkthrough'' page'''
+
:Next, to auto-generate a CM build guide for this device, scroll to the bottom where it links (in red) to the Build Walkthrough for the device.  It should take you to an empty "build for" page:
+
</translate>
+
::<code>Build_for_CODENAME</code>
+
<translate>
+
<!--T:24-->
+
:In this page, simple insert the following single line of content:
+
</translate>
+
::<code><nowiki>{{device_CODENAME|function=device_build}}</nowiki></code>
+
<translate>
+
<!--T:25-->
+
'''That's it!'''
+
</translate>
+
</div></div>
+

Latest revision as of 00:17, 30 May 2013

This guide will walk you through the process of taking the One (T-Mobile) from stock to having a custom recovery image and the ability to flash the latest version of CyanogenMod.

Note: DISCLAIMER

Modifying or replacing your device's software may void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one affiliated with the CyanogenMod project is responsible for your actions. Good luck.


Important Notes

Note: Deprecated in favor of unified build

As of CM 11, this carrier specific device has been deprecated in favor of a new unified device: m7. Please visit the m7 page for information on building and installing the latest version of CyanogenMod. This page exists in case you would like to build an older release of CyanogenMod, for example, CM 10.2.


Unlocking the device

Note:

The One (T-Mobile) can be unlocked officially via the HTC Dev unlock program. This unlock method may have certain restrictions, such as not being able to flash a kernel via recovery (no longer applicable to 2013+ released devices) or no USB access to sdcard in recovery. Some devices, however, have no other method to install custom firmware.

  1. Configure your computer for fastboot.
  2. Enable USB debugging on the device.
  3. Connect the device to the computer through USB.
  4. From a terminal on a computer, type the following to boot the device into fastboot mode:
    $ adb reboot bootloader
  5. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", try running fastboot as root.
  6. From the same terminal, type the following command to obtain your bootloader unlock token:
    $ fastboot oem get_identifier_token
  7. Visit the HTCDev Bootloader Unlock website and follow the instructions there to obtain your unlock key. If your device does not appear in the drop-down list, select All Other Supported Models.
  8. If the device doesn't automatically reboot, reboot it from the menu. It should now be unlocked.
  9. Since the device resets completely, you will need to re-enable USB debugging on the device to continue.


Installing recovery using fastboot

You can use fastboot to install your recovery image to the device.

Installing ClockworkMod Recovery on the One (T-Mobile)

  1. Download koush's ClockworkMod Recovery. You can directly download the recovery image using the link below, or visit clockworkmod.com/rommanager to check for the latest version (if your device can be found there). Be careful to select the right image!
  2. Connect the One (T-Mobile) to the computer via USB.
  3. Make sure the fastboot binary is in your PATH or that you place the downloaded image in the same directory as fastboot.
  4. Open a terminal on your PC and reboot the device into fastboot mode by typing adb reboot bootloader or by using the hardware key combination.
  5. Once the device is in fastboot mode, verify your PC sees the device by typing fastboot devices
    • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
    • If you see "no permissions fastboot", try running fastboot as root.
  6. Flash ClockworkMod Recovery onto your device by entering the following command: fastboot flash recovery your_recovery_image.img where the latter part is the name of the file you downloaded.
  7. Once the flash completes successfully, reboot the device into recovery to verify the installation. Boot to recovery instructions: Hold Volume Up & the Power button. Hold all Buttons until the Screen flashes, then release the Power button.
    • Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.



Installing CyanogenMod from recovery

Note:

Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "/sdcard" that can be used for flashing purposes, even though the contents of /sdcard may actually be in internal storage.

  1. Download the prebuilt release of CyanogenMod you wish to install. (Or if you've built CM yourself, look in the $OUT directory for the .zip.)
    Optional: Download any supplemental 3rd-party applications packages for the device you wish to use.
  2. Place the CyanogenMod rom .zip file on the root of the SD card using adb:
    • Transfer your file(s): adb push YOURROMZIP.zip /sdcard/
      • If you boot directly to recovery and have an internal sdcard, you may need to run adb shell mount /sdcard or mount data through the recovery menu before transferring.
      • If you see "error: device not found" there is likely a driver issue on the PC.
      • If you see "error: insufficient permissions for device", try "adb kill-server" and then run "adb devices" to see if the device is attached.
      • On some devices, the zip file can be copied to the device using standard USB Mass Storage or MTP support. Boot the device normally and transfer the file to it.
    Optional: Place any supplemental packages (e.g. Google Apps[1] or kernel) .zip file(s) on the root of the SD card.
  3. Boot to recovery mode on the device by holding Hold Volume Up & the Power button. Hold all Buttons until the Screen flashes, then release the Power button..
  4. Once the device boots into the ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm your selection, although for some devices the power button is used as a "back" button to go up one level, in which case the home button is used to confirm the selection.
    Optional/Recommended: Select backup and restore to create a backup of the current installation on the device. If this option is missing, it's likely because the stock ROM has overwritten your custom recovery on boot.
  5. Select the option to wipe data/factory reset.
  6. Select install zip from sdcard.
  7. Select choose zip from sdcard.
  8. Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.
    Optional: Install any additional packages you wish using the same method.
  9. Once the installation has finished, return back to the main menu, and select the reboot system now option. The device should now boot into CyanogenMod.

Helpful Tip

See something wrong on this page? Report it here.