Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Except for 75% of the women, everyone in the whole world wants to have sex. -- Ellyn Mustard


computers / comp.mobile.android / Re: What are "config", "xhdpi" & split" extracted Android apk files?

SubjectAuthor
* What are "config", "xhdpi" & split" extracted Android apk files?Enrico Papaloma
+* Re: What are "config", "xhdpi" & split" extracted Android apk files?Andy Burns
|`- Re: What are "config", "xhdpi" & split" extracted Android apk files?Enrico Papaloma
`- Re: What are "config", "xhdpi" & split" extracted Android apk files?VanguardLH

1
What are "config", "xhdpi" & split" extracted Android apk files?

<uosufc$2gsc$1@news.gegeweb.eu>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49358&group=comp.mobile.android#49358

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!news.gegeweb.eu!gegeweb.org!.POSTED.public-nat-06.vpngate.v4.open.ad.jp!not-for-mail
From: enr...@papaloma.net (Enrico Papaloma)
Newsgroups: comp.mobile.android
Subject: What are "config", "xhdpi" & split" extracted Android apk files?
Date: Thu, 25 Jan 2024 07:18:19 +0100
Organization: Gegeweb News Server
Message-ID: <uosufc$2gsc$1@news.gegeweb.eu>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 25 Jan 2024 06:18:21 -0000 (UTC)
Injection-Info: news.gegeweb.eu; posting-account="adibella@usenet.local"; posting-host="public-nat-06.vpngate.v4.open.ad.jp:219.100.37.238";
logging-data="82828"; mail-complaints-to="abuse@gegeweb.eu"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1?Content-Type: text/plain; charset=UTF-8; format=flowed
Cancel-Lock: sha256:LZTFqYdrmApUZk5LpEF95TLw51l6Sx2rWzgxcCrQ9xU=
Content-Language: en-US
 by: Enrico Papaloma - Thu, 25 Jan 2024 06:18 UTC

What are "config", "xhdpi" & split" extracted Android apk files?
dir /b com.pas.webcam
base.apk
split_config.arm64_v8a.apk
split_config.en.apk
split_config.xhdpi.apk

com.pas.webcam.apk
config.arm64_v8a.apk
config.en.apk
config.xhdpi.apk

The question is really all about how to make good decisions by
understanding why those 4 different files are important to Android.

But here's how to reproduce exactly what I'm seeing, on your device.

1. I picked up three old Android phones & an even older Android 4.4.2
tablet from the local thrift shop for about fifteen bucks total.

2. They're going to be set up as Wi-Fi critter cams in three windows with
the old tablet used as a LAN "monitor" displaying what the phones see.

3. They're all reset to factory defaults and I don't want to add
anything except the one crittercam application called "IP Webcam".
https://play.google.com/store/apps/details?id=com.pas.webcam

4. I tested this "IP Webcam" app on my modern phone and while I'd like
an app without ads, it won't matter much on these dedicated devices
because nobody is going to be looking at the phone - just the tablet.

5. To get "IP Webcam" off my phone was as simple as extracting with this.
https://f-droid.org/packages/com.apk.editor/

6. That way I can save the installer onto the Windows drive so that
I can copy the APK over to each of the phones over USB or the LAN.

7. Four files were extracted by that specific APK utility application.
https://apk-editor.github.io/general/
Internal storage\Android\data\com.apk.editor\files\com.pas.webcam\

Name: base.apk
Size: 4373916 bytes (4271 KiB)
SHA256: 109317D240D38748EB681C396105A96C266E1A927CF44B42FD24AABAA9379B28
Name: split_config.arm64_v8a.apk
Size: 28792920 bytes (27 MiB)
SHA256: 7C37EFF55966BD72626150ED07F02B2B964C29890DF060B8DEFBC4714A913644
Name: split_config.en.apk
Size: 49561 bytes (48 KiB)
SHA256: 3A32EDBC414AE28580596A948959FFC06F99D9232ED1645BF4A7201B0E58A185
Name: split_config.xhdpi.apk
Size: 135440 bytes (132 KiB)
SHA256: 11ABBAC9D7CFCEDD186FFB60797BB799363CB9EAF2176AF512505F12FD2FA5E4

8. Another APK extractor created the same files, slightly different names.
https://play.google.com/store/search?q=apk%20extractor&c=apps

Name: com.pas.webcam.apk
Size: 4373916 bytes (4271 KiB)
SHA256: 109317D240D38748EB681C396105A96C266E1A927CF44B42FD24AABAA9379B28
Name: config.arm64_v8a.apk
Size: 28792920 bytes (27 MiB)
SHA256: 7C37EFF55966BD72626150ED07F02B2B964C29890DF060B8DEFBC4714A913644
Name: config.en.apk
Size: 49561 bytes (48 KiB)
SHA256: 3A32EDBC414AE28580596A948959FFC06F99D9232ED1645BF4A7201B0E58A185
Name: config.xhdpi.apk
Size: 135440 bytes (132 KiB)
SHA256: 11ABBAC9D7CFCEDD186FFB60797BB799363CB9EAF2176AF512505F12FD2FA5E4

My question is what is the difference between those four file types?

I realize there are many ways to install apps on Android from Windows,
so this question has nothing to do with all of those ways to install apps.

I am also aware there are a variety of Android versions involved, where
one phone is on Android 7, another 8.1.0 & the third on Android 10.

They're all different makes & models too, so I'm aware that different
architectures are involved, so I will run the adb getprop command.
adb -d shell getprop ro.product.cpu.abi
Which for my daily drive phone, shows as "arm64-v8a" but the old phones
being used for the window cameras are likely different architectures.

The reason for asking the question is simply that I'd like to be
quite sure exactly how to make the decision of which APK to use.

I could just guess which will work for sure but just seeing those
strangely named "config", "xhdpi", split" file names begs the question.

The question here is only what information can you impart that helps me
decide which APK to install as each of the phones will be on older Android.

Specifically, how do these four files differ & which should I use when?
base.apk & com.pas.webcam.apk
split_config.arm64_v8a.apk & config.arm64_v8a.apk
split_config.en.apk & config.en.apk
split_config.xhdpi.apk & config.xhdpi.apk

The question is really all about how to make good decisions by
understanding why those 4 different files are important to Android.

Re: What are "config", "xhdpi" & split" extracted Android apk files?

<l1ei8iFsgfoU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49360&group=comp.mobile.android#49360

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: What are "config", "xhdpi" & split" extracted Android apk files?
Date: Thu, 25 Jan 2024 07:51:45 +0000
Lines: 9
Message-ID: <l1ei8iFsgfoU1@mid.individual.net>
References: <uosufc$2gsc$1@news.gegeweb.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net W/IMepQyhYXgOnu+1FA19wu4ssbPD1pzYrRBAaUrA3jm/fM4Om
Cancel-Lock: sha1:oqt+cW8Ax/xWxbewu8Kv0ajYdx4= sha256:bgvzjDTC0fLjUjOvxH/KmN6GLXorgh4G8LbfytYHHr0=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <uosufc$2gsc$1@news.gegeweb.eu>
 by: Andy Burns - Thu, 25 Jan 2024 07:51 UTC

Enrico Papaloma wrote:

> What are "config", "xhdpi" & split" extracted Android apk files?

I think it's a way that combinations of screen density, user language
and cpu type end up generating multiple smaller APKs, rather than one
huge APK containing lots of stuff that a given user doesn't require.

<https://developer.android.com/build/configure-apk-splits>

Re: What are "config", "xhdpi" & split" extracted Android apk files?

<er2n9om7wmyw.dlg@v.nguard.lh>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49366&group=comp.mobile.android#49366

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!rocksolid2!news.neodome.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: V...@nguard.LH (VanguardLH)
Newsgroups: comp.mobile.android
Subject: Re: What are "config", "xhdpi" & split" extracted Android apk files?
Date: Thu, 25 Jan 2024 10:25:57 -0600
Organization: Usenet Elder
Lines: 40
Sender: V@nguard.LH
Message-ID: <er2n9om7wmyw.dlg@v.nguard.lh>
References: <uosufc$2gsc$1@news.gegeweb.eu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 7r01qzFlHs8Y1SVA1wNHRQ3yfcUPw+ZebLnIGPd5msZRzbi2fi
Keywords: VanguardLH,VLH
Cancel-Lock: sha1:OTgwZNbFrFTa1Huk49KPeOEboxI= sha256:/hK2btNCN58G0DuD/84Z1Qzr3JWh9TDNnay94OP9IDw=
User-Agent: 40tude_Dialog/2.0.15.41
 by: VanguardLH - Thu, 25 Jan 2024 16:25 UTC

Enrico Papaloma <enrico@papaloma.net> wrote:

> What are "config", "xhdpi" & split" extracted Android apk files?
> dir /b com.pas.webcam
> base.apk
> split_config.arm64_v8a.apk
> split_config.en.apk
> split_config.xhdpi.apk
>
> com.pas.webcam.apk
> config.arm64_v8a.apk
> config.en.apk
> config.xhdpi.apk

https://developer.android.com/training/multiscreen/screendensities
See Table 1.

http://richmediacs.com/rmcs_apps/Android_XML_Concepts/screen_size_and_density.html
Shops an image comparing the different screen densities.

The ARM64 files are for your particular hardware architecture
(processor); see https://en.wikipedia.org/wiki/AArch64. The Android OS
is available on more than smartphones. X86 and X86-64 architectures are
also supported.

The "en" files are probably the language resources for English. The app
might install other language resource files based on the language
configured for your phone.

You copying the APK files onto Windows and then onto the smartphones
seems more work than just installing the app on each phone, and which
can be done concurrently on all phones.

"Lite version is supported with unobtrusive ads. It's fully functional,
but lacks Tasker integration, customizable user interface (only editor
is present) and has a watermark over recorded videos."

I take it you won't be saving any videos of what your phones see, or
watermarks atop the videos are okay despite they might obliterate see
some portion of the video.

Re: What are "config", "xhdpi" & split" extracted Android apk files?

<uou2vl$i6$1@news.gegeweb.eu>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=49367&group=comp.mobile.android#49367

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!.POSTED.public-nat-06.vpngate.v4.open.ad.jp!not-for-mail
From: enr...@papaloma.net (Enrico Papaloma)
Newsgroups: comp.mobile.android
Subject: Re: What are "config", "xhdpi" & split" extracted Android apk files?
Date: Thu, 25 Jan 2024 17:41:24 +0100
Organization: Gegeweb News Server
Message-ID: <uou2vl$i6$1@news.gegeweb.eu>
References: <uosufc$2gsc$1@news.gegeweb.eu> <l1ei8iFsgfoU1@mid.individual.net>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 25 Jan 2024 16:41:27 -0000 (UTC)
Injection-Info: news.gegeweb.eu; posting-account="adibella@usenet.local"; posting-host="public-nat-06.vpngate.v4.open.ad.jp:219.100.37.238";
logging-data="582"; mail-complaints-to="abuse@gegeweb.eu"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1?Content-Type: text/plain; charset=UTF-8; format=flowed
Cancel-Lock: sha256:SWmvYEwWAx2L/4Yos6ODi07cfSsPzsD2+vdsCYoViGo=
Content-Language: en-US
 by: Enrico Papaloma - Thu, 25 Jan 2024 16:41 UTC

On 1/25/2024 1:51 AM, Andy Burns wrote:
> I think it's a way that combinations of screen density, user language
> and cpu type end up generating multiple smaller APKs, rather than one
> huge APK containing lots of stuff that a given user doesn't require.
>
> <https://developer.android.com/build/configure-apk-splits>

Thank you for that reference and assumption of what these are.
base.apk & com.pas.webcam.apk
split_config.arm64_v8a.apk & config.arm64_v8a.apk
split_config.en.apk & config.en.apk
split_config.xhdpi.apk & config.xhdpi.apk

The reference you cited seems to indicate, as you suggested, there are
build switches for ldpi, mdpi, hdpi, xhdpi, xxhdpi & xxxhdpi, which seem to
specify the densities to generate APKs at (low, medium, high, extra high).

I'm lucky that the largest file (config.arm64_v8a.apk) probably contains
all the architectures, but in the future, we probably won't be so lucky.

With these smaller APKs, porting apps to other devices will be harder for
the user who saves all their installers because the reference you provided
says they'll only have *one architecture* on the device in the future.

That's bad. In terms of re-using the app installer anyway.

If the user wants to copy their saved APK onto another device, a specific
"split APK" might not work if that other device has a different screen
density, user language, or CPU architecture from the initial device.

Here's what it says at that reference about that problem set which Google
presents as a "good thing" but it's really a "bad thing" for each user.

https://developer.android.com/build/configure-apk-splits
Caution: Since August 2021, all new apps must be published as App Bundles.
If you publish your app to Google Play, build and upload an Android App
Bundle. When you do so, Google Play automatically generates and serves
optimized APKs for each user's device configuration, so they download only
the code and resources they need to run your app. Publishing multiple APKs
is useful if you are publishing to a store that doesn't support the AAB
format. In that case, you must build, sign, and manage each APK yourself.

Although it is better to build a single APK to support all your target
devices whenever possible, that might result in a very large APK due to
files supporting multiple screen densities or Application Binary Interfaces
(ABIs). One way to reduce the size of your APK is to create multiple APKs
that contain files for specific screen densities or ABIs.

Gradle can create separate APKs that contain only code and resources
specific to each density or ABI. This page describes how to configure your
build to generate multiple APKs. If you need to create different versions
of your app that are not based on screen density or ABI, use build variants
instead.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor