아래와 같은 에러가 발생합니다.
devel@UB-Andr:~/android-jb-samsung-dev$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1
/home/devel/bin/repo: línea 2: error sintáctico cerca del elemento inesperado `newline'
/home/devel/bin/repo: línea 2: `<!DOCTYPE html>'
We execute what is was indicated to the following link solve this problema and be able to move forward:
https://source.android.com/source/downloading.html
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1
On Android platform step 3.2.3, and after we apply the indicated patch we got the following output:
~/android-jb-samsung-dev$ patch -p1 -i smdk4412-android-4.2.2-1ghz-mr.patch
patching file bionic/libc/kernel/common/linux/ion.h
patching file bionic/libc/kernel/common/linux/videodev2.h
patching file build.sh
The next patch would create the file device/samsung/manta/Android.mk,
which already exists! Assume -R? [n] n
Apply anyway? [n] y
patching file device/samsung/manta/Android.mk
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file device/samsung/manta/Android.mk.rej
The next patch would create the file device/samsung/manta/AndroidProducts.mk,
which already exists! Assume -R? [n] n
Apply anyway? [n] y
patching file device/samsung/manta/AndroidProducts.mk
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file device/samsung/manta/AndroidProducts.mk.rej
The next patch would create the file device/samsung/manta/Atmel_maXTouch_Touchscreen.idc,
which already exists! Assume -R? [n]
Esto se repita para todos los archivos que se intenta parchar, por lo que aplicamos el parche con las opciones -Nf
~/android-jb-samsung-dev$ patch -p1 -Nf -i smdk4412-android-4.2.2-1ghz-mr.patch
After the patch was applied a new build.sh file is generated and then we can move to the next step.
When we execute build.sh we got the following output:
~/exynos4412/android-jb-samsung-dev$ ./build.sh smdk4412 platform
....
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Pegasus.ogg:system/media/audio/ringtones/Pegasus.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Pyxis.ogg:system/media/audio/ringtones/Pyxis.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Rigel.ogg:system/media/audio/ringtones/Rigel.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Scarabaeus.ogg:system/media/audio/ringtones/Scarabaeus.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/ringtones/ogg/Solarium.ogg:system/media/audio/ringtones/Solarium.ogg ignored.
build/core/Makefile:32: atención: se imponen comandos para el objetivo «out/target/product/smdk4412/system/etc/permissions/android.software.live_wallpaper.xml»
build/core/base_rules.mk:502: atención: se ignoran las instrucciones viejas para el objetivo «out/target/product/smdk4412/system/etc/permissions/android.software.live_wallpaper.xml»
target Export Resources: framework-res (out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko
res/xml/storage_list.xml.orig:0: error: Resource entry storage_list is already defined.
res/xml/storage_list.xml:0: Originally defined here.
res/xml/storage_list.xml.rej:0: error: Resource entry storage_list is already defined.
res/xml/storage_list.xml:0: Originally defined here.
device/samsung/smdk4412/overlay/frameworks/base/core/res/res/values/config.xml.orig:1: error: Error parsing XML: no element found
device/samsung/smdk4412/overlay/frameworks/base/core/res/res/values/config.xml.rej:1: error: Error parsing XML: not well-formed (invalid token)
device/samsung/smdk4412/overlay/frameworks/base/core/res/res/xml/storage_list.xml.orig:1: error: Error parsing XML: no element found
device/samsung/smdk4412/overlay/frameworks/base/core/res/res/xml/storage_list.xml.rej:1: error: Error parsing XML: not well-formed (invalid token)
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleted file «out/target/common/obj/APPS/framework-res_intermediates/package-export.apk»
ERROR: Failed to compile
Total compile time is 75 seconds
[[[[[[[ Make additional images for fastboot ]]]]]]]
No zImage is found at kernel/samsung/exynos4412/arch/arm/boot
[[[[[[[ Make ramdisk image for u-boot ]]]]]]]
./build.sh: línea 88: mkimage: orden no encontrada
ERROR: Failed to compile
ok success !!!