[Nexus 5 General] AtomosVE:
Yeah, there's way you can dirty flash M preview

There's way you can dirty flash M preview on top of Lollipop 5.1.x. I mean, without wiping userdata. :cheers:

0. Things good to know before flashing :

0-0. First, I have to say sorry there's no colors, fonts, pictures in this post.

Because I'm really tired so that I lost ALL OF my sms conversations by launching my sms app without a mind, Google Messenger, before changing default messaging app (Noooooooo....... It is set Hangouts from Messenger. I was unnoticed ) :(

double check default dialer and default messaging app if you care logs preciously. DAMN google! I don't want to use SMS with account trackable.

This "WAS" biggest one of the reasons I have to dirty flash. :giggles:

anyway, it's under Settings -> Apps -> 3 dot -> advanced -> Default Apps..I feel like i...it's all over.. my SMS...

0-a. It seems "failed to allocating xxxxxKB" still exists on Windows, do flashing in Linux! (ubuntu is one of Linux)

0-b. On Android M preview, You can't use adb before completing first setup. (then your home button works, quicksetting pulls down.)

0-c. After flashing M preview, There's permissions blocked by default even if it is a system app! (including first setup procedure - Setup Wizard)

------------------------------------------------------------------------------------------------

Due to doing this is too complicated and exhausting.

I only recommend you have plenty of time, patience, and loneliness(:p) haha

1. prepare these before you flashing M preview

1-a. Of course. Factory Image of M preview

https://developer.android.com/preview/download.html

1-b. Install this App: Activity Launcher

https://play.google.com/store/apps/details?id=de.szalkowski.activitylauncher

1-c. All APKs of apps you installed. (Download from www.APKmirror.com would be fine in most case, I exactly did extracted from Titanium Backup while I prepared for returning Stock from Custom ROM a week ago.. DAMN SMS!!!)

2. flash! unpack 1-a

2-a. I think You'll know remove -w switch before flashing as many tutorials available via webSearch. :)

open flash-all.sh then delete 2 characters "-w"(dash and w) on the line "fastboot -w update image-hammerhead-MPZ44Q.zip" then save it.

2-b. run modified flash-all.sh in Computer. Open shell and run flash-all.sh or run each command of modified flash-all.sh

3-c. your devie will restart and get into homescreen without lockscreen.

3. To prevent FCs and stuck while first setup, you have to work with permissions before launching SetupWizard.

3-a. Goto Settings -> Apps

3-b. Tap 3 dot then tap Show System apps

3-c. find and click Setup Wizard

3-d. Tap Permissions

3-e. Tap 3 dot then tap Show legacy

3-f. turn on all of 4 permissions.

4. Run SetupWizard

4-a. Launch Activity Launcher App I told you to install on step 1-b.

4-b. Find Setup Wizard, unfold it then Find and tap entry named below (in gray)

com.google.android.setupwizard.SetupWizardTestActivity﻿

4-c. finish your first setup. Wifi, Accounts, opt in or out google now etc.

4-d. you'll get now working home button, pull-able down Quick settings.

5. It's time to extinguish the ForceClose-FCs on user app. Reinstall your app on shell top your existing installation. NOT UNINSTALL.

The cause of force close is permission seems granted by default but it's actually not reflected while launch for user app (I mean, it's not applied). Enabling and disabling app OR Installing(even on top of current) app applies permissions.

5-a. open command-prompt and go to folder you previously prepared APKs on step 1-c.

5-b. run adb to install all of apks using two switches: -r -d

these switch will eliminate FAILED_ALREADY_EXISTS and FAILED_DOWNGRADE Failure.

adb install -r -d com.google.android.apps.messaging.apk

you can automate these using "for"

for %apk in (*.apk) do adb install -r -d %apk

5-c. after finished re-installing apps,

please double check to prevent further force closes even after enabling permissions you want on Apps permission on Advanced <- Apps <- settings.

I recommend enable all of permissions even on "show legacy" of System apps.

5-d. visit store and update all apps as usual preferences

if you don't want to do so on some apps, do so.

but Remember, please match version of app have to be same as of version before doing Step 5. Or you'll get FCs by another reason.

6. Done. Reboot and check what happenes.

I'm more so tired noticed even call logs are gone.. :( No....

I have to sleep. have a nice day. I recommend you backed up everything you want to preserve before doing the above steps.