[Concept] APK MODDER - Galaxy Note II, Galaxy S III Developer Discussion

Hello guys its been along time since i've developed anything.My stock project rom was suspended because i started my second degree in economics and i just didnt have time.
I am brainstorming trying to think of clever ideas of injecting changes into an apk.My goal is to create a program with a database,the database will contain the code changes and original code of smalis inside an apk.What i want to achieve is being able to very quickly decompile and replace the .smali file that needs modding and then compiling it back again.By doing so i think it will save developers ALOT of time.
I few questions i would like to ask..
First of do you think it would be better to have an online database rather than an offline one?Where everyone can contribute and add mods to the database(when i say mods i dont mean the actual apk).
Second of all i will be developing the program in C++ and since its been a while i would really like to see if anyone is willing to contribute to this by helping out a bit when needed.
And Last,Can you tell me your opinion on my current idea?
I've already started designing the program and i will start uploading beta versions for you to test next week :]

I'm not too sure but doesn't lucky patcher do this ?
Sent from my GT-N7100 using Tapatalk 2

Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.

myn said:
Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.
Click to expand...
Click to collapse
Ya, morph zips essentially do the same thing, except you have to add the files the zip injects into the apk.

Virtuous Ten Studio can decompile apps to let you make changes, and then recompile and push/install through ADB, so if you are working with already-compiled APKs you might look into it. Another handy feature is its ability to convert to Java sources - it doesn't let you edit them, but it makes it a little easier to follow the code paths by comparing the Smali with the java source.

myn said:
Have a peek at Xposed. Game changing and accomplishes what I think you are looking for.
Click to expand...
Click to collapse
What he said
Sent from my SAMSUNG-SGH-I317 using xda premium

Related

[Q] Need Help Making Kifno Tweaks an App

So I'm planning on putting this on the android market and I really don't know much about java. Yes I have a lot of free time to learn it but I'm trying to get this done faster than it takes me to learn the java language (not to say that I'm not going to learn the language any way ). I am looking for a partner/team to help me make it an app on the android market. There will be a free version of the application (for xda users of course) and a paid version so that us as a team can make a profit for all our hard work. I my vision for the app is to make it completely universal for all of android. I have the files and tweaks all set already set so that I can have tweaks for ALL of android OS's because I've been holding on to these for a while waiting to see if I could learn java fast enough to do it alone. The specifics of my vision are to make seperate sections in the UI of the app so that the user can choose a category and apply tweaks according to that category. If you are interested in helping me make this an app for all of android phones then please let me know here or through pm. Also we will be splitting the profits equally. So if there are 5 of us we split it 5 ways, 3 of us split it 3 ways and so on and so on. Also I plan on only charging $0.50 - $1.00 for the app. I don't think that is too bad of a price. Can't wait to get this show on the road because I've been holding back on so much and releasing it with the app (which will be huge as is) will be so much more awesome
Can't wait to get to work with the team.
- Kifno
Dude you could've just hit me up on gtalk! I'll give you all the info and let you gitter done on your own. Nobody should be making anything off the work you put in to this!
my signature is better than yours
Okay we'll chat on gtalk later And once I do get it in apk format and on the market, I'm going to give you a big donation for helping me do this
Lol I don't do donations bro. This is fun. Once you start getting paid for it, it's not fun anymore! The whole idea behind xda (as I understand it) is to share information and have fun with what we do. That's why I've been defending your work since day one. I can tell how much fun you have doing this. I'll help as much as I can bro. Just make sure you come with me to the evo 3d when it drops!
my signature is better than yours
abadasstanker69 said:
Lol I don't do donations bro. This is fun. Once you start getting paid for it, it's not fun anymore! The whole idea behind xda (as I understand it) is to share information and have fun with what we do. That's why I've been defending your work since day one. I can tell how much fun you have doing this. I'll help as much as I can bro. Just make sure you come with me to the evo 3d when it drops!
my signature is better than yours
Click to expand...
Click to collapse
That's a great attitude brother, +1. And,
My MOS is better than yours.....(Scouts Out)
Suck it.....LOL
abadasstanker69 said:
Lol I don't do donations bro. This is fun. Once you start getting paid for it, it's not fun anymore! The whole idea behind xda (as I understand it) is to share information and have fun with what we do. That's why I've been defending your work since day one. I can tell how much fun you have doing this. I'll help as much as I can bro. Just make sure you come with me to the evo 3d when it drops!
my signature is better than yours
Click to expand...
Click to collapse
I was planning on the Epic 4G (mostly because I don't have the funds to get the Evo 3D). But I'll just stay on the HeroC longer until I have enough to get it so that I can be in the same sub-forum as you buddy And time to get started I'll email you right now if you are not online on gmail. And yes I have A LOT of fun developing. I get a huge smile on my face whenever I do something even better for our herocs
kifno said:
So I'm planning on putting this on the android market and I really don't know much about java. Yes I have a lot of free time to learn it but I'm trying to get this done faster than it takes me to learn the java language (not to say that I'm not going to learn the language any way ). I am looking for a partner/team to help me make it an app on the android market. There will be a free version of the application (for xda users of course) and a paid version so that us as a team can make a profit for all our hard work. I my vision for the app is to make it completely universal for all of android. I have the files and tweaks all set already set so that I can have tweaks for ALL of android OS's because I've been holding on to these for a while waiting to see if I could learn java fast enough to do it alone. The specifics of my vision are to make seperate sections in the UI of the app so that the user can choose a category and apply tweaks according to that category. If you are interested in helping me make this an app for all of android phones then please let me know here or through pm. Also we will be splitting the profits equally. So if there are 5 of us we split it 5 ways, 3 of us split it 3 ways and so on and so on. Also I plan on only charging $0.50 - $1.00 for the app. I don't think that is too bad of a price. Can't wait to get this show on the road because I've been holding back on so much and releasing it with the app (which will be huge as is) will be so much more awesome
Can't wait to get to work with the team.
- Kifno
Click to expand...
Click to collapse
Are you going to continue to use my code (and others' code) in your app? I'm only asking because just yesterday, I asked pretty much the same question you just asked today-- we're working on essentially the same project, however, I developed all of my code from scratch. If my battery tweak is going to be used commercially, I'd like to have some say in it-- and I'm pretty much in the same boat you are from a java development perspective. It could be a major coincidence, but it just made the same request in the board and it got me wondering what was up.
collin_ph said:
Are you going to continue to use my code (and others' code) in your app? I'm only asking because just yesterday, I asked pretty much the same question you just asked today-- we're working on essentially the same project, however, I developed all of my code from scratch. If my battery tweak is going to be used commercially, I'd like to have some say in it-- and I'm pretty much in the same boat you are from a java development perspective. It could be a major coincidence, but it just made the same request in the board and it got me wondering what was up.
Click to expand...
Click to collapse
The only code I used from other's was your code that determined the power source ( i have another 2 other methods of finding the power source if you don't want me to use your code). I developed all of my tweaks from scratch too as of i think v1.2 when I kicked out all other's tweaks that I just copied, pasted, and credited them. I wanted this to be my own work (besides the fact that i used your power source detecting code). But if you want you and I could team up on the app if you'd like. I used your power source code to make a setcpu replacement. Only thing is, is that I never studied user interfaces in bash scripting so i don't know how to give the user a choice as to what value they'd like certain profiles to be. I see you know how to do that in your script. I was going to look at how you did it and just remix it for my script but i'm going to come up with my own menu from scratch but this menu will be the app's menu and not a bash script menu and it won't be like yours, this is all kifno . But yeah other than your power source detecting code, which is pretty much the simplest way to find power source I just couldn't see it in root explorer when I didn't have access to a computer with adb shell for a while:
Code:
power=` cat /sys/class/power_source/battery/charging_source `
this is all kifno's work that i spent hours testing the new values and of the tweaks i came up with.
EDIT: also i've been talking about making this into an app for a long time so yeah it is just a coincidence. I just decided that I wouldn't be able to do it alone because I don't have the knowledge to do so alone....right now
EDIT 2: Also if you don't want me to use your power source detecting code I have another simple method of doing so, it just doesn't show usb charging. This is what I will use if you don't want me using your code that you use.
Code:
power_source=` cat /sys/class/power_supply/battery/status `
Then I will just revamp my tweak so that is is optimial for charging and not charging rather than optimal tweaks for usb charging, ac charging, and battery power. So no biggie if you don't want me to use your code because I had many other ways of determing it as well. also if you'd like to team up with me and my team of people who are going to help make my script an app i'd be glad to join forces to make one AWESOME app that will potentially be a MUST HAVE for the heroc. collin_ph batt tweak + kifno tweaks = YOUR HERO HAS JUST GAINED SUPER POWERS!!!!!
kifno said:
The only code I used from other's was your code that determined the power source ( i have another 2 other methods of finding the power source if you don't want me to use your code).
But yeah other than your power source detecting code, which is pretty much the simplest way to find power source I just couldn't see it in root explorer when I didn't have access to a computer with adb shell for a while:
Code:
power=` cat /sys/class/power_source/battery/charging_source `
this is all kifno's work that i spent hours testing the new values and of the tweaks i came up with.
Click to expand...
Click to collapse
You're... you're really serious? You're completely ignoring the fact that you so sloppily copied his code that you ended up leaving his name in the source?
You also copied verbatim the files from [MOD]Custom DNS Servers (etc/ppp/ip-down and etc/ppp/ip-up).
You even copied the etc/init.d/20userinit file from the collin_ph zip. The one that has NOTHING to do with the code you're using. The one that's an OUTDATED copy of the one that already comes with CyanogenMod. Did you realize that by overwriting the one in CM7 with yours, you have effectively REMOVED a feature from CyanogenMod? Between version 6 and 7, this file was updated to support user init scripts both in /sd-ext AND /data. But you wouldn't have included this file if you had ANY idea what it was really doing.
I'm still trying to figure out why you even copied it. There isn't a single thing in your script or collin_ph's script that depends on using it. But it's an obvious indication that you copied more than you would like to admit. And now you say you want to make this into a for-profit app? That's just plain insulting to the nature of XDA.
jasonmaloney said:
You're... you're really serious? You're completely ignoring the fact that you so sloppily copied his code that you ended up leaving his name in the source?
KIFNO: I wasn't trying to hide the fact that I did use his code. What's to hide? I have nothing to lie about.
You also copied verbatim the files from [MOD]Custom DNS Servers (etc/ppp/ip-down and etc/ppp/ip-up).
KIFNO: Those actually don't work lol. I just left them there from when I was using those in my personal v1.5 test builds. Would you like me to show you dated screenshots of all the test builds I have? That doesn't work. But I know another simple method to use custom dns servers on the heroc that will be in the app. So this is again, nothing to hide and actually if you look at the tweak I added my way of using the dns server in the 98kiftweaks file
You even copied the etc/init.d/20userinit file from the collin_ph zip. The one that has NOTHING to do with the code you're using. The one that's an OUTDATED copy of the one that already comes with CyanogenMod. Did you realize that by overwriting the one in CM7 with yours, you have effectively REMOVED a feature from CyanogenMod? Between version 6 and 7, this file was updated to support user init scripts both in /sd-ext AND /data. But you wouldn't have included this file if you had ANY idea what it was really doing.
KIFNO: I do know what I'm doing JM. You just don't THINK I know what I'm doing. And to be honest you do know somethings I don't know at times and I commend you on catching me on my mistakes at times I don't catch them before you do. But "hiding" evidence that I used other's work isn't something I need to be caught on because I tell people when I'm using another's work. So what's to hide when I'm being honest. And again v1.5 stable wasn't cleanly put together. And like I said nothing to hide I said I used some of collin_ph's stuff like a 100x in the kifno script thread if you were reading my post when I was releasing those TERRIBLE versions of v1.3-v1.5 test. So yeah nothing to hide and I know that already JM. Like I said v1.5 stable was sloppily thrown together and I didn't clean it up because I got so excited about releasing my kifCPU which I finally got to work. And that 20userinit file is something that again I knew didn't work/was useless for my script.
I'm still trying to figure out why you even copied it. There isn't a single thing in your script or collin_ph's script that depends on using it. But it's an obvious indication that you copied more than you would like to admit. And now you say you want to make this into a for-profit app? That's just plain insulting to the nature of XDA.
KIFNO: Jason, jason, jason. When I copied it, I never meant to use it When I opened collin_ph's script merged my v1.5 test folders with his folders and deleted what all I didn't need from his script's zip. Or at least I thougth I did because I left the 20userinit file in there. Also I have nothing to hide, in fact I'm typing up a documentation of what all my tweaks do right now! And also when describing something I used that I got from another person (collin_ph's power source bash code line which I posted above which I gave an example of one of my alternatives) I am crediting them and explaining what it does in their script and why I am using it for my script. And okay since using another's power source code is insulting since I want to make this a freeware/for-profit app, I just will go about doing all the things I needed from others (collin_ph's power source) my own way with the many backup methods of getting it done by getting rid of EVERY thing i've bored from other's and using my alternative methods of doing so for a certain tweak I have's purpose. Oh and jason, I have a question, kind of off subject but I've been urging to know, where did you learn java? I know where you learned about android (many documentations of the operating system because I notice you know a lot about what file does what in the system and how files connect to others).
Click to expand...
Click to collapse
Red the bold "kifno" text that is in red inside the quote.
Oh and the kifno method only way of doing things aka v1.6 will be released tomorrow along with the documentation that explains in my opinion/to my knowledge of what my tweaks are doing. And every other version I have that is online (because they contain other's way of doing things that i used for my tweaks purpose) will be deleted from the internet. I dont' want to insult xda. I'm just trying to help our heros be better
But back on topic though I have 1 person that has offered to help me in the process of making this an app. If any other's want to help me that'd be awesome.
And also if you do offer to help me i have a lot of files to send you that has everything i've been holding back from the script that i wanted to wait to release in the app version (so that everyone can really see true awesome-ness/why i love our hero )
and here we go again same **** different day
kifno said:
Red the bold "kifno" text that is in red inside the quote.
Click to expand...
Click to collapse
You just keep changing your story over and over again. You didn't add the line to credit collin_ph until after I pointed out his name in the script. And earlier in this thread, you said all you copied from him was one line of text, but now you say you merged the two together? You're insulting our intelligence.
And then you say the DNS stuff doesn't work and was left in? Just because your copying-and-pasting didn't work doesn't mean you didn't copy it.
Closing thread until I get word from Senior.

Strongly need your advice

Hello everybody,
I am new to Android and web development in general. Recently Igot into a situation that is hard to figure out. I hope your professional advice can help me to solve the problem. A couple of months ago I realized that software dvelopment is a great way to earn money online. Making applications seemed to me the best way to have passive income streams bringing me cash from ads right into the pocket. I tried to code but it turned out to be so completely foreign to my mind and my nature, that I simply could not proceed.
Then, I decided to look for a company that actually develops software and knows how to do it. I found one company that looked legit and so we started working together. They created an app, implemented the ads and I uploaded it on the Android Market. It got really popular and I was so glad!
However, in a couple of months I noticed there was a new app that was EXACTLY like mine and it literally was stealling potential users that would choose MY app. I tried to contact the person but he said he had created the application before me. WTF! I saw he uploaded it AFTER I did.
What should I do? I see his app is increasing in downloads while mine is decreasing.
Report!! Perhaps???
Sent from my WT19i using xda premium
If I Have Helped You Can You Press
.
.
THANKS BUTTON
.
.
To support Me.
Welcome to the world of application development. Unless he literally stole your code, there really isn't much you can do about it. All you can do is to update your app to make it more appealing than his application. Have you also stopped to think that you two might be working with the same company? Double-dipping much?
prantoroy said:
Report!! Perhaps???
Sent from my WT19i using xda premium
If I Have Helped You Can You Press
.
.
THANKS BUTTON
.
.
To support Me.
Click to expand...
Click to collapse
Thank you. I pressed the Thank you button. I was thinking about it too but the thing is, how are they going to figure things out?
syung said:
Welcome to the world of application development. Unless he literally stole your code, there really isn't much you can do about it. All you can do is to update your app to make it more appealing than his application. Have you also stopped to think that you two might be working with the same company? Double-dipping much?
Click to expand...
Click to collapse
Thank you for your reply. Not many replied in my thread so I paticulary appreciate al the feedback I get
Is there a way to write an identical app ising a different code? I don't know about it.
Or, another qustion. Suppose he downloaded my app. How can he actually edit it? Does he use some sort of software? I was told, the apk file is like an archive that one can unzip and zip back again. But how would he do it, I wonder?
May be you are right and we are working with the same company although it's hard to imagine. There are thousands of companies in the world adn how in the world would we "meet" at one company? Here is thier website, by the way, may be it will help you to answer my questions --> a1qa website
May be you know better, I am a noob at software development, and I realize it.
Klaipedos said:
Thank you for your reply. Not many replied in my thread so I paticulary appreciate al the feedback I get
Is there a way to write an identical app ising a different code? I don't know about it.
Or, another qustion. Suppose he downloaded my app. How can he actually edit it? Does he use some sort of software? I was told, the apk file is like an archive that one can unzip and zip back again. But how would he do it, I wonder?
May be you are right and we are working with the same company although it's hard to imagine. There are thousands of companies in the world adn how in the world would we "meet" at one company? Here is thier website, by the way, may be it will help you to answer my questions --> a1qa website
May be you know better, I am a noob at software development, and I realize it.
Click to expand...
Click to collapse
You can easily unzip an apk file by using any Archive manager like WInZip, WinRAR , or 7-zip ... But can't actually make great changes like that ... But there is something called as Decompiling an apk, .. which will actually compiled the compiled java classes.dex file into .smali files... Now .. you can easily do some basic or sometimes even advanced changes to the app ... like for example .. you can change the app name by simply editing the string.xml in the res folder... then again recompile it into an apk and redistribute under a different name .. it's quite possible ... If you want to reduce the risk of such problems ... i'd recommend you have a look at ProGuard.
The ProGuard tool shrinks, optimizes, and obfuscates your code by removing unused code and renaming classes, fields, and methods with semantically obscure names. The result is a smaller sized .apk file that is more difficult to reverse engineer.
Click to expand...
Click to collapse
It is possible that someone can decompile your apk and read your source code if they had enough time and resources. If you are worried about such things you might have to begin using other techniques such as code obfuscation or encrypted compilers to protect your source code. And yes, it is possible to have two program do the same thing but have different source code to do it. Although there might be some parts that are the same, how you write you code will be different than how they write it.
You should be aware that making a lawsuit will cost you more money than you earned and if somebody makes something that does the same thing as you ddid, that still does not mean that they have stolen something from you. Jeez, how can somebody who hosts apps not know this, are you teenager or something?
Yes, in programming, it is possible to write programs in 50 different ways and do the same thing.
You cannot copyright ideas, only source code and functions...unless you are apple of course. They can copyright rectangular shapes.
What you should do? Get his app, and compare it to yours. I dont know if you can access source code in android apps because I dont develop aps yet, but if you can, you should compare his fuctions with yours. If the code is 80% simmilar, it is stolen.

[DEV][Work-In-Progress][C#] Direct Smali to Java converter

DIRECT SMALI TO JAVA CONVERTER​(This is a work-in-progress. Hop in if you can help!)​
Welcome guys!
This project is born because there isn't any reliable way to convert a bunch of smali files into something you can really import into eclipse and compile away. I've lost a few projects in a recent 1 TB HDD crash and man, it wasn't pretty to see I couldn't even get them back with JD-GUI or something. I've done the same with a few .NET projects of mine, so why can't I on Android? you can, but sometimes the tools (JD-GUI or JAD) go nuts and attempting to fix them just gives you a headache so...
Being a smali modder for quite some time, I managed to realize that the entire smali code, if analyzed correctly, it can be converted back to java. We mentally do it when we make smali mods, all I'm attempting to do is to automate the process and make it easier for everyone. Also, it would be really useful to be able to recompile a few Jars and APKs in order to fix device bugs (which is also another reason why I'm working on this).
Some of you would say there is already JD-GUI and JAD, but they're not a real true 1:1 conversion and also most of the times they're not compile-able. Also, There's JEB Android Decompiler but no way I'm gonna pay such a price for something I've been doing mentally and that I can automate with a script made in about a week or a few months. The tool could be great, but the price is too high and my own country's restrictions don't allow me to buy it even if I ever get the money.
The idea here, is to make an app that can translate Smali to Java, directly. Of course, it requires a bit of analysis. It needs to analyze the class directives, the methods and their prologue (parameters, declaration, etc), class annotations and method instructions. So far, I've managed to develop most of the analyzer with a few basic instructions set up for demo purposes.
Of course, I know it needs a bit more work: some variables/instructions don't appear, types are incomplete or missing, etc. But that's why I'm here: I can work on this alone, but, first, it wouldn't be fair. Also, I'm human and by default I have bugs, so I might skip something and make the code go bogus and stuff. And finally, I'd like to request the help of the community. I made this project to see if there's enough attention and contribution from the smart people here, and if there is, I'm gonna give it all to make this project do what it says, 100% error-free.
Note: IT NEEDS .NET FRAMEWORK 3.5. Yeah, and VS 2012. I assume you can make it work with VS2010 or I can make a version soon if there's enough interest, or heck, even Mono as long as it has Linq (I make heavy use of it). The idea is to make a good, open-source parser you can compile even on an arduino with Mono and it will work. But for now, this will have to do. It is my own code and I decided to share it to see if there's interest. If there's enough, I'll do everything I can to provide the tools needed for you guys to help me make this project a reality.
Also, it seems it works with SharpDevelop, so you can compile it under Linux too!
How to contribute:
Source code (active Github): https://github.com/darkguy2008/smali2java
IRC Channel: #smali2java in irc.freenode.net . You can also join us in development chit-chat through web IRC client here.
Fork away!
Well, hoping to attract the attention of you hackers 'round here
- DARKGuy
XDA:DevDB Information
Smali2Java, a Tool/Utility for the Android General
Contributors
darkguy2008
Version Information
Status: Testing
Created 2013-12-31
Last Updated 2014-01-04
Reserved
Thanks for your effort. May I request a small readme or setup guide as I'm generally a Linux user trying this out on my Windows machine?
Sent from my SAMSUNG-SGH-I727 using Tapatalk
This is great, really interested in this, and is the project open source?
robcore said:
Thanks for your effort. May I request a small readme or setup guide as I'm generally a Linux user trying this out on my Windows machine?
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Click to expand...
Click to collapse
Hello!
Oh, sure, here's a small resume but if you need more help don't hesitate to ask
First you need to install Visual Studio 2010 or Visual Studio 2012, I don't know if the express editions work, but they should. Then, if you use VS2010, you need to install the 4.5 .NET Targeting Pack for VS2010 which you can find on the MS website. If you install VS2012, it comes with it preinstalled.
Then, I assume you can double-click the .csproj (project file) and it'll open inside a blank solution that will ask you to save before you can compile it (press F5 to build & run). Also, make sure to edit Program.cs and modify it where it says to edit and put the absolute path of a smali file of your choice (for example, C:\users\you\desktop\someclass.smali). There's no need to put double-backslashes due to the "@" before the string literal.
Also, I think it could also work with .NET 3.5 or 4.0, but I didn't test it as I was hesitant to make something that I could publish on here. Over the next few days I'll keep working on it and keep you guys updated
ricky310711 said:
This is great, really interested in this, and is the project open source?
Click to expand...
Click to collapse
Thanks for your interest! I'm glad and yes! you can download the whole source code and binary from the Download section here in the black top bar over the first post. That's the idea open-source and easy to understand!
darkguy2008 said:
Thanks for your interest! I'm glad and yes! you can download the whole source code and binary from the Download section here in the black top bar over the first post. That's the idea open-source and easy to understand!
Click to expand...
Click to collapse
Thanks will definately check it out when I get home!
Thanks so much, trying it now!
Sent from my SAMSUNG-SGH-I727 using Tapatalk
Alright, I finally learned how to use GitHub (it wasn't that hard... yet, lol), so here's a link for you all to try (it's in the main post, too): https://github.com/darkguy2008/smali2java
Also, I modified the code a bit... removed the whole switch/case stuff for each instruction and changed it to functions. Also, SmaliVM is now the main class where the translation to Java happens. I've also made a "buffer system" because, in smali, you need to process a lot of lines to create one Java line, so every smali line adds up stuff to the buffer (if needed) and it "flushes" on each .line directive. So far, so good.
Fork away and I'm eager to see your pull requests!
darkguy2008 said:
Alright, I finally learned how to use GitHub (it wasn't that hard... yet, lol), so here's a link for you all to try (it's in the main post, too): https://github.com/darkguy2008/smali2java
Also, I modified the code a bit... removed the whole switch/case stuff for each instruction and changed it to functions. Also, SmaliVM is now the main class where the translation to Java happens. I've also made a "buffer system" because, in smali, you need to process a lot of lines to create one Java line, so every smali line adds up stuff to the buffer (if needed) and it "flushes" on each .line directive. So far, so good.
Fork away and I'm eager to see your pull requests!
Click to expand...
Click to collapse
404 not found?
ricky310711 said:
404 not found?
Click to expand...
Click to collapse
Whoops, sorry, fixed! stupid reply box, it ate the "va" in my "java" lol.
It's also corrected in the main post
Very interesting, i can't find a word to say! Congrats man and thanks very much!
http://www.xda-developers.com/andro...onverter-makes-smali-more-developer-friendly/
Good luck with your project
yashade2001 said:
Very interesting, i can't find a word to say! Congrats man and thanks very much!
Click to expand...
Click to collapse
thanks for the support! I'm glad you're interested! any kind of help is welcome
eagleeyetom said:
http://www.xda-developers.com/andro...onverter-makes-smali-more-developer-friendly/
Good luck with your project
Click to expand...
Click to collapse
Oh wow! this is great!! thank you very much!! :laugh::victory: these kind of things really give a lot of motivation to keep projects going! :good: love the review, hehe
I had so much trouble with small files before. I don't really work with them much now. Wish that this was there to help me. Keep it up!
Excellent work man! Confirmed working with SharpDevelop + .NET 4.0 too, 3.5 is not possible since some namespaces used are not available prior to 4.0.
Btw there seems to be a bug in SmaliLine.cs, line 135 where the value 0 supposed to be 1, otherwise keep getting index out of bound error.
Code:
if (sWords.Length < [B][COLOR="Red"]1[/COLOR][/B])
Also i did some modification to the main function, so there is no need to recompile everytime, now i can simply run in in command prompt or with batch file.
Code:
if (args.Length == 0)
{
Console.WriteLine("ERROR: No Input File!");
Environment.Exit(1);
}
String sFile = args[0];
Really hope to see this project get more usable soon. Good Luck!
thehacka1 said:
I had so much trouble with small files before. I don't really work with them much now. Wish that this was there to help me. Keep it up!
Click to expand...
Click to collapse
Me too haha, smali files are a headache... they're kinda easy to understand, but man aren't they harder to read? thanks for the support!
codelover said:
Excellent work man! Confirmed working with SharpDevelop + .NET 4.0 too, 3.5 is not possible since some namespaces used are not available prior to 4.0.
Btw i did some modification to the main function, so there is no need to recompile everytime, now i can simply run in in command prompt or with batch file.
Click to expand...
Click to collapse
Hey man, thanks a lot! It's awesome to know it works cross-platform now don't worry, I just pushed a few commits and lowered the framework version, I assume you can test with 3.5 now.
Also, thanks for the code, I just pushed it to the main repo. I actually refactored a few things, hopefully it's easier to understand and handle now. Also, it now works in a buffer-like way so with some work, it will be able to handle lots of smali instructions in a single Java line as it should be
very interested with this project.. hope it will be a simple to use..
This is awesome! I've been working with MIUI for quite some time now, and their utter lack of source code is both frustrating and difficult to work with. Porting eventually works, but for my current ROM, theirs is based on 4.2.2, where the US version went from 4.1.2 to 4.3. So, it works, but it's still not 100%. I'm going to get set up for this and see what I can do with actual source for some of the screwed frameworks.
As I haven't even downloaded anything yet...how crazy difficult would it be to do a whole .jar or .apk...or ROM using this?
petrukgrinder said:
very interested with this project.. hope it will be a simple to use..
Click to expand...
Click to collapse
Thanks for the support! that's one of the main objectives: it should be
digitalhigh said:
This is awesome! I've been working with MIUI for quite some time now, and their utter lack of source code is both frustrating and difficult to work with. Porting eventually works, but for my current ROM, theirs is based on 4.2.2, where the US version went from 4.1.2 to 4.3. So, it works, but it's still not 100%. I'm going to get set up for this and see what I can do with actual source for some of the screwed frameworks.
As I haven't even downloaded anything yet...how crazy difficult would it be to do a whole .jar or .apk...or ROM using this?
Click to expand...
Click to collapse
Yeah man I feel your pain, I also have the same issue with my ZTE device. Of course the main idea is to be able to get back code from your own APKs-JARs but if it works for fixing bugs or allowing more ports on other devices, awesome.
For now the app isn't even usable, it's a bunch of code which tries to translate maybe two or three smali instructions to java but it's not ready for even a small APK. I assume that the fire test should be trying to convert a whole jar file or two, but it could take maybe a few months for it to do that, depending on how much work the project gets from the community.
hello im also tried to do something like this converter but im stack at "if for etc" also i found this http://forum.xda-developers.com/showthread.php?t=2430413 is very good .
i tried to to talk with developer to help him but no answer yet

[Q] Android Games, Decompiling APKs, Where to Learn

Hi Guys,
I've completed a few college programming courses, so my knowledge isn't in-depth, but I'm willing to learn.
RIght now I'm motivated by learning how to modify android games. For example, I have seen mods floating around for online games, where enemies deal 1 damage to you, while you kill enemies in one hit. I find that fascinating, and am interested in the process behind achieving the creation of such mods.
I'm wondering, where do I begin learning to do something like that? Are the APK files being decompiled, modified, and recompiled? What are the steps to doing so? What programming languages do I need to learn to do the modifying part of something like this?
I would greatly appreciate if someone could point me in the right direction.
Thanks!
MeitanteiJesus said:
I've completed a few college programming courses, so my knowledge isn't in-depth, but I'm willing to learn.
RIght now I'm motivated by learning how to modify android games. For example, I have seen mods floating around for online games, where enemies deal 1 damage to you, while you kill enemies in one hit. I find that fascinating, and am interested in the process behind achieving the creation of such mods.
I'm wondering, where do I begin learning to do something like that? Are the APK files being decompiled, modified, and recompiled? What are the steps to doing so? What programming languages do I need to learn to do the modifying part of something like this?
Thanks!
Click to expand...
Click to collapse
You could someone in this forum: Android Game Hacks Forum
GokulNC said:
You could someone in this forum:
Click to expand...
Click to collapse
Still haven't heard back from anyone on that forum =(
Could someone here point me in the right direction?
MeitanteiJesus said:
Still haven't heard back from anyone on that forum =(
Could someone here point me in the right direction?
Click to expand...
Click to collapse
To learn how to modify apps you need to learn how they work. Look for how to make android apps. To modify apps they need to be decompiled first so the files inside can be read or view an app apk and extract files inside to make changes to then put them back into the apk. After you done that the app needs to be compiled again or zipaligned. You can do this using an android device with the Ninjamorph. To learn android programming AIDE is a good app you can make apps using your device. It has some tutorials on making apps or games in it. You can watch videos for it. To start i think you should learn java first.

What are the requirements to become a modder?

I am beginner and want to learn that how I can become android modder. So, I can mod android OS and apks?
It's just like being an interior designer. There isn't any requirements.
Just get your business cards printed and go for it!
So.. you're here just to advertise that site of yours?
Lame...
CXZa said:
So.. you're here just to advertise that site of yours?
Lame...
Click to expand...
Click to collapse
nope dude I actually want to learn. I mean to say that which language should I learn?
Java is as good as any. Once you learn one you can do others too...
CXZa said:
Java is as good as any. Once you learn one you can do others too...
Click to expand...
Click to collapse
Thank you very much
andromodguide said:
Thank you very much
Click to expand...
Click to collapse
EDIT: Ok, now I see what type of modding you were talking about. XDA is not the place to request such knowledge, as it's basically the same as a warez request. The website you have in your signature, idk if you're part of this scam or not, but seriously, GTA 5 apk mod... this website is sooo sketchy. Please read the rules before posting.
Don't get me wrong, I'm disapproving the website, if you're not part of it, and just asked if you could learn how to mod an apk it's fine, it's just not at xda you should ask. But if you're part of this website advertising those fake apks that maybe used to hack someone's device, I think that's truly despicable.
I left my original answer down here:
Spoiler: ...
XDA is the place !
I personally don't know much java, and was unable to understand a word of english, so all of the tech documentation was a mystery for me. I just heard about one reverse engineering tool called apktool. So I set it up and started cracking open apks to understand how they really works from the inside by reading files and stuff. Then I came here (with a better knowledge of English and of what's an apk) and found many resources to learn. It depends on the kind of things you want to mod. If the UI is your priority, I'll advice you to start by understanding what's xml and how google uses it inside of every app. Eventually you'll have to learn java for more deeper tweaks, but to begin I think understanding how xml works is easier, and more practical since you'll have to modify that in order to change any UI element.
If you're after modding how the app works itself, then java is the first thing you should learn. (And don't learn any java, Android uses more the Java OOP).
I'll leave you some links for both ways of modding :
Modding UI (theming):
App resources overview | Android Developers
developer.android.com
I also did guide for theme using a simple method that doesn't require any prior knowledge of xml and stuff, and get you to play with the interface (like changing color and stuff):https://forum.xda-developers.com/t/guide-theming-how-to-theme-any-android-app.3777101/
Ticklefish is one good themer here on xda, he made some guides about theming that, even if they're old, can teach you a lot about xml : https://forum.xda-developers.com/general/xda-university/xml-101-xml-modding-easy-t2929816/
For the Java way:
I've seen many many java courses around the internet. Actually I can't tell you which one is the best or which one to avoid because I didn't learn java yet myself. Your on your own for that one, but good luck !

Categories

Resources