yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II N7105 Android Development] rogersb11:
Shift Dual Boot/ TW and CM Kernel​

This kernel supports both TouchWiz and ALL of AOSP other than maybe Pac Rom but it is not my fault it isn't supported lol. They use their own name in the framework instead of the one EVERYBODY else does.

CPU GOVERNORS: lazy, smartass, smartassV2, ondemand, powersave, interactive, performance, userspace, pegasusq, zzmoove

I/O GOVERNORS: deadline, cfq, row, sio

default cpu governor: ondemand

default I/O governor: cfq

CIFS & NFS Network FileSystems

F2FS/EXT4

kernel uses LZMA compression

OverClock to 2160

CPU Voltage Control

GPU OC, UC and Voltage Control

Boeffla Sound 1.6.6 (Use the control app from the play store)

Charge Control

TouchWake and Timeout support

Slide2Wake

DoubleTap2Wake

Mdnie HiJack

Dynamic Fsync Control

Kernel gesture support

Latest source updates

Compiled with Linaro GCC 4.9.3

STweaks is included for kernel configuration

Install Instructions: Standard flash in recovery, dual boot instrustions will be listed below. When flashing AOSP flash the addon zip afterwards

Downloads: Shift

AOSP Sensor addon: Starting with build 3.1 this is NO LONGER NEEDED. The kernel will add the necessary sensors when aosp is booted

Shift Lollipop Single boot kernel can bet found here. All features are the same aside from the needed updated for Lollipop to work correctly

Downloads: Shift-LP-5.7

Dual Boot Support will REQUIRE PhilZ Touch Advanced from here: PhilZ

XDA:DevDB Information

Shift-DualBoot-Kernel, Kernel for the Samsung Galaxy Note II

Contributors

rogersb11, ketut.kumajaya

Source Code: https://github.com/rogersb11/android_kernel_samsung_smdk4x12/tree/shift

Kernel Special Features: Dual Boot TouchWiz or Aosp ROM, Aroma recovery boot menus with PhilZ Advanced touch

Version Information

Status: Stable

Current Stable Version: Dual=3.9/Single=LP-5

Stable Release Date: 2015-04-03

Created 2014-08-16

Last Updated 2015-07-20
[Galaxy Note II N7105 Android Development] rogersb11:
These are my personal boeffla settings that do not break the earpiece sound so often experienced by some but not by me lol

WARNING, these settings WILL completely change your headphone jack into a BEAST. I'm serious please be careful. Without these I use car stereo at 26, with them I use maybe 14 and it's louder than the 26 so I'm advising to start low.

Dual boot Instructions(will be updated)

4. "I want to setup dual booting."

A. There are four situations:-

1) Sammy rom now. Want to use aosp as secondary.

2) Sammy rom now. Want to use aosp as primary.

3) Aosp rom now. Want to use sammy as secondary.

4) Aosp rom now. Want to use sammy as primary.

Prerequisites for any setup is

a) Flash latest Shift kernel. BIG FAT WARNING: For AOSP Rom flash the Sensor update zip

b) Flash latest Extended PhilZ Touch recovery: http://xdaforums.com/galaxy-note-2/development-n7105/recovery-t2849091

c) Atleast 90% battery left.

d) 3 GB free on internal SD.

e) Some spare time

1) Present sammy, setup aosp as secondary:-

i) Reboot into recovery

ii) Select "Run Aroma Dual Boot Tool" in Advaced Menu, create system.img for CM/CM based ROM and then close it

iii) Reboot into secondary recovery (red on screen navigation buttons)

iv) Flash aosp ROM as 2nd ROM

v) Flash Shift kernel again

2) Present sammy, setup aosp as primary:-

i) Reboot into recovery

ii) Nandroid backup your current sammy ROM

iii) Select "Run Aroma Dual Boot Tool" in Advaced Menu, create system.img for Samsung stock/stock based ROM and then close it

iv) Reboot into secondary recovery (red on screen navigation buttons)

v) Nandroid restore your sammy ROM as 2nd ROM

vi) Flash Shift kernel again

vii) Reboot into primary recovery

viii) Flash aosp ROM as 1st ROM

ix) Flash Shift kernel again

3) Present aosp, setup sammy as secondary:-

Same as (1), instead of flashing aosp to second, flash sammy to second.

4) Present aosp, setup sammy as primary:-

Same as (2), instead of flashing aosp to first ROM, flash sammy.

NOTE:

-To dual boot Two Aosp or Two Sammy roms, just follow (1) or (2) (depending on which one of them you want as primary/secondary), just flash Sammy instead of aosp or aosp instead of sammy.

5. "What things should I be taking care off while dealing with dual booting?"

A. - Make sure where you are: in primary or secondary recovery.

6. "How to boot into primary rom?"

A. AROMA based boot menu will help you on every boot.

7. "How to boot into secondary rom?"

A. AROMA based boot menu will help you on every boot.

8. "Is kernel partition shared?"

A. Yes. Same kernel boots both roms
[Galaxy Note II N7105 Android Development] rogersb11:
Sorry I've been basically MIA lately guys but I haven't had a device. Mine broke about three weeks ago when it plummeted to it's death while I stared in horror. I was gonna be forced to stop development or move on when I could afford to. Thanks to and INCREDIBLY GIVING and just flat out AWESOME and REAL [MENTION=3927388]gregsarg[/MENTION] I've been resurrected. That guy loves these threads and this N2 community more than anyone I've ever come across in any of device threads I've been in or a part of. Dude helps on like every thread we have I think. He moved on to the S5, put it back in the box and came back here. Saved [MENTION=4240679]eZdubzitmk4[/MENTION] at one point in a similar situation and then months later comes through in the clutch again. Nobody expects someone the donate a device but it happens because users like [MENTION=3927388]gregsarg[/MENTION] are around worrying about OVERALL device development for us N2 users. We all probably owe him a thanks because we've all inevitably gained something from him around these areas. So THANK YOU [MENTION=3927388]gregsarg[/MENTION] for your amazingly generous and truly sincere donation. I'm rocking a brand new NE5 Loader Note 2 and all because you kick ass. All development going forward from me here is because of him. Thank you man. You're a truly great friend. This will be located in the second post in this forum going forward.
[Galaxy Note II N7105 Android Development] terpin32:
I have no data after I flash the shift kernel
[Galaxy Note II N7105 Android Development] Blackfyre:
Welcome to N7105 and Thanks! Variety is always great, we'll give it a try later in the weekend.
[Galaxy Note II N7105 Android Development] rogersb11:
More specific? Network? I have lte
[Galaxy Note II N7105 Android Development] Blackfyre:
Go to APN Settings and see if it's empty. If it is, add the APN setting for your Network Provider. (If you can't enter APN Settings, try flashing latest modem for N7105 - that's if you're using an N7105, otherwise flash appropriate modem).
[Galaxy Note II N7105 Android Development] ryan9970:
Everythings working well for me.

Your rom "SaberKat" for my primary rom and Liquid Smooth as my secondary rom.

Great job...Thank you
[Galaxy Note II N7105 Android Development] terpin32:
my baseband is unknown
[Galaxy Note II N7105 Android Development] rogersb11:
I've been running this myself for about a week testing. I have I317 but that shouldn't matter. Built for t0lte
[Galaxy Note II N7105 Android Development] terpin32:
I did everything it said to do. Do I need to flash the bootloader or some other file maybe?
[Galaxy Note II N7105 Android Development] terpin32:
I have the i317 att version gn2
[Galaxy Note II N7105 Android Development] rogersb11:
Stweaks support is not included yet. I have same model, flashed about 20 times without issue. No extra files
[Galaxy Note II N7105 Android Development] rogersb11:
Downloaded and flashed again. I'll boot TW too, hold up
[Galaxy Note II N7105 Android Development] rogersb11:
Touchwiz
[Galaxy Note II N7105 Android Development] terpin32:
Im on the new bootloader could that be it?
[Galaxy Note II N7105 Android Development] rogersb11:
Oohhh, that I am not sure about. I'm on my still
[Galaxy Note II N7105 Android Development] terpin32:
Ill try again in a bit
[Galaxy Note II N7105 Android Development] rogersb11:
MK6 I meant
[Galaxy Note II N7105 Android Development] terpin32:
Well im on http://xdaforums.com/showthread.php?t=2803363

And trying to duel boot this rom

http://xdaforums.com/showthread.php?t=2675066
[Galaxy Note II N7105 Android Development] fatjoejr2001:
For whatever reason when I flash the latest of this kernel via TWRP it shows my bootloader as unknown and I have no signal (won't read my sim card). When I flash back Agni all works just fine. I am on Zen's deodexed 4.4.2 TW stock ROM and I flashed right after a clean install of this ROM. I have a Note 2 i317 (AT&T)

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] rogersb11:
There's another guy who gets the same issue and I'm not sure why. You on the new bootloader by chance?
[Galaxy Note II N7105 Android Development] fatjoejr2001:
Yes I am.

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] rogersb11:
That's gotta be it then because so is he, exact same issue. I need to figure out how to add support. I'll add it to the list
[Galaxy Note II N7105 Android Development] fatjoejr2001:
That would be awesome bro because I really wanna test this baby out :thumbup::beer:

Tap, tap says the wicked Note +₩● ?
[Galaxy Note II N7105 Android Development] erick161:
Has this been confirmed to work on DN3 for the N7105/i317 etc? The old one did but I think saw doctor said it wasn't booting
[Galaxy Note II N7105 Android Development] rogersb11:
Bad download I believe, should be good to go
[Galaxy Note II N7105 Android Development] alfaroolg:
Latest kernel doesnt work for me. Im running DN3 on my tmobile galaxy note 2. Had to go back to the previous one. :(
[Galaxy Note II N7105 Android Development] rogersb11:
Noted, weird they stay with screen in cm. Battery been great so hadn't noticed
[Galaxy Note II N7105 Android Development] zain0300:
i care less about battery but i just don't like these buttons light it hurts my eyes
[Galaxy Note II N7105 Android Development] Giopon:
Great kernel. No problems here. I am on maverick rom
[Galaxy Note II N7105 Android Development] rogersb11:
Plan to release new build tonight with touchwake and some linaro build tweaks. Timeout settings for touchwake are NOT working in stweaks but I'm sure that won't deter anyone. Not sure why really either but in sure I'll get it fixed. Trickster has the timeout setting as well. [MENTION=1097804]sawdoctor[/MENTION], you have any issues? Someone couldn't get dn3 to boot so wanted to check. Also I will be adding support for the sprint note 2 version thanks to some tedious ramdisk tweaks by [MENTION=4011301]jlmancuso[/MENTION] that saved me hours. I do plan to support n7100 as well when I get some time. Woot woot
[Galaxy Note II N7105 Android Development] FireBird_89:
I tried out 1.6 and the "Samsung Galaxy Note 2" came on screen but would never pass that screen and would get very hot. Left for 8 minutes. Tried twice with same result. Dn3 (latest I think) on i317m
[Galaxy Note II N7105 Android Development] jlmancuso:
Not all tw roms will work yet. Think the environment is a little different for dn3 than a normal rom. Also tw roms must be fully deknoxed (which dn3 is).
[Galaxy Note II N7105 Android Development] rogersb11:
It WAS working. Thought sawdoctor was running it. I know many were on dn3 before. I didn't change anything that should affect dn3 support, not one thing but I'll look into it
[Galaxy Note II N7105 Android Development] rogersb11:
Update posted. 1.8 in downloads section. Touchwake fully supported in STweaks. Only to 20 seconds on timeout. Options in 5 second intervals. LInaro tweaks as well. I'll look into backlights
[Galaxy Note II N7105 Android Development] DerTeufel1980:
Hi,

I didn't read the thread, just looked at your source/initramfs.

Isn't your kernel supposed to show aroma based boot menu? And isn't it supposed to support f2fs formated data and cache partition?

I just tried your 1.8 version, but I just got stuck on Samsung logo, aroma menu never showed up.

I tried booting primary (dito 4.4.2) as well as secondary (omniron 4.4.2) by selecting roms in my recovery.

Is this caused by f2fs not being supported, although being implemented in initramfs?
[Galaxy Note II N7105 Android Development] DerTeufel1980:
Just going through the thread, don't know if this got answered meanwhile, but this is the commit to fix charging

https://github.com/kumajaya/android...mmit/97e454051b3364deafcc47a0e76a3a4fae29c356
[Galaxy Note II N7105 Android Development] :
I got your second version to boot but not the third . I'm going to try the latest version now but I've not dual booted any version. Great to see [MENTION=4196889]DerTeufel1980[/MENTION] active again. Hopefully he can help you with any little gremlins lurking around.

Kernel development has really stalled recently on our device with pretty much only agni available. I think it's great that we will soon have 3 custom kernels available plus dualboot
[Galaxy Note II N7105 Android Development] FireBird_89:
just tried 1.8 on dn3 (shouldn't have in my case)...

phone is bootlooping Samsung galaxy note II screen.

tried to recover backup (keeps rebooting mid-way.)

tried to flash dn3 (launches aroma, i can select the options but then it reboots while trying to flash)

full internal storage wipe, reboot, try to recover backup (reboots)...

any ideas what to try next?
[Galaxy Note II N7105 Android Development] :
All I can think off is try flashing agni or stock kernel th through recovery first or even changing recovery. If that doesn't work it will have to be odin I think
[Galaxy Note II N7105 Android Development] ztotherad:
yeah, I believe it had, and I found & added it to my own kernel, yet to test it out on AOSP though, lol. It is great to see DT back and active again.

[MENTION=5554845]rogersb11[/MENTION] i can't wait till this kernel supports omni rom and such. I had terrible battery drain on the last CM nightly.
[Galaxy Note II N7105 Android Development] DerTeufel1980:
Flashing agni should fix it. I flashed mine, but sdcards don't get mounted on 4.4 Sammy yet, anyways it booted again
[Galaxy Note II N7105 Android Development] rogersb11:
Had to issues booting sammy until a few days ago. I need to update my initramfs on github. F2fs is supported, it's built with the kernel. I keep having any issue with aroma not working at all when recovery is compiled to allow switching between f2fs and ext. Aroma only shows after running the aroma boot tool but I assume you did that and flashed kernel every time. I haven't had trouble booting Sammy myself but in but running dn3 but the initramfs hasn't changed since it was working before

Also omni will not boot, just cm and aokp for aosp at the moment. I need to add omni and slim. I'll push my updated initramfs when I'm actually awake
[Galaxy Note II N7105 Android Development] DerTeufel1980:
I extracted the initramfs from boot.img :)

I didn't flash aroma boot tool. What is it supposed to do?

Edit: if I got it correctly, aroma boot tool is just used for creating secondary filesystem, or does it also set some kind of flag to activate aroma boot menu?

I already had both roms installed when I was trying your kernel. As your kernel is using same dualboot partition layout as mine, it should have been working.
[Galaxy Note II N7105 Android Development] jlmancuso:
Did you use his custom recovery also? I have been playing with this for a few days now trying to get all the bugs out so it works with the l900. I did notice it used the same second partition as your rom but it sets different flags. You have to use his recovery to get the dual booting working properly.
[Galaxy Note II N7105 Android Development] DerTeufel1980:
No, I didn't use the provided recovery, and I also already thought, that I would need to use it, to boot into second rom.

As I am using omnirom as second one, I just tried booting it from mine for the sake of it. Mainly I had been interested in booting dn3, to see if it boots with f2fs and selinux activated (because mine even doesn't boot with selinux permissive).

Since I got stuck on sammy logo (not bootani), I suppose it failed mounting system partition, which would be strange, because my system partition of primary rom is stock (ext4 formatted).
[Galaxy Note II N7105 Android Development] jlmancuso:
Odd. Which version of the kernel did you try 1.8?
[Galaxy Note II N7105 Android Development] DerTeufel1980:
Yes. Didn't try older ones

I was the first one installing it [emoji1] [emoji12] there hadn't been any downloads when I visited the site
[Galaxy Note II N7105 Android Development] jlmancuso:
Try 1.6 and see what happens. I tried 1.8 for the l900 last night on aosp and was fine then today tried it on tw and it was being a pain.
[Galaxy Note II N7105 Android Development] DerTeufel1980:
Tried 1.6 but also stuck. Agni is working....
[Galaxy Note II N7105 Android Development] ilovemeow:
which cwm version are you using?
[Galaxy Note II N7105 Android Development] :
Sorry for the ot. Derteufel we've been trying to convert our latest release of dn3 to f2fs using twrp and agni but it always fails when you restore system. Would we be able to convert it using your recovery?
[Galaxy Note II N7105 Android Development] DerTeufel1980:
My recovery converts the format to rm -rf, but if it is done by using a script within aroma, it can't be detected. You can try anyways.

I used by latest official dualboot recovery. Don't know the version currently, but of course it's kitkat compatible
[Galaxy Note II N7105 Android Development] ztotherad:
man, I'm so glad to see that DT is trying to help with this as he probably ran into the same issues! This kernel/recovery is going to be rocking hardcore by the end of this! I, for one, cannot wait!

Thanks to [MENTION=5554845]rogersb11[/MENTION] & [MENTION=4196889]DerTeufel1980[/MENTION] for both bringing the Note 2 family radical kernels and dual-bootness love! ya'll rock!
[Galaxy Note II N7105 Android Development] EdKeys:
Check to see if the system partition is large enough to accommodate the f2fs formatting of your system files in the rom. For some reason, f2fs enlarges the size of the file system during conversion. I ran into this issue when building my Conch Republic rom back in February. If that is the problem you'll either need to find a way to increase the size of the system partition, or slim down your rom.
[Galaxy Note II N7105 Android Development] :
I'm fairly confident that's the issue. The system is very large on our rom
[Galaxy Note II N7105 Android Development] rogersb11:
Hmm well u can't say for sure with your recovery but I am not presented with the boot menu unless a have ran the aroma tool so it must flip a switch. Using ketut dual boot solution with philz
[Galaxy Note II N7105 Android Development] jlmancuso:
Well this is what I can see. You have to install the dual boot recovery which creates the files need for the kernel to know that there is a second partition. In the case of the devil kernel's .second rom the actual partition will work but without the proper files and other directories which the philz dual boot creates.

The things you pick up when you dig through almost every line in both the kernel's and recovery's ramdisk. Hopefully this will help you out [MENTION=4196889]DerTeufel1980[/MENTION]
[Galaxy Note II N7105 Android Development] DerTeufel1980:
If system would be corrupted, I also couldn't boot by using agni kernel

I am going to try suggested steps tomorrow. I'll report back
[Galaxy Note II N7105 Android Development] rogersb11:
Meant I couldn't tell lol. Awesome, thanks man. Always nice to have a great dev check out your work. Especially considering I'm just an up and coming newbie. Let me know. Want to get this issue fixed. Strange it stopped working tho since I haven't touched the initramfs other than for adding to STweaks. Thanks again
[Galaxy Note II N7105 Android Development] jlmancuso:
Okay so I tried my special version of DN3 v4 for the l900 (never released) with this kernel and it to does not boot. I will play with it and see what is going on. I restored the stock kernel and it booted back up. Going to dig around in the DN3 kernels ramdisk and see what is up there. It might be the adam.sh script but I have not really looked into it yet.
[Galaxy Note II N7105 Android Development] rogersb11:
If you wanna give me just to boot.img I'll look as well, just don't wanna wait on 2 gb download. Take forever since I'm pulling from github at the moment
[Galaxy Note II N7105 Android Development] jlmancuso:
Check in the dropbox folder I linked you too adding it now. It is already split so it will save you a step.

---------- Post added at 08:16 PM ---------- Previous post was at 07:58 PM ----------

Well I looked at the kernel I am using for DN3 and it does not have the adam.sh script in it so that can not be the issue. It is something in the rom itself. If I figure out what it is I will let you know.
[Galaxy Note II N7105 Android Development] rogersb11:
I really don't understand this. Nothing at all has changed on my end that would stop support for DN3, literally NOTHING. I'm sorry this happened to you. Wish I had a log. Anybody who flashes dn3 please pull a logcat. Adb is default enabled upon flash in 1.8 and going forward
[Galaxy Note II N7105 Android Development] rogersb11:
Meant to mention current branch is now shift in source. I'm sure you noticed but wanted to mention. I'll update the op when I get to PC. Devdb titles change when you edit in app for some reason
[Galaxy Note II N7105 Android Development] FireBird_89:
no need to feel bad. battery is toast on the phone (borrowed dad's battery (after restoring backup) and the phone works fine) it may not have had anything to do with the kernel. Who knows...

so i'll just have to buy my own battery if I want to keep using the note 2. dead battery may have just been a coincidence.

Keep up the good work, it seems like sometimes **** just happens! haha
[Galaxy Note II N7105 Android Development] rogersb11:
Omg, that's crazy. Weird does happen. Guy had some crazy weird thing happen with refinery m recovery before that was fixed with twrp thread issue or something crazy
[Galaxy Note II N7105 Android Development] Ianchua:
This kernel looks promising,But does it support f2fs?

Sent from a DN3 V5 powered Note2 rigged with f2fs awesomeness! Peace✌
[Galaxy Note II N7105 Android Development] rogersb11:
Yes it does actually ? lol BUT recovery should but when I add the support to recovery I'm losing dual boot and haven't had a chance to fix it as of yet but I will soon. Like this week probably but the kernel itself DOES support F2FS
[Galaxy Note II N7105 Android Development] Ianchua:
I'm not afraid of the recovery being incompatible as my TWRP is of the latest f2fs supported.

Anyway I'm gonna try the kernel when I get back home later! Thanks for your help?

Sent from a DN3 V5 powered Note2 rigged with f2fs awesomeness! Peace✌
[Galaxy Note II N7105 Android Development] jlmancuso:
Well I figured I would share this with everyone. I was testing my new community beta 1.1 and after flashing this kernel and booting it went to samsung splash screen then went black. I happened to be charging at the time so figured I would pull a logcat if I could. While disconnecting from charger and plugging into pc the phone actually booted up. So I started looking through the kernel stuff and noticed this script inti.selinux_bootanim_stopped.sh which turns off the boot animation while setting up selinux. So if anyone notices that the screen goes black after installing the kernel just wait and see what happens. Most likely the phone will boot up but if you installed the kernel at the same time as the rom it will take a bit since the rom has to setup your dalvik cache.

This made me go back and try DN3. I restored it and flashed 1.8 and the first boot went black then the lockscreen popped up. Unlocked phone and it rebooted during this boot the animation played. I let it sit for a few mins and now have been running DN3 for 30 mins!