Building Android Pie for VIM3

Can you provide full log for me? Thanks very much.

1 Like

Please find full log here.

1 Like

Did you exec ā€œmake cleanā€ command for your project ? you can have a try. Thanks

1 Like

Yes, I ran Ė‹make cleanĖ‹ for both uboot and Android.

I think I had similar problem complaining afout ffmpeg when I was building Android Nougat some time ago, but canā€™t remember exactly - will try to lookup from my older notes.
No, sorry - that was different problem referring to ffmpeg.

1 Like

I only saw the command ā€˜make installcleanā€™ and not ā€˜make cleanā€™ after you repo sync source code.

1 Like

I can try again, but Iā€™ve had:

gytis@gytis-vm:~/khadas/vim3$ make clean
19:52:55 Entire build directory removed.
gytis@gytis-vm:~/khadas/vim3$ repo sync -j4

Oh, you meant do make clean after repo sync?

1 Like

Itā€™s best to remove the out path manually. :grinning:

2 Likes

Thanks! Build succeeded :blush:

#### build completed successfully (02:55:47 (hh:mm:ss)) ####

I will burn it to VIM3 tomorrow to check if Android Pie works.

Sequence was such:

  1. repo sync
  2. lunch
  3. make clean
  4. Delete out/ folder
  5. make otapackage
1 Like

Build successfull and running on VIM3 Pro:

Works:

  • Google Play
  • Ethernet connection (MAC address is stable! :blush:)

Doesnā€™t work:

  • SuperSU from Nougat branch - @Terry, maybe any ideas?
  • Touch screen (doesnā€™t show any signs of life the same way as on Ubuntu Bionic :neutral_face:);
  • Sound - there is no sound via HDMI nor via ToneBoard :neutral_face:.
2 Likes

The root is in our list of plans. We will add root support in the feature.

Did you use HID touch screen?

Is HDMI no sound? Did you connect VIM3 with other monitor?

1 Like

Apparently to use SuperSU currently working Android version is Nougat - yesterday Iā€™ve buit an image for VIM1 - with GApps and SuperSU - all works (I have SuperSU Pro licence - all got updated fine).

As for VIM3 Pro, I tried it with TS050 touch screen - it did not work at all with Android Pie built from source. Also audio is not passed via HDMI. I also plugged in Tone Board, but it was not giving sound either.

Currently I have Ubuntu Bionic Xfce built and burned to VIM3 Pro - there both HDMI audio and Tone Board works fine. After @numbqq updated Kernel also TS050 touch screen works with Ubuntu.

So to sum up, Android Pie on VIM3 Pro:

  • Touch screen TS050 doesnā€™t work;
  • There is no audio via HDMI and via Tone Board;
  • SuperSU is not installed when using Ė‹https://github.com/khadas/supersuĖ‹;
  • There are no controls to enable/disable top status bar and bottom bar;
  • I couldnā€™t find how to reach typical Android settings - only right menu opens. In Nougat you can select More settings and see full list of usual Android settings.
2 Likes

@Terry Hi!
I have a problem with build Android ROM from the latest source:

  [ 69% 49872/71457] target Prebuilt: Chrome (out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk)
FAILED: out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk 
/bin/bash -c "(rm -f out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk ) && (cp \"device/khadas/kvim3/preinstall/Chrome.apk\" \"out/target/product/kvim3
/obj/APPS/Chrome_intermediates/package.apk\" ) && (if (zipinfo out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk 'lib/*.so' 2>/dev/null | grep -v ' stor
 ' >/dev/null) ; then rm -rf out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs && mkdir out/target/product/kvim3/obj/APPS/Chrome_intermediates/unco
mpressedlibs; unzip -q out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk 'lib/*.so' -d out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompress
edlibs && zip -qd out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk 'lib/*.so' && ( cd out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompress
edlibs && find lib -type f | sort | zip -qD -X -0 ../package.apk -@ ) && rm -rf out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs; fi ) && (if ! ou
t/host/linux-x86/bin/zipalign -c -p 4 out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk >/dev/null ; then mv out/target/product/kvim3/obj/APPS/Chrome_in
termediates/package.apk out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.unaligned; out/host/linux-x86/bin/zipalign -f -p 4 out/target/product/kvim3/ob
j/APPS/Chrome_intermediates/package.apk.unaligned out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.aligned; mv out/target/product/kvim3/obj/APPS/Chrome
_intermediates/package.apk.aligned out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk; fi )"
Unable to open 'out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk' for verification
Unable to open 'out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.unaligned' as zip archive
mv: cannot stat 'out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.aligned': No such file or directory
[ 69% 49882/71457] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 69% 49883/71457] //bionic/libc:common_libc versioner preprocess include [linux_glibc]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
ninja: build stopped: subcommand failed.
00:51:39 ninja failed with: exit status 1

tried to build on another computer - got the same error:
[ 69% 49874/71457] target Prebuilt: Chrome (out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk)
FAILED: out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk
/bin/bash -c ā€œ(rm -f out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk ) && (cp ā€œdevice/khadas/kvim3/preinstall/Chrome.apkā€ ā€œout/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apkā€ ) && (if (zipinfo out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk ā€˜lib/.soā€™ 2>/dev/null | grep -v ā€™ stor ā€™ >/dev/null) ; then rm -rf out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs && mkdir out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs; unzip -q out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk 'lib/.soā€™ -d out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs && zip -qd out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk ā€˜lib/*.soā€™ && ( cd out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs && find lib -type f | sort | zip -qD -X -0 ā€¦/package.apk -@ ) && rm -rf out/target/product/kvim3/obj/APPS/Chrome_intermediates/uncompressedlibs; fi ) && (if ! out/host/linux-x86/bin/zipalign -c -p 4 out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk >/dev/null ; then mv out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.unaligned; out/host/linux-x86/bin/zipalign -f -p 4 out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.unaligned out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.aligned; mv out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.aligned out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk; fi )ā€
Unable to open ā€˜out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apkā€™ for verification
Unable to open ā€˜out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.unalignedā€™ as zip archive
mv: cannot stat ā€˜out/target/product/kvim3/obj/APPS/Chrome_intermediates/package.apk.alignedā€™: No such file or directory
[ 69% 49880/71457] //bionic/libc:common_libc versioner preprocess include [linux_glibc]
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
[ 69% 49881/71457] //bionic/libc:libc.llndk versioner preprocess include
warning: attempted to generate guard with empty availability: obsoleted = 21
warning: attempted to generate guard with empty availability: obsoleted = 23
ninja: build stopped: subcommand failed.
22:26:45 ninja failed with: exit status 1

failed to build some targets (06:05:56 (hh:mm:ss))

well all is in there in the log if you lookā€¦
Just make sure you have this apk ā€œChrome.apkā€ in this dir "ā€œdevice/khadas/kvim3/preinstallā€

1 Like

Thanks for the answer! I checked this first - the apk is in the folder.Screenshot from 2020-01-09 23-44-47
I also tried to delete it from the preinstall.mk (because I do not need a preinstalled Chrome - I build gapps from opengapps repo). Same error ā€¦

1 Like

the apk is broken i just checked, see its size and you will notice it, just remove the apk and you will notice it will compile!

3 Likes

Ok!
Iā€™m going to try it now.

Youā€™re right! Chrome.apk is 134b :man_facepalming:
My mistake. It was necessary to make a git lfs pull after repo sync
Sorry)

build completed successfully (55:02 (mm:ss))

well we all make mistakes :slight_smile:

1 Like

@Terry When I am trying to download from pie-arm for vim3 itā€™s giving following error can you please check this log.

git clone GitHub - terry2droid/google google -b Pie-arm
Cloning into ā€˜googleā€™ā€¦
remote: Enumerating objects: 430, done.
remote: Total 430 (delta 0), reused 0 (delta 0), pack-reused 430
Receiving objects: 100% (430/430), 785.13 MiB | 2.31 MiB/s, done.
Resolving deltas: 100% (132/132), done.
Checking connectivityā€¦ done.
Downloading apps/Chrome/Chrome.apk (132 MB)
Error downloading object: apps/Chrome/Chrome.apk (19ebe3b): Smudge error: Error downloading apps/Chrome/Chrome.apk (19ebe3b7d3d3c315f5425dd739a9d31c195071656836a8806ccfb5033b17d019): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to /home/pradeep/Desktop/Khadas_Os/git-lfs-2.3.4/WORKING_DIRECTORY/vendor/amlogic/google/.git/lfs/objects/logs/20210518T180236.138935748.log
Use git lfs logs last to view the log.
error: external filter git-lfs smudge ā€“ %f failed 2
error: external filter git-lfs smudge ā€“ %f failed
fatal: apps/Chrome/Chrome.apk: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with ā€˜git statusā€™
and retry the checkout with ā€˜git checkout -f HEADā€™

Hii @Terry

Iā€™m using kvim3 pie SDK. Where do I put this directory after cloning???
ā€˜vendor/amlogic/common/ā€¦???ā€™

Can you please give me the right location for GApps?