Skip to content

giovEra/AndroidDevelopment

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f18d6b8 · Dec 1, 2022
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidDevelopment

Getting Started

To initialize your local repository using the LineageOS trees, use one of the following commands:

repo init -u https://github.com/LineageOS/android.git -b cm-14.1
repo init -u https://github.com/LineageOS/android.git -b lineage-15.1
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
repo init -u https://github.com/LineageOS/android.git -b lineage-17.0
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
repo init -u https://github.com/LineageOS/android.git -b lineage-19.0
repo init -u https://github.com/LineageOS/android.git -b lineage-19.1
repo init -u https://github.com/LineageOS/android.git -b lineage-20.0

To add the repositories for the devices potter, sargo, and thea place (or symlink) the respective files into

.repo/local_manifests/
  • cm-14.1: potter_14.1.xml, roomservice_thea_14.1.xml, and thea_14.1.xml
    mv roomservice_thea_14.1.xml roomservice.xml
  • lineage-15.1: potter_15.1.xml, shared_15.1.xml, and thea_15.1.xml
  • lineage-16.0: potter_16.0.xml, and shared_16.0.xml
  • lineage-17.0: potter_17.0.xml, and shared_17.0.xml
  • lineage-17.1: potter_17.1.xml, roomservice_sargo_17.1.xml, sargo_17.1.xml, and shared_17.1.xml
    mv roomservice_sargo_17.1.xml roomservice.xml
  • lineage-18.1: potter_18.1.xml, roomservice_sargo_18.1.xml, sargo_18.1.xml, and shared_18.1.xml
    mv roomservice_sargo_18.1.xml roomservice.xml
  • lineage-19.0: roomservice_sargo_19.0.xml, sargo_19.0.xml
    mv roomservice_sargo_19.0.xml roomservice.xml
  • lineage-19.1: roomservice_sargo_19.1.xml, sargo_19.1.xml
    mv roomservice_sargo_19.1.xml roomservice.xml

Then to sync up:

repo sync -j $(nproc --all) -c --no-tags --no-clone-bundle --force-sync --fail-fast

Solving issues

For cm-14.1 one might encounter the error

Ensure Jack server is installed and started
FAILED: setup-jack-server
/bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
Writing client settings in /home/${whoami}/.jack-settings
Installing jack server in "/home/${whoami}/.jack-server"

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/${whoami}/.jack-server/server.jks -destkeystore /home/${whoami}/.jack-server/server.jks -deststoretype pkcs12".

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/${whoami}/.jack-server/client.jks -destkeystore /home/${whoami}/.jack-server/client.jks -deststoretype pkcs12".
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/${whoami}/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
SSL error when connecting to the Jack server. Try 'jack-diagnose'

which can be solved by removing TLSv1, TLSv1.1 from jdk.tls.disabledAlgorithms in
/etc/java-8-openjdk/security/java.security.

For cm-14.1 and lineage-16.0 the build might fail with a python import error which can be solved by explicitly setting the python version in the files
external/nanopb-c/generator/protoc-gen-nanopb and
external/nanopb-c/generator/protoc-gen-nanopb.bat, i.e., changing python to python2.
For lineage-16.0 the build might fail with a python SyntaxError which can be solved by explicitly setting the python version in the file
external/clang/clang-version-inc.py, i.e., changing python to python2.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%