Android 9 Source Code

Hi,

I want to know when Android source code is released.
In my recognition, we can Android nougat only.

We will release the Edge Android Pie source code around the middle of next month. Thanks.

1 Like

Hey Terry, is the VIM 1 Pro also going to have Android Pie available for it?
We’ve looked around and saw that the Amlogic Mbox has Android Pie support whlie using the same SOC.
Thanks!

Hi, @Terry !
How to add gapps and supersu in source?

Thank you!

You just change the rk3399 makefile build_with_root to true.
To add GAPPS, the instructions were already posted a while ago in the Android 9 thread and on Github - https://github.com/terry2droid/google/tree/Pie

3 Likes

@Terry

How to fix this issue?

> davemf@ubuntu:~/EDGE_Pie$ make -j8

> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=9
> TARGET_PRODUCT=rk3399
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_ARCH=arm64
> TARGET_ARCH_VARIANT=armv8-a
> TARGET_CPU_VARIANT=cortex-a53
> TARGET_2ND_ARCH=arm
> TARGET_2ND_ARCH_VARIANT=armv7-a-neon
> TARGET_2ND_CPU_VARIANT=cortex-a15
> HOST_ARCH=x86_64
> HOST_2ND_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-Ubuntu-14.04.5-LTS
> HOST_CROSS_OS=windows
> HOST_CROSS_ARCH=x86
> HOST_CROSS_2ND_ARCH=x86_64
> HOST_BUILD_TYPE=release
> BUILD_ID=PQ3A.190505.002
> OUT_DIR=out
> ninja: no work to do.
> ninja: no work to do.
> device/rockchip/rk3399/preinstall/preinstall.mk was modified, regenerating...
> device/rockchip/rk3399/preinstall_del/preinstall.mk was modified, regenerating...
> Saved manifest to commit_id.xml
> [4/1066] including bootable/recovery/Android.mk ...
> bootable/recovery/Android.mk:104: warning: *** Redirect log to UART
> [25/1066] including development/build/Android.mk ...
> development/build/build_android_stubs.mk:43: warning: android_stubs_current 
> development/build/build_android_stubs.mk:43: warning: metalava_android_stubs_current metalava_android_stubs_current
> development/build/build_android_stubs.mk:43: warning: android_system_stubs_current 
> development/build/build_android_stubs.mk:43: warning: android_test_stubs_current 
> development/build/build_android_stubs.mk:43: warning: metalava_android_system_stubs_current metalava_android_system_stubs_current
> development/build/build_android_stubs.mk:43: warning: metalava_android_test_stubs_current metalava_android_test_stubs_current
> [400/1066] including hardware/rockchip/omx_il/Android.mk ...
> tools/hooks .git/hooks
> [581/1066] including system/sepolicy/Android.mk ...
> system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
> [1066/1066] including vendor/rockchip/root/SuperSU/Android.mk ...
> build/make/core/aapt2.mk:33: warning: overriding commands for target `out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
> build/make/core/aapt2.mk:33: warning: ignoring old commands for target `out/target/common/obj/APPS/Bluetooth_intermediates/flat-res/device/rockchip/common/overlay/packages/apps/Bluetooth/res/values_config.arsc.flat'
> build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib/libjpeghwenc.so'
> build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib/libjpeghwenc.so'
> build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib/libjpeghwdec.so'
> build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib/libjpeghwdec.so'
> build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/rk3399/vendor/lib64/libjpeghwenc.so'
> build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/rk3399/vendor/lib64/libjpeghwenc.so'
> [ 50% 1/2] glob .
> [  0% 8/31281] target Prebuilt: GoogleC...rSyncAdapter_intermediates/package.apk)
> FAILED: out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk 
> /bin/bash -c "(rm -f out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk ) && (cp \"vendor/rockchip/google/apps/GoogleCalendarSyncAdapter/GoogleCalendarSyncAdapter.apk\" \"out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk\" ) && (if (zipinfo out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk 'lib/*.so' 2>/dev/null | grep -v ' stor ' >/dev/null) ; then rm -rf out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/uncompressedlibs && mkdir out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/uncompressedlibs; unzip -q out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk 'lib/*.so' -d out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/uncompressedlibs && zip -qd out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk 'lib/*.so' && ( cd out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/uncompressedlibs && find lib -type f | sort | zip -qD -X -0 ../package.apk -@ ) && rm -rf out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/uncompressedlibs; fi ) && (if ! out/host/linux-x86/bin/zipalign -c -p 4 out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk >/dev/null ; then mv out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.unaligned; out/host/linux-x86/bin/zipalign -f -p 4 out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.unaligned out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.aligned; mv out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.aligned out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk; fi )"
> Unable to open 'out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk' for verification
> Unable to open 'out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.unaligned' as zip archive
> mv: cannot stat ‘out/target/product/rk3399/obj/APPS/GoogleCalendarSyncAdapter_intermediates/package.apk.aligned’: No such file or directory
> [  0% 15/31281] target Prebuilt: webvie...APPS/webview_intermediates/package.apk)
> ninja: build stopped: subcommand failed.
> 07:08:31 ninja failed with: exit status 1

The github with the Google packages seem to be damaged, try to git clone again.
Or manually download the latest gapps pico arm64 package and replace all the *.apk files manually so they aren’t 0 size.

1 Like

@mo123
pico has not GoogleCalendarSyncAdapter.

It’s under the GApps folder called calsync-all.tar.lz in the open_gapps-arm64-9.0-pico*.zip
Unzip and replace.

2 Likes

@mo123
Thank you. It’s work.

@Terry
Please, update your gapps. You can download they here.

We all downloaded and compiled all OK, now only you have a problem, maybe not downloaded completely.

@Terry
Does Khadas EDGE (android 9) has sleep mode with low power mode like VIM1/2?

You are right. The EDGE has sleep mode with low power.

@Terry
I don’t understand how to enter on low power mode?

@Terry
How to activate UART1 ?

Activated, connected to the serial port can be used.

1 Like

@goenjoy
No, it is not activate.
Need to activate &uart2 in rk3399-khadas-edge.dtsi

Name is ttyS2

@Terry
Why EDGE does not start if uart1 is connected?
How to fix it?

This UART2 has two functions: serial port printing debugging function and common serial port.

The two config are as follows:

FIQ debugging function config of UART2:

&uart2 {
	status = "disabled";
};

Common serial port config of UART2:

&uart2 {
	status = "okay";
};

&fiq_debugger {
	rockchip,serial-id = <0xffffffff>;
	status = "okay";
};
1 Like

@goenjoy
It does not work.


EDGE does not start if uart1 is connected.
How to fix it?

Please describe in more detail the phenomena and steps of the problem, and what is the serial device you are connected to?