Odroid C1 Android Build Problem

Post Reply
pcmgogo
Posts: 9
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Odroid C1 Android Build Problem

Unread post by pcmgogo » Wed Jun 19, 2019 9:10 am

Dear All, I built my customized Android OS for C1 1 years before without any problem. Now I have a new computer and I would like to compile again.
I tried to build on previous folder, it couldn't, then I download sources again with repo, it couldn't. I tried both Ubuntu 18.04 and 14.04. But none of them successfull.
My OS: Ubuntu 14.04

Build gives following message,
......
Checking API: checkpublicapi-current
frameworks/base/api/current.txt:20: error 10: Removed field android.Manifest.permission.BACKUP
frameworks/base/api/current.txt:82: error 10: Removed field android.Manifest.permission.INVOKE_CARRIER_SETUP
frameworks/base/api/current.txt:106: error 10: Removed field android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE
frameworks/base/api/current.txt:116: error 10: Removed field android.Manifest.permission.RECEIVE_EMERGENCY_BROADCAST

******************************
You have tried to change the API from what has been previously approved.

To make these errors go away, you have two choices:
1) You can add "@hide" javadoc comments to the methods, etc. listed in the
errors above.

2) You can update current.txt by executing the following command:
make update-api

To submit the revised current.txt to the main Android repository,
you will need approval.
******************************



make: *** [out/target/common/obj/PACKAGING/checkpublicapi-current-timestamp] Error 38

#### make failed to build some targets (02:59 (mm:ss)) ####

User avatar
tobetter
Posts: 3655
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: Odroid C1 Android Build Problem

Unread post by tobetter » Wed Jun 19, 2019 9:15 am

Can you run "make updateapi" as described in "2" and run "make" ?

"Tapatalk wishes you to have fun with ODROID"


pcmgogo
Posts: 9
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C1 Android Build Problem

Unread post by pcmgogo » Wed Jun 19, 2019 9:22 am

Yes I tried make updateapi, errors gone but different errors occured. I don't remember exactly but its like as protoc compiler bla bla... Then I found following suggestion on internet, I will try this then I will write results.
////////////////////
Don't do 'make update-api' if you didn't touch anything. There additional apis came form frameworks/base/res/AndroidManifest.xml badly parsed by aapt that uses buggy system/core/libcore/String8.cpp@@removeAll() they use memcpy but should be memmove for overlapping strings in memory.

This is issue on latest Debian (sid) or Ubuntu (16 maybe 15) build machines. It's a google bug in libcore/String8.cpp. Fix is here: https://android.googlesource.com/platfo ... 5cda2032bd

This man found it (Michael Scott) and maybe some other people too. Here is his investigation: https://plus.google.com/+hashcode0f/posts/URHo3hBmfHY

Big up himself!
//////////////////////

pcmgogo
Posts: 9
Joined: Wed Dec 20, 2017 7:36 pm
languages_spoken: english
ODROIDs: C2 C0
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid C1 Android Build Problem

Unread post by pcmgogo » Thu Jun 20, 2019 10:24 pm

SOLVED:
This is my mistake. I started to build in Ubuntu 18.04 with oracle JDK. I downloaded all sources to new directory and built successfully.
But I don't understand why? After failed in ubuntu 18.04, I opened Ubuntu 14.04 and make followins
make clean
repo sync
repo sync --force-sync
make

Do I have to download all sources to new directory for any mistake?

User avatar
tobetter
Posts: 3655
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 26 times
Been thanked: 114 times
Contact:

Re: Odroid C1 Android Build Problem

Unread post by tobetter » Thu Jun 20, 2019 11:00 pm

pcmgogo wrote:
Thu Jun 20, 2019 10:24 pm
SOLVED:
This is my mistake. I started to build in Ubuntu 18.04 with oracle JDK. I downloaded all sources to new directory and built successfully.
But I don't understand why? After failed in ubuntu 18.04, I opened Ubuntu 14.04 and make followins
make clean
repo sync
repo sync --force-sync
make

Do I have to download all sources to new directory for any mistake?
I am not sure, but if the network bandwidth is enough then I would download all source tree. But I would do remove all local branches presented with repo branches and do repo init -u ... again in the same directory.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 3 guests