[Q] Apk png change problem - Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl

I used vts for changing png of an apk (specifically that GS3 launcher made by Sam-rom)
after changing the png's i recompile it and then i install it manually with system app replacer , the install is successfull but the launcher is not installed.
I can manually install all the other versions but i have problems installing after i changed the pngs.

Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original

marcussmith2626 said:
Decompile the apk with apk tool
Change pngs
Recompile
Sign apk
Put in flashable zip & flash with system mounted
Png must be the same file name & dimensions of the original
Click to expand...
Click to collapse
I used vts for compiling/decompiling which uses apktool.
I signed the apk with mh mahadi's tool
Still the same prob

try this > decompile it then compile it back > sign it > zip it > flash it > It works without mods? Yes, then you're playing with .9.png images wrongly | No, there is a problem in apktool!

Related

[Q] is this the right step to modify framework-res.apk ?

hi...
i want to change standard notification bar from my htc desire running sense froyo rom with mod battery percentage, animation icons for data, signal, etc.
what i did is :
1. pull framework-res.apk from /system/framework folder
2. extract framework-res.apk using apktool
3. extract & overwrite with icons colour pack v4 downloaded from http://forum.xda-developers.com/showthread.php?t=722993 into drawable & drawable-hdpi folder from extracted framework apk folder.
4. bundled modified framework-res.apk using apktool
5. sign framework-res.apk
6. in recovery mode, adb push framework-res.apk to /system/framework. before doing that, i mount /system first..
7. reboot
what i found, everytime i choose network setting or wireless setting it crashed with error message process.com.android.settings has stopped unexpectedly.
why this error occured ? any other step that i did is wrong ?
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Why not use the UOT kitchen?
Sent from my HTC Desire using XDA App
HTCinToronto said:
I just pull from adb, my PC has 7zip installed so can see drill into the compressed file, drag replace the altered images, back out of the compressed file to commit, push via adb, reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
This is what I do, basically. I make the battery mod with UOT, and when the flashable zip is ready I extract the framework-res to some folder and just replace couple of images, then I'll put the modified framework-res back to the UOT-file and flash it. Works every time.
EDIT: I don't extract the files within framework-res.zip, only the .zip itself so I can open it via WinRar and replace the files. It isn't probably even needed, you could probably replace the needed files when browsing the UOT file with winrar/whatever etc etc. Haven't tried.
Can this same method be applied to anything that can be found in the framework ?

[Q] How to sign Blur system apps

i have modificate blurphone.apk ( just a png file) and after this steps (Link) I have no network and fc.
Somebody can help me? I have read a lot of things about how to sign and modificate apps but nothing yet about Motorola blur system apps.
Thx
If you are modifying simple png picture then you can do it without decompiling and compiling, just extract with 7zip and modify them and install it back via flashable zip.
Did you tried to put the apk without signing ?
NITRO_100 said:
Did you tried to put the apk without signing ?
Click to expand...
Click to collapse
Yes. I have try to put png via 7zip then put apk in system, change permissions and move it in system/app.
i don't now how to do via flashable zip.
i will try again tomorrow.
Thx
resolved
NITRO_100 said:
If you are modifying simple png picture then you can do it without decompiling and compiling, just extract with 7zip and modify them and install it back via flashable zip.
Did you tried to put the apk without signing ?
Click to expand...
Click to collapse
I think i haven't followed well your steps, so i have tried again and now it's run.
Thx very much.

[Q] Problem with recompiling an apk

May be this not a right place to ask, but I have this problem with recompiling an apk with apkmanager.
I'm trying to mod settings.apk and had done few modding in strings.xml. Since I have edited an xml I delete the resources.arsc file from the keep folder and also sign it after recombiling. But when I install the apk in my phone it never opens and force closes.
I've tried again by not deleting that file but that time no modifications where shown, And the next time, I didn't sign it and tried again to install the unsigned apk. But that too fails.
Anyone know why this happn?
Before modifying the APKManager, make sure the framework-res.apk and twframework.apk been set, and don't forget to delete the file resource.arsc and the file you have modified, then enter at apkmanager windows, don't forget to rename Unsigned to system file that you modified

[Q] stat-bar

How to change status bar icons on stock odex?
There is no bad choises. Only bad results.
deodex the rom first
then root phone
extract systemui.apk to your pc
change apk extention to .zip
use winrar to extract zip
goto res/drawable-ldpi
change any png not ending in .9 keeping all file names the same
rezip everything
change extention back to apk (you will have to enable show file extentions in folder options in control panel)
put in flashable zip
flash in cwm with system mounted
iv explained this a few times now so search next time
also this method is only for changing png images - do not use it to edit anything else like xml files - you will need to decompile with apktool for that

help me how to install

my rom is stock odex i used universal deodexer and deodexed my.system/app and system/framework folders in my pc . now my question.how can i install that app and framework folders to my phone ??(i tried replace with root explorer but it does not .(how can i make thats to a flashable zip?
but
my problem is not that . i can make a flashable zip . its working fine but after i flashed old .odex files doesnt delete. how can i add it to meta inf for when flashing delete app and replace new app and same for framework
You just need to put in a simple delete line into the update script
for example
Code:
delete("/system/app/Vending.apk");
will delete the Vending.apk from the folder system/app
remember if you are manually pushing files with a root browser you need root permissions and you need to set the correct file permissions - for most apps in the app folder it will be rw-r-r
thnx
thanx i learned if i want to delete folde i will use delete_recursive
help
look .
delete(system app systemui.odex
this is working succesfully but after i flashed my zip system ui is lost . it doesnt show . i looked system app its deodexed permissions is rw--r-r its true but doesnt show . what's can i do ?
denizarca said:
look .
delete(system app systemui.odex
this is working succesfully but after i flashed my zip system ui is lost . it doesnt show . i looked system app its deodexed permissions is rw--r-r its true but doesnt show . what's can i do ?
Click to expand...
Click to collapse
most likely if the status bar just doesn't show but does not display a force closed message its because the SystemUI.apk is not correctly signed
as long as the file name is correct and it is correctly compiled with no errors the only thing left is the signing
You can sign an apk easily with zipsigner (playstore)
just copy the apk to any folder on your sd card
start zip signer
select your apk as the input
select the name you want to call it for the output (make it different from the input - you can change the name later)
select platform key as the key you wish to sign (this is for system apps for user apps use a test key)
sign the apk
once done the apk will be outputted as a zip file
change the name of this zip to the name of your apk and don't forget to change the .zip extension back to .apk
put in a flashable and flash in cwm with system mounted
you can check any errors with the SystemUI.apk by doing a logcat via adb as the phone is starting up
By searching the logcat for SystemUI you will be able to see any errors in it and why its not starting - eg Signature mismatch skipping loading

Categories

Resources