[Q] help me for find xml files - Android Q&A, Help & Troubleshooting

where i find the XML files associated with UI sound like charger_connecting or sound camera

Sounds aren't defined by XML files; they typically are in "assets" or "res/raw" folder inside an APK file.

Related

strange extension - qmg

Hi, I decompiled few system apps, and I don't see .png files just .qmg how edit these files?
anyone?
refresh, how can I edit framework etc?

[Help] how to edit the text appears on startup of an apk

How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
rockingjassie said:
How to edit the text appears on startup of an android application. Some application are modified and they show an message like apk is modded by ****. I want to edit that text.
Thanks.
Click to expand...
Click to collapse
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Jaskaranbir Singh said:
Decompile using apk-tool. And edit accordingly.
After decompiling,
If its just simple image, editing PNG inside drawable folders should be sufficient.
If its text, you will have to find string inside res/values folder.
Click to expand...
Click to collapse
Thanks. I will try.
How do you get this to display when loading up the APK please?
Checked res folder and images but no luck yet.

System app structure on Nougat: I'd like to understand

Hello
I come from Kikat to Nougat and I'm a bit lost to transform a user app into a system one.
I understood that there is a folder for each app, and inside it the apk (named sometimes base.apk or an other name) and lib/arm with the libs extracted from the apk.
OK
But some system apk do have libs that are not extracted. This is the case for example with PrebuiltGmsCore. It seems that these apk with libs inside them are not compressed.
So, what is the rule ? Or there are 2 possibilities: libs extracted when they are compressed in the apk, and libs inside the apk when uncompressed ??
Thank you !!

Compile .hwt for EMUI 9 from folder/.zip?

Is there a way for us to create a .hwt after editing the files inside? I've tried using WinRAR to compress a theme folder into a .zip, and changing the extension to .hwt, but the Huawei Themes app does not detect the file. Is there any other way to edit Huwei themes, including individual apps?

Trim.txt on bootanimation [HELP]

Anyone know what is trim.txt on bootanimation?
can anyone explain how to use it and how to make it ?
Because I see the PA (Paranoid Android) rom bootanimation using trim.txt
You can download from here https://github.com/AOSPA/android_vendor_aospa/tree/sapphire/apex/bootanimation/media
in the folder there are also images that do not use a background
Is there anyone here who can explain in detail to me? Or can you make me a video how to use it until it bootanimation ?
The documentation is here: https://android.googlesource.com/platform/frameworks/base/+/master/cmds/bootanimation/FORMAT.md
I tried to get trim.txt to work but even when you specify background in desc.txt it doesn't seem to work, at least on my system.
Although I looked in bootanimation -> libbootanimation.so and it seems to support trim.txt
Edit: So I solved it. None of the files inside the bootanimation.zip may be compressed.
The PNG files obviously don't need it, but if the text files (like trim.txt) are compressed they will be ignored.
Usually desc.txt is so small that it will not be compressed, but while trim.txt is longer (and repetitive) it could be compressed.
Easy (-est) solution if your zipper is stuck? Rename trim.txt -> trim.jpg, compress as usual, then hexedit the zip in two places to turn jpg into txt.
The attached file is an example of trim'ed animation. It's designed for 1072x1448 so smaller screens will not see anytihng.
OTOH, this will work with any size display if you adjust the numbers in trim.txt
(It shows a countup in the lower right corner.)

Categories

Resources