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-Beta/manifest.git -b t13
Then to sync up:
repo sync -jx
or
repo sync --force-sync -c --no-clone-bundle --no-tags -jx
use this for faster sync. (x=no of cores to be used)
- 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_device-userdebug
make stag
- 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 protected]>"
So it should look like this once you get all author's information:
git commit --amend --author "vjspranav <[email protected]>"