Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,785,150 Members 36,974 Now Online
XDA Developers Android and Mobile Development Forum

[ROM][SGH-I777][4.0.4] CyanogenMod 9 nightly builds | DEVELOPMENT THREAD

Tip us?
 
atinm
Old
(Last edited by atinm; 30th March 2012 at 02:24 AM.)
#1  
atinm's Avatar
Retired Recognized Developer - OP
Thanks Meter 3,728
Posts: 2,184
Join Date: Jul 2010
Default [ROM][SGH-I777][4.0.4] CyanogenMod 9 nightly builds | DEVELOPMENT THREAD

DEVELOPMENT THREAD
FOR DEVELOPERS ONLY





CyanogenMod is a free, community built, aftermarket firmware distribution of Android 4.0 (ICS), which is designed to increase performance and reliability over stock Android for your device.

Code:
#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 ROM
 * 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.
 *
 * Submitting bug reports on nightly builds is the leading 
 * cause of male impotence.
 */
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.



General:
http://github.com/CyanogenMod

Device (you need both):
http://github.com/CyanogenMod/androi...msung_galaxys2
http://github.com/CyanogenMod/androi...e_samsung_i777

Kernel:
https://github.com/teamhacksung/andr...msung_smdk4210

Build:
http://teamhacksung.org/wiki/index.p...7:How_to_build

Getting Started:
http://wiki.cyanogenmod.com/wiki/Howto:_Gerrit

Example:
- cd ~/android/system
- repo start branchname CyanogenMod/android_device_samsung_i777 (or android_device_galaxys2 depending on whether your work is in common galaxys2 or i777)
-- Make your changes at device/samsung/i777 (or galaxys2)
- cd device/samsung/i777 (or galaxys2)
- git add -A
- git commit -a
- cd ~/android/system
- repo upload CyanogenMod/android_device_samsung_i777 (or android_device_samsung_galaxys2 if your changes are to galaxys2)

Many of your changes will actually be in the android_device_samsung_galaxys2 repo as well as the code is shared between the galaxys2 and i777 so you will also need to work in that repo.

Navigate to http://review.cyanogenmod.com , click your commit and add atinm for i777, atinm, codeworkx and xplodwild for galaxys2, as reviewers.
I do this for fun, but if you want to thank me, please sign-up as an organ donor if you haven't already; I am alive because of one.

http://gplus.to/atinm // http://cyanogenmod.com //
http://github.com/CyanogenMod // http://github.com/teamhacksung

"XDA has cooks, most of them grill, pan fry, or broil...none of them develop." -- TheDudeOfLife
The Following 25 Users Say Thank You to atinm For This Useful Post: [ Click to Expand ]
 
atinm
Old
#2  
atinm's Avatar
Retired Recognized Developer - OP
Thanks Meter 3,728
Posts: 2,184
Join Date: Jul 2010
Saved for later.
I do this for fun, but if you want to thank me, please sign-up as an organ donor if you haven't already; I am alive because of one.

http://gplus.to/atinm // http://cyanogenmod.com //
http://github.com/CyanogenMod // http://github.com/teamhacksung

"XDA has cooks, most of them grill, pan fry, or broil...none of them develop." -- TheDudeOfLife
The Following 2 Users Say Thank You to atinm For This Useful Post: [ Click to Expand ]
Red5 Old
#3  
Guest
Thanks Meter 0
Posts: n/a
Alright, this thread has been cleaned up to here. All other non-dev members can discuss this here in the designated discussion thread in the General forum.
The Following 16 Users Say Thank You to For This Useful Post: [ Click to Expand ]
 
Entropy512
Old
#4  
Senior Recognized Developer
Thanks Meter 24,260
Posts: 13,225
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
atinm - don't know if you saw, but there's a pending gerrit submission for an updated kernel.

The current set of kernels has ondemand as default but interactive governor enabled - this combo can cause hung task freezes in LPM and recovery.

http://review.cyanogenmod.com/#change,14072

(I tried to add you as a reviewer but I'm not sure if that's the correct atinm. The system is full of "use the other atinm" users. )
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 4 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
atinm
Old
#5  
atinm's Avatar
Retired Recognized Developer - OP
Thanks Meter 3,728
Posts: 2,184
Join Date: Jul 2010
Quote:
Originally Posted by Entropy512 View Post
atinm - don't know if you saw, but there's a pending gerrit submission for an updated kernel.

The current set of kernels has ondemand as default but interactive governor enabled - this combo can cause hung task freezes in LPM and recovery.

http://review.cyanogenmod.com/#change,14072

(I tried to add you as a reviewer but I'm not sure if that's the correct atinm. The system is full of "use the other atinm" users. )
Saw this too late - I pushed the same kernel plus an added assert for galaxys2 so people using the bad ported galaxys2 builds can get to i777. I'll take out the galaxys2 assert in a couple of days after people are on i777. Building a new nightly.

Will look at the GPS you have on gerrit in a little bit - have to be out for a few hours.
I do this for fun, but if you want to thank me, please sign-up as an organ donor if you haven't already; I am alive because of one.

http://gplus.to/atinm // http://cyanogenmod.com //
http://github.com/CyanogenMod // http://github.com/teamhacksung

"XDA has cooks, most of them grill, pan fry, or broil...none of them develop." -- TheDudeOfLife
 
Dzmitry
Old
#6  
Member
Thanks Meter 0
Posts: 40
Join Date: Dec 2009
Location: Minsk
Default Building from source

I am trying to build it locally with following error:

Code:
dzmitry@dzmitry-desktop:~/android/system$ brunch i777

---//some skipped output///---

build/core/product_config.mk:189: *** _nic.PRODUCTS.[[device/*/i777/cm.mk]]: "vendor/samsung/i777/i777-vendor-blobs.mk" does not exist.  Stop.

** Don't have a product spec for: 'cm_i777'
** Do you have the right repo manifest?
My manifest:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_samsung_galaxys2" path="device/samsung/galaxys2" remote="github" />
  <project name="CyanogenMod/android_device_samsung_i777" path="device/samsung/i777" remote="github" />
  <project name="teamhacksung/android_kernel_samsung_smdk4210" path="kernel/samsung/smdk4210" remote="github" revision="ics" />
  <project name="teamhacksung/buildscripts" path="buildscripts" remote="github" revision="ics">
    <copyfile dest="build.sh" src="samsung/build.sh" />
  </project>
  <project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" />
</manifest>
Any help is greatly appreciated!
 
Entropy512
Old
#7  
Senior Recognized Developer
Thanks Meter 24,260
Posts: 13,225
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
you didn't do extract-files

Not sure if looking for galaxys2 will cut it... Most likely a bunch of people are coming from Touchwiz-based firmwares.

I admit I am partially at fault - I didn't implement sed scripts in Hellraiser to change the model, partly to minimize the chances that something would break. (The rule was to change as little as possible to make things work in order to maximize compatibility.)
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 2 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
atinm
Old
#8  
atinm's Avatar
Retired Recognized Developer - OP
Thanks Meter 3,728
Posts: 2,184
Join Date: Jul 2010
Quote:
Originally Posted by sam3000 View Post
I had that too (link). As a workaround, edit device/samsung/i777/extract-files.sh and change DEVICE=galaxys2 to DEVICE=i777 and it should build. I'm not sure what the correct fix should be though..

The other stuff I mention in the linked post has since been fixed.
The issue is that the proprietary files that the i777 is using are from the galaxys2 and it just pulls them from there. But the .mk files that are generated need to go into the i777 directory. I've updated extract-files.sh to try to get around it, but need someone to test.
I do this for fun, but if you want to thank me, please sign-up as an organ donor if you haven't already; I am alive because of one.

http://gplus.to/atinm // http://cyanogenmod.com //
http://github.com/CyanogenMod // http://github.com/teamhacksung

"XDA has cooks, most of them grill, pan fry, or broil...none of them develop." -- TheDudeOfLife
The Following User Says Thank You to atinm For This Useful Post: [ Click to Expand ]
 
5942marine
Old
#9  
5942marine's Avatar
Member
Thanks Meter 3
Posts: 75
Join Date: Oct 2010
Quote:
Originally Posted by atinm View Post
The issue is that the proprietary files that the i777 is using are from the galaxys2 and it just pulls them from there. But the .mk files that are generated need to go into the i777 directory. I've updated extract-files.sh to try to get around it, but need someone to test.
I tried to run extract-files.sh and got:
Code:
remote object '/system/lib/libGLESv2_dbg.so' does not exist
Which gave me this during compile:
Code:
make: *** No rule to make target `vendor/samsung/galaxys2-common/proprietary/libGLESv2_dbg.so', needed by `out/target/product/i777/system/lib/libGLESv2_dbg.so'.  Stop.
I have the latest repo as describe in the op. Anyone else run into this issue? Ran the extract on cm7.
 
halfsoul
Old
#10  
halfsoul's Avatar
Senior Member
Thanks Meter 65
Posts: 385
Join Date: Jun 2006
Quote:
Originally Posted by 5942marine View Post
I tried to run extract-files.sh and got:
Code:
remote object '/system/lib/libGLESv2_dbg.so' does not exist
Which gave me this during compile:
Code:
make: *** No rule to make target `vendor/samsung/galaxys2-common/proprietary/libGLESv2_dbg.so', needed by `out/target/product/i777/system/lib/libGLESv2_dbg.so'.  Stop.
I have the latest repo as describe in the op. Anyone else run into this issue? Ran the extract on cm7.
Did you enable root for adb before running extract-files.sh? And what ROM do you have now?
Nexus 4

Tags
cm9, cyanogenmod, ice cream sandwich, ics, teamhacksung
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes