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 setup a PAC-ready Build-Machine

OP MetaIIica

11th February 2014, 10:14 PM   |  #1  
MetaIIica's Avatar
OP Senior Member
Flag Bückeburg
Thanks Meter: 2,352
1,119 posts
Join Date:Joined: Aug 2012
Donate to Me
Things you need for building:

A computer
An internet connection
An open mind

You MUST be running a 64 bit version of Ubuntu, 32 bit is not supported.


I have made a sample Bash-Scripts for all usable Ubuntu Versions (12.04 -14.04) to setup for building for PAC
This is the first Startup for all...*

How to use:*
Download and decompress to your Useraccount in Ubuntu.*
Pick your needed Bashscript for your Ubuntu and give the files

chmod +x *.sh
now start it with (eg. when you use Ubuntu 12.04)

./ 12.04.sh

This download and install all needed packages and last init PAC (current 4.3.1) and sync

If you would compile 4.4.2 open your needed Script, search line repo init -u git://github.com/PAC-man/pacman.git -b cm-10.2

and replace it with
repo init -u git://github.com/PAC-man/pacman.git -b  pac-4.4
then run the Script

Download: http://pac-man-rom.de/pac_setup.rar


Android SDK:
Download the SDK here: http://developer.android.com/sdk/index.html

Extract the SDK and place it in your home directory.

I renamed my SDK to android-sdk to make it easier to navigate to.
Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
Add these lines at the bottom of the file:

export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Find your .profile file and add this at the bottom of the file:

Configure your USB.
gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of this blank text file insert:
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the file and close it and then issue this command:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
How To Add A Device To The List

Find the github for your device you wish to add.

Now navigate to the location you are going clone the device tree to:
mkdir samsung
Clone the github device tree from remote to local: (The name after the branch would be whatever you want that folder to be named so make sure it is whatever standard name would be for your device, example: Nexus One [passion], Nexus S [crespo], Motorola Droid [sholes], HTC Incredible [inc], etc.)
git clone git://github.com/CyanogenMod/android_device_samsung_d710.git -b cm-10.1 d710
Now navigate into the folder:
cd d710
Connect phone to computer and make sure USB debugging is enabled and you have adb set up. Extract Device Proprietary Files:
Or: See if other repos have your device's proprietary blobs already (like d710):
git clone https://github.com/TheMuppets/proprietary_vendor_samsung -b cm-10.2 samsung
Some devices have other dependencies like a common device repo. The d710 utilizes a galaxys2-common repo for the galaxys2 family of devices. Clone that repo. From inside the d710 folder:

cd ..
git clone git://github.com/CyanogenMod/android_device_samsung_galaxys2-common.git -b cm-10.1 galaxys2-common
Credits: dastin1015 http://forum.xda-developers.com/member.php?u=3257303
Last edited by MetaIIica; 27th February 2014 at 02:40 AM.
The Following 7 Users Say Thank You to MetaIIica For This Useful Post: [ View ]
4th March 2014, 04:20 AM   |  #2  
Aaahh's Avatar
Senior Member
Thanks Meter: 981
1,207 posts
Join Date:Joined: Nov 2013
Nice!, 14.04 repo init is git://github.com/PAC-man/pacman.git -b cm-10.2
i dont think thats right...
Last edited by Aaahh; 8th March 2014 at 02:03 AM.
The Following User Says Thank You to Aaahh For This Useful Post: [ View ]
5th March 2014, 09:36 AM   |  #3  
Senior Member
Flag jalandhar,punjab
Thanks Meter: 24
144 posts
Join Date:Joined: Sep 2013
Can we make for phone spice coolpad mi 496/ coolpad 7268

Sent from my Spice Mi-496 using XDA Premium 4 mobile app
7th March 2014, 10:55 AM   |  #4  
laith al shishani's Avatar
Junior Member
Flag Jeddeh
Thanks Meter: 23
26 posts
Join Date:Joined: Feb 2013
Its not good so ithink its bad

Sent from my GT-S7500 using xda app-developers app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes