Re Create APK File - Android Q&A, Help & Troubleshooting

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

Related

How to install multiple instances of the same .apk

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

[Q] How to set livewallpaper auto enabled on fresh flash of ROM?

Hello web masters and developers,
I've got a noob question...
I've got Jusada's ICSunday Final ROM (all credits to Jusada, and of course I've got his permission to do moding), which I modified for my personal needs.
Until now I've added many options that missed in original release (so it's not barebone anymore) like live wallpapers, torch, RE, ScanMedia, battery drain fix and GPS fix, transparent status bar and modified Acheps CM theme (all credits to their developers, u can find the topics here in Ace forum) etc.
There is couple of things I currently cannot resolve and that drives me crazy.
When I make a fresh install of the ROM, it starts with default wallpaper (which I modified too). But since I often use my favorite livewallpaper, i really need it to be set by default from the system. Now, I've got Livewallpaperspicker.apk installed and working. I can put the livewallpaper's apk file in the /system/app and to be installed by default, but how to make it enabled by default instead of the static default_wallpaper.jpeg inside framework_res.apk?
Where in which file I should enable it bu default?
Thank you for your patience, and also excuse me for my bad english, and If I break the rules with this thread!
Regards!
P.S: Excuse me for the stupid thread title, I couldn't figure out a better one...
Obviously no one knows, or it's too difficult to explain for noobs like me... Sad... I search on Google but either I don't search with correct keyword or there are no such thread/topic/lesson...
Sent from my GT-S5830 using xda premium
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
tomsons26 said:
Here is all the info you need, figure out yourself
http://forum.xda-developers.com/showpost.php?p=13649923&postcount=2
The line should be without the space (glitch in XDA forums LOL) in com.android.wallpaper
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
not the one u see in the post
Click to expand...
Click to collapse
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
P.S: I've found the file that contains keyword "default_wallpaper_component" in it. It's framework.odex. Now I've got to figure out first how to edit it (with notepad++ there are a bunch of unusable characters) and what exactly to write to enable my favorite_livewallpaper.apk by default. Because it's gonna be normal, pre-installed .apk file (not inside the LiveWallpapers.apk) and I don't know how to call it inside the string... Damned, this is gonna be harder than I thought But... I like to be hard, if there are good people that wont mind to teach me or tip me for the answer)) Thanks
Spoonk said:
Thanks for the reply mate, but it seems that there is no "value" folder inside my /res folder. Anyway I searched for strings.xml inside other folders in /res folder but... no success... I'll extract the ROM's package right now and will search inside all folders for strings.xml and will see if such a file exist... Thanks btn pressed for the reply and for the idea
Click to expand...
Click to collapse
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
tomsons26 said:
Some ROM modder you are LOL don't even know the basic
You need to decompile the framework-res.apk LOOOL
Good luck
Click to expand...
Click to collapse
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Spoonk said:
I didn't say that I'm modder. I'm modding only Jusada's ICSunday ROM, and only for my personal use... anyhow, thanks for the tips, and replies. No offence, but... sometimes noobs want's to learn too, u know... keep it in mind.
Click to expand...
Click to collapse
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
tomsons26 said:
How will they learn if everyone is laying info on a gold plate for them and serving them it
Ive never asked WHAT HOW instead i searched and read it and thus learned it myself
Click to expand...
Click to collapse
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Spoonk said:
As I said before, I need just an advise on how to do-that. I don't need someone to "serve it in golden plate" All I needed was a little hint and you gave it to me, that's why I thanked you. And as I said before, I searched Google and xda but with no success - obviously I didn't know how to "ask", wrong keyword etc.
After your hint I remembered that I read somewhere that not all folders are visible with win rar (for example) and they need to be decompiled in a special way. I searched again and found APKTool, now I'll install it (inside Windows folder, i read) and will begin to learn how-to.
That's the way to learn I think?
Click to expand...
Click to collapse
Yes, and xdaAutoTool is better and user friendly

[REQ] XML and Esclipse Tutorial

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.

[Q] Edit .apk wirh winRAR possible?

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

XDA genius developers , I need help

Hey guys ..
I need the big boss of developers team
Its kinda complicated, I need XDA developers to help me unlock this tool apk .. this tool modified by certain person to run on specific devices , .. and any other one tried to install and run it it give him a message of " f%ck yourself " and close apk
I don't know the trick behind this , i tried apk editor but I reached nothing
Thnx
Dr.osamazaid said:
Hey guys ..
I need the big boss of developers team
Its kinda complicated, I need XDA developers to help me unlock this tool apk .. this tool modified by certain person to run on specific devices , .. and any other one tried to install and run it it give him a message of " f%ck yourself " and close apk
I don't know the trick behind this , i tried apk editor but I reached nothing
Thnx
Click to expand...
Click to collapse
its probably a simple message display app, & you're probably just really gullible​
Dr.osamazaid said:
Hey guys ..
I need the big boss of team
Its kinda complicated, I need XDA to help me unlock this tool apk .. this tool modified by certain person to run on specific devices , .. and any other one tried to install and run it it give him a message of " f%ck yourself " and close apk
I don't know the trick behind this , i tried apk editor but I reached nothing
Thnx
Click to expand...
Click to collapse
Theres plenty of tools to decompile apks and get the source code
Use es file explorer to extract the apk file

Categories

Resources