To get started with Android, you'll need to get familiar with Repo and Version Control with Git. you'll also need to get familiar with Establishing a build environment.
To initialize your local repository using the StagOS sources, use a command like this:
repo init -u https://github.com/StagOS/manifest.git -b u14
Then to sync up:
repo sync -j$(nproc --all)
or for faster sync
repo sync --force-sync -c --no-clone-bundle --no-tags -j$(nproc --all)
- Make sure you've synced all your device specific sources
- Just continue building, file renaming and everything will be handled automatically.
[Advanced]
- Make sure you've synced all your device specific sources
- copy your device code from (lineage.mk/whatever.mk) to stag_devicename.mk
- do the necessary changes in your trees
- include vendor/stag/main.mk (no common.mk or common_full*)
- Dont forget to set PRODUCT_DEVICE = devicename
- Now you're all set to build. Follow the below commands
source build/envsetup.sh
lunch stag_<devicecodename>-ap2a-userdebug
make stag -j$(nproc --all)
- make sure you've followed the above instructions well, and check StagOS-Devices for other device trees and see if you missed/need any of the changes done there
- Try to remember wether you've faced any similar error before and try to fix it first.
- Search in your chat histories to see if anyone before has faced it (For telegram users, and trust me it helps a lot).
- Searching the github and also lineage gerrit never harms.
- Still facing the issue don't hesitate to ask in our Telegram group
- Or you can just ask at Android Builders help group, (don't forget the rules/template it'd be sad to see you banned)
If you want to Maintain for your device
Compile the rom without any bugs and fill the form:
Maintainer Form.
Or if you just want to say a hi do the same below
Telegram group Telegram Channel
Hope You Enjoy
Please make sure if you submit a patch/fix from another ROM that you maintain authorship. This is very important to not only us but to the entire open source community. It's what keeps it going and encourages more developers to contribute their work.
If you manually cherry pick a patch/fix please add the original author prior to pushing to our Gerrit. This task is very easy and is usually done after you commit a patch/fix locally.
i.e - Once you type in "git commit -a" the commit message and you have saved it, type in the following:
git commit --amend --author "Author <email@address.com>"
So it should look like this once you get all author's information:
git commit --amend --author "vjspranav <pranavasri@live.in>"