[Xperia Z5 Android Development] zacharias.maladroit:
Sorry for the delay:

Link to AOSP build:

https://drive.google.com/folderview?id=0BykGGWB96CBQMWk3a1VQenFWck0&usp=sharing

Make sure to backup the files on your internal storage

and especially

microSD (pictures, data, titanium backups) to your PC in case something goes wrong (remember: AOSP has NO exfat driver and recognition thereof - so you'll inevitably need to format your microSD with Fat32 if it's not already !)

TWRP , the AndroPlus Kernel and fastboot are your friends (thanks to [MENTION=5169444]AndroPlus[/MENTION] )

Create a Backup of the previous ROM you were on, reboot and copy if off to your computer,

to have a quick way back (I'm assuming you're running Stock Marshmallow), otherwise there could be problems with the hardware (modem, bootloader ?),

but feel free to test anyway.

You have 2 ways to get into recovery:

fastboot boot twrp.img -> reboot into recovery

fastboot boot boot.img [AndroPlus Kernel] -> press volume down button -> TWRP --> reboot into recovery

TWRP doesn't have to be replaced with AOSP or other recovery since the others don't work (yet ?)

Again: Remember to backup your userdata (pictures, apps, etc.)

via e.g. Titanium Backup or manually - and copy them to your computer in a safe place (!)

Once you're ready follow the instructions:

on http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/

fastboot –S 256M flash boot boot.img

fastboot –S 256M flash system system.img

fastboot –S 256M flash userdata userdata.img

this will wipe your internal data (!)

and you WILL lose access to your microSD (exFAT), AOSP can NOT read it - and will potentially say it is corrupt,

only way to test it - is copy things from Android to it.

Essential packages

to have for the first time on the microSD

Slim GApps for arm/arm64

CyanogenMod File Manager

Essential links to get things working:

http://xdaforums.com/showthread.php?t=2231949 [GUIDE] Install apk without Filemanager/Internet

http://forum.cyanogenmod.org/topic/118479-cm13-setup-wizard-has-stopped-working/page__st__20 CM13 - Setup Wizard has stopped working

http://android.stackexchange.com/qu...ssage-continually-popping-up-on-my-samsung-ph Google Play Services Has stopped message continually popping up on my Samsung phone

http://xdaforums.com/google-nexus-5/general/fix-install-google-gapps-stock-build-t3226205 [Fix] Install Google Gapps on stock build aosp marshmallow (fix google play service)

https://www.androidpit.com/how-to-install-the-play-store How to download and install the Google Play Store (AndroidPit) (great resource and archive for all Google stuff)

You'll get an error message:

Setup Wizard has stopped

over and over again,

DO NOT PANIC ! :cowboy:

Click on okay, then ignore it (it'll come up again),

Pull down the notification area -> settings -> apps -> all apps ->

on the right upper area -> "Show system"

then enable all permissions for Setup Wizard,

and the other apps starting with Google

Disable Google Play Services and Google Play (Market/Store),

then re-enable them (shouldn't make a difference)

Add your account,

Google Play (Store) will still crash,

once you're finished,

disable and re-enable it,

that should now work (with all the permissions set).

Nota bene:

The custom kernel I built (SunKernel for Z5 aosp) currently might have a battery drain issue

with certain settings

compared to the stock kernel and initial iteration of it,

Battery stats shows Miscellaneous as main battery consumer (drains twice the amount of battery than normal).

Therefore I'm including the stock kernel,

also Double Tap to Wake is semi-broken with the custom kernel: the system registers it - but the screen doesn't wake up :confused:

Way back:

Backup data from Internal Storage,

copy over your previous TWRP System Backup to Internal Storage,

fastboot boot twrp.img -> reboot into recovery

wipe /system, /cache (optionally /data)

and flash your old system ...

Welcome, you're back to Stock :D

---------- Post added at 11:28 PM ---------- Previous post was at 11:25 PM ----------

Thanks a lot ! Much appreciated

lol - it took quite some time on the first time,

but the second:

Thanks to ccache and ZFS' L2arc (small SSD caching)

Let's see how much longer this takes to package it up in a zip.