THIS REPO IS STILL VERY VERY UNDER CONSTRUCTION
This project is a modified mirror of Google's AOSP specifically targetted at the Quanta dorado
(sold as the Verizon Wear24) to pair with our custom NFC kernel. Our aim is to get the watch to support NFC, a feature Verizon promised, yet never shipped. In the future, greater modifications may be made to support more features or update to newer systems such as Oreo or "H".
PLEASE CHECK WHICH BRANCH YOU ARE ON BEFORE BUILDING!
This repository has a different branch for each Android Wear AOSP build: android-wear-7.1.1_r1
, android-wear-8.1.0_r1
and one for system H when we add it
. These branches are named identically to the applicable Android Open Source Project branches.
Our releases are automagically built by our Travis CI integration and uploaded to GitHub releases.
Due to high file sizes, it is recommended to only clone the whole repository if necessary. If you do plan on doing so, it is highly recommended you use SSH and not HTTPS.
To do so...
- Open the terminal
- Paste the following code, substituting your GitHub email:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
- When asked to choose the file location, press
ENTER
(accept the default location) - Enter a secure passphrase (which you'll remember!)
- Start the
ssh-agent
(entereval "$(ssh-agent -s)"
into the console) - Add your SSH key to
ssh-agent
(typessh-add ~/.ssh/id_rsa
and enter your passphrase when asked) - Add the SSH key to your GitHub account
- After, just clone the repo using
git clone [email protected]:quantify-nfc/Wear24-NFC-ROM-AOSP
- Follow the instructions under Repo Setup
If you are planning on pushing large changes, it is recommended to change the following git config values:
git config core.bigFileThreshold 15m
git config --global http.postBuffer 157286400
Config value | Description | Benefit |
---|---|---|
core.bigFileThreshold 15m |
Disables delta compression on files larger than 15 MB | Vastly reduces git push time |
http.postBuffer 157286400 |
Increases the Git buffer size to the largest file in the repo | Decreases failed push attempts |
A repo setup script is included in the repository. Just run:
. repo-setup.sh
- Install all required packages
sudo apt install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip
- Install the Google Repo tool
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
- Initialise a Repo client
# For 7.1.1
repo init --depth 1 -b android-wear-7.1.1_r1 [OR THE BRANCH YOU ARE USING] -u https://android.googlesource.com/platform/manifest
- Synchronise the Android source
repo sync -c --no-clone-bundle -j$(nproc --all)
- Check that the local manifest is located at
.repo/local_manifests/local_manifest.xml
. This contains our custom Repo 'submodules'. If this doesn't exist, then download it from GitHub.
Just running git pull
by itself isn't (normally) enough anymore! Follow a few simple steps every time a change is made:
- Change to the top-level AOSP directory (e.g.
cd ~/Wear-24-NFC-ROM-AOSP
) git pull
repo sync
After setting up the repo, just run . build.sh
in the repo root.
Everything will (hopefully) build automatically.
This section has NOT been updated to suit this repository.
NOT RECOMMENDED
Coming soon