I was editing the .png files of my widget locker to change the bottom lock bar and for some reason i cant get it to reinstall.
-Im using a mac and a Droid2 (unrooted) and these are the steps i took
-got the .apk off my phone
-changed the extension to .zip and unzipped it
-changed the png files that i wanted to change
-compressed it back into a zip file
-changed the extension to .apk, and then attached my phone and stuck it in the downloads folder
-Then when i try to install it it just says 'Parsing error'
Ive installed other modded apps from my downloads folder that i have downloaded from xda, but at the same time im new to modify android but im not toooo bad around a computer. So any help about what i may have skipped or what went wrong would be appreciated.
Thanks
I think you have to sign the new apk as well, before installing. Search the forum here how to do so...
Sent from my rooted X10i using tapatalk
yeah i figured out home to sign it using a tut from here and terminal, but it still didnt work, thanks for the help, ill just keep messing around with it and see if i can get it to work
Was wondering if anyone could tell me the process after editing drawables with apk multi tool, The tutorial hicks was kind enough to write is for apk manager and some of the options aree different. i know this is a noob question but gotta start some where.
After i extracted apk's from a zip and edited drawables I then opened multi tool
and zipped apk's, Then I copied these files over old ones in original zip placed in my sd card and tried to flash, i got cant install zip (bad) from cwm.
anyone care to explain what im doing wrong, or what the process is after editing, im not sure what signing and zip aligning are just yet.
Forgot to compile
ok got it decompiled, edited drawables, then recompiled (didn't sign because it said not to for framework-res.apk)
this created unsignedframework-res.apk in modding folder, deleted original framework in modding folder renamed unsigned to just framework-res.apk and pushed to /system/framework through adb, then reboot phone and get stuck in boot loop crash or phone boots then evrything fc's
Any ideas on what im doin wrong? feel like im so close to getting it to work just doing something stupid in the process of re installing.
HighLimit said:
no matter what i do apk multitool says it cannot find adb
installed latest toolset with sdk manager and AVD,
Set path Variable
this is where i have it installed, same place as android sdk
C:\Users\me\Desktop\LGTheme\android-sdk\platform-tools
edit***
got it by manually pushig system apk's but now everything force closes... wondering if i messed up signing it somehow or if it has to do with it being a custom rom?
Click to expand...
Click to collapse
You shouldn't have to sign any of the apk's, i was actually told that signing them could prevent them from working. I also had problems pushing apks to my phone using adb, i kept getting force closes, even after rebooting. I could only get it to work by creating a flashable zip and flashing files through cwm. Why that worked over pushing it to the phone, I have no idea, but oh well.
Another thing to try is wiping cache and dalvik, until I tried that, a lot of the changes I made ro the systemui.apk didn't actually change anything.
Sent from my VS910 4G using xda premium
Tried that, must be doing something wrong, i extract edit.and rezip then i have unsigned and signed in modding folder, not sure what im doing wrong from there, same thing if i decompile compile not sure what the diff is
What apk's are you Modding, and what do you have in your zip file?
Sent from my VS910 4G using xda premium
I just skimmed over this but immediately I see your adding a new file to the zip that will cause a bad zip all you need to do is create a new zip and copy all of the files in the bad zip and make the new one including your Meta inf folder and all that everything needs transferred.
Also with editing images it is not necessary to decompile extracting is fine to extract and zip after you changed what you wanted the only reason to decompile is to be able to read XML and it also let's you see boarders in the .9 images. Have you tried just pushing the apk to the phone instead of making a zip?
Sent from my Galaxy Nexus using xda premium
Yes i pushed through adb because multi tool cant find adb no matter what directory i install them in etc, but when i pushed it worked, changed the image but then everything fc'd after reboot. Thanks for the info i will try justneed to figure out how to make a new zip
HighLimit said:
Yes i pushed through adb because multi tool cant find adb no matter what directory i install them in etc, but when i pushed it worked, changed the image but then everything fc'd after reboot. Thanks for the info i will try justneed to figure out how to make a new zip
Click to expand...
Click to collapse
On windows right click and select the create new compressed file or something like that or maybe you made the folder then right clicked and compress it I can't remember I haven't been on windows in awhile.
Sent from my Galaxy Nexus using xda premium
I got it but fo i need to extrct n zip a Pl ll cause i tried moving the new apk into new zip then copied all the others into it and it still wont load
HighLimit said:
I got it but fo i need to extrct n zip a Pl ll cause i tried moving the new apk into new zip then copied all the others into it and it still wont load
Click to expand...
Click to collapse
first of all.. huh?
Nvrmind i was doing it wrong as usual got it figured out thanks for trying to help guys.
Hi im a total no0b to android dev and such..
what im trying to do is unzip an icon pack apk, change some pngs (keeping the same file name) and rezipping or pasting the files/folder back into the original zip and renaming file back to apk
i transfer it to my phone, i can see the apk has the official logo but when i try to install it on my phone (oneplus one) it just says "X App not installed."
can someone help me? or show me where i can find a tut to use some of the existing apk/or make my own?
i appreciate any help
romyrider said:
Hi im a total no0b to android dev and such..
what im trying to do is unzip an icon pack apk, change some pngs (keeping the same file name) and rezipping or pasting the files/folder back into the original zip and renaming file back to apk
i transfer it to my phone, i can see the apk has the official logo but when i try to install it on my phone (oneplus one) it just says "X App not installed."
can someone help me? or show me where i can find a tut to use some of the existing apk/or make my own?
i appreciate any help
Click to expand...
Click to collapse
You won't be able to do that with a signed apk. It might be possible to replace pngs without unzipping. Try opening the apk as an archive and dragging in the new pngs.
upndwn4par said:
You won't be able to do that with a signed apk. It might be possible to replace pngs without unzipping. Try opening the apk as an archive and dragging in the new pngs.
Click to expand...
Click to collapse
already did that and it didnt work aswell...
i dont have the time neither the knowledge to make and icon pack myself from scratch
I am probably posting this in the wrong section and this question has probably been asked and answered 1000 times but I have been trying for weeks and reading tutorials with no luck. So I'm going to ask..
I am trying to modify a CM12 theme for my own use and I am having issues. I have decompiled the apk with apktool and modified the png images to my liking. I then recomplile the apk using apktool and try to resign the apk. The apk installs but then fails to be recognized by the theme chooser and gets deleted automatically.
I have tried deleting the meta_inf folder and resigning but nothing seems to work.
Anyone feel like helping me out?
bwar85 said:
I am probably posting this in the wrong section and this question has probably been asked and answered 1000 times but I have been trying for weeks and reading tutorials with no luck. So I'm going to ask..
I am trying to modify a CM12 theme for my own use and I am having issues. I have decompiled the apk with apktool and modified the png images to my liking. I then recomplile the apk using apktool and try to resign the apk. The apk installs but then fails to be recognized by the theme chooser and gets deleted automatically.
I have tried deleting the meta_inf folder and resigning but nothing seems to work.
Anyone feel like helping me out?
Click to expand...
Click to collapse
I believe my error is in editing the png images in the apk. I am using good ole photoshop 7 to invert the colors then save. Shouldn't that work?
Here is the modded apk with a log cat
Well solved my problem. Messed up the .9.pngs. I was unware you must keep the black lines unchanged, I inadvertantly inverted them to white. Now everything works great. Guess you admins could delete this thread if you want. Sorry to have wasted the space.
I try to change some icons and pictures of theme I use.
inside the apk theme there's a few apks. What I did was open the apk as zip, and extract some apks I wanted to change their icons and pictures. I succeeded to change what I wanted with APK Editor. Next I tried to replace the "old" apks with the "new" I changed. so I opened APK Editor- "select an apk file"- choose the apk theme-"simple edit"- "assets"- the pencil of the apk I wanted to replace, and when I choose the "new" apk I changed, nothing happen. the apk didn't replace. I tried to do so with "select apk from app" but it won't find the theme.
I tried to copy past the "new" apk but I get an error when I try to install it.
Am I missing something? how can I change icons and picturrs in a theme?
No one knows?
Edit: nevermind I figure out how to do it
Sent from my SM-N950F using XDA Labs
soilentgreen said:
Edit: nevermind I figure out how to do it
Click to expand...
Click to collapse
Well, I guess we can all wonder what you did!
https://xkcd.com/979/