Android Question edit an androidmanifest.xml file in the b4a

hi
I want to edit an xml file from dirasset.

In fact, this xml file is the same androidmanifest.xml file that I got this way:

I converted the apk extension to a zip extension and opened that zip file, then extracted the androidmanifest.xml file from this zip file and put it in my project dirasset.

Untitled.png


As you know, inside this xml file, there are packagename, label, etc. tags.

But this xml file is not a simple and readable xml file, it is encrypted.

Now the following image is the same androidmanifest.xml that is encrypted and I got it from the above method:
Untitled1.png

Now I want to convert this xml file to a regular xml file and convert it. For example, I should convert it to the following xml format (with Basic4 programming) :
Untitled3.png

In fact, I want to edit these two tags that I have specified, using Basic4 programming and libraries in this field (xmlsax), for example:

Convert package: b4a.testapp to package: com.test.myapp and then restore and save this edited xml file to its original (encrypted) state.

If there is a library in this field, introduce it or explain it with Java code.
Even if this is not done with Basic Four, please help with php code so that an xml file is edited from the server by php and then downloaded through the program of this edited xml file.

I have taken the trouble to write this topic, please help completely.
Thanks
 

Attachments

  • Untitled3.png
    Untitled3.png
    43.7 KB · Views: 229
It is not encrypted. It is converted to a binary form during packaging.

You cannot change anything inside the APK. It will break the signature.
Thank you very much.
Please tell me how I can convert this xml file to binary form with b4a programming? Or to binary them?
 
Upvote 0
Top