Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12416

Re: Help with Bundletool update

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Hans-Christoph Steiner <hans@at.or.at>
Newsgroups linux.debian.maint.java
Subject Re: Help with Bundletool update
Date Thu, 21 Jul 2022 21:00:01 +0200
Message-ID <ELJyV-cT91-39@gated-at.bofh.it> (permalink)
References <ELh9D-cCbk-1@gated-at.bofh.it> <ELkqR-cEkT-3@gated-at.bofh.it> <ELo1r-cGgk-1@gated-at.bofh.it>
X-Original-To Nkwuda Sunday Cletus <sonnietech@disroot.org>, debian-java@lists.debian.org
X-Mailbox-Line From debian-java-request@lists.debian.org Thu Jul 21 18:51:20 2022
Old-Return-Path <hans@at.or.at>
X-Amavis-Spam-Status No, score=-3.688 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLACK=1.7, URIBL_DBL_SPAM=2.5] autolearn=no autolearn_force=no
X-Policyd-Weight NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .at. - helo: .out1-smtp.messagingengine. - helo-domain: .messagingengine.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5
X-Me-Sender <xms:-4DZYoTiQEMXWgxNTjk6edDxyBAaGCXA0l0Z7uGh3F3ddivmdf03fA> <xme:-4DZYlwmyX83n0UmD4z4gmvhtDrZCJy4J7DYynd_NmEcmq9JYh9ClaBNn44-h9pCh 4Dd2Ew_0rG94g>
X-Me-Received <xmr:-4DZYl1VTD0riqStigev4V7BjivtlZZyTYRbAbPbAPQjNIKutzCD8FvnMJcX>
X-Me-Proxy-Cause gggruggvucftvghtrhhoucdtuddrgedvfedrvddttddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdluddtmdenucfjughrpefkff ggvfevfhfhohfujggtgfesthekredttddtjeenucfhrhhomhepjfgrnhhsqdevhhhrihhs thhophhhucfuthgvihhnvghruceohhgrnhhssegrthdrohhrrdgrtheqnecuggftrfgrth htvghrnhepvdfgtefgjeffueegfffftefghfekveevgfethedulefhfeeiieefteegkeej uddunecuffhomhgrihhnpehgohhoghhlvghsohhurhgtvgdrtghomhdprghnughrohhiug drtghomhdpvggrshihphgrshhtvghsrdhtkhdpghhithhhuhgsrdgtohhmnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhgrnhhssegrthdroh hrrdgrth
X-Me-Proxy <xmx:-4DZYsBS0UpoHu5MgpJEUMwjbF7OAEuVXKxyvKfRxOeAevTdozYpwQ> <xmx:-4DZYhiAvPAmJBBx2-8IJ81S-5rhcS2Az9d1fDp7WYn3P_0yO6_f7g> <xmx:-4DZYoq2XkJ9Q91kx92NnlwuMsVpxRFn0Ye0a3OA-U1w4mum32s8Tg> <xmx:-4DZYhb2d_iw_Oss7qWUEwgmYSbNk1lkG15FyCgEg5X6I3xSUs4gGQ>
Feedback-ID i264a41e9:Fastmail
MIME-Version 1.0
Content-Language en-US
Organization @||@
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-java@lists.debian.org> archive/latest/23054
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/9f67d9e5-01ef-9663-a6b9-cb1bfcb24286@at.or.at
Approved robomod@news.nic.it
Lines 87
Sender robomod@news.nic.it
X-Original-Cc android-tools-devel@alioth-lists.debian.net
X-Original-Date Thu, 21 Jul 2022 09:38:12 -0700
X-Original-Message-ID <9f67d9e5-01ef-9663-a6b9-cb1bfcb24286@at.or.at>
X-Original-References <bb4bdbbb-4690-a006-705a-f3a1bff9656d@disroot.org> <a233c42d-e0a1-96b5-c38c-6d7fa9ccd4c5@at.or.at> <a9cfd45c-db9a-a72c-2828-e03b6f650dfe@disroot.org>
Xref csiph.com linux.debian.maint.java:12416

Show key headers only | View raw


I think updating android-platform-tools-base could be a big project. And aapt2 
Java code isn't packaged AFAIK.  It looks like there are just two self-contained 
protobuf files needed from aapt2, so I would just include those in the package 
via a patch.

https://android.googlesource.com/platform/frameworks/base/+/master/tools/aapt2/Resources.proto
https://android.googlesource.com/platform/frameworks/base/+/master/tools/aapt2/Configuration.proto

I think it would be worth spending up to a day trying to just patch in the files 
needed from aapt2.  If that fails, then we'll have to look into updating 
android-platform-tools-base.

One thing to look out for is that these aapt2 files should come from the same 
tag/release as what bundletool wants.  But maybe it doesn't matter so much, 
since it seems that these files don't change much with each release.  For 
example, see the blame view:

https://android.googlesource.com/platform/frameworks/base/+blame/master/tools/aapt2/Configuration.proto
https://android.googlesource.com/platform/frameworks/base/+blame/master/tools/aapt2/Resources.proto


.hc

Nkwuda Sunday Cletus:
> Thanks Hc!
> 
> I was able to figure out, through help from Markus , they were actually classes 
> generated by the protobuf compiler.
> 
> So the error was resolved after I ran protoc command before jh_build.
> 
> Please I have another challenge of not being able to figure out where aapt and 
> android-libaapt are installed in Debian. I've searched through /usr/share/java 
> after installing them but can't find any matching jars. The only things that I 
> found that came close are:
> 
> android-libaapt: /usr/lib/x86_64-linux-gnu/android/libaapt.so
> android-libaapt: /usr/lib/x86_64-linux-gnu/android/libaapt.so.0
> 
> After adding these to CLASSPATH, I still get "error: package 
> com.android.aapt.Resources does not exist"
> 
> Regards,
> 
> Sonnie
> 
> On 7/20/22 17:07, Hans-Christoph Steiner wrote:
>>
>> Those are mysterious dependencies.  I could only find references to them in 
>> https://cs.android.com.  Maybe they are auto-generated by the bundletool build 
>> system? com.android.bundle.Config seems like that kind of thing, like 
>> BuildConfig in Android projects.
>>
>> .hc
>>
>> Nkwuda Sunday Cletus:
>>> Hi there,
>>>
>>> I 'm stuck on this error: https://www.easypastes.tk/pastes/GSzMEx , while 
>>> trying to package bundletool (https://github.com/google/bundletool ) for Debian.
>>>
>>> Please I need help on where to find these packages in Debian:
>>>
>>> com.android.bundle.CodeTransparencyOuterClass,
>>>
>>> com.android.bundle.Config,
>>>
>>> com.android.bundle.SdkBundleConfigProto,
>>>
>>> com.android.bundle.SdkModulesConfigOuterClass,
>>>
>>> com.android.bundle.Targeting,
>>>
>>> com.android.bundle.Commands,
>>>
>>> com.android.aapt.Resources,
>>>
>>> Inspecting bundletool on Vscode, I see all imports from com.android.bundle* 
>>> are underlined red as not resolved, though `gradle build` workflow still works
>>>
>>> Regards,
>>>
>>> Sonnie
>>>
>>>
>>

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Help with Bundletool update Nkwuda Sunday Cletus <sonnietech@disroot.org> - 2022-07-20 14:40 +0200
  Re: Help with Bundletool update Hans-Christoph Steiner <hans@at.or.at> - 2022-07-20 18:10 +0200
    Re: Help with Bundletool update Nkwuda Sunday Cletus <sonnietech@disroot.org> - 2022-07-20 22:00 +0200
      Re: Help with Bundletool update Hans-Christoph Steiner <hans@at.or.at> - 2022-07-21 21:00 +0200
        Re: Help with Bundletool update Nkwuda Sunday Cletus <sonnietech@disroot.org> - 2022-07-21 23:40 +0200
  Re: Help with Bundletool update Markus Koschany <apo@debian.org> - 2022-07-20 18:20 +0200
    Re: Help with Bundletool update Nkwuda Sunday Cletus <sonnietech@disroot.org> - 2022-07-20 21:10 +0200
      Re: Help with Bundletool update Markus Koschany <apo@debian.org> - 2022-07-20 21:30 +0200
        Re: Help with Bundletool update Nkwuda Sunday Cletus <sonnietech@disroot.org> - 2022-07-20 22:00 +0200

csiph-web