Hi,
just one short noob question.
If a got a mod that changes some files and another one changing different files but in the same *.apk - i.e framework-res.apk - existing one is completly overwritten by installing second *.apk?
And the only way is to pull existing one from phone and replacing new files inside manually?
Thanks + Greets
idephili
Hi,
i thought answer were quite easier...
I come from windows 6.5 and there it is possible to change single manila files per cab-installation.
On android it looks for me that only the whole apk is substitued, so differents mods replace each other.
Some hints please.
Greets
idephili
Yes, the whole apk is substituted. The only way to "merge" apk's is to flash in recovery instead of installing or pushing. Editing apk's are simple tho. I guess the hardest part would be figuring out what part changes what you are looking for.
Thanks.
Does this mean: creating two update.zip´s with 2 different i.e. systemUI.apk will merge? And is it the point "apply update from sd-card" or just "install zip from sd-card"?
I made some mods for my own but are still not skilled in creating these update.zip-files, using the push method.
For me it´s equal, i know the changements but for publishing them it´s difficult. People want to keep their just made changes. But when it works in this "merging-way" i´ll start skilling..;-)
Greets
idephili
Upon further thinking, I don't believe that merging apk's is possible. Especially for system app simply from the way android views apk's. They are actually zips so they wouldn't be able to transfer info from one over to another without unzipping, merging, zipping, signing, and installing. Didn't mean to get your hopes up but if you would like to try, you would install zip from sd card. Apply zip from sd card assumes you have an update.zip in the root of ur sd. Most mods are pretty easy to spot and manually merge into what you want. I know its a lil frustrating but hey, it'll be worth it right? I'm not an android expert by any means but id like to help u if u need it.
Thank you.
The point ís that i can´t believe that android seems to be in this point more impractical than WindowsMobile 6.5 where can change every single by cab-install.
On android it looks like that u have to merge different mods - referring to the same apk - for your own cause only complete replacement is possible.
Greets
idephili
Yeah, makes me kind of miss Windows Mobile. I can always fire up my HD2 I guess. It kinda sucks that you can't merge, but who knows? Maybe someone will come up with an app to do so in some fashion. Until then, you may use ninjamorph on your phone and edit apks like that. I know it doesn't really solve the problem entirely but if you are away from a computer and need to edit still, that will be your best bet. You can even sign the zip if you have to with signapktic. This was a really good question by the way. I'm surprised no one has come up with a solution as far as I know.
I hope you haven't abandoned this thread and check back. I have a solution to your problem. I had it on my phone the whole time too. Its name is Metamorph. It will allow you to have your apk. And then replace only select files within it without overwriting other changes. I'm so sorry for making you think it wasn't possible. It came to me at lunch that that's the reason metamorph was created in the first place. Hope this helps you.
Hi,
i put a bit of metamorph to pc.
http://forum.xda-developers.com/showthread.php?t=1232479
Greets
idephili
Related
Does anyone know if there is a way to get rid of the menu screen? I hate having to press the menu button twice to get to the home page. Is there a way to get rid of it? I would like to replace it with the slide unlock that is on the market
If you have root you can edit framework.apk and remove /layout/ keyguard_screen_lock.xml I beleive that will do it but make sure you BACK UP YOUR PHONE FIRST
soundwire said:
If you have root you can edit framework.apk and remove /layout/ keyguard_screen_lock.xml I beleive that will do it but make sure you BACK UP YOUR PHONE FIRST
Click to expand...
Click to collapse
So can you give steps on this because many of us dont want to brick our phones.
Like tell me if im right.
1st step:Backup your phone with nandroid backup.
2nd:go to your computer and connect your phone to it via usb.
3rd:turn off your phone and go to the bootloader (camera+end)
4th: press back untill fastboot
Thats were i get confused on how to go further.
Any help
i hooked it up to my computer and deleted that file but i had no luck it still comes up
Step by Step Request
soundwire,
I am only finding either a .jar or .odex. Can you (or, anyone willing) guide me to the apk?
Appreciate it.
Which apk are you looking for??
Mikey1022 said:
Which apk are you looking for??
Click to expand...
Click to collapse
The framework.apk posted above. I would like top edit/delete the keyguard_screen_lock.xml to remove the menu lock.
thanks for the reply.
I think he meant /system/framework/framework-res.apk but wouldn't you need to resign it after deleting that file and wouldn't this just crash the phone?
d00m said:
I think he meant /system/framework/framework-res.apk but wouldn't you need to resign it after deleting that file and wouldn't this just crash the phone?
Click to expand...
Click to collapse
Thanks for that. I'm not sure about it crashing. Can we get anyone to confirm that this deletion was successful?
<EDIT> I resigned the the deleted the keyguard_screen_lock.xml in the framework-res.apk. I resigned the apk and attempted to push the new .apk. My G1 said there was not enough space on the device? -this is where I probably messed it up- I then manually deleted the original .apk and the phone crapped out. It is stucl on my custom boot screen. re-imaging device as I type.
ok, i've been messing with this and i'm quite sure (not 100%, obviously ) that it can't be done by simply removing the XML. I think they will need to be edited.
heres what i got:
if you remove any of these files, it crashes the phone:
keyguard_screen_unlock_landscape.xml
keyguard_screen_unlock_portrait.xml
keyguard_screen_glogin_unlock.xml
if you remove these it does nothing:
keyguard.xml
keyguard_screen_lock.xml
my guess, is that the images (or whatever's controlling how they are displayed) ais located within unlock_landscape.xml and unlock_portrait.xml
i'm gonna experiment a little more, maybe renaming blank files. I'll keep you all posted
EDIT: ok, changing the portrait and lanscape ones to blank files does nothing, it still crashes. i'm almost 100% sure now that these XML's need editing. the phone doesn't like it when you just remove them
You need those xml files in there, so deleting them would cause your phone to crash.
yeah, thats right. i've listed the ones that make your phone crash and which ones don't in my last post. As soon as we find a way of completely editing these XMLs it will unlock so many things. we'll be able to do nearly anything we want.
It seems like xml editing is pretty tough right now:
"Please be aware that in order to make these changes I actually didn't edit any of the raw xmls. I actually hex edited the values in the binary formatted files. I used HXD to do this."
http://forum.xda-developers.com/showthread.php?t=479019
i know, it's a damn shame google encrypted them.
they could at least let us play with some of them, like the layout ones etc.
so much for open source.
XML Edit
It looks like all the xml docs are encrypted. At least for now I am at a standstill.
I know stericson was able to edit some of the xml files. lol. im trying HXD, mmm interesting! =]
you guys are still trying to figure out how to do this? lol, ive accomplished this 2 weeks ago. it aint easy
IRIE4IPIER said:
you guys are still trying to figure out how to do this? lol, ive accomplished this 2 weeks ago. it aint easy
Click to expand...
Click to collapse
Care to explain mate?
IRIE4IPIER said:
you guys are still trying to figure out how to do this? lol, ive accomplished this 2 weeks ago. it aint easy
Click to expand...
Click to collapse
If your talking about disabling the lock screen.....I really doubt you did. It's not just a simple xml edit. It also has to do with the actual java files, which is what controls whether the keylock comes on or not. This may be possible in the future with cupcake, but not with T-mobiles builds.
If you have figured something out though, please share it.
Stericson
you guys are still trying to figure out how to do this? lol, ive accomplished this 2 weeks ago. it aint easy
Click to expand...
Click to collapse
Yeah sure, if that was the case you would be a linux programmer's and linux programmer's likle to help others P) and it looks like you want to keep it all for yourself... So i think that you didn't remove it.
But if you post a manual/tutorial i will believe you (after trying!)
Some ROM chefs post a list of what they have cooked into their roms, some don't. But if I like a certain application/software cooked in and I don't know the name, like for example a battery meter that looks cool, how do I find out what it's called to get a cab of it on my own? This brings me to a point, is there a way to decompile a ROM and get a list of pre-installed/cooked applications, and then from there either find a cab for that particular application or make your own from the ROM you just decompiled? Just wondering, sorry if this has been posted already. Thanks.
Reverse engineering is what we do here in XDA LOL. Anyhow, if you like something, go to explorer and look for file name u think it might be! Its a WAG, but it works, and then go to the link in my sign and search! Good luck.
Yeah well I tried searching for it via explorer, no luck finding it lol. Thanks however. Plus I would want the version number on the app too. Is it possible to decompile a rom and get a list of installed apps? Like the chefs post when they release?
Short answer is yes, as a ROM contains a collection of various packages. Grab any one of the kitchens and give it whirl.
What happens if the rom I want to decompile doesn't have its kitchen released?
Use dumprom, however I think youre best shot is to use the ROM tread and ask there.
kickindrummerkid said:
What happens if the rom I want to decompile doesn't have its kitchen released?
Click to expand...
Click to collapse
No worries, most any kitchen can dump a ROM. ImgfsTools is actually what you seek, but the kitchens paint a bigger picture if you're not already familiar with the cooking process.
Ok so I dumped the rom however, how do I tell out of all the dll's and exe's in "dump_imgfs" folder which one is the battery icon OEM. Also, how do I make a cab out of it?
There isn't going to be a big, flashy "This is the battery monitory" sign.
Your first step would be to guess, based on the names of the files. Something that includes "Bat" and "Mon" is a great candidate. Put your guesses in google and see what you find.
If that doesn't work, you're gonna have to guess based on some other criteria. For example, MS will often set the operating system DLLs to the same date. If that date was preserved when the ROM was cooked, you can eliminate all the OS ones and google the rest.
Now, there's 2 methods that may be a lot easier and get you a faster response:
1. PM/email the author of the ROM and ask. Be polite and thankful, and let them know you appreciate their work.
2. Google "Windows CE Battery Monitor" and look through the results.
I found out by looking up an OEM package for another battery and found out the registry settings for it and went to my registry on my ROM and found out what DLL it pointed to. Then I created a CAB and flashed a new ROM and then installed the CAB and it worked . However, is there any way to edit the DLL and change how it looks? I tried hex editing but that's no luck for a picture.
kickindrummerkid said:
Ok so I dumped the rom however, how do I tell out of all the dll's and exe's in "dump_imgfs" folder which one is the battery icon OEM. Also, how do I make a cab out of it?
Click to expand...
Click to collapse
Now that you have figured out the details. Can you please write step-by-step procedure how new ones in this arena can accomplish this?
Today a friend of mine wanted to install a .apk file on his Android phone and he did not have a clue on how to do this.
So.. After some hours PHP coding here I created an online tool for him (and other newbies).
Basically the users selects the .apk he wants to install, and points his Android camera to the given QR code.
Please have a look at http://bit.ly/e4mLXu , and let me know what you think.
Some things like About and FAQ are still missing, but will be added later this week.
Thank you.
It's a good concept but the site layout is so unnecessary, you don't need all those unneeded images and links in the website that has nothing to do with its function.
armoguy94 said:
It's a good concept but the site layout is so unnecessary, you don't need all those unneeded images and links in the website that has nothing to do with its function.
Click to expand...
Click to collapse
Thank you for your input.. I guess that I did go over the top a bit on the design.... But I was really in my zone when doing the page layout
I'm re-doing it at the moment, and I will try to keep it as KISS as possible.
Once again thank you for your input.
Awesome idea. A friend of mine just got her first Android phone, and is pretty clueless about installing APKs, even though I rooted her phone and walked her through it with Root Explorer. This will make it much simpler for her.
Good idea! Can save some time. It`s already saved in my favorites!
file manager, astro..
this is for first class rookies
Sorry but have I missed something here??
Why on earth would ANYBODY really actually need to use this? (no offence) Has your friend lost the plot?
Why would you go through all this instead of simply installing a file manager liek ASTRO via the market?
a) Copy apk to sd card/phone
b) install ASTRO File Manager from market.
c) Install apk
How difficult is that?
If I have missed something here please explain because I cant think of any scenario where this would be an advantage.
TheATHEiST said:
Sorry but have I missed something here??
Why on earth would ANYBODY really actually need to use this? (no offence) Has your friend lost the plot?
Why would you go through all this instead of simply installing a file manager liek ASTRO via the market?
a) Copy apk to sd card/phone
b) install ASTRO File Manager from market.
c) Install apk
How difficult is that?
If I have missed something here please explain because I cant think of any scenario where this would be an advantage.
Click to expand...
Click to collapse
unless that not everyone knows those steps.
TheATHEiST said:
Sorry but have I missed something here??
Why on earth would ANYBODY really actually need to use this? (no offence) Has your friend lost the plot?
Why would you go through all this instead of simply installing a file manager liek ASTRO via the market?
a) Copy apk to sd card/phone
b) install ASTRO File Manager from market.
c) Install apk
How difficult is that?
If I have missed something here please explain because I cant think of any scenario where this would be an advantage.
Click to expand...
Click to collapse
I have not looked at it yet, but this allows you to do it without connecting the phone to the pc right?
Logical order for your instructions
a) Install ASTRO File Manager from market.
b) Copy apk to sd card/phone
c) Install apk
repeat steps b and c for other .apks
It is a great idea,and nicely done. but i will stay with the other method.
i think its great especially when you forget your usb cable, i never leave home with out but i forgot it, surfing thru xda and didnt feel like opening xda app on phone just download upload install, also, when paw server is down i guess, nice work.
Oops... The site is getting a lot of attention at the moment as it made the XDA's frontpage!
I guess that it's time to start putting together a FAQ for the site.
Things like:
Q: Sorry but have I missed something here??
Why on earth would ANYBODY really actually need to use this? (no offence) Has your friend lost the plot?
Click to expand...
Click to collapse
A: I have not looked at it yet, but this allows you to do it without connecting the phone to the pc
Click to expand...
Click to collapse
and
its great especially when you forget your usb cable.
Click to expand...
Click to collapse
will be in it
Thank you all for the input.
Dblfstr said:
I have not looked at it yet, but this allows you to do it without connecting the phone to the pc right?
Logical order for your instructions
a) Install ASTRO File Manager from market.
b) Copy apk to sd card/phone
c) Install apk
repeat steps b and c for other .apks
Click to expand...
Click to collapse
Err how is that any more "logical" then what I said?
It doesn't make a difference which way around you do a&b so one order isnt any more or less logical then the other.
Your logic fails
deolarte said:
i think its great especially when you forget your usb cable, i never leave home with out but i forgot it, surfing thru xda and didnt feel like opening xda app on phone just download upload install, also, when paw server is down i guess, nice work.
Click to expand...
Click to collapse
Ok so if you where not at home and didnt have a USB cable, you could simply email the apk to yourself or use your friends card reader/card slot/dongle etc. There are a million different ways that are much quicker then this. Not trying to dis OP/site etc just suprised that this has been made front page news?
I love how quickly people try to smash an idea just cause it's not their way...what if the user doesn't have a file manager installed? Left their USB cable? Doesn't want to login to a webmail account for security reasons? There are tons of reasons to use this...I say scale it up, and somehow work out longer time periods for the QR codes (Maybe only for registered users?)...besides, it's always nice to have some functional PHP code that could be used in other projects.
I just used this and it is awesome! thank you thank you thank you!
sorry, but its useless. also harder and takes longer time than just copying to sd.
not everybody gets the idea of Astro/File manager.
this is just another way to get to the goal.
sometimes, even if you try to show them a better way of doing things, they still prefer another way which may seem not logical/takes a longer time.
This is a neat idea. it might not appeal to everybody, but it may help somebody.
I don't get this either. I email the apk to my gmail and there's an option in Gmail on your phone for you to install the app.
Hey, i found great use for this. I downloaded a couple of APKs and needed to quickly dl them, and install them. Too lazy to connect to my computer or email it. So much faster.
One cosmetic issue: when I upload an apk the name changes to a crazy long string. Any way to shorten that? I realize you can't keep the original apk name but a simple numbering system (each new upload +1 id kind of a thing) or whatever else might work better. It's not required, but just my input love it!
niceeee!!! this is exactly what i wanted!
I've been rooted for about 3 months. I like flashing and changing what I can to try and get the most out of my phone. My issue is this. Many of the new roms have the updated launcher which is all good but the new navbar is so big and goofy looking compared to the old one (of course in my opinion) is there a way to make a flashable zip of the old 3 "button", grey navbar? Or do I just have to get used to the new one. Can post pics if I'm being unclear
Just wondering if I'm the only one who feels this way about the newer launchers?
Diesel321 said:
I've been rooted for about 3 months. I like flashing and changing what I can to try and get the most out of my phone. My issue is this. Many of the new roms have the updated launcher which is all good but the new navbar is so big and goofy looking compared to the old one (of course in my opinion) is there a way to make a flashable zip of the old 3 "button", grey navbar? Or do I just have to get used to the new one. Can post pics if I'm being unclear
Click to expand...
Click to collapse
The uot kitchen might have what you need?
thanks i just havent had time to go look and see if i can cook that myself... There wouldnt be some good books i could pick up to learn about doing my own dev work would there? Ive got ideas but not any know how on how to get them past the idea phase Thanks
No luck in the kitchen. i dont know why i dislie it so much but it really does keep me from using alot of roms
You would need to edit the 9.PNG files in framework-res.apk. this can be done with the kitchen and other tools running in the proper linux environment.
Please elaborate. Still somewhat of a noob. Thank you though
I looked all over the kitchens sight for a way to contact the people who run it to ask them but I couldn't find it. BUT I was playing Dead Island at the time so my attention was divided. Zombies with guns. What the hell?
Here is a method that may work with just using the kitchen. First you want to take an old 2.1 Rom and make a working folder in kitchen. Then take whatever Rom you are going to use and create a working folder for that one as well. It will ask if you want to back up your other working folder, select yes. You should end up with 2 working folders. What you could do is take the 9.PNG files out of the sense 2.1 rom. They are in system/framework/framework-res.apk. you will have to extract the folder then open the same folder in the Rom you want to use and extract that as well. See what the names of the matching files are and change the name of the 2.1 files to match the files in the Rom you want to use. Once you do that replace them with the 2.1 files. Compress the folder and rename the .zip to .apk. After that proceed with step 99 to build Rom and flash. If it does not work then you will have to use apk manager, which you will have to study up on because it requires a lot more dependancies than the kitchen does. I recommend installing ubuntu to do all this in. I have never swapped 9.PNG files so I am not sure if it will work. This does work with normal .PNG files though. So it is worth a shot.
WOW that sounds complicated. But being as curios and eager to learn as i am i will give it a shot. I assume you mean installijng ubuntu on my netbook so ill figure that out throug google or something, ill try to find some lit on this subject before trying so i can read up on it Thank you so much for your help. None of my friends that i personally know are into this so the only people that i can talk to about it is online friends. Its always easier having someone next to you versus trying to message and post back and forth, Thanks though your the ****
Just swapping .9 will work as long as the dementions are the same. If the themer changed them you will bootloop.
Here is some advice. Grab your favorite theme zip and unzip it with 7zip. Then unzip the apks and look around to get comfortable with the folder layout and image names. The hit up the apk multitool thread and read up on it. Except for the sdk and Java it is all in there. Everything a Modders needs short of the kitchen.
So by what Zelendel says, I don't need to use the kitchen and ubuntu??? It's really complicated to install and I've o.ly got Windows 7 starter on my netbook.
You guys are awesome though. I really appreciate all the help
http://theunlockr.com/2010/03/26/ho...om-for-android-part-1-setting-up-the-kitchen/
Hey buddie I might to late on this one but just in case lol
HTC Inspire
Thanks man I will use that video. I watched the beginning earlier to check out the ubuntu install. Thanks man
Ok I had to go to HTC.com before posting to double check but I just looked at all the new phones and they all have the navbar that I'm trying to keep around. So my question is where did the one that is in all the newer ROMs cone from? I had initially though HTC changed it AMD that's why we were seeing them on all the Roms we love to flash but if the new phones don't have it why does is end up even on a port from another phone that "completely stock, out of the box" have the smaller navbar that I seem to like so much.
Anywho I finally go ubuntu installed in my Virtual Box so I've got to wait till I get off work today to start playing with it. Hope it works. Thank you everyone for the advice and help. I will let you know how it works out. I'm sure it won't be that easy and ill have more questions though. THANKS
They are from unofficial releases that devs got their hands on.
I may be in over my head a nit but I'm still going to try. In ubuntu every time I shut the machine down instead of saving the current state when I open it again it tells me to upgrade the BIOS. I can't find any info on that particular problem. I'm also having issues with the java install. I install it and it seems to go just fine but when I try to verify it says command not found.
Hi,
I am slowly getting through the basics of apk decompiling, Editing, Debugging & recompiling.
Using tools like Apk Tool, Winrar, Notepad++ Winmerge, Adb .
First time I have touched an android or even done any kind of stuff like this was Early August 2012. So not long at all, Someone might even remember I asked what should I do with my phone after I root it,, haha previous Iphone user.Thank God I changed! I have definately seen the light! Anyways now i have a question to the more experienced Devs. Eg; Lets just say I dont want increasing ringtone How do you pin point where in the apk to start editing i mean there are heaps of files its like looking for a needle in a haystack. One way I came close and pin pointed it is using a previous made mod and then used Winmerge to compare the differences, Problem is the differences in these to Apks is not just the Increasing ringtone, so when I winmerged them it picked out out the other differences Now this deffinatley narrowed it down. I have a feeling it has something to do with the Callnotifier.xml is this the only Xml?
Also Lets just say you dont have another apk to compare it to , how to you find out this stuff..
Another thing is I want to cook up a rom, but the way I want to do it is modding my own rom untill I am happy with it and then creating something like a nandroid without my personal data. then making it flashable for people. What tools is best used for this? I was thinking editing my nandroid and adding it to a cwm flash. but I think there is an easier way.
PS: You can have a look at my signature for my current device i am using
Thanks for you help