[Galaxy S II Android Development] jt12345:
Hi all.

Firstly, a big "thank you" to the devs for keeping my old i9100 running with the latest version of android. I have a couple of spare i9100 phones so I've been playing around installing lineage-14.1-20170222-nightly-i9100-signed.zip and lineage-14.1-20170226-nightly-i9100-signed.zip. A few things to mention...

I've read (in a couple of places) that you need to be running twrp v3 or later to install LOS. My experience is that this is *not* true. My (clean) install procedure (including a *full* wipe) is:

1) Odin back to stock 4.1.2 *with* a stock repit at the same time to make sure that I have a known-good starting point,

2) Boot into stock recovery and flash stock_kernel_twrp_1020-signed.zip from the microsd,

3) Reboot into twrp v2.8.7.0 recovery and flash the lanchon-repit to get a 1GB system partition,

4) "Advanced wipe" Dalvik Cache, Cache, System, Data, eMMC and "Android Secure",

5) Flash the latest nightly LOS and OpenGapps.

This procedure has worked successfully every time that I've tried it, and it does NOT use any TWRP v3.

I also have a bug to report: if I try to "set-up" ("erase & format) a blank (zero'ed-out) microsd card as "portable storage", then I get a toast saying

"command 'nn volume partition disk:179_12 public' failed with '400 11 Command failed'"

Here's the logcat for the error:

02-27 12:21:28.469 2304 2316 I ActivityManager: START u0 {cmp=com.android.settings/.deviceinfo.StorageWizardFormatProgress (has extras)} from uid 1000 on display 0
02-27 12:21:28.476 1977 2071 D Yamaha-MC1N2-Audio: yamaha_mc1n2_audio_output_start()
02-27 12:21:28.476 1977 2071 D Yamaha-MC1N2-Audio: yamaha_mc1n2_audio_route_start()
02-27 12:21:28.476 1977 2071 D Yamaha-MC1N2-Audio: (yamaha_mc1n2_audio_params_route_find): device = 2, direction = 0
02-27 12:21:28.720 2304 2735 D VoldConnector: SND -> {11 volume partition disk:179_12 public}
02-27 12:21:28.727 1902 1953 V vold : /system/bin/sgdisk
02-27 12:21:28.727 1902 1953 V vold : --android-dump
02-27 12:21:28.727 1902 1953 V vold : /dev/block/vold/disk:179_12
02-27 12:21:28.796 1902 1953 E vold : Failed to pclose /system/bin/sgdisk --android-dump /dev/block/vold/disk:179_12 : No such file or directory
02-27 12:21:28.796 1902 1953 W vold : sgdisk failed to scan /dev/block/vold/disk:179_12
02-27 12:21:28.796 2304 2419 D VoldConnector: RCV <- {400 11 Command failed}
02-27 12:21:29.143 2701 2701 E StorageSettings: Failed to partition
02-27 12:21:29.143 2701 2701 E StorageSettings: java.lang.IllegalStateException: command '11 volume partition disk:179_12 public' failed with '400 11 Command failed'
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.Parcel.readException(Parcel.java:1692)
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.Parcel.readException(Parcel.java:1637)
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.storage.IMountService$Stub$Proxy.partitionPublic(IMountService.java:1070)
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.storage.StorageManager.partitionPublic(StorageManager.java:742)
02-27 12:21:29.143 2701 2701 E StorageSettings: at com.android.settings.deviceinfo.StorageWizardFormatProgress$PartitionTask.doInBackground(StorageWizardFormatProgress.java:116)
02-27 12:21:29.143 2701 2701 E StorageSettings: at com.android.settings.deviceinfo.StorageWizardFormatProgress$PartitionTask.doInBackground(StorageWizardFormatProgress.java:92)
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.AsyncTask$2.call(AsyncTask.java:305)
02-27 12:21:29.143 2701 2701 E StorageSettings: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
02-27 12:21:29.143 2701 2701 E StorageSettings: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
02-27 12:21:29.143 2701 2701 E StorageSettings: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
02-27 12:21:29.143 2701 2701 E StorageSettings: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
02-27 12:21:29.143 2701 2701 E StorageSettings: at java.lang.Thread.run(Thread.java:761)
02-27 12:21:29.166 2304 2316 W ActivityManager: Duplicate finish request for ActivityRecord{2a149ee u0 com.android.settings/.deviceinfo.StorageWizardFormatConfirm t3 f}
02-27 12:21:29.344 2304 3071 I WindowManager: Failed to capture screenshot of Token{596d97f ActivityRecord{96a0a9e u0 com.android.settings/.deviceinfo.StorageWizardFormatProgress t3 f}} appWin=Window{6498e9b u0 com.android.settings/com.android.settings.devi$
02-27 12:21:29.961 3086 3187 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
02-27 12:21:29.961 3086 3187 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
02-27 12:21:31.574 1977 2071 D Yamaha-MC1N2-Audio: yamaha_mc1n2_audio_output_stop()
02-27 12:21:31.575 1977 2071 D Yamaha-MC1N2-Audio: yamaha_mc1n2_audio_route_start()
02-27 12:21:32.716 2304 2304 W WindowManager: Attempted to remove non-existing token: android.os.Binder@da72238

I'm sure this bug will be fixed soon - I'm just letting people know.

I'm also slightly confused as to why we still have two xda threads for this rom - there appears to be more posting about LOS in the old cm14.1 thread than in this thread.

Thanks again to everyone who's put time and effort into this project - this ROM is easily the most stable ROM I've ever run on my i9100 phones.

Jaime