[Q] edit xml - HTC EVO 3D

I have been trying to edit some xml files in .apks I found hundreds of threads on it but they all say use apks manager or apks tool or apks edit I have tried all of them I can decompile the apks open xmls in hxd and edit but when I recompile they force close and if I edit framework-res.apk com.android.phone force closes can sumone pls help me out. Thanks

oakieville said:
I have been trying to edit some xml files in .apks I found hundreds of threads on it but they all say use apks manager or apks tool or apks edit I have tried all of them I can decompile the apks open xmls in hxd and edit but when I recompile they force close and if I edit framework-res.apk com.android.phone force closes can sumone pls help me out. Thanks
Click to expand...
Click to collapse
use notepad++ to edit the xml after you use apk manger or apk tools to decompile tha apk.

ok havent tried notepad++ will try after editing just recompile,zipalign and sign if it not a system app or do i got that wrong

Decompile original apks, not modified or themed ones.
Sent from my PG86100 using xda premium

Related

[Q] Settings.apk edit?

This is the problem.. On the HTC Rezound Sense Settings.apk you can go into the APN settings and do as you please... But when I switch to the ICS Settings.apk it FC's when you try to get into the APN settings ...
ddms shows this error
01-21 16:27:10.939: E/AndroidRuntime(2386): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.CdmaApnSettings}; have you declared this activity in your AndroidManifest.xml?
Click to expand...
Click to collapse
I figured all i got to do is copy over those declartions from the HTC Settings.apk and copy them over to the ICS Settings.apk.
But the problem I'm having is that I've tried alot of decompile/compile tools and they either don't decode the manifest file or when they do they don't compile backup properly
So can anybody explain how to properly do this? I figured i just need to edit the manifest file then compile the apk and simply copy it over using 7zip along with resources.arsc
Instead of using 7zip, try apk tools. It's kinda like adb in cmd but its a lot more straightforward to compile and decompile apks.
decompile the file wid xml manager ......do the necessary editing then compile it back and delete the resources.arsc from KEEP folder and u r gud to go

[Q] Apk Edit

Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Ok if i remember correctly, you can open the apk with 7zip, modify the files you want to and they should work. I tried this with systemui.apk before and it worked..
NightWatch71 said:
Ok if i remember correctly, you can open the apk with 7zip, modify the files you want to and they should work. I tried this with systemui.apk before and it worked..
Click to expand...
Click to collapse
I can't arrived values files by 7zip. Need Decompile apk by apk manager..
Arnadel said:
Hello ,
I want to install this mod -- > http://forum.xda-developers.com/showthread.php?t=1695202
I decompiled SystemUI.apk and changed bools.xml by Notepad. And I returned script.bat and I selected Compile apk. But error. I tried lots of apk manager but error.
On Notepad , need changed Coding / Character Group ??
If I open apk manager and I saw ADB not found. But apk manager is working , I selected decompile apk , Apk manager decompiled systemUI.apk but I can't compile apk. Thank you..
Click to expand...
Click to collapse
I have had issues in the past using notepad to edit apk files. I suggest that you use notepad++ for editing xml and smali files. It can be easily found with a Google search. Using notepad will probably give you formatting issues.
Sent from my SGH-I777 using xda premium

Replacing png in apk

Hi everyone,
From my understanding, if we want to change the pngs in an apk, we can simply open it with 7zip, then replace the pngs, it's done.
I took EventStreamPluginCallLog.apk from arc s which is updated to ICS.
The apk can be installed in xperia s and it is working fine.
However, when I change the png named icon in res > drawable-hdpi > icon.png
The apk can no longer be installed.
So I go with decompiling and recompiling the apk using apktool, no error shown but I still can't install it
Any idea? Thanks
did you sign it after recompiling?
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
realfelix said:
did you sign it after recompiling?
Click to expand...
Click to collapse
I thought the same even it says no need for system apk, I still do it and get the same problem, can't install
Felimenta97 said:
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
Click to expand...
Click to collapse
I tried everything I know. Apk Multi Tool, simply apktool only, direct replace PNG with 7zip (compression changed to deflate), direct replace with winrar (compression method retained as store), it just doesn't want to install.
I have tried TickyMyAndroid, I am not sure if I done thing correctly but I see no error when recompiling yet can't be installed. My goodness. Time to forget about this stuff

Fail editing SystemUI.apk

Hi, i'm trying to edit SystemUI but the file is corrupted or something, when compile i get unsupported method error, and 7zip can't delete files or add files.
What can i do?
Thank you
potaturrias said:
Hi, i'm trying to edit SystemUI but the file is corrupted or something, when compile i get unsupported method error, and 7zip can't delete files or add files.
What can i do?
Thank you
Click to expand...
Click to collapse
Use apktool to decompile and recompile. Using something like 7zip wont decompile to apk properly.
Heres a guide on how to use apktool http://forum.xda-developers.com/showthread.php?t=1891686
chromium96 said:
Use apktool to decompile and recompile. Using something like 7zip wont decompile to apk properly.
Heres a guide on how to use apktool http://forum.xda-developers.com/showthread.php?t=1891686
Click to expand...
Click to collapse
I always use apktool. When apktool fails 7zip fails too, maybe the apk was a bad compression or something.
I'll try with files from stock rom instead modified rom.
Thank you

[Q] Help: Cant descompile correctly with apk manager

I cant decompile properly using apk manager, when trying to decompile a launcher, i only get smalis files, but none xml like androidmanifiest or all drawables files. And then i cant edit anything, its rare because decompile other files like systemui and others i get the the res and smali files. And then i dont understand whats happening?
Im using Apk Manager 4.9
Sorry for my english.

Categories

Resources