[ROM][KK][4.4.2][SABERMOD] CyanogenMod 11 [5/3][DEV DISCUSSION]

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,083
0
33
/home/renderbroken/android

Welcome to the unofficial CyanogenMod 11.0 nightlies​

Here begins a new surge of CM11 builds. I have teamed up with @love4k21 and are looking at outputting weekly builds. My build machine is not up right now and between that and my two jobs, it's hard to get build going again when they take aver 10 hours to complete. With a great thanks to love4k21, he will be building the Roms while I build the kernels. These new builds will ALREADY have my kernel placed in the Rom and I will host these builds on my Mediafire account. I hope yall like this new pace as I am sure you will :)

Contributors
These are the people that have helped out this thread in their own way. Whether it by helpful info or by being or giving me motivation to do what I am doing.

@iXNyNe, @trevor.bman, @razen_kain, @mr-cook, @royahaun, @david72262, @SteveMurphy and so on. Practically EVERYONE on both my threads are helpful and contribute to the discussion.

Donators(I KNOW RIGHT?! I never set out to make money doing this but to have someone give me their hard earned money blows me away. THANKS!
@royahaun
@NePanicPas


This is cross compiled with Rom = Linaro 4.7.4 and Kernel = Sabermod 4.7

DISCLAIMER
Code:
Code:
/*
 * 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 ROM
 * before flashing it! YOU are choosing to make these modifications.
 */
Also I have noticed the superuser is not 100% for some reason so I am going to look at either incorporating SuperSU or just having everyone install SuperSU from the play store. Obviously the first suggestion would be easiest for the end user. But in the mean time if you want 100% working SU then download SuperSU from the Play Store and install it using the "Normal" install option.Once done reboot.

SuperSU from Play Store

HOW TO INSTALL

Make sure you are on CWM 6.0.4.4+ before flashing ROM! Thanks to @mr-cook you can now download and flash just the recovery/kernel!
Other handy scripts you can use from mr-cook can be found: Here
Download 6.0.4.5 Recovery/Kernel created by mr-cook : Here
Download the zip
Download compatible Gapps
WIPE DATA/FACTORY RESET
Wipe Cache/Dalvic Cache
Flash the Rom
Flash Gapps
Reboot
Enjoy :D


Already Installed CM11
Download the zip
WIPE Cache
WIPE Dalvik Cache
Flash the zip
(Optional) Flash updated Gapps
(Optional) Fix Permissions
Reboot


Changelog and Rom Downloads in POST #2

Source: https://github.com/CyanogenMod
 
Last edited:

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,083
0
33
/home/renderbroken/android
Download Links and Changelog

CM Commit Changelog

Recommended GApps: CM11 Compatible GApps
If you dont like torrents in the above link use: This
OR Aroma GApps (But PLEASE READ thread to make sure this is for you)


Download Links

Current Build:4/03/2014 Build 9
Comes with the stock CM11 Kernel
Sync'd CM11 Source
Compiled with new Linaro Toolchain (4.7.4) custom made for Cortex A9!!!!


Older Builds

12/07/2013 Build 1
Initial Build

12/08/2013 Build 2
Cherry-picked Exynos Camera Fixes: should fix video recording (Not Tested yet)

12/11/2013 Build 3
Initial Linaro Build (4.7.4)
Updated Mali Drivers


12/12/2013 Build 4
Linaro
(New Governors)
hotplug author: Mike Turquette <[email protected]> &
Santosh Shilimkar <[email protected]>
lulzactiveq author: Mike Chan <[email protected]>
Improved by tegrak <[email protected]>
Tuned by: gokhanmoral-robertobsc"
(New I/O Schedulers)
Updated ROW to V4.
Tweaked SIO a bit.
Added V(R) authored by Aaron Carroll <[email protected]>.
Added BFQ v6r2 authored by:
-Jens Axboe <[email protected]>
-Fabio Checconi <[email protected]>
-Paolo Valente <[email protected]>
and improved by Arianna Avanzini <[email protected]>


12/19/12013 Build 5
Synced latest CM sources
Cherry-Picked Video Recording Fix
Tried to add Low RAM option but it doesnt work . . .for now

12/23/2013 Build 6 WIFI FIXED!
Integrated Kernel build 12/29/2013 For more info about kernel please see: Link
Synced CM sources
Reverted cherry-picks to hopefully resolve minor issues


2/24/2014 Build 8
Comes with the stock CM11 Kernel
Sync'd CM11 Source
This is the smoothest build so far!!
Compiled with new Linaro Toolchain (4.7.4) custom made for Cortex A9!!!!


 
Last edited:

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,083
0
33
/home/renderbroken/android
Screen Shots

courtesy of @@trevor.bman






CM11 Build Instructions

courtesy of @@iXNyNe

most of this is ripped from http://wiki.cyanogenmod.org/w/Build_for_i777 so visit there for extra details and explanations

You will need:
A Galaxy S II running CyanogenMod
A Linux environment; you have multiple options here
  • A dedicated machine (probably the quickest to make builds)
  • A "Dual Boot" setup (also fast, but the build can take some time so expect to get familar with linux desktop while it's building)
  • a Virtual Machine setup such as VirtualBox (if you run just a basic command line setup this may be faster, but if you run the full environment it's likely to be slower because of the resources)
An internet connection (probably not a hotspot... you'll be downloading ~20GB)
A Micro USB cable
*Notes: you'll want to be using the 64-bit version of whatever linux distro you choose
**I'm not going to go into detail on setting up linux here, but there's lots of tutorials
***personally I use Ubuntu linux as my daily desktop environment (I'M FREE FROM WINDOWS!)


Phase 1: Setup that only has to be done once
You'll need to install ADB (and wouldnt hurt to have fastboot)
Code:
sudo apt-get install android-tools-adb android-tools-fastboot
next is udev rules
on ubuntu press alt+f2 and enter
Code:
gksu gedit /etc/udev/rules.d/51-android.rules
you'll be asked for a password for elevated permissions *should have been setup when you setup linux
paste this
Code:
#Samsung	
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0660"
There are other rules you can add for other vendors but this one should work for all samsung devices.
Next install the other tools required to build
Code:
sudo apt-get install bison build-essential curl flex git-core gnupg gperf libesd0-dev libncurses5-dev libsdl1.2-dev libwxgtk2.8-dev libxml2 libxml2-utils lzop openjdk-6-jdk openjdk-6-jre pngcrush schedtool squashfs-tools xsltproc zip zlib1g-dev g++-multilib gcc-multilib lib32ncurses5-dev lib32readline-gplv2-dev lib32z1-dev
*note this will install the 32 and 64 bit tools, if you're on 32 bit you're doing it wrong...

Next create some directories
Code:
mkdir -p ~/bin
mkdir -p ~/android/system
Install repo command
Code:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Allow repo to run outside of it's directory (so you can just type repo insteas of /home/user/bin/repo)
Code:
gedit ~/.bashrc
enter the following in the text editor then save and close
Code:
export PATH=${PATH}:~/bin
Initialize the CyanogenMod source repository
Code:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
Download the source code
Your first sync will take forever! it's just under 20GB, I recommend doing it overnight - in the future your sync will be faster because it just downloads updates.
Code:
repo sync
*Note from Render - by default the repo sync command will download using 4 simultanous connections. If you have a fast internet connection you can add more connections like this:

repo sync -j6 (or -j8 and so on)

Get prebuilt apps
Code:
cd ~/android/system/vendor/cm
./get-prebuilts
notice the dot!

Prepare the device-specific code
Code:
cd ~/android/system
source build/envsetup.sh
breakfast i777
Extract proprietary blobs
Now ensure that your Galaxy S II (AT&T) is connected to your computer via the USB cable and usb debugging is turned ON!
Code:
adb devices
if you see your device listed then proceed, if not come here to this thread and ask for help! you cannot go further! (and won't be able to go further in the future).
Code:
cd ~/android/system/device/samsung/i777
./extract-files.sh
*Note from Render - If you setup your roomservice.xml file like below then you already have the needed device files and the above few steps really are not necessary.

Setup and modify roomservice.xml
Code:
mkdir .repo/local_manifests

gedit .repo/local_manifests/roomservice.xml
Enter this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_i777" path="device/samsung/i777" remote="github" />
<project name="CyanogenMod/android_device_samsung_galaxys2-common" path="device/samsung/galaxys2-common" remote="github" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
<project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-11.0" />
</manifest>
Save and quit


Phase 2: Building (finally!)
Let's assume from here that you finished all of the above and got bored and closed the terminal - or that you just finished a build and are starting a new one after opening a fresh terminal (or just continuing from the instructions above) the following commands in order will set up your build environment, sync the latest changes, and pull in the patches we need for the build to work and then initiate the build. All of the commands up until brunch shouldn't take long to run, brunch can take anywhere from 2-10 hours depending on your system specs
Code:
cd ~/android/system/

repo selfupdate

repo sync

cd device/samsung/i777/
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_samsung_i777 refs/changes/90/54090/1 && git cherry-pick FETCH_HEAD
croot

cd device/samsung/galaxys2-common/
git fetch http://review.cyanogenmod.org/CyanogenMod/android_device_samsung_galaxys2-common refs/changes/65/55865/1 && git cherry-pick FETCH_HEAD
croot

export USE_CCACHE=1

. build/envsetup.sh

brunch i777

#done (as long as the build shows the out file)
If your build succeeds and you have a file you can push it to your device over usb using adb like so
Code:
cd $OUT
adb push cm-11-20140107-UNOFFICIAL-i777.zip /sdcard/
*Note that the filename should match whatever your build name (depending on the date usually just change the number)
this takes a minute or two, but once it's done you can reboot into recovery and then flash your build!

Also since you used CCACHE=1 And build from here on will now take a fraction of the time to build.
 
Last edited:

azeem40

Senior Member
Jun 13, 2013
935
235
0
Frisco
Thanks a lot for this man. I am downloading it right now. I will let you know of any bugs. :)

---------- Post added at 03:32 PM ---------- Previous post was at 03:29 PM ----------

There is a problem. I clicked the link to the ROM but it says I need mega to download the file. I suggest using drop box or mega upload to upload the file. Thanks!
 
  • Like
Reactions: MelvinGonzalez

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,083
0
33
/home/renderbroken/android
Is this also compiled with linaro?

Sent from my SGH-I777 using Tapatalk 2
Thanks a lot for this man. I am downloading it right now. I will let you know of any bugs. :)

---------- Post added at 03:32 PM ---------- Previous post was at 03:29 PM ----------

There is a problem. I clicked the link to the ROM but it says I need mega to download the file. I suggest using drop box or mega upload to upload the file. Thanks!
Damn, I was trying to use Dev Host but it crapped out SO many times. I will fix it. Thanks for the heads up
 
  • Like
Reactions: MelvinGonzalez

RenderBroken

Recognized Developer
Sep 14, 2013
4,297
20,083
0
33
/home/renderbroken/android
Ironically, I'm downloading that now. Thanks.
You have to install the cm10.2 latest nightly, which will have 6.0.4.5.
Can you explain? I can't get it to install either. I was having the same metadata recursive error. The OP says use CWM 6.0.4.4, but the newest i can find is 6.0.1.0
I will make that more clear in the OP. Unfortunately there is not an easier way to install the recent recovery other than flashing the newer CM10.2 nightlies.
 
  • Like
Reactions: lordmorphous

azeem40

Senior Member
Jun 13, 2013
935
235
0
Frisco
how come this is not on the cyanogenmod website for our device?
>> http://download.cyanogenmod.org/?device=i777
That is because this is an unofficial nightly. RenderBroken ported cm11 for us. :)

---------- Post added at 05:59 PM ---------- Previous post was at 05:38 PM ----------

Render, did you forget to include the launcher in this? Cuz when I click home, the screen goes black. Also, when I restart the phone, it goes into a bootloop. I have tried reflashing it three times and each time, the same thing happens.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone