FORUMS

Galaxy S6 & Edge get €100 Price Cut—New Models Incoming

Samsung has dropped the price of both the Galaxy S6 and S6 Edge by … more

How To Port Fully Featured Sony Xperia Z4 Camera

Xperia Z4’s hardware may not impress, but its software is definitely … more

Experimental TWRP Available For Moto G 2015

XDA Senior Member squid2 has posted experimental builds of TWRP for the Moto G … more

Sunday Debate: How Can We Get a No-Compromise Phone?

Join us in a fun Sunday Debate on Compromises. Come with your opinions and … more

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

33 posts
Thanks Meter: 13
 
By vkggg, Member on 21st February 2013, 09:41 PM
Post Reply Subscribe to Thread Email Thread
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 12:54 PM.
The Following 4 Users Say Thank You to vkggg For This Useful Post: [ View ]
 
 
22nd February 2013, 10:16 PM |#2  
OP Member
Thanks Meter: 13
 
More
- Reserved -
23rd February 2013, 01:44 PM |#3  
Junior Member
Flag Oslo
Thanks Meter: 8
 
More
Link missing
Could you please add the link to the howto you mentioned?
Last edited by perchrh; 23rd February 2013 at 06:14 PM.
24th February 2013, 12:49 PM |#4  
OP Member
Thanks Meter: 13
 
More
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, 09:24 PM |#5  
Junior Member
Flag Oslo
Thanks Meter: 8
 
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, 11:28 AM |#6  
Junior Member
Thanks Meter: 0
 
More
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, 08:04 AM |#7  
Junior Member
Flag Oslo
Thanks Meter: 8
 
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


Top Threads in Galaxy S III I9305 (4G LTE + 2GB RAM) Q&A, Help & Troubleshooting by ThreadRank