[Q] Parsing Error with .apk - Android Themes

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

Related

help modifing system/framework/framework-res.apk

Hi Everyone
I hope this is the right place for this posting.
I pulled system/framework/framework-res.apk from my phone. I was trying to find the launcher button images that my rom (Aloyuis) uses (turns out the images aren't in this particular apk nore are they in htc.com.resource) Any ways, I didn't like the direction the battery indicator was pointing in on the status bar so I rotated all the images. I then zipped the file back up keeping the name (framework-res.apk) and then pushed it back to phone (adb push <path to file on computer> /system/framework/framework-res.apk)
No problems occurred pushing the file to the phone. I then issued the reboot command from the sdk. The phone rebooted but I could not get past the HTC load screen. Any ideas on why this is and what I am doing wrong?
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
danaff37 said:
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
dana I really want to thank you for your reply to my post. Since you were so awesome to help me out the first time maybe you can help me out a second time. I am not entirely sure what happened. I was able to modify the png files I wanted to and push the package back to the phone. All the changes were present last night. They were also present again this morning when I turned my phone on. Though here is the confusing part. I went to check my phone and something seemed different, after looking at my status bar more closely all the changes I made were gone. The battery indicatore had gone back to its original right facing image with a blue level metter. Do you know what could have caused this? Should I pull the package again to see of the png files reverted back some how (not sure how since I replaced them so not sure where they came from) and if so push the changes back?
BTW if its the sense launcher then the png's u want r in htcresources /Res/mdpi port. Also some r in Rosie app. If Modding the files open up app. Copy and paste Res file out to a place u can work on it. Mod the files. Drag and drop back into app. Either push files back to phone via adb or create a folder. Name it update inside folder create another folder...call it system. In that make another folder. Name it app the put the app or apps in there that u modded. Now back in update folder itself...go find a theme or mod someone else did and open it up with 7zip. Take the Meta file out of it and put it into the update folder. Zip up update folder via 7zip. Next find app on forum via a search called avabox. Dl it. If in a zip take out of zip. Open it. In there is a file called auto sign. Drag the update zip into the auto sign folder. Click on sign. Put new signed zip onto SF card(u can rename file now if u want). Go into recovery and flash the file. Reboot. LOL really it isn't hard
you may have to repush the file, then reboot to recovery and clear dalvik cache. It's reloading images from the cache

[GUIDE] How to make mymode themes

Well I haven't had much time lately to make themes but I figured i got enough time to explain how. This is how i do it in windows 7.
1) First thing i assume that you already have androidsdk on the root of your C drive. Lets go ahead and add it to your system path. If it's not called androidsdk go ahead and change it to that. Now open up your startmenu, right click computer, click properties, then click advanced system settings, in the advance system settings select environment variables. In the second box down look for path select it and choose edit. copy and paste this
Code:
;C:\androidsdk\tools
in there. Click okay.
2) download the jre and jdk from here and install them. Now you need to add them to your system path so copy paste this
Code:
;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\Java\jdk1.6.0_20\bin
to your system path just like you did in the first step.
3) Download apk manager from here. Now run it and when it says clean out all current projects click yes. Now thats ready to go.
4) Download an image editing program. I use gimp. Also if you don't have it 7-zip
your all set to go now so lets start over with the numbers
1) choose a mymode apk and extract it with 7-zip. Open up the res folder select a png that you want to change and change it with the image editor you chose.
2) when you've changed the images you want open up the original apk as an archive with 7zip. Then place the res folder of the modified unzipped apk into the archive and close the archive.
3) Now open up apk manager and place the mymode apk into the place here for signing folder click script batch choose no then type 15.
4) Now put the newly signed apk into your androidsdk/tools folder and close apk manager.
5) open command prompt and type this
Code:
cd\
cd androidsdk/tools
adb install whatever.apk
I'll update this with pics a more thorough guide.
Thanks to everyone that made this easy
reserved for themes to come
Thanks been waiting for a thread like this.
thanks, if i ever get any free-time between jobs and kid and fiancee i will look into this a little more
This is an awesome guide! I messed around with theming mytouch/g1 back when I had one.. so this will be great to make some themes for the slide..
One question though.. let's say you pull the nest theme.. theme it and re install it.. will it just override the nest theme or in the theme listing will it appear as a new theme and still allow you to have the original theme?
Sent from my T-Mobile myTouch 3G Slide using XDA App
ryanolson7 said:
One question though.. let's say you pull the nest theme.. theme it and re install it.. will it just override the nest theme or in the theme listing will it appear as a new theme and still allow you to have the original theme?
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
The nest theme is in the framework, its not an .apk like the rest, its built into the system. The rest of the mymodes themes are .apks and if you edit those they will override the stock "nest" theme. The only way it will show up different in the theme chooser is if you edit the preview snapshot to be a preview of your theme. If you wanna keep the original theme, the nest theme is it and you should edit a different theme .apk...
-BMFC
Sent from my ROOTED MyTouch3G Slide
Okay so I got the next three days off and I already got two mymode themes pretty much done well their done but I just learned of a way to change the name so they are there own standalone apk instead of using another apk name. I've been using puppypride (which by the way isn't puppies those are full grown dogs) and switching out the pngs and you couldn't have the regular puppypride now you can have both
hope you don't mind but I did a mod of your themes and took out the bubbles since some people always create threads about it
Help with following guide
I am a newb at this so please don't attack me if I am doing something wrong. I have been struggling with following the guide posted to make mymode themes. I have successfully got up to the step of signing the apk file. I modified the files in the free_kick.apk. When I try to use APK Manager 4.8 and using the directions given the file just gets erased and nothing happens. My log file just shows errors. Any help with a more detailed directions one what to do in APK manager as I am trying different things and not getting anywhere. I use the option 15 like told in the guide. I can send my modified apk file to anyone if they can get this to work and get it installed that would be appreciated so much. I hope I can figure this out my own but thought I would try get help from the forums. Thanks in advance.
impimms said:
I am a newb at this so please don't attack me if I am doing something wrong. I have been struggling with following the guide posted to make mymode themes. I have successfully got up to the step of signing the apk file. I modified the files in the free_kick.apk. When I try to use APK Manager 4.8 and using the directions given the file just gets erased and nothing happens. My log file just shows errors. Any help with a more detailed directions one what to do in APK manager as I am trying different things and not getting anywhere. I use the option 15 like told in the guide. I can send my modified apk file to anyone if they can get this to work and get it installed that would be appreciated so much. I hope I can figure this out my own but thought I would try get help from the forums. Thanks in advance.
Click to expand...
Click to collapse
Actually the guide needs to be fixed a little because i'm guessing your getting compiling errors when using apk manager? But the best way to do this is to open up the mymode theme (using 7zip) as an archive delete meta-inf folder then replace the pngs with ones of your choice as long as they are the same scale. Then resign. and install
totally lost
I've followed these directions to a T and when it comes to using the apk manager i am getting nothing, please help
You guys that are having trouble with apk manager...its honestly not necessary to use Apk Manager for this. Mymodes themes are system .apks and shouldn't be re-signed. What you need to do is forget about apk manager (for now) and drop the UNsigned .apk into the ROM update you are using, and resign the whole ROM using the autosign tool created by jesusfreke. Or just adbpush the .apk. but don't resign the .apk.
Here's the link for the autosign tool to sign ROM updates. its in the THIRD POST and its auto-sign .zip, NOT the signing.zip in the first post. you can put it anywhere you want and you just drop (a copy of) your ROM update in the autosign folder, rename it update.zip, then run the sign.bat to sign. it will create another file, update-signed.zip. you shouldnt need to wipe when flashing the same ROM over itself, but i cant guarantee this is true for all ROMs.
you can also make an update that will only flash the .apk to /system/app, and nothing else will be changed. basically just make a copy of the update for the ROM youre using, then delete everything but the /system directory from the zip. then go into that /system directory and delete everything but the /app directory, then go into it and delete all the .apks and odex file or whatevers in there. ALL OF IT. when you are finished you should have an update with nothing in it but a /system/app directory. you put your modded .apk in there in /system/app, and thats it for that.
then you must edit the update script and remove MOST of its contents so that it only does what you want it to. THIS IS IMPORTANT! Go here to learn how to create an update script. what youll need is way simpler than the examples, youll want it to look basically like this...
Code:
assert compatible_with("0.2") == "true"
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
this update script will copy ANYTHING in the /system directory to /system on your device, regardless of subdirectories. that means anything in /system will go in /system, anything in /system/app will go to /system/app, etc. but since you only have one .apk in there it wont mess with anything but what you put in there. this way, you have a NOWIPE update for...well, whatever you want to put in it.
so you just drop the new shortened update-script in /META-INF/com/google/android/
and then use the autosign tool to resign your new update then flash away! This also takes less time cus its only flashing one file instead of flashing a whole ROM just to replace that one file...
hope this helps...
-BMFC
Sent from my T-Mobile myTouch 3G Slide using XDA App
So you cannot do this on t-mobile's rom which is 2.1 right now? I'm leery of rooting in case they ever release froyo
Tbrewer80 said:
So you cannot do this on t-mobile's rom which is 2.1 right now? I'm leery of rooting in case they ever release froyo
Click to expand...
Click to collapse
I'm having issues with this as well... After I do the whole signing apk thing, it installs fine, but when I go to MyModes, the preview is black and when I select it, the MyModes app force closes. I don't get it.

Theming an APK

Guys, what´s the best way to edit (change) some images on an apk?
1 - I tried a lot of things, like, put the image files using 7zip or winrar (FAILED, THE APK DOESNT INSTALL, "APLICATION NOT INSTALLED").
2 - extracting the apk, changed the files and signed with "signaptik" (FAILED AGAIN, "APLICATION NOT INSTALLED")
3 - tried using METAMORPH (FAILED, it duplicates the folders, doesnt know why)
4 - tried NINJAMORPH (FAILED, the app doesnt install, same message again ("APLICATION NOT INSTALLED, probally because NINJAMORPH doesnt sign the files? tried to sign with "signaptik", but didnt worked.
The app i´m trying to theme it´s "Espier launcher".
so, any tips?
thanks guys
cya
using apkmanager right now, and worked fine,
thanks guys

[Q] Failing at APK install

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.

[Q] Edit official icon pack apks

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

Categories

Resources