{"id":940,"date":"2018-05-03T09:48:00","date_gmt":"2018-05-03T09:48:00","guid":{"rendered":"http:\/\/192.168.2.32:8082\/?p=940"},"modified":"2019-01-15T18:22:17","modified_gmt":"2019-01-15T18:22:17","slug":"motorola-moto-x4-installation-lineage-os","status":"publish","type":"post","link":"https:\/\/www.dev-metal.ch\/?p=940","title":{"rendered":"Motorola Moto X4 &#8211; Installation Lineage OS"},"content":{"rendered":"<p>Heute wurde mein neues Telefon angeliefert, das Motorola Moto X4. Die Gr\u00fcnde f\u00fcr das Moto X4 waren:<\/p>\n<ul>\n<li>Nicht zu gross (5.2&#8243;)<\/li>\n<li>Dual-Sim<\/li>\n<li>Akku 3000 mAh<\/li>\n<li>Preis unter CHF 300.00<\/li>\n<li>NFC vorhanden<\/li>\n<li>Offizieller <a href=\"https:\/\/download.lineageos.org\/payton\" target=\"_blank\" rel=\"noopener\">Build-Release<\/a> von Lineage OS<\/li>\n<\/ul>\n<p><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-942\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_120736.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/p>\n<p>Ich m\u00f6chte das Telefon nicht mit dem Stock-Release von Motorola benutzen. Das Moto X4 soll mit Lineage OS begl\u00fcckt werden. Dieser Blog-Post basiert auf dem Post von eines <a href=\"https:\/\/www.pro-linux.de\/artikel\/2\/1878\/installation-von-lineageos-auf-moto-g4-plus.html\" target=\"_blank\" rel=\"noopener\">Pro-Linux Artikels<\/a> sowie einem <a href=\"https:\/\/www.youtube.com\/watch?v=8tLFnkJrJ40\" target=\"_blank\" rel=\"noopener\">Install-Video<\/a> und beinhaltet zus\u00e4tzlich \u00c4nderungen aufgrund meinen eigenen Erfahrungen mit dem Moto X4 (Installation TWRP, etc.).<\/p>\n<h3>Installation<\/h3>\n<p>Mein Installations-Ablauf:<\/p>\n<ul>\n<li>Developer-Modus einschalten<\/li>\n<li>Handy u\u0308ber adb-Tools (Android Debug Bridge &#8211; kurz ADB) starten<\/li>\n<li>Bootloader OEM-Sperre entfernen<\/li>\n<li>Team Win Recovery Project (TWRP)\u00a0flashen (Recovery-Modus)<\/li>\n<li>Backup des Stock-ROMS erstellen<\/li>\n<li>Firmware f\u00fcr Moto X4 aufspielen<\/li>\n<li>LineageOS auf SD-Karte aufspielen<\/li>\n<\/ul>\n<p>Siehe auch<\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=2-Kcwjyk_Ls\" target=\"_blank\" rel=\"noopener\">Link<\/a><\/p>\n<h3>Developer-Modus einschalten<\/h3>\n<ul>\n<li>Das Telefon beim ersten Start ohne Sim-Karte und ohne Speicher-Karte starten.<\/li>\n<li>Durchbooten bis zum Desktop<\/li>\n<li>Einstellungen &gt; \u00dcber das Telefon aufrufen<\/li>\n<li>7x auf die Build-Nummer Tippen =&gt; Das Telefon meldet nun, dass Sie nun &#8222;Entwickler&#8220; sind =&gt; Developer-Modus ist damit aktiviert.<\/li>\n<li>Nun erscheint unter den Einstellungen zus\u00e4tzlich der Eintrag &#8222;Entwickleroptionen&#8220;<\/li>\n<li>Unter den Entwickleroptionen folgende Optionen aktivieren:\n<ul>\n<li>OEM Entsperrung und<\/li>\n<li>USB Debugging<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Nun ist das Telefon soweit bereit um es ver\u00e4ndern zu k\u00f6nnen.<\/p>\n<h3>Handy u\u0308ber adb-Tools (Android Debug Bridge &#8211; kurz ADB) starten<\/h3>\n<p>Mit der Android Debug Bridge &#8211; kurz ADB &#8211; kann man ein Android-Smartphone verwalten. Es ist grunds\u00e4tzlich f\u00fcr Entwickler gedacht und bietet ein paar coole Funktionen. Ich verwende die adb unter Ubuntu-Linux. Die adb kann folgendermassen installiert werden:<\/p>\n<pre class=\"lang:sh decode:true\">sudo apt-get install android-tools-adb\r\nsudo apt-get install android-tools-fastboot<\/pre>\n<p>Nun das Telefon mit dem Linux-Rechner verbinden:<\/p>\n<ul>\n<li>Per USB3-Kabel das Telefon mit dem Linux-Rechner verbinden<\/li>\n<li>Auf dem Telefon nochmals kurz USB-Debugging de- und wieder aktivieren<\/li>\n<li>Nun k\u00f6nnen \u00fcber die Linux-Konsole Befehle an das Telefon gesendet werden. Damit das aber funktioniert, muss der Linux-Rechner noch autorisiert werden. Dies geschieht indem ein Befehl an das Telefon gesendet wird.<\/li>\n<li>\n<pre class=\"lang:sh decode:true\">adb reboot bootloader<\/pre>\n<\/li>\n<li>Auf dem Telefon erscheint automatisch die Anfrage ob der Rechner autorisiert werden soll. Hier nun die Genehmigung erteilen:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-959\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_125555.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>Ein Reboot des Bootloaders zeigt nun folgendes Bild, wobei ersichtlich ist, dass das Ger\u00e4t &#8222;oem_locked&#8220; ist:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-961\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_130448.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>Um Lineage OS aufspielen zu k\u00f6nnen, muss der auf dem Bootloader der oem-lock entfernt werden.<\/li>\n<\/ul>\n<h3>Bootloader OEM-Sperre entfernen<\/h3>\n<p>Motorola bietet Entwicklern die M\u00f6glichkeit, den oem-lock zu entfernen. Damit einher geht, dass die Garantie entf\u00e4llt. Und so geht es:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.motorola.com\/us\/developer\" target=\"_blank\" rel=\"noopener\">Link zu Motorola<\/a> aufrufen &gt; U<span class=\"t_menu\">nlock your bootloader &gt; Get started &gt; Next<\/span><\/li>\n<li>Nun muss man sich anmelden. Das geht entweder mit einem Google-Account oder aber mit einem Motorola-Konto. Ich habe weder noch. Ich verwende deswegen den Link &#8222;Mit Motorola ID anmelden&#8220;. Hier werde ich aufgefordert eine Motorola-ID zu erstellen.<\/li>\n<li>Nun eine Motorola-ID erstellen und anschliessend anmelden. Nach dem Login wird angezeigt, wie man das Device unlocked:\n<ul>\n<li>\n<pre class=\"lang:sh decode:true \">fastboot oem get_unlock_data\r\n...\r\n(bootloader) Unlock data:\r\n(bootloader) 3AasdfaSDddasdf1#5asdd232344839\r\n(bootloader) 434E5A006DASDFASD678340000#3F14\r\n(bootloader) BF2C22D54C36CD73EB12C31DF400F1A\r\n(bootloader) 55769#FE0D752201561568645130000\r\n(bootloader) 0000000\r\nOKAY [  0.013s]\r\nfinished. total time: 0.013s<\/pre>\n<p>Daraus muss ein einzeiliger String erstellt werden, den man auf der unlock-Seite von Motorola eingibt:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-962 alignnone\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32-300x79.png\" alt=\"\" width=\"300\" height=\"79\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32-300x79.png 300w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32-768x203.png 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32-4x1.png 4w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-20-32.png 959w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Nun erscheint am Ende der Motorola-Site ein Unlock-Button:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-964\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46-300x67.png\" alt=\"\" width=\"300\" height=\"67\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46-300x67.png 300w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46-768x170.png 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46-5x1.png 5w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-21-46.png 789w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Nun wird ein Mail mit dem Unlock-Key zugestellt:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-965\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41-300x89.png\" alt=\"\" width=\"300\" height=\"89\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41-300x89.png 300w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41-768x228.png 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41-3x1.png 3w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-23-41.png 869w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Mit dem Key kann nun der Bootloader unlocked werden. Anstelle &#8222;UNIQUE_KEY&#8220; muss der im Mail zugestellte Key verwendet werden:<\/li>\n<li>\n<pre class=\"lang:sh decode:true\">fastboot oem unlock UNIQUE_KEY<\/pre>\n<\/li>\n<li>Der Befehl muss nun nochmals zwecks Best\u00e4tigung wiederholt werden. Anschliessend ist das Ger\u00e4t offiziell unlocked! \ud83d\ude42<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-29-31.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-967\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-29-31-300x66.png\" alt=\"\" width=\"300\" height=\"66\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-29-31-300x66.png 300w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-29-31-5x1.png 5w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/Bildschirmfoto-vom-2018-11-03-13-29-31.png 390w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Um zu \u00fcberpr\u00fcfen ob der Unlock wirklich geklappt hat, kann das Telefon nochmals gerebooted werden und dann nochmals in den Bootloader gebooted werden:<\/li>\n<li>\n<pre class=\"lang:sh decode:true\">adb reboot bootloader<\/pre>\n<\/li>\n<li>Voil\u00e0. &#8222;flashing_unlocked&#8220; best\u00e4tigt dies:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-973\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_134210.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>Team Win Recovery Project (TWRP)\u00a0flashen (Recovery-Modus)<\/h3>\n<p>Team Win Recovery Project (TWRP) ist ein Custom-Recovery-System f\u00fcr Android-Ger\u00e4te. Es wird \u00fcber unseren unlocked Bootloader in die Recovery-Partition des Telefons geschrieben. Anschliessend kann TWRP \u00fcber den Bootloader unabh\u00e4ngig vom System gestartet werden. Mit TWRP k\u00f6nnen wir unser System Backupen, Restoren aber auch ein anderes OS (Custom-Roms) aufspielen:<\/p>\n<ul>\n<li>Die TWRP-Version f\u00fcr Moto X4 auf <a href=\"http:\/\/twrp.me\" target=\"_blank\" rel=\"noopener\">twrp.me<\/a> suchen und downloaden =&gt; <a href=\"https:\/\/twrp.me\/motorola\/motorolamotox4.html\" target=\"_blank\" rel=\"noopener\">https:\/\/twrp.me\/motorola\/motorolamotox4.html<\/a><\/li>\n<li>Bei einer Erstinstallation m\u00fcssen zwei Files heruntergeladen werden (twrp-installer-payton-3.2.3-1.zip und twrp-3.2.3-1-payton.img)<\/li>\n<li>Nun tempor\u00e4r TWRP auf dem Telefon starten. Das kann durch folgenden Befehl ausgel\u00f6st werden:<\/li>\n<li>\n<pre class=\"lang:sh decode:true\">fastboot boot Downloads\/twrp-3.2.3-1-payton.img<\/pre>\n<p>Nun kann das ZIP-File auf das Telefon bzw. auf die sdcard kopiert werden:<\/li>\n<li>\n<pre class=\"lang:sh decode:true \">adb push Downloads\/twrp-installer-payton-3.2.3-1.zip \/sdcard\r\n[100%] \/sdcard\/twrp-installer-payton-3.2.3-1.zip<\/pre>\n<p>Nun kann im TWRP \u00fcber &#8222;Installieren&#8220; das Installer-ZIP ausgew\u00e4hlt und installiert werden. Damit wird TWRP fix auf der Recovery-Partition installiert:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-977\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141633.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-980\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_141921.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>Nun das Telefon neu starten. Dabei installiere ich die TWRP-App als Systemapplikation, so dass zuk\u00fcnftige TWRP-Updates \u00fcber die App installiert werden k\u00f6nnen:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-983\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_142452.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>Das Telefon Startet nun neu.<\/li>\n<li>Ab sofort kann beim Aufstarten des Telefons mittles gleichzeitigem Dr\u00fccken von\u00a0 &#8222;Power Button&#8220; und &#8222;Lautst\u00e4rke Down&#8220; in den Bootloader gebootet werden.<\/li>\n<li>Im Bootloader kann nun mittles Lautst\u00e4rken-Buttons der Recovery-Mode ausgew\u00e4hlt und best\u00e4tigt werden (Power Button). Anschliessend wird in TWRP gebootet:<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-986\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144157.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-987\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_144238.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>Nun k\u00f6nnen diverse Funktionen mit TWRP verwendet werden. \ud83d\ude42<\/li>\n<\/ul>\n<h3>Backup des Stock-ROMS erstellen<\/h3>\n<p>Mittles TWRP erstellen wir nun ein Backup unseres Stock-ROMs. Dies, damit wir im &#8222;Worst Case&#8220; Fall das System wieder in den Ursprungs-Zustand versetzten k\u00f6nnen:<\/p>\n<ul>\n<li>In TWRP booten<\/li>\n<li>L\u00f6schen\/Wipe ausw\u00e4hlen<\/li>\n<li>Erweitertes L\u00f6schen ausw\u00e4hlen<\/li>\n<li>Optionen ausw\u00e4hlen\n<ul>\n<li>Dalvik \/ ART Cache<\/li>\n<li>Interner Speicher<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-991\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_145802.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<\/ul>\n<\/li>\n<li>L\u00f6schen best\u00e4tigen<\/li>\n<li>Zur\u00fcck<\/li>\n<li>Diesen L\u00f6schvorgang zweimal durchf\u00fchren =&gt; Soll teilweise n\u00f6tig sein&#8230;<\/li>\n<li>Zur\u00fcck zum TWRP Start-Screen gehen.<\/li>\n<li>Sichern \/ Backup ausw\u00e4hlen und folgende Partitionen ausw\u00e4hlen:\n<ul>\n<li>Boot (64MB)<\/li>\n<li>Data (ohne \/data\/media)<\/li>\n<li>System (2690MB)<\/li>\n<\/ul>\n<\/li>\n<li>Name des Backup-Files benennen<\/li>\n<li>Speicher ausw\u00e4hlen (ich verwende den internen Speicher)<\/li>\n<li>Sicherung erstellen<\/li>\n<li><a href=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-993\" src=\"http:\/\/192.168.2.32:8082\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902-225x300.jpg 225w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902-768x1024.jpg 768w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902-1x1.jpg 1w, https:\/\/www.dev-metal.ch\/wp-content\/uploads\/2018\/11\/IMG_20181103_150902.jpg 1080w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/li>\n<li>In meinem Falle hat das nicht funktioniert (Fehler 255), deswegen hab ich diesen Schritt \u00fcbersprungen &#8211; No Risk No Fun<\/li>\n<\/ul>\n<h3>Firmware f\u00fcr Moto X4 aufspielen<\/h3>\n<ul>\n<li>Download https:\/\/www.androidfilehost.com\/?fid=890278863836292604<\/li>\n<li>Entpacken und flash-all.sh ausf\u00fchren. Dies kopiert die Images von Slot A nach Partition B. Das ist notwendig um Lineageos auf Partition B installieren zu k\u00f6nnen.<\/li>\n<li>\n<pre class=\"lang:sh decode:true\">$ .\/flash_all.sh \r\ntarget reported max download size of 536870912 bytes\r\nsending 'abl_a' (1024 KB)...\r\nOKAY [  0.024s]\r\nwriting 'abl_a'...\r\nOKAY [  0.062s]\r\n...\r\n...\r\n...\r\nOKAY [  0.039s]\r\nfinished. total time: 0.121s<\/pre>\n<p>Jetzt mit fastboot das twrp-image auf das Telefon pushen und booten:<\/li>\n<li>\n<pre class=\"lang:sh decode:true \">fastboot boot twrp-3.2.3-1-payton.img<\/pre>\n<p>Es wird nun TWRP gestartet.<\/li>\n<li>Nun das TWRP-ZIP auf das Telefon kopieren<\/li>\n<li>\n<pre class=\"lang:sh decode:true \">adb push twrp-installer-payton-3.2.3-1.zip \/sdcard\/<\/pre>\n<p>Nun im TWRP \u00fcber Install das kopierte TWRP ausw\u00e4hlen und installieren (swipe to install).<\/li>\n<li>Dies installiert das TWRP sowohl auf Slot A als auch auf Slot B.<\/li>\n<li>Nun rebooten (keine twrp-Apps installieren). Wenn das Stock Rom wieder sauber bootet, hat alles funktioniert.<\/li>\n<li>Wieder in den bootloader booten und Recovery Mode ausw\u00e4hlen &gt; Es wird nun TWRP gestartet.<\/li>\n<li>Nun das LineageOS Rom und die GApps auf das Telefon kopieren<\/li>\n<li>\n<pre class=\"lang:sh decode:true \">adb push lineage-15.1-20181002-nightly-payton-signed.zip \/sdcard\/\r\n[100%] \/sdcard\/lineage-15.1-20181002-nightly-payton-signed.zip\r\nralwet@Z97X-Gaming-5:~\/Schreibtisch\/Moto X4 Work$ adb push MindTheGapps-8.1.0-arm64-20180808_153856.zip \/sdcard\/\r\n[100%] \/sdcard\/MindTheGapps-8.1.0-arm64-20180808_153856.zip<\/pre>\n<p>Nun im TWRP &gt; Install<\/li>\n<li>LineageOs ausw\u00e4hlen<\/li>\n<li>Add more ZIP ausw\u00e4hlen und<\/li>\n<li>das TWRP-ZIP File mit ausw\u00e4hlen (gem. Video)<\/li>\n<li>Dann Swipe to Install<\/li>\n<li>Nachdem die Installation abgeschlossen ist, nicht rebooten sondern<\/li>\n<li>Wipe Cache ausw\u00e4hlen<\/li>\n<li>Dann Reboot &gt; Recovery =&gt; Dies bootet wieder nach TWRP<\/li>\n<li>Nun \u00fcber Install die GApps mit installieren (Minde the Gapps ZIP)<\/li>\n<li>Nun Reboot System<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Heute wurde mein neues Telefon angeliefert, das Motorola Moto X4. Die Gr\u00fcnde f\u00fcr das Moto X4 waren: Nicht zu gross (5.2&#8243;) Dual-Sim Akku 3000 mAh Preis unter CHF 300.00 NFC vorhanden Offizieller Build-Release von Lineage OS Ich m\u00f6chte das Telefon nicht mit dem Stock-Release von Motorola benutzen. Das Moto X4 soll mit Lineage OS begl\u00fcckt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[30],"tags":[],"class_list":["post-940","post","type-post","status-publish","format-standard","hentry","category-mobile-telefonie"],"modified_by":"ralph","_links":{"self":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=940"}],"version-history":[{"count":49,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/940\/revisions"}],"predecessor-version":[{"id":1283,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=\/wp\/v2\/posts\/940\/revisions\/1283"}],"wp:attachment":[{"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-metal.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}