Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,778,543 Members 37,270 Now Online
XDA Developers Android and Mobile Development Forum

[INFO][ROM] Guide to build AOSP 4.2. Builds provided for crespo and 4g 2013-02-20

Tip us?
 
greenblue
Old
(Last edited by greenblue; 23rd February 2013 at 03:08 AM.) Reason: 2013-02-20: New builds
#1  
Member - OP
Thanks Meter 181
Posts: 88
Join Date: Jan 2011
Database [INFO][ROM] Guide to build AOSP 4.2. Builds provided for crespo and 4g 2013-02-20

Download:
Nexus S: crespo-20130220
filename: greenblue-crespo-20130220
md5sum: 3503235e1f66b0d2cfeeea43c2d1699b
sha1sum: 48c1cfbee8a226aae2ce5b5ab9fb7ad6d30339e3

Nexus S 4G: crespo4g-20130220
filename: greenblue-crespo4g-20130220.zip
md5sum: b02e36b543293a337dd3359bd68444d3
sha1sum: 7095ab401e71204532bf2866664452687866551a

Use the latest gapps for 4.2.1: 20121212
Warning: The new swipe keyboard and the gallery/camera/photosphere are not included. Stock photosphere apk will not work. It is hard coded to work on certain phones. You must use modified binaries or edit the build prop.

Steps to flash:
1. Flash the ROM and SuperSU.
2. Boot at least once before flashing Gapps. FCs may occur if you don't reboot.
3. Be patient: the phone will be laggy for the first few minutes as the phone scans for media on the built in sdcard.
4. If you have strange issues or FCs, make sure you wipe data / factory reset and reflash everything.


Important notes:
No tweaks, mods or kernel patches will be added. This is strictly a basic AOSP build.
A complete set of patches are provided on github so you can build your own ROM with your choice of modifications.

Flash your favorite AOSP based 4.1.x or 4.2.x kernel if desired. ASOP version of Matr1x and CM10 version of Marmite has been confirmed to work. Stock ROM is not as smooth as other kernels but it works.


Changelog:

20130221
Rebased on 4.2.2

20121206
Add bluetooth build cfg for fix build warning (trivial)
Bluetooth prevents deep sleep. Patch.
Crespo4g only: Fix Phone.apk force closes after a call *
Crespo4g only: Set voicemail number to own number for Nexus S 4G
Lockscreen PIN keyboard cuts off letters from number 7 and 9. Patch.
Update init.herring.rc: bluedroid has replaced system/bluetooth (trivial)

20121128
Restore original clock font size
Allow backups to Google account from Settings -> Backup & restore
Updated platform version number to 4.2.1 (cosmetic issue)

20121127
Build from 4.2.1 tree
Remove December to Contact's calendar - fixed in 4.2.1
Fix the building of Email.apk
Reduce the lockscreen clock font size
Update the FC on accessing Settings -> Storage patch

20121123
Add December to Contact's calendar
Fix FC on Daydream's clock setting
Fix alarm button in quick settings
Fix FC on accessing Settings -> Storage
Update the name, brand and model in build.prop

20121122 - Prevent lockscreen clock from getting cut off
20121120 - Added patch to fix MMS receive on crespo4g
20121119 - Initial build

Todo list:
Enable emulated storage. *
SElinux configuration.

Broken:
Nexus S 4G: Can't set voicemail number and cannot switch carrier back from Google Voice to My Carrier.
Nexus S 4G: Tethering with WiMax is troublesome at best.
Settings -> Battery does not properly show awake times in the graph. (Appears to be dependent on kernel used).

Working:
3G
4G WiMAX
Audio
Bluetooth audio
Camera
Daydream
Face unlock
GPS
Lockscreen widgets
MMS
NFC
Phone calls
SMS
Sprint system updates
Wifi



Instructions to build from source:

Code:
repo init -u git://github.com/diclusial/platform_manifest.git -b greenblue-4.2.2
repo sync
. build/envsetup.sh
lunch [model]
make otapackage
Build notes:
- All necessary patches and firmware are included in the repo.

Patches below my be out of date. Check github for changes.
The essential patches:
Add TARGET_ARCH to BoardConfigCommon
Fix camera build
Update location providers
Remove Launcher2 hardware acceleration overlay

Crespo bug fix patches
Set default backup transport to Google account
Fix clock and date/alarm display on lockscreen
Set the build prop value for version, brand, etc.
Remove redundant PRODUCT_PACKAGES for live wallpapers

Crespo4g bug fix patches
Update Mms config
Fix receiving MMS messages
Restore ability to utilize mobile/3g for tethering
Add full_crespo4g-userdebug to the lunch menu
Set default backup transport to Google account
Fix clock and date/alarm display on lockscreen
Set the build prop value for version, brand, etc.
Remove redundant PRODUCT_PACKAGES for live wallpapers

Patches to change the build process
Add support for overriding build.prop settings
Disable stock recovery

Bugs that might be fixed in future upstream releases
DeskClock: Fix Dream settings
Fix building, the product listing in build/ wants Email2
Merge "Settings: fix storage measurement for device without emulated
QuickSettings : Fix alarm intent
The Following 40 Users Say Thank You to greenblue For This Useful Post: [ Click to Expand ]
 
hiphopboy
Old
#2  
Senior Member
Thanks Meter 95
Posts: 415
Join Date: Mar 2010
Hope will stable for daily using
 
Nick N
Old
#3  
Nick N's Avatar
Senior Member
Thanks Meter 164
Posts: 803
Join Date: Sep 2009
Location: Columbus, Ohio
So far so good here. My brother just got his N4 8gb today, at least we can run the same software... He already received an update.

---------- Post added at 11:51 PM ---------- Previous post was at 11:33 PM ----------

4G Works!

Bluetooth media audio working (listening to Pandora on my Moto S305 headphones)

I think we have a winner here. Using included kernel BTW.
Current: AT&T LG Optimus G E970 with CarbonROM 4.4.4 on T-Mobile

Tablets: Nook Color, HTC Flyer, Dell Venue 8 (Android) Android PC Stick: J22 (RK3188) 4.4.2

Retired: HTC Touch/Pro/Pro 2/G1/Samsung Moment/Evo 4G/Nexus S 4G/iPhone 4/Lumia 521 WP 8.1
The Following User Says Thank You to Nick N For This Useful Post: [ Click to Expand ]
 
Nick N
Old
#4  
Nick N's Avatar
Senior Member
Thanks Meter 164
Posts: 803
Join Date: Sep 2009
Location: Columbus, Ohio
Screenshot
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1353387187688.jpg
Views:	2591
Size:	33.5 KB
ID:	1496149  
Current: AT&T LG Optimus G E970 with CarbonROM 4.4.4 on T-Mobile

Tablets: Nook Color, HTC Flyer, Dell Venue 8 (Android) Android PC Stick: J22 (RK3188) 4.4.2

Retired: HTC Touch/Pro/Pro 2/G1/Samsung Moment/Evo 4G/Nexus S 4G/iPhone 4/Lumia 521 WP 8.1
The Following 2 Users Say Thank You to Nick N For This Useful Post: [ Click to Expand ]
 
Nick N
Old
#5  
Nick N's Avatar
Senior Member
Thanks Meter 164
Posts: 803
Join Date: Sep 2009
Location: Columbus, Ohio
Daydream works - what an awesome feature! Only problem with it is a FC when Clock setting is pressed but you can still use it as is.
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1353387924810.jpg
Views:	2391
Size:	38.8 KB
ID:	1496175  
Current: AT&T LG Optimus G E970 with CarbonROM 4.4.4 on T-Mobile

Tablets: Nook Color, HTC Flyer, Dell Venue 8 (Android) Android PC Stick: J22 (RK3188) 4.4.2

Retired: HTC Touch/Pro/Pro 2/G1/Samsung Moment/Evo 4G/Nexus S 4G/iPhone 4/Lumia 521 WP 8.1
The Following 2 Users Say Thank You to Nick N For This Useful Post: [ Click to Expand ]
 
Articudos
Old
#6  
Articudos's Avatar
Senior Member
Thanks Meter 2159
Posts: 1,494
Join Date: Dec 2011

 
DONATE TO ME
Thanks for the guide,
Can you tell me how to solve Hunk#1?
I cannot understand op which related to hunk#1....:/

Code:
patching file 0s
Hunk #1 FAILED at 34.
1 out of 1 hunk FAILED -- saving rejects to file 0s.rej
it shows like this..:/
Current : E975 - CM11

Retired : Nexus S

If My Post was helpful, Hit THANKS button

Buy me beer or cup of coffee!!
 
greenblue
Old
#7  
Member - OP
Thanks Meter 181
Posts: 88
Join Date: Jan 2011
Quote:
Originally Posted by Articudos View Post
Thanks for the guide,
Can you tell me how to solve Hunk#1?
I cannot understand op which related to hunk#1....:/

Code:
patching file 0s
Hunk #1 FAILED at 34.
1 out of 1 hunk FAILED -- saving rejects to file 0s.rej
it shows like this..:/
Which patch file are you trying to patch? What is the output of 0s.rej?
The Following User Says Thank You to greenblue For This Useful Post: [ Click to Expand ]
 
Articudos
Old
#8  
Articudos's Avatar
Senior Member
Thanks Meter 2159
Posts: 1,494
Join Date: Dec 2011

 
DONATE TO ME
Quote:
Originally Posted by greenblue View Post
Which patch file are you trying to patch? What is the output of 0s.rej?

001 patchfile.

0s.rej is here..same as .patchfile.
Code:
--- .repo/manifest.xml    2012-11-19 00:34:09.716145171 -0800
+++ .repo/manifest.xml    2012-11-16 15:00:40.058124761 -0800
@@ -34,6 +34,8 @@
   <project path="device/lge/mako" name="device/lge/mako" groups="device" />
   <project path="device/lge/mako-kernel" name="device/lge/mako-kernel" groups="device" />
   <project path="device/sample" name="device/sample" />
+  <project path="device/samsung/crespo" name="device/samsung/crespo" groups="device" revision="refs/tags/android-4.1.2_r1" />
+  <project path="device/samsung/crespo4g" name="device/samsung/crespo4g" groups="device" revision="refs/tags/android-4.1.2_r1" />
   <project path="device/samsung/maguro" name="device/samsung/maguro" groups="device" />
   <project path="device/samsung/manta" name="device/samsung/manta" groups="device" />
   <project path="device/samsung/toro" name="device/samsung/toro" groups="device" />
Current : E975 - CM11

Retired : Nexus S

If My Post was helpful, Hit THANKS button

Buy me beer or cup of coffee!!
 
greenblue
Old
(Last edited by greenblue; 20th November 2012 at 06:36 AM.)
#9  
Member - OP
Thanks Meter 181
Posts: 88
Join Date: Jan 2011
Quote:
Originally Posted by Nick N View Post
Daydream works - what an awesome feature! Only problem with it is a FC when Clock setting is pressed but you can still use it as is.
Can't duplicate the problem. Only thing I can think of is that AOSP by default includes DeskClock.apk. The GAPPS I linked contains a DeskClockGoogle.apk so there might be a conflict.

Things to try:
1. Use adb to delete the existing DeskClock apk file inside /system/app and then copy the DeskClock.apk from the AOSP rom.
2. Use adb to delete the existing DeskClock apk file inside /system/app and then copy the DeskClockGoogle.apk from the GAPPS.
3. Uninstall the existing DeskClock with Titanium Backup. Try to install DeskClock or DeskClockGoogle one at a time a regular app (non system app).
 
greenblue
Old
#10  
Member - OP
Thanks Meter 181
Posts: 88
Join Date: Jan 2011
Quote:
Originally Posted by Articudos View Post
001 patchfile.

0s.rej is here..same as .patchfile.
Code:
--- .repo/manifest.xml    2012-11-19 00:34:09.716145171 -0800
+++ .repo/manifest.xml    2012-11-16 15:00:40.058124761 -0800
@@ -34,6 +34,8 @@
   <project path="device/lge/mako" name="device/lge/mako" groups="device" />
   <project path="device/lge/mako-kernel" name="device/lge/mako-kernel" groups="device" />
   <project path="device/sample" name="device/sample" />
+  <project path="device/samsung/crespo" name="device/samsung/crespo" groups="device" revision="refs/tags/android-4.1.2_r1" />
+  <project path="device/samsung/crespo4g" name="device/samsung/crespo4g" groups="device" revision="refs/tags/android-4.1.2_r1" />
   <project path="device/samsung/maguro" name="device/samsung/maguro" groups="device" />
   <project path="device/samsung/manta" name="device/samsung/manta" groups="device" />
   <project path="device/samsung/toro" name="device/samsung/toro" groups="device" />
Are you inside of the directory where you initialized the repo? Might be easier to just manually edit .repo/manifest.xml to add those two required lines. Are you trying to build it for crespo?

The Following User Says Thank You to greenblue For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes