Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
bart1996 said:
Hey guys,
I was searching for a tool to edit an apk file and i found Apk Tool on xda but i think it's not
that much easy to work with this program. (for a n00b, like me.. )
I managed to open and edit te file with winRAR,
but is this program also capable of proper compiling the app again, ready to use?
I tried it and it worked well i think, but is this possible with any app or other kinds of changes?
If this is stupid or something, please tell me. I am not very experienced in these kinds of things.. (neither in english, sorry.. )
Somebody any ideas?
Thanks in advance!
Click to expand...
Click to collapse
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Diablo67 said:
It all depends on what you edit,obviously you didnt make a fatal change,so it must have been small,no its not possible to edit anything else as far as the manifest and xml files.You'll get a parsing error.
Click to expand...
Click to collapse
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
bart1996 said:
Okay, that's true i only changed those kinds of files and it wasn't a problem yet.
I changed somethings in an demo version of an app and now it recognizes it as the full version so winRAR can be pretty usefull for apk edit if you keep things simple like this..
Click to expand...
Click to collapse
It only really works for editing images.
Admitting this is a nice way to get banned
Wayne Tech Nexus
Related
MAJOR NOOB ALERT!!!
Hello. Working on the theory that less is more, I'll get on with the questions...
1. I am trying to edit the .bash_profile file and I can't do it. Please help!
2. The reason I am trying to use the kitchen is to work on the excellent SFM 1.1 ROM for the wildfire. Can the kitchen be used this way, or can I try to port the SFM 1.2 from the Salsa?
I asked my mum why I was so special, but she didn't know...
builtonRock said:
MAJOR NOOB ALERT!!!
Hello. Working on the theory that less is more, I'll get on with the questions...
1. I am trying to edit the .bash_profile file and I can't do it. Please help!
2. The reason I am trying to use the kitchen is to work on the excellent SFM 1.1 ROM for the wildfire. Can the kitchen be used this way, or can I try to port the SFM 1.2 from the Salsa?
I asked my mum why I was so special, but she didn't know...
Click to expand...
Click to collapse
Read post #3 of the kitchen thread.
Sent from my HTC Hero making C.R.E.A.M.
I have read the third post of the kitchen
I can FIND the file, but when I open it in Wordpad and add the line on the end, cygwin still can't find my JAVA.
Sorry if this is a really noob mistake...
I did find the porting answer though
Thanks!!
Sent from my HTC Wildfire using XDA App
I have made a VERY noob mistake...
I have just realised that editing a file that is used in a LINEX enviroment in Wordpad isn't very clever - no wonder it's not working
Could somebody tell me how I can remove the Wordpad file association and how I need to edit it so that Cygwin can recognise it?
Sorry for my stupidity...
builtonRock said:
I have made a VERY noob mistake...
I have just realised that editing a file that is used in a LINEX enviroment in Wordpad isn't very clever - no wonder it's not working
Could somebody tell me how I can remove the Wordpad file association and how I need to edit it so that Cygwin can recognise it?
Sorry for my stupidity...
Click to expand...
Click to collapse
Just right click and click "Open With..."
Sent from my Ultima Weapon© using XDA App
I have installed gvim, edited the bash_profile file, and tried to run the kitchen, but then it says the clear command is not found.
I know this is covered in the FAQ's, but I have been over the installation, and am 99% sure I have done nothing wrong in installing cygwin. I followed the readme and the picture guide, and am getting very frustrated...
I only want to get the kitchen working...
(after that I'll go and hassle the guys in the wildfire forum!)
Just delete your entire cygwin dir and re install and all should be good.
By the sounds of it you did exactly the same as I did. Mines all sorted now after a re install.
Sent from my MB860 using XDA App
I was tinkering and editing an apk, and i managed to compile it and install it fine and it works and is suited to me. So i was wondering ( not too good with xmls ), is it possible to edit the manifest file to rename the apk so I can install multiple copies ( i.e. have the original unmodified one and the modified one at the same time ). I need this for testing purposes. Which lines do i need to edit exactly so the phone doesn't give me the "installing this application will replace the current..." warning, so I can multiple instances of it?
Hope I'm being clear on what exactly I need, any help is appreciated. Cheers
Edit : Just found a post from this guy on a simillar thread that i couldn't find using search
levenum said:
It is not a simple matter.
APKs are managed by package name, not by file name, but you can't simply change the package name in the manifest of a compiled APK.
Even assuming you manage to do it without messing up the file, which is not a simple task, there will still be code referring to the package name, so the app will crash.
Click to expand...
Click to collapse
So is this true ?
Yes it is, I've tried.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
cttttt said:
Yeah. Even if you could modify the package name, there could be hardcoded references to this application's intents within the source, which could cause problems when you realise you'll have to also change all of the intent-filters as well.
Its probably more trouble than its worth, as you'll be spending most of your time working out bugs introduced by your editing the APK.
I know its not exactly what you're after but why not try to run the modified app in the emulator on ur computer?
- chris
Click to expand...
Click to collapse
Yeah, thought so myself. Used the emu for a while, but It's so damn slow, can't compare it to actual testing. Nvm, I've dropped the matter anyway. Thanks for the reply
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
akash45 said:
Hey try this
http://forum.xda-developers.com/android/software/tool-android-multiple-apk-file-t3516849
Click to expand...
Click to collapse
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
prudra said:
Is not that a multiple app apk installer ?
I think op wants a way to install multiple instances of the same APk.
Thanks
Click to expand...
Click to collapse
Okay my bad
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Xmls are usually in simple english with tags like html(though it has no relation with html.I wanted to mean for eg like <preference> </preference> ) if you read the lines you can understand I guess
Sent from my GT-N7000 using xda app-developers app
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
deniel said:
Or use something like Eclipse where u have also a Visual way to "program" where u drag and drop object in the screen
Click to expand...
Click to collapse
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
kokzhanjia said:
How can i open the program for the visual ? I downloaded it but i cant find anyway...
Sent from my WT19i
Click to expand...
Click to collapse
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
blazingwolf said:
The visual portion in Eclipse is for layout xml files. If your xml is just a plain xml it will not do anything for you visually.
What exactly are you trying do?
Use Google to find tutorials about xml file creation. A simple defined search such as "android xml tutorial" returns quite a bit of info.
Click to expand...
Click to collapse
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
kokzhanjia said:
Well im trying to build a systemui. And i know i can pnly build it from scratch.
But the trouble im facing is i cant even start a project related to what i want to do..
I read and search for tutorials beyond tutorials but still cant find anything anout opening a window to do that.
Just some tutorials stating that what relative layout and linear layouts and some about how to add features related.
Havent looked into videos though. Because what i saw at the first page of google was about how to install adt plugin.
So the main problem im facing now is, could anyone give me some tips or guides to open a window to start my next phase of learning
I hereby support an OFF-Topic thread.
Click to expand...
Click to collapse
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
kokzhanjia said:
is there any tutorial about xml editing here ? I googled before but nothing
I mean what could be edited and what could be created...
Thanks !
Click to expand...
Click to collapse
Refer this website (http://www.w3schools.com/xml/) to get a basic idea of XML.
blazingwolf said:
I'm going to assume, probably a bad idea (lol), that you mean for a sony device as that is what is in your signature. Why not pull apart an existing systmeui from that device and go through it to see what stuff is doing? Then you can create what you want.
Here is a link for a tutorial about a Sense device but the basic idea is similar for all devices just the procedure might be a little different. http://forum.xda-developers.com/showthread.php?t=1453869
Also, in this forum are threads on decompiling the systemui.apk.
Click to expand...
Click to collapse
I understand decompiling but i cant even open the window to start a normal xml project in esclipse
I hereby support an OFF-Topic thread.
Hi guys, I'm fairly new to this but I wanted to know how I can change the list pressed animation style in Xperia U? I mean the white background glow on pressing and holding any list button in menus or tabs or buttons, for example see the following photo (attachments), how the background of the notification has turn to white (fading).
I thought there might be a. 9.png file for that, but when I started searching for in the drawable folder of framework-res.apk, I wasn't able to find it?
So I wanna know that am I searching wrongly or there is no such file and just a xml code which I'm not able to get my hands on because of lack of my knowledge of decompiling the apks. I tried decompiling it by apktool but it won't budge. Also to edit pngs I am using a simple technique (posted by a xda user, sorry for not recalling your name but thanks) that is to just open or extract the roms through 7zip and then just copy them back to the respective apk file. This seems to be working as I was able to create my own lockscreen. So please help me in finding where I'm going wrong.
Thanks in advanced...
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Slash137 said:
You must decompile the framework-res.apk and then, search in /drawable-hdpi folder the image. Its name is notification-normal-bg.9.png or something like that. Edit it with photoshop, and, when you have all that you want, compile the framework-res.apk and change it in your phone. Do a backup before do anything.
Enviado desde mi ST25i usando XDA Premium HD app
Click to expand...
Click to collapse
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
divinemamgai said:
First of all thanks for your advice, but as it turns out the Sony isn't using that file?? And also I just did it with my normal method (described before), so I guess it might be a problem that I'm not decompiling it, but as it turns out I don't know exactly how to. So can you suggest me a Guide or something like that through which I can learn to do it without any problems...?? Because last I time tried it, I got a failed app! Please help, thanks in advance...
Click to expand...
Click to collapse
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
divinemamgai said:
I have successfully figured out the first part of the problem, the sony uses the .png starting with semc... So I just searched for semc_list_.... And found what I was looking for. But still how to decompile system apps in Xperia based devices succesfully..? Please someone..?
Click to expand...
Click to collapse
You must use APKTool for decompile. When you got it it's so easy to use.
Slash137 said:
You must use APKTool for decompile. When you got it it's so easy to use.
Click to expand...
Click to collapse
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
divinemamgai said:
Yeah buddy, it was pretty easy. And I figured out what I was doing wrong before, I wasn't including framework-res.apk and SemcGenericUxp.apk in the tool to help it compile the resources! Thanks.
Click to expand...
Click to collapse
Can you suggest me a method of porting roms perfectly...?
divinemamgai said:
Can you suggest me a method of porting roms perfectly...?
Click to expand...
Click to collapse
Don't worry GOT.. IT....
Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Rierei said:
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Click to expand...
Click to collapse
its an anroid game so animations , graphics etx hard to do so i just want to change dex file of apk , is that possible and how , i just wondwer it
umutt1905 said:
Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
Click to expand...
Click to collapse
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
zelendel said:
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
Click to expand...
Click to collapse
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
umutt1905 said:
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
Click to expand...
Click to collapse
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
zelendel said:
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
Click to expand...
Click to collapse
ok , thanks for warning but im working on hack so asked here. working on money hack and btw i know developers of that game so i have no bad goal to do on servers and already cant if i could get admin permissions. then can you guidance me to recomplng apk , i coudnt find on forums its so complex to find tnx