Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #427: network down, IP packets delivered via UPS


comp / comp.mobile.android / binary AndroidManifest.xml, resource ID to string. How to ?

SubjectAuthor
* binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
+* Re: binary AndroidManifest.xml, resource ID to string. How to ?Newyana2
|`- Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
`* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andy Burns
 `* Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
  `* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andy Burns
   +* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andrew
   |`* Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
   | `* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andrew
   |  `* Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
   |   `* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andy Burns
   |    `- Re: binary AndroidManifest.xml, resource ID to string. How to ?Andrew
   `* Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser
    `* Re: binary AndroidManifest.xml, resource ID to string. How to ?Andy Burns
     `- Re: binary AndroidManifest.xml, resource ID to string. How to ?R.Wieser

1
Subject: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 10:31 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 12:31:19 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v3mqem$d089$1@dont-email.me>
Injection-Date: Tue, 04 Jun 2024 12:31:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="69888d8a1e0e924b6bea3aa0b5aa4fef";
logging-data="426249"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8mF3vKMvW1n/Ur6pEPy/40XmeDKiS8V0eB98YKMhNUQ=="
Cancel-Lock: sha1:JjaI3I7EmD5A+/5WT1bfzGvwAjA=
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

Hello all,

I wanted to convert a binary "AndroidManifest.xml" to text again, and
curently have a readable result.

One thing I've not been able to figure out though. In a sourcefile I see
lines like

android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:theme="@style/Translucent">

, but all that the binary XML file contains is resource-IDs

icon = @:7F0E0000
label = @:7F110065
roundIcon = @:7F0E0000
theme = @:7F120157

, and I have no idea how to translate the latter to the former. :-\

I've done my dues and spend time searching the Web, but have not been able
to find any kind of clue to how to do it (the information I found stopped
short of explaining it).

If anyone knows how to do it or has an URL to a website explaining it I
would be obliged.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Newyana2
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 13:07 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: newyana@invalid.nospam (Newyana2)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 09:07:49 -0400
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <v3n3iq$egib$1@dont-email.me>
References: <v3mqem$d089$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 04 Jun 2024 15:07:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e36f5d8c046d1fa67ebfb9ed3e357e45";
logging-data="475723"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8ETgZOt1yV9zsOcR8MK2Bz2qhXOJduiY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.3.1
Cancel-Lock: sha1:450V349yTPStxKs3MXCzX0RE+Go=
In-Reply-To: <v3mqem$d089$1@dont-email.me>
Content-Language: en-US
View all headers

On 6/4/2024 6:31 AM, R.Wieser wrote:
> Hello all,
>
> I wanted to convert a binary "AndroidManifest.xml" to text again, and
> curently have a readable result.
>
> One thing I've not been able to figure out though. In a sourcefile I see
> lines like
>
> android:icon="@mipmap/ic_launcher"
> android:label="@string/app_name"
> android:roundIcon="@mipmap/ic_launcher"
> android:theme="@style/Translucent">
>
> , but all that the binary XML file contains is resource-IDs
>
> icon = @:7F0E0000
> label = @:7F110065
> roundIcon = @:7F0E0000
> theme = @:7F120157
>
> , and I have no idea how to translate the latter to the former. :-\
>
> I've done my dues and spend time searching the Web, but have not been able
> to find any kind of clue to how to do it (the information I found stopped
> short of explaining it).
>
> If anyone knows how to do it or has an URL to a website explaining it I
> would be obliged.
>
Just a wild guess, but in PE files there's generally
a resource table to store icons. The table is located
through a system of numeric pointers. You read the
file header, locate the resource table pointer, go to
that offset, walk the table pointers, etc. It's all about
pointers to offsets.

So one thing you could check is whether some rendering
of 7F0E0000 as an offset in the file points to either icon
bytes, an icon path string, or another pointer. But you'd
also need to figure out 7F0E0000. Is it a little endian long
integer? Is it two short integers? Does the 7F mean
something else? It looks to me like those numbers may
have sections and not just represent whole numbers.

This kind of thing can be monstrously difficult because
most people have no reason to care about such things.
So you have to track down some kind of industry spec
doc. It's like the PE file structure. There are docs that explain
it, but for the most part it's not relevant to people using
computers. And without the decoder guide it's just gibberish
bytes.

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andy Burns
Newsgroups: comp.mobile.android
Date: Tue, 4 Jun 2024 13:15 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 14:15:17 +0100
Lines: 10
Message-ID: <lc8ib6FbcqgU2@mid.individual.net>
References: <v3mqem$d089$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net zoUXWGi541D1vCey5rgiLwwEa9Hh3GlqnwqxUGhO4tL1F4WP0L
Cancel-Lock: sha1:QxX/xJxWQjaO02UP8F9/WQHso/8= sha256:TJqBHE3V/mran9sX3Ly2zAaD8+vKsH1ydMZmQYEaTkM=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <v3mqem$d089$1@dont-email.me>
View all headers

R.Wieser wrote:

> I wanted to convert a binary "AndroidManifest.xml" to text again,

I'd have expected a .xml file to be text (albeit with lots of
elemenrs/attributes) andpossibly to have been extracted from a binary
..apk file which is a renamed .zip archive ... are the resource objects
within a folder of the .apk file?

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 13:43 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 15:43:25 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <v3n6fa$f0sd$1@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net>
Injection-Date: Tue, 04 Jun 2024 15:56:58 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="69888d8a1e0e924b6bea3aa0b5aa4fef";
logging-data="492429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LBnBYrr/HO+g0AYgNfJEA0scO/3XMQJZ5b32b7DlJcA=="
Cancel-Lock: sha1:yG2xBCcEBYFlbLU+vAHFXX1Wb/I=
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

Andy,

> I'd have expected a .xml file to be text (albeit with lots of
> elemenrs/attributes) and possibly to have been extracted from a binary
> .apk file

I did extract it from an APK, but the file itself is a binary

> are the resource objects within a folder of the .apk file?

I wish I knew ...

I inspected two other files (next to the Manifest one), but neither had the
sought-for strings.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 13:54 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 15:54:41 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <v3n6fa$f0sd$2@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <v3n3iq$egib$1@dont-email.me>
Injection-Date: Tue, 04 Jun 2024 15:56:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="69888d8a1e0e924b6bea3aa0b5aa4fef";
logging-data="492429"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+uxrNf98je/5JgKksCDACtG/+2e5wFS9JpfwJ2+OU2eg=="
Cancel-Lock: sha1:+0JqS61n2ehrm6F03cspewdUuQY=
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
View all headers

Newyana,

> Just a wild guess, but in PE files there's generally
> a resource table to store icons. The table is located
> through a system of numeric pointers. You read the
> file header, locate the resource table pointer, go to
> that offset, walk the table pointers, etc. It's all about
> pointers to offsets.

The sought-for strings are not present in the binary AndroidManifest.xml
file.

> This kind of thing can be monstrously difficult because
> most people have no reason to care about such things.

I cannot other than agree with you, as I've not been able to find even a
/hint/ to how that it works.

> So you have to track down some kind of industry spec doc.

:-) I already spend a few hours googeling. I have not found anything. :-(

.... Which is why I posted here.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andy Burns
Newsgroups: comp.mobile.android
Date: Tue, 4 Jun 2024 14:08 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 15:08:50 +0100
Lines: 13
Message-ID: <lc8lfjFa7phU4@mid.individual.net>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net>
<v3n6fa$f0sd$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net PNJu+NMp2t5w4O5ea80ykQ0/AeqPRw6etvZSwqI4AR6X3gOzCK
Cancel-Lock: sha1:JUC+y1qPZUZvGw3MkrKgYcyEEeI= sha256:uNtm76dDyk8DrMhHROaIlBMEp8UY6DiuuSz9jxhu80E=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <v3n6fa$f0sd$1@dont-email.me>
View all headers

R.Wieser wrote:

> I did extract it from an APK, but the file itself is a binary
>
>> are the resource objects within a folder of the .apk file?
>
> I wish I knew ...

Must be some while since I poked about inside .apk files, maybe this
itool s already what you used to extract, if not then it might help?

<https://apktool.org>

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Tue, 4 Jun 2024 17:04 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.szaf.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: andrew@spam.net (Andrew)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 17:04:10 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 4 Jun 2024 17:04:10 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="40271"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:Yj7g5vdODK3i2YWrZOEgWYW6NYQ= sha256:ebtGqze3FNY/G2lLws0DcUXQbqPr+siO/qJQic3OzGM=
sha1:/hejgGNkflbAL+bF/w16Hh/0MHQ= sha256:mjaLITbCwrkl8dXejyjDltt358RjR/m/dpLUmpQ3q2w=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

Andy Burns wrote on Tue, 4 Jun 2024 15:08:50 +0100 :

>> I did extract it from an APK, but the file itself is a binary
>>
>>> are the resource objects within a folder of the .apk file?
>>
>> I wish I knew ...
>
> Must be some while since I poked about inside .apk files, maybe this
> itool s already what you used to extract, if not then it might help?

This has been covered in this newsgroup many times in the past, so this is
just a summary which contains the links to the sources that are useful.

Here's a cut and paste from a past discussion, but there are many.
<https://adbappcontrol.com/en/>
<https://qwertycube.com/apk-editor-studio/>
<https://apktool.org/docs/install/>
<https://clonemy.app/>

The advantage of cloning is you can make changes & re-install the app.
<https://xdaforums.com/t/tool-clonemyapp-android-apk-cloner.4513777/>

However, to help out Rudy Wieser even further, I would suggest an Android
tool that can extract the XML file as a text file, which, as Andy knows,
would be the Muntashirakon App Manager we spoke about just recently on the
Android newsgroup over here (which is the best app manager available).
<https://comp.mobile.android.narkive.com/UFyeKiqM/muntashirakon-app-manager-is-imho-by-far-the-best-app-manager-on-android>

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 18:34 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 20:34:18 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <v3nnuk$hu7g$1@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net>
Injection-Date: Tue, 04 Jun 2024 20:55:16 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="69888d8a1e0e924b6bea3aa0b5aa4fef";
logging-data="588016"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JJvlJUK/DxIO2mgkr5ipWlB1Y4qUSg8I+VCAFU/74+Q=="
Cancel-Lock: sha1:+86jNeY7U7cnyKYhDETWpEB3Lok=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Response
View all headers

Andy,

> Must be some while since I poked about inside .apk files, maybe this itool
> s already what you used to extract, if not then it might help?
>
> <https://apktool.org>

Thanks. But how would it ? Yes, it would (would it?) show the strings
I'm after, but still not giving any indication to /how/ it got them. And
that, the method, is what I'm after.

Besides, I'm afraid that that tool won't be able to run on my current
machine.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Tue, 4 Jun 2024 18:54 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 20:54:43 +0200
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <v3nnuk$hu7g$2@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net> <v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com>
Injection-Date: Tue, 04 Jun 2024 20:55:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="69888d8a1e0e924b6bea3aa0b5aa4fef";
logging-data="588016"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/r1Tsy5fKAe0bTWrwISL6cakCRO4xwBO7WAQtJHrxp8w=="
Cancel-Lock: sha1:xxew0mllixmPzd5bP4v2A48ksGg=
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

Andrew,

> Here's a cut and paste from a past discussion, but there are many.
[snip]

Those seem to be tools. I'm not looking for tools.

If I would have been than I would have just picked one of the several I saw
mentioned during my searching, instead of doing the work myself.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andy Burns
Newsgroups: comp.mobile.android
Date: Tue, 4 Jun 2024 19:06 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Tue, 4 Jun 2024 20:06:24 +0100
Lines: 19
Message-ID: <lc96tjFe6seU1@mid.individual.net>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net>
<v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net>
<v3nnuk$hu7g$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net gHl8twVnXkW41caYHxJggwwahBX2XjOvS9/96GJ5zbh03Oyjcm
Cancel-Lock: sha1:JHDgi/Q/MJJAzrEyYmqVyc20GIg= sha256:nsPuAdAwdZXa08iJU4AvGXyrxoX8Tp2TNbirLdkbSuA=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <v3nnuk$hu7g$1@dont-email.me>
View all headers

R.Wieser wrote:

>> <https://apktool.org>
>
> But how would it ? Yes, it would (would it?) show the strings
> I'm after, but still not giving any indication to /how/ it got them. And
> that, the method, is what I'm after.

It looked like it would even extract the numbered resource files, but I
didn't run it.

I also saw various code libraries for reading compressed apks, search
AXML or ABX

> Besides, I'm afraid that that tool won't be able to run on my current
> machine.

No JVM?

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Wed, 5 Jun 2024 04:26 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: andrew@spam.net (Andrew)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Wed, 5 Jun 2024 04:26:26 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v3opdh$2uq5$1@nnrp.usenet.blueworldhosting.com>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net> <v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com> <v3nnuk$hu7g$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 5 Jun 2024 04:26:26 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="97093"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:Q8kCaVvmw+JmFkR+GXKSI0lXuX4= sha256:wPX0ZTsRsZtBAeG5IpOHa1YhQb3586qx0VME0bjwtIc=
sha1:xGp+L1biVsK/R0PBTfxF3eWYmKo= sha256:t1V3yDXFs7HvSOasABpwFs0SnI6ASvMeJ7NcA5Bp9Ko=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

R.Wieser wrote on Tue, 4 Jun 2024 20:54:43 +0200 :

> Those seem to be tools. I'm not looking for tools.

I was keying off this sentence in the original post:
"I wanted to convert a binary "AndroidManifest.xml" to text again,
and curently have a readable result."

While I am aware that original post was likely written in haste, my
assumption was that you want a TEXT manifest for a given APK.

The Muntashirakon App Manager easily accomplishes that, as you can see I
did myself in this thread on the XDA Developers web site.
https://xdaforums.com/t/tutorial-illustrated-mostly-privacy-based-one-tap-shortcuts-so-that-you-can-access-in-a-single-tap-any-buried-android-setting-or-app-activity.4625951/

If that's NOT what you wanted, please ignore my post as I was only trying
to help you out using the information that I knew, but I had trouble
understanding your original post (probably because it was written in
haste).

In summary, the Muntashirakon App Manager spits out a TEXT manifest file
for any app which is already installed on your phone; if that's not what
you needed, then I misunderstood the original post & I apologize for that.

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 5 Jun 2024 08:10 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Wed, 5 Jun 2024 10:10:12 +0200
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <v3p6j7$sv5q$1@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net> <v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com> <v3nnuk$hu7g$2@dont-email.me> <v3opdh$2uq5$1@nnrp.usenet.blueworldhosting.com>
Injection-Date: Wed, 05 Jun 2024 10:11:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2c31e0f0a14c5f4a591f629d3c24b005";
logging-data="949434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yDgW2nL+1higLP3UXy4Jm9H4aMHJ/uBK32PhYmgfDYQ=="
Cancel-Lock: sha1:tcdWwy2qS1mifFunu1NuQdBvgtk=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-RFC2646: Format=Flowed; Original
View all headers

Andrew,

>> Those seem to be tools. I'm not looking for tools.
>
> I was keying off this sentence in the original post:
> "I wanted to convert a binary "AndroidManifest.xml" to text again,
> and curently have a readable result."
>
> While I am aware that original post was likely written in haste,

Not really.

> my assumption was that you want a TEXT manifest for a given
> APK.

And as you quoted yourself, I have it : "and curently have a readable
result"

.... which I needed so I could take a quick peek at the permissions an app
requires. The resource-ID to string is just an (though not unwelcome)
extra.

So, what would I need those tools for ?

> The [snip app] accomplishes that,

You're mentioning the name of that app *way* to many times, making it look
as if you are trying to push it (sales pitch). Which that makes me
uncomfortable and causes the opposite of what you are trying to effect.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: R.Wieser
Newsgroups: comp.mobile.android
Organization: A noiseless patient Spider
Date: Wed, 5 Jun 2024 08:11 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Wed, 5 Jun 2024 10:11:06 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <v3p6j7$sv5q$2@dont-email.me>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net> <v3nnuk$hu7g$1@dont-email.me> <lc96tjFe6seU1@mid.individual.net>
Injection-Date: Wed, 05 Jun 2024 10:11:20 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2c31e0f0a14c5f4a591f629d3c24b005";
logging-data="949434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190bq9O/953bqgLIWTboV/chLDBbr4b6u++7uXjCM5Y2g=="
Cancel-Lock: sha1:rJhj1MWaiiKPCfcycmcKMfPHZ+4=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
View all headers

Andy,

> It looked like it would even extract the numbered resource files, but I
> didn't run it.

Extracting from an APK is easy enough (7-zip "for teh win"). What would
those numbered resource files supposed to look like ? I can see a few
files with digits in them (v??, ??dp), but nothing that I would call a
numbered file.

> I also saw various code libraries for reading compressed apks, search AXML
> or ABX

"compressed apks" as in zipped-up ? Or something special ?

But when I need stuff like that I'll probably try myself first. Yep, I'm
that kind of hobbyist. :-)

Although my current proggie only shows resource-IDs and not strings (file
paths?), it already does what I wanted from it : extract the requested
permissions for my viewing.

And by {deity}, some, on the outside simple apps, want a shitload of them.
A PDF organizer seems to need 44 permissions.

>> Besides, I'm afraid that that tool won't be able to run on my current
>> machine.
>
> No JVM?

One of things, yes.

Regards,
Rudy Wieser

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andy Burns
Newsgroups: comp.mobile.android
Date: Wed, 5 Jun 2024 08:18 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Wed, 5 Jun 2024 09:18:21 +0100
Lines: 6
Message-ID: <lcalaeFlkbvU1@mid.individual.net>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net>
<v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net>
<v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com>
<v3nnuk$hu7g$2@dont-email.me>
<v3opdh$2uq5$1@nnrp.usenet.blueworldhosting.com>
<v3p6j7$sv5q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net V1F+8zCE0lZFIyBYWRYb1APQZPcWd1gz3DBboxM1FPEITF0IJo
Cancel-Lock: sha1:Htadzm3BIEF74ynNJFYiinfIVpo= sha256:ZQOgLGU2R/UEJLcoISSe5A6zNdQzzeATg7b3FKxtAWI=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <v3p6j7$sv5q$1@dont-email.me>
View all headers

R.Wieser wrote:

> You're mentioning the name of that appway to many times, making it look
> as if you are trying to push it

Especially considering it fails to run after installation ...

Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
From: Andrew
Newsgroups: comp.mobile.android
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Date: Wed, 5 Jun 2024 09:53 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: andrew@spam.net (Andrew)
Newsgroups: comp.mobile.android
Subject: Re: binary AndroidManifest.xml, resource ID to string. How to ?
Date: Wed, 5 Jun 2024 09:53:28 -0000 (UTC)
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <v3pcin$n5e$1@nnrp.usenet.blueworldhosting.com>
References: <v3mqem$d089$1@dont-email.me> <lc8ib6FbcqgU2@mid.individual.net> <v3n6fa$f0sd$1@dont-email.me> <lc8lfjFa7phU4@mid.individual.net> <v3nhe9$17af$1@nnrp.usenet.blueworldhosting.com> <v3nnuk$hu7g$2@dont-email.me> <v3opdh$2uq5$1@nnrp.usenet.blueworldhosting.com> <v3p6j7$sv5q$1@dont-email.me> <lcalaeFlkbvU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 5 Jun 2024 09:53:28 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="23726"; mail-complaints-to="usenet@blueworldhosting.com"
Cancel-Lock: sha1:POKCLeMn9MZ3aAQjtSpOWH2De9I= sha256:b0Lq6NCV8u5llDs5a4l5C4v61cw96zKius3R+yDGMV8=
sha1:Lw6uuquTB7GU5VzJjJ33OEQP68k= sha256:3keGK+KltCgF7l2x5+VYAtuvtZ93aoHItWjH0XOAPoE=
X-Newsreader: PiaoHong.Usenet.Client.Free:1.65
View all headers

Andy Burns wrote on Wed, 5 Jun 2024 09:18:21 +0100 :

>> You're mentioning the name of that appway to many times, making it look
>> as if you are trying to push it
>
> Especially considering it fails to run after installation ...

It works fine for me, as you know, although I know it doesn't work for you.
Nobody should complain they don't have a text manifest file if they use it.

BTW, I've been using that App Manager for hours to open up map activities....
because I'm using it to set up backcountry mapping...

This is just a cut and paste from my ad hoc log...

I just used the Muntashirakon App Manager to get GPS coordinates onto
a map of my own choosing, where without the app manager, it won't work (AFAIK).

Here's what I did...

1. Install FOSS My Location freeware (which can read Apple's Wi-Fi AP db!).
<https://github.com/mirfatif/MyLocation>
<https://f-droid.org/packages/com.mirfatif.mylocation/>
<https://apt.izzysoft.de/fdroid/index/apk/com.mirfatif.mylocation>
While free, it's not free on the Google Play Store though.
<https://play.google.com/store/apps/details?id=com.mirfatif.mylocation.ps>

2. Run the "My Location" app to get a location latitude & longitude fix.

3. Press the GUI "Map" button to choose a map to display the location.
Note that, for me, the available map choices were only these:
All-In-One
App Manager (Interceptor)
Earth
Fake GPS
Geo Tracker
GPSLogger II
GPSTest
Magic Earth

4. Instead of a map, choose the Muntashirakon App Manager Interceptor.
And press "Send edited Intent" in that App Manager Interceptor GUI.
Note that, for me, the available map choices were now more maps!
Maps (Google Maps)
App Manager (Interceptor)
Fake GPS
OSMAnd~
All-In-One
Organic Maps
Earth
Geo Tracker
GPSLogger II
GPSTest

Notably "Magic Earth" did not appear in this open-with listing.

5. But look more deeply at the intents and you'll see more maps apps
in the Muntashirakon App Manager "Matching Activities" section.
But not Avenza or Paper Maps.

6. In the App Manager GUI, press the "adb" button which will copy
to your clipboard the following adb command.
cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.81444578572309,-122.47816992062673?q=37.81444578572309,-122.47816992062673 -f 50331648

7. In Windows, run that adb command (with the phone connected to adb).
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.81444578572309,-122.47816992062673?q=37.81444578572309,-122.47816992062673 -f 50331648

Note that, for me, the available map choices were now even more maps!
Open with...
All-In-One
App Manager (Interceptor)
Earth
Geo Tracker
GPSLogger II
GPSTest
Magic Earth
Fake GPS

Notably missing were Maps (Google Maps), OSMAnd~ & Organic Maps.

8. So let's add them... (these are all experiments below)...
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d sms:
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d content:
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d content://com.android.contacts/data/4169
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW -d geo:37.8,-122.23?z=23
C:\> adb shell cmd activity start --user 0 -a android.intent.action.VIEW DataUri: geo:37.8,-122.23?z=23
C:\> adb shell am start -n com.Avenza/.OpenFileWithAvenzaMapsActivity
C:\> adb shell am start -n com.Avenza/.RootView.RootViewActivity
C:\> adb shell am start -n ca.abbro.androidmap/.LaunchActivity

1

rocksolid light 0.9.8
clearnet tor