[Nokia X] lukino563:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Hey guys,

I made kernel with dualboot support

I have 1st ROM - Stock 4.1.2 & 2nd ROM - PAC

It is very smooth, but second ROM is located on internal sdcard formatted as ext4

I prepacked lightweight StockJB and lightweight PAC with some mods.

See changelog for new features #post2

This mod is only for NOKIA X, not for X+ & XL

Kernel Features (LULZ Kernel)

- Features as NULL Kernel

- DualBoot support

- EFI Partiton Table (GPT) & Windows Dynamic Disk support

- /dev/block/mmcblk0p21(default as internal sdcard) is used as 2nd ROM's data(ext4)

- performance & battery optimizations from Nexus 5

- intelliplug hotplug driver

- IO schedulers: noop, deadline, fiops, cfq, bfq, sio, vr, zen, fifo, row

- CPU governors: intellimm, smartassV2, pegasusq, intelliactive, conservative, powersave, intellidemand, performance

- supports "RESET BUTTONS" if phone is in bug or something just hold POWER + VOLUMEUP Button to restart device

- OverClock up to 1.104Mhz

- added cpu_boost & turbo

- kernel optimizations

Recovery Features

- TWRP Recovery 2.7

- f2fs, cramfs(mount only), squashfs(mount only), reiserfs(mount only) additional systems supported

- EFI Partition Table (GPT) supported

- /dev/block/mmcblk0p21(default as internal sdcard) is used as 2nd ROM's data(ext4)

- Security flags for filesystems

- SELinux enabled

This DualBoot working on copying system to system partition, because I found problem with mounting system on different block device - it will not boot. If you changing between ROM, boot takes cca ~1-2min, but this is true only if you have installed my lightweight systems stored in DualBoot instalation package. I'm not responsible for your device.

1st ROM features (Stock JB)

- Stock JB system base

- Removed Nokia Store and Here Maps - not working after deodexing ROM

- Deodexed ROM

- replaced stock browser with CMBrowser

- replaced stock launcher with apex launcher

- replaced swype keyboard with xperia keyboard

- added notification manager ( guide is on bottom of this thread )

- added Lucky Patcher (fix storage), ES File Explorer (changing between ROMS), TricksterMod (Performance Control)

- added Google Play Store

- removed unused files

2nd ROM features (PAC-man)

- PAC-man system base

- removed unused files

- replaced LatinIME keyboard with xperia keyboard

- replaced Apollo with Sony Walkman (better sound)

- added Lucky Patcher (fix storage)

Installation:

IF YOU HAVENT INSTALLED V2 OR YOU WANT CLEAN INSTALL

0, Download, install DB-format.zip, then do other steps

IMPORTANT: This will format DATA, SYSTEM, INTERNAL SDCARD and PRELOAD. Because all of this is used in dualboot to work. INTERNAL SDCARD is reformatted as ext4.

IF YOU ARE UPGRADING

1. Download NOKIAX-DualBoot.zip and recovery.img

2. Flash recovery with fastboot

3. Place NOKIAX-DualBoot.zip

4. Reboot into recovery

5. Install NOKIAX-DualBoot.zip

6. Flash newer kernel if is possible (on this thread !)

7.. Reboot and wait - first it will boot to internal ROM.

Download:

NOKIAX-DualBoot.zip V3(fixed)

recovery.img V3

DB-format.zip

LULZ-V5.img

To do after boot:

Fix storage ONLY FOR 2nd ROM

0. Create on your sdcard folder in PAC: /storage/sdcard0/sdbind in JB: /storage/sdcard1/sdbind

1. Open Lucky Patcher

2. Allow SuperUser permissions

3. Tap on Toolbox on bottom bar

4. Tap on Directory Binder

5. Tap on add new directory bind

6a. for PAC: to first column write /storage/sdcard0/sdbind

to second /storage/sdcard1

6b. for JB: to first column write /storage/sdcard1/sdbind

to second /storage/sdcard0

7. Tap Bind directory

Changing between systems

1. Open ES File Explorer - on PAC install it from Play store

2. Slide from very left side to right side to open panel

3. Tap on Tools

4. Slide down to Root Explorer

5. Tap on OFF and allow permission in SuperUser

6. Press back button to close panel.

7. Go to /cache

8. Open dualboot.cfg as text -> ES Note Editor

9 Tap on left top corner and then to Edit

In PAC is:

boot_external=1 <- Edit only this to 0 to boot in JB
keycheck_enable=1 <- If this is enabled, editing boot_external is not needed, just press POWER button after phone vibrates to boot into 2nd ROM

In JB is:

boot_external=0 <- Edit only this to 1 to boot in PAC
keycheck_enable=1 <- If this is enabled, editing boot_external is not needed, just dont press POWER button after phone vibrates to boot into 1nd ROM

Enable Navigation Bar in PAC (external rom)

Go to Settings -> PAC Settings -> Buttons -> Power Menu -> Enable Navigation Bar

Long press Lock Button and enable Navigation Bar

Enable Notifications on JB (internal rom)

Open Settings -> Accessibility -> X Notification -> in right top corner slide to activate

XDA:DevDB Information

DualBoot for Nokia X, Kernel for the Nokia X

Contributors

lukino563

Kernel Special Features: dualboot support, f2fs support

Version Information

Status: Stable

Current Stable Version: V5

Stable Release Date: 2015-03-28

Created 2015-02-07

Last Updated 2015-03-28