motionEyeOS (PINE A64(+)) 20170611 [Jun 16] | Ubuntu Images (Pinebook) 0.5.5-65 [Jun 15] | Ubuntu Minimal (PINE A64(+)) 0.5.5-65 [Jun 15] | Q4OS (Pinebook) 1805 [Jun 12] | Android 6.0.1 (Pinebook) 20170605 [Jun 5] | Win10 IoT (PINE A64(+)) 10.0.15063.0_20170602 [Jun 5] | FalconGate (PINE A64(+)) 20170430 [May 31] | Q4OS (PINE A64(+)) 1804 [May 30] | Armbian - Ubuntu (SOPINE) 5.27 [May 22]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


New procedure for building Android from source
#1
Lightbulb 
https://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.
Reply
#2
This build will run into several issues on Ubuntu 16.04. You can Google for work arounds. Ubuntu 14.04 works without problems.
If 'repo sync' for lichee hangs it is a gnutls issue on Ubuntu 16.04.

After you do the final pack, cd ../lichee and do './build.sh pack'. that will make a pack file without Chinese characters in the name.
Reply
#3
Thanks for your work on this jonsmirl.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
Reply
#4
I followed the steps outlined in the top post, and got a working Android image, thanks a lot jonsmirl! I used Ubuntu 14.04 after running into to many issues with 16.04 and that worked like a charm, make sure you have things like git, build-essential and https://source.android.com/source/initia...buntu-1404 installed before starting. Running the build in a Virtualbox VM took about 4h with 4 out of 8 cores (i7-975EE@3.4Ghz) and 8GB RAM assigned to the VM, disk image was on a SSD.
Come have a chat in the Pine A64 IRC channel >>
Reply
#5
Sweet... thanks for the post Xalius, and thanks again for the nice work jonsmirl.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
Reply
#6
First update...

cd lichee
repo sync
./build.sh config

You can now choose the Longsleep kernel...
All available kernel:
0. linux-3.10
1. linux-pine64
Choice: 1

I have checked, it compiles and boots Android. I have not done much testing on it.
Reply
#7
Is it possible to tweak the default.xml file without breaking things so that we can compile Android Marshmallow/Nougat and don't get stuck on Lollipop?
Donate BTC: 16jzTwuTUEErKfzvadRdx5wQsqN2qkM5em
Reply
#8
(08-13-2016, 07:06 AM)Terra854 Wrote: Is it possible to tweak the default.xml file without breaking things so that we can compile Android Marshmallow/Nougat and don't get stuck on Lollipop?

Allwinner has already ported A64 Android on to Marshmallow, I just don't have a copy. The repositories you are downloading from Google have the master branch in then so you already have all of the base code (they contain every branch of Android). Just need a copy of the Allwinner changes.

It might be possible to port yourself, but it is simpler just to wait until someone provides the Allwinner code.

Now that the Allwinner code is in repo form, it is not too hard to bring Cyanogenmod up on it. Maybe someone with give it a try....
Reply
#9
(08-13-2016, 07:40 AM)jonsmirl Wrote: Allwinner has already ported A64 Android on to Marshmallow, I just don't have a copy.

http://wiki.pine64.org/index.php/Pine_A6...ow_ver_6.0
[I'm sorry, my english is not so good]
Reply
#10
(08-13-2016, 01:50 PM)NGC6691 Wrote:
(08-13-2016, 07:40 AM)jonsmirl Wrote: Allwinner has already ported A64 Android on to Marshmallow, I just don't have a copy.

http://wiki.pine64.org/index.php/Pine_A6...ow_ver_6.0

That file is very old and it was not zipped correctly. We need a new dump from them.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Android 6.0.1 (LCD Panel version) reboot problems Maxim0n 1 53 Yesterday, 12:41 PM
Last Post: Maxim0n
  Android 7.1 Tablet and TV (alpha, proposal) ayufan 31 6,865 06-15-2017, 01:09 PM
Last Post: geniepro
  Android 6.0 Tablet and TV (release candidate, maintained) ayufan 205 32,071 06-02-2017, 01:30 PM
Last Post: Bob123456789
  Pine 2GB won't boot Android anymore Bluphire 5 385 05-29-2017, 09:34 PM
Last Post: dkryder
  Android 7.1 (PINE A64(+)) v0.3.5-r61 pineadmin 14 2,607 05-27-2017, 08:47 PM
Last Post: veronicasmithen03
  Orange Screen All versions of Android TV XsoundXhoundX 17 1,864 05-19-2017, 01:27 AM
Last Post: Israeldelamo
  Pine A64 running Android 7.1 kernel panic leon 1 354 05-12-2017, 04:53 PM
Last Post: ayufan
  Android 6.0.1 Image (LCD and HDMI Video Output) Release 20170209 [ver 2.0.1] rookieone 15 2,737 05-05-2017, 01:50 AM
Last Post: Quezbeme
  Change Android boot logo? ipsw 5 1,565 05-03-2017, 09:39 PM
Last Post: Quezbeme
  How to Make a Pine with Android 7.0 Stay on All the Time? Bob123456789 3 484 04-05-2017, 01:12 PM
Last Post: Bob123456789

Forum Jump:


Users browsing this thread: 1 Guest(s)