Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[HOW TO] Build AOSP based (4.2.x) Roms for i9305

OP vkggg

21st February 2013, 10:41 PM   |  #1  
OP Member
Thanks Meter: 13
 
31 posts
Join Date:Joined: Jan 2013
Hello,
In this thread I will be compiling a list of tricks and techniques that I use to build roms for our phone.
I am not a developer, so some of the fixes in this may be bandaid-y and I may not be able to help will all errors, but I will post fixes for those that I have encountered.

[u] This thread is a WIP and will be updated as I receive questions and encounter problems myself. This hopefully will be a good source of knowledge for those who are interested in compiling other roms for our phone, and from this hopefully we will see some more roms developed.

Building
First of all, the device trees. Thanks to codewerx, who has generously created a device tree we can use for our phone.
I would like to link you to the following guide, which instructs you on how to build AOSPA (formerly Paranoid Android).

http://forum.xda-developers.com/show....php?t=1863547

You can follow this guide verbatim, as it is mostly laid out for i9300, however we must add this to the Manifest.xml rather than what he has provided.
Code:
  <remote  name="gh"
	   fetch="https://github.com/" />
  <project name="teamhacksung/android_device_samsung_i9305" path="device/samsung/i9305" remote="gh" revision="cm-10.1" />
  <project name="CyanogenMod/android_device_samsung_smdk4412-common" path="device/samsung/smdk4412-common" remote="gh" revision="cm-10.1" />
  <project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="gh" revision="cm-10.1" />
 <project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="gh" revision="cm-10.1" />
  <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="gh" revision="cm-10.1" />
  <project name="teamhacksung/proprietary_vendor_samsung_i9305" path="vendor/samsung/i9305" remote="gh" revision="cm-10.1" />
Check to see if any of these are already in your manifest, and remove them if they are.

To make sure that the correct RIL for phone support is included,
1. Navigate to your frameworks/opt/telephony folder.
2. Open a shell session in this folder.
3. Apply this change by codewerx http://review.cyanogenmod.org/#/c/31703/ by
4. Typing the following into terminal
[code]git fetch http://review.cyanogenmod.org/CyanogenMod/android_frameworks_opt_telephony refs/changes/03/31703/1 && git cherry-pick FETCH_HEAD/[code]



Fixes

If you encounter the following error:
Code:
make: *** No rule to make target `/home/sam/RootBox/out/target/product/i9305/obj/SHARED_LIBRARIES/libTVOut_intermediates/export_includes', needed by `/home/sam/RootBox/out/target/product/i9305/obj/EXECUTABLES/mediaserver_intermediates/import_includes'.  Stop.
Navigate to vendor/samsung/smdk4412-common/proprietary, and open Android.mk
The reason we get this error is because the propietary files are not copied over properly, so we must edit the line in Android.mk which resembles
Code:
ifneq ($(filter i9300 n7100 n8000 n8013,$(TARGET_DEVICE)),)
to
Code:
ifneq ($(filter i9300 i9305 n7100 n8000 n8013,$(TARGET_DEVICE)),)
Last edited by vkggg; 24th February 2013 at 01:54 PM.
The Following 4 Users Say Thank You to vkggg For This Useful Post: [ View ]
22nd February 2013, 11:16 PM   |  #2  
OP Member
Thanks Meter: 13
 
31 posts
Join Date:Joined: Jan 2013
- Reserved -
23rd February 2013, 02:44 PM   |  #3  
Junior Member
Flag Oslo
Thanks Meter: 8
 
18 posts
Join Date:Joined: May 2012
More
Link missing
Could you please add the link to the howto you mentioned?
Last edited by perchrh; 23rd February 2013 at 07:14 PM.
24th February 2013, 01:49 PM   |  #4  
OP Member
Thanks Meter: 13
 
31 posts
Join Date:Joined: Jan 2013
Quote:
Originally Posted by perchrh

Could you please add the link to the howto you mentioned?

Oh wow i'm so sorry about that haha I was sure i embedded it

I'll fix it now
24th February 2013, 10:24 PM   |  #5  
Junior Member
Flag Oslo
Thanks Meter: 8
 
18 posts
Join Date:Joined: May 2012
More
Thanks!
I was also able to build CyanogenMod 10.1 using your xml-excerpt.

The "Fixes" section turned out to be unnecessary, as they were already applied for CM.
The RIL-step is still necessary, though.
27th February 2013, 12:28 PM   |  #6  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Nov 2012
hey there...

nice work... but can you say me, how i can get the flac support back to my i9305 on aosp?!
1st March 2013, 09:04 AM   |  #7  
Junior Member
Flag Oslo
Thanks Meter: 8
 
18 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by perchrh

Thanks!
I was also able to build CyanogenMod 10.1 using your xml-excerpt.

The "Fixes" section turned out to be unnecessary, as they were already applied for CM.
The RIL-step is still necessary, though.

I wrote a similar guide for CM, see http://forum.xda-developers.com/show....php?t=2164954

The Following User Says Thank You to perchrh For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes