Skip to content

Furrydaus/ResurrectedScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Resurrected Scripts

Script used for building Resurrection Remix

Android M is the only supported version for Resurrected Scripts

Module Recommended Requirements
CPU Anything decent, Akhil used a pentium too :P
GPU Not applicable
Memory 4GB RAM
Storage 150GB HDD
Internet Anything decent, the more the better, you have to download ~20GB
Display Not applicable
OS x64 Linux based OS [This guide works for ubuntu/debian/mint/others with aptitude as package manager][Will add Arch Linux Script soon]
Sections Estimated Time
Install < 1 hour
Download Depends on net connection. 100mbit/s+ <30mins. 5mbit/s 6-8 hours
Building Depends on PC specs, presence of a Solid State Drive, RAM, etc

How to build with Resurreected Scripts:

Simply run the setup script to get your PC ready

cd ~/
git clone git://github.com/ResurrectionRemix/ResurrectedScripts.git -b marshmallow scripts
cd scripts
./setup.sh

After setting up, cd to the source code folder directory and run the build script

cd <path/to/rr/source> [Default is /home/username/rr]
bash build.sh <device>

The build script will then prompt you for your device codename you wish to build, incase you didn't pass it as a parameter For Example; Hammerhead, Huashan Once you have input the device codename, RR will start building for your device. It will either fail and require you to fix the errors, or it will be successful.

If the build was successful, the zip file will be located in:

<path/to/rr/source>/out/target/product/<device-codename>/ResurrectionRemix-M-<version>-<date>-<device-codename>.zip

Tips and Tricks

  1. Use Screen When you build RR, you might get disconnected from your SSH session or someone may close your Terminal Session. By using screen, RR will continue building in the background regardless if your SSH or terminal session is closed unexpectedly. To open a screen session type;
screen -S android

To diconnect a screen session, press CTRL+A+D. To connect to screen session;

screen -R android

To connect to a session that has closed unexpectedly;

screen -D -R android

To close a screen session;

screen -X -S android kill

To list screen sessions;

screen -ls

To learn more about screen and how it can help you, visit: https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/ or http://www.computerhope.com/unix/screen.htm

  1. Store your builds in a seperate drive for faster compilation This results in the Read and Write operations to run simultaneously. Hard Drives benefit from this as it places less stress on the drive head. Generall, all SATA drives benefit as data can only be transferred in one direction at the same time frames. More SATA ports mean more lanes for data to flow.

To do so, you will need to find where your 2nd drive is mounted in Linux. Assuming your 2nd drive is mounted at /disk2, add this to your .bashrc or other similar file

export OUT_DIR_COMMON_BASE=/out

Make sure your user has write permissions to that of course.

Instead of the old build output, it will be here instead: /out//target/product//ResurrectionRemix-M-(version)-(date)-(device-codename).zip

  1. Store CCache in a seperate drive for faster compilation The explanation here is similar to the previous trick although CCache is a bunch of compiled data that will be frequently accessed by the build generator to cut down build times. By placing CCache in a seperate directory, again, the data will be accessed faster and more efficiently.
export CCACHE_DIR=/disk3

Your ccache will be stored in there then. If you want to clear the ccache, just simply delete the folder

How to make unofficial builds Official

Incase you are building an unofficial build, and want to make it official, feel free to contact one of the team members [you can find them in the Google+ community]. Namely, Atlan KRK, Varun Date and Akhil Narang, Brian Koluch, Andres Pascual Enjoy! :D

Links
  1. Resurrection Remix Community: https://plus.google.com/communities/109352646351468373340
  2. Resurrection Remix Source Code: https://github.com/ResurrectionRemix
  3. Resurrection Remix Device Code: https://github.com/ResurrectionRemix-Devices

About

Scripts and Logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages