REAndroid / APKEditor

Powerful android apk editor - aapt/aapt2 independent
Apache License 2.0
645 stars 95 forks source link

Resource file size doubles when recompiled, AndroidManifest.xml problem #105

Closed Zenlua closed 1 month ago

Zenlua commented 1 month ago

Screenshot_2024-05-08-16-28-15-698_bin mt plus-edit

After adding some text the size has doubled the original file

Second problem

When this file AndroidManifest.xml is not repaired, copy the original file, this will not damage the apk, in apkeditor it will be edited again which will cause some system apk to be corrupted.

REAndroid commented 1 month ago

Can't help without sample

Zenlua commented 1 month ago

sample.zip

File number 2 has been edited

Things added to resources

<public id="0x11089871" type="drawable" name="pop_camera_high_wave" />
<public id="0x11089872" type="drawable" name="pop_camera_high_wave1" />
<public id="0x11089873" type="drawable" name="pop_camera_high_wave2" />
<public id="0x11089874" type="drawable" name="pop_camera_high_wave3" />
<public id="0x11089875" type="drawable" name="pop_camera_high_wave4" />
<public id="0x11089876" type="drawable" name="pop_camera_high_wave5" />
<public id="0x11089877" type="drawable" name="pop_camera_low_wave" />
<public id="0x11089878" type="drawable" name="pop_camera_low_wave1" />
<public id="0x11089879" type="drawable" name="pop_camera_low_wave2" />
<public id="0x1108987a" type="drawable" name="pop_camera_low_wave3" />
<public id="0x1108987b" type="drawable" name="pop_camera_low_wave4" />
<public id="0x1108987c" type="drawable" name="pop_camera_low_wave5" />
<public id="0x110c9877" type="layout" name="up_and_down_animation_view" />
<public id="0x110a987b" type="id" name="highWave" />
<public id="0x110a987c" type="id" name="lowWave" />
REAndroid commented 1 month ago
<public id="0x11080400" type="drawable" name="pop_camera_high_wave" />
<public id="0x11080401" type="drawable" name="pop_camera_high_wave1" />
.
.

TIP: at public.xml the last entry is placed at first row, just to make encoding process fast

Zenlua commented 1 month ago

Thank you very much, because I didn't learn to code, I misunderstood

Zenlua commented 1 month ago

Hopefully the next version will add a flag allowing the original AndroidManifest.xml file to be retained, system apk files will not have broken signatures

REAndroid commented 1 month ago

Hopefully the next version will add a flag allowing the original AndroidManifest.xml file to be retained, system apk files will not have broken signatures

d -t raw

Zenlua commented 1 month ago

Hopefully the next version will add a flag allowing the original AndroidManifest.xml file to be retained, system apk files will not have broken signatures

d -t raw

I use -t xml is it possible to add another flag