Difference between revisions of "AOSP"

From John Senner
Jump to navigation Jump to search
(Created page with "# iFit-AOSP-Rom Doc: Getting started on AOSP Development You will need: A _linux_ workstation or VM A few hours to download stuff, on a good internet connection Choose a di...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
# iFit-AOSP-Rom
+
== iFit-AOSP-Rom ==
  
Doc: Getting started on AOSP Development
+
'''Doc:''' Getting started on AOSP Development
  
You will need:
+
'''You will need:'''
A _linux_ workstation or VM
+
 
 +
A ''linux'' workstation or VM
 
A few hours to download stuff, on a good internet connection
 
A few hours to download stuff, on a good internet connection
  
Choose a directory, maybe "aosp/". Clone the AOSP manifest repository from Google's Git server:
+
'''Choose a directory, maybe "aosp/". Clone the AOSP manifest repository from Google's Git server:'''
  
git clone https://android.googlesource.com/platform/manifest aosp
+
<nowiki>git clone https://android.googlesource.com/platform/manifest aosp</nowiki>
  
Download the repo tool binary and save it to ~/.bin.
+
'''Download the repo tool binary and save it to ~/.bin.'''
  
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
+
<nowiki>curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo</nowiki>
  
Change permissions of the repo tool binary to make it executable.
+
'''Change permissions of the repo tool binary to make it executable.'''
  
chmod a+rx ~/.bin/repo
+
<nowiki>chmod a+rx ~/.bin/repo</nowiki>
  
Open the .bash_profile file in a text editor.
+
'''Open the .bash_profile file in a text editor.'''
  
code ~/.bash_profile
+
<nowiki>code ~/.bash_profile</nowiki>
  
Prepend ~/.bin to the PATH environment variable.
+
'''Prepend ~/.bin to the PATH environment variable.
  
PATH="${HOME}/.bin:${PATH}"
+
<nowiki>PATH="${HOME}/.bin:${PATH}"</nowiki>
  
Initialize the repo tool with the main branch of the AOSP manifest. (info on Google's repo tool at )
+
'''Initialize the repo tool with the main branch of the AOSP manifest. (info on Google's repo tool at )
  
repo init -b main -u https://android.googlesource.com/platform/manifest
+
<nowiki>repo init -b main -u https://android.googlesource.com/platform/manifest</nowiki>
  
Synchronize the local repository with the AOSP repositories specified in the manifest.
+
'''Synchronize the local repository with the AOSP repositories specified in the manifest.
  
repo sync -c -j8
+
<nowiki>repo sync -c -j8</nowiki>
  
Initialize repo with the Android P Preview 4 branch of the AOSP manifest.
+
'''Initialize repo with the Android P Preview 4 branch of the AOSP manifest.
  
repo init -u https://android.googlesource.com/platform/manifest -b android-p-preview-4
+
<nowiki>repo init -u https://android.googlesource.com/platform/manifest -b android-p-preview-4</nowiki>
  
Links:
+
'''Links:'''
  
 
VirtualBox: https://www.virtualbox.org/wiki/Downloads
 
VirtualBox: https://www.virtualbox.org/wiki/Downloads
 
Ubuntu: https://ubuntu.com/download/desktop
 
Ubuntu: https://ubuntu.com/download/desktop
 
repo: https://source.android.com/docs/setup/reference/repo
 
repo: https://source.android.com/docs/setup/reference/repo

Latest revision as of 22:19, 21 March 2024

iFit-AOSP-Rom

Doc: Getting started on AOSP Development

You will need:

A linux workstation or VM A few hours to download stuff, on a good internet connection

Choose a directory, maybe "aosp/". Clone the AOSP manifest repository from Google's Git server:

git clone https://android.googlesource.com/platform/manifest aosp

Download the repo tool binary and save it to ~/.bin.

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo

Change permissions of the repo tool binary to make it executable.

chmod a+rx ~/.bin/repo

Open the .bash_profile file in a text editor.

code ~/.bash_profile

Prepend ~/.bin to the PATH environment variable.

PATH="${HOME}/.bin:${PATH}"

Initialize the repo tool with the main branch of the AOSP manifest. (info on Google's repo tool at )

repo init -b main -u https://android.googlesource.com/platform/manifest

Synchronize the local repository with the AOSP repositories specified in the manifest.

repo sync -c -j8

Initialize repo with the Android P Preview 4 branch of the AOSP manifest.

repo init -u https://android.googlesource.com/platform/manifest -b android-p-preview-4

Links:

VirtualBox: https://www.virtualbox.org/wiki/Downloads Ubuntu: https://ubuntu.com/download/desktop repo: https://source.android.com/docs/setup/reference/repo