[GUIDE][COMPLETE] Android ROM Development From Source To End

adinechin

Senior Member
Sep 19, 2012
634
365
83
Lyon
Hi everyone, I would like to know what is the best way to sign a build with our own keys ?
I already generated my own keys with :
Code:
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'
mkdir ~/.android-certs
for x in releasekey platform shared media; do \
    ./development/tools/make_key ~/.android-certs/$x "$subject"; \
done
Now I want to use it directly in my build. I tried different things but nothing worked...
 

adinechin

Senior Member
Sep 19, 2012
634
365
83
Lyon
Hi everyone, I would like to know what is the best way to sign a build with our own keys ?
I already generated my own keys with :
Code:
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'
mkdir ~/.android-certs
for x in releasekey platform shared media; do \
    ./development/tools/make_key ~/.android-certs/$x "$subject"; \
done
Now I want to use it directly in my build. I tried different things but nothing worked...
Ok so I answer to myself, the successful way I found is to add this line in BoardConfig.mk (in device tree)
Code:
PRODUCT_DEFAULT_DEV_CERTIFICATE := /<your_path>/.android-certs/releasekey
And then do a full clean and full build

Code:
make clobber && make clean
brunch ...
 

Jespert

Member
Dec 28, 2020
8
0
11
Hello all, I get the following error when trying to build CM10.1 on Ubuntu 18.04. Does anyone know how to fix?

Code:
/home/jesper/android/cm-10.1/out/host/linux-x86/obj/STATIC_LIBRARIES/libcts_audio_quality_intermediates/libcts_audio_quality.a(ClientSocket.o): In function `ClientSocket::readData(char*, int, int)':
/home/jesper/android/cm-10.1/cts/suite/audio_quality/lib/src/ClientSocket.cpp:83: undefined reference to `fcntl64'
/home/jesper/android/cm-10.1/cts/suite/audio_quality/lib/src/ClientSocket.cpp:88: undefined reference to `fcntl64'
/home/jesper/android/cm-10.1/cts/suite/audio_quality/lib/src/ClientSocket.cpp:134: undefined reference to `fcntl64'
collect2: ld returned 1 exit status
make: *** [build/core/host_executable.mk:19: /home/jesper/android/cm-10.1/out/host/linux-x86/obj/EXECUTABLES/cts_audio_quality_test_intermediates/cts_audio_quality_test] Error 1
 

cpt_Sherman

Senior Member
Jul 11, 2016
242
42
28
Minsk
Platform:msm8916
Stock: galaxy grand prime g530h los 13
Port: galaxy j5 15 android 6.0.1 tw-mm
Issue:
Trying to boot, but stuck at splash logo. Looked through the log and see that it cant find some files that are already there