New procedure for building Android from source
#26
(08-08-2016, 12:31 PM)Hello Wrote: useing Ubuntu LTS 14.04 (64bit)
I am trying to build image by these steps:

first run

mkdir ~/bin
PATH=~/bin:$PATH
#Download the Repo tool and ensure that it is executable:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir android
cd android
repo init -u https://github.com/pine64-android/manifest.git -b master
repo sync
. ./build/envsetup.sh
lunch tulip_chiphd-user, Baomi/db1000
make -j 5

error output:

hardware/aw/widevine/Android.mk:2: hardware/aw/widevine/widevine_L/Android.mk: No such file or directory
make: *** No rule to make target `hardware/aw/widevine/widevine_L/Android.mk'.  Stop.


2nd run

mkdir android
cd android
repo init -u https://github.com/pine64-android/manifest.git -b master
repo sync

stop make tar.gz and save it somewhere

cd android
. ./build/envsetup.sh
lunch tulip_chiphd-user, Baomi/db1000
make -j 5

error output:

hardware/aw/widevine/Android.mk:2: hardware/aw/widevine/widevine_L/Android.mk: No such file or directory
make: *** No rule to make target `hardware/aw/widevine/widevine_L/Android.mk'.  Stop.

I see what error is, but do i find this file?

Thank You
Daniel

jonsmirlhttps://gitlab.com/pine64-android/manifest/wikis/home

This procedure is new so it may have issues. The key feature is that all of Android and lichee are in git. That means you can clone the repos (look in the manifest files), make changes, and then send pull requests.  Then use 'repo sync' to get everyone's changes.

Anyone up for getting this working on the longsleep kernel so that we can get rid of lichee?

You need 100GB free disk space, it uses 96GB.
This takes around nine hours to run depending on network and CPU speeds.

$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the Repo tool and ensure that it is executable:
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

$ mkdir android
$ cd android
$ repo init -u https://github.com/pine64-android/manifest.git -b master
$ repo sync
$ . ./build/envsetup.sh
$ lunch (tulip_chiphd-user, Baomi/db1000)
$ make -j 5
$ cd ..
$ mkdir lichee
$ cd lichee
$ repo init -u https://gitlab.com/pine64-android/manifest.git -b master
$ repo sync
$ ./build.sh config (choose '0' for all)
$ ./build.sh
$ cd brandy
$ ARCH=aarch64 ./build.sh
$ cd ../../android
$ extract-bsp
$ pack

image in:
../lichee/tools/pack/sun50iw1p1_android_Baomi-db1000_uart0.img

This makes a Phoenix card image.
Lot's of tools for installing here: lichee/tools/tools_win

To get a 'dd' image, install it to an SD Card. Boot it. Then use 'dd' to copy the image off from the SD Card.

Google Play login seems to be working in this build.

Also note that by adding items to the manifest apps like Kodi can be included in the build.


Messages In This Thread
RE: New procedure for building Android from source - by danlcarr - 09-02-2016, 07:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help compiling android for pine a64 + YeeticusMaximus22 1 259 12-13-2025, 09:23 AM
Last Post: biketool
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 228 532,442 12-29-2020, 01:13 AM
Last Post: firmwarefile
Shocked Remote for Android? liodra 18 42,711 12-23-2020, 06:11 AM
Last Post: Learnincurve
  Adding an accelerometer to Android modsbyus 11 26,443 11-02-2020, 08:12 PM
Last Post: Little_Johnny
  Android Things OS dqvsra 2 10,760 12-03-2019, 09:52 AM
Last Post: hangglider
  Is there another link for Android images? Maalth 3 12,001 10-10-2019, 07:57 AM
Last Post: tophneal
Question Android SDK Oreo NGC6691 2 8,897 07-15-2019, 08:29 PM
Last Post: dazza5000
  Putting Android 9 RockPro64 source into easier to manage repositories dazza5000 0 5,623 07-15-2019, 08:29 PM
Last Post: dazza5000
  Android 5.1.1 TV (old-stable, no longer maintained) ayufan 194 354,014 03-12-2019, 04:53 PM
Last Post: neosapien
  Issues with SD Card and Running Android Twistedx 0 6,348 02-26-2019, 11:58 AM
Last Post: Twistedx

Forum Jump:


Users browsing this thread: 1 Guest(s)