Closed Bug 1352855 Opened 6 years ago Closed 6 years ago

"aidl ... refusing to generate code from aidl file defining parcelable" building Fennec with newer Android SDKs


(Firefox Build System :: Android Studio and Gradle Integration, enhancement)

Not set


(firefox55 fixed)

Tracking Status
firefox55 --- fixed


(Reporter: nalexander, Assigned: jchen)




(1 file)

I see messages like the following with the Android O preview SDK:

aidl E 04-01 20:41:45 83156 15474109 aidl.cpp:580] refusing to generate code from aidl file defining parcelable

Looks like the following changeset is relevant:

We do have 3 AIDL files that are just "package Package; parcelable Class;" -- I don't know why that's necessary or how to achieve it with newer "aidl" compiler versions, but this ticket tracks getting to the bottom of it.
jchen: I think you're the AIDL expert these days.  It's not easy to test with Android O -- see my hacky work in Bug 1352015, most of which should make it to the tree in the next few weeks -- but can you at least explain what the existing AIDL does, and perhaps hazard a guess at what we should do moving forward?  Thanks!
Flags: needinfo?(nchen)
Looks like we should only compile AIDL interfaces with the aidl tool, but not
parcelables. The current build rules don't distinguish between the two, so the
aidl tool complains when it's fed an AIDL file containing a parcelable. This
patch explicitly lists the AIDL interfaces to be built, so that only those
files are sent to the aidl tool.
Attachment #8854070 - Flags: review?(nalexander)
Comment on attachment 8854070 [details] [diff] [review]
Only compile AIDL interfaces (v1)

Review of attachment 8854070 [details] [diff] [review]:

If this works for you and is green on try, it works for me!

There are ways to avoid the duplication, but I don't think they're worth pursuing.

Thanks for jumping on this!
Attachment #8854070 - Flags: review?(nalexander) → review+
Flags: needinfo?(nchen)
Assignee: nobody → nchen
Pushed by
Only compile AIDL interfaces; r=nalexander
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox for Android → Firefox Build System
Target Milestone: Firefox 55 → mozilla55
You need to log in before you can comment on or make changes to this bug.