Difference between revisions of "AOSP"

From John Senner
Jump to navigation Jump to search
m
m
 
Line 7: Line 7:
 
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:'''
  
 
<nowiki>git clone https://android.googlesource.com/platform/manifest aosp</nowiki>
 
<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.'''
  
 
<nowiki>curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo</nowiki>
 
<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.'''
  
 
<nowiki>chmod a+rx ~/.bin/repo</nowiki>
 
<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.'''
  
 
<nowiki>code ~/.bash_profile</nowiki>
 
<nowiki>code ~/.bash_profile</nowiki>
  
Prepend ~/.bin to the PATH environment variable.
+
'''Prepend ~/.bin to the PATH environment variable.
  
 
<nowiki>PATH="${HOME}/.bin:${PATH}"</nowiki>
 
<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 )
  
 
<nowiki>repo init -b main -u https://android.googlesource.com/platform/manifest</nowiki>
 
<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.
  
 
<nowiki>repo sync -c -j8</nowiki>
 
<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.
  
 
<nowiki>repo init -u https://android.googlesource.com/platform/manifest -b android-p-preview-4</nowiki>
 
<nowiki>repo init -u https://android.googlesource.com/platform/manifest -b android-p-preview-4</nowiki>

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