{Help Needed} Modding Apk - Java for Android App Development

I Dont know what to modify.
I am trying to mod Beat The Boss 3.
When i am trying to search the smali folder for coins on eclipse it doesnt recoganise the other smali files
Basiccally i want to know what to edit.
Please dont comment saying the decompiling is wrong or what ik its all ok

Eclipse is not built for smali modding, just use a text editor like Notepad++. And there is no need to use either the red color or the big bolded text, we are not blind and we are perfectly capable of reading the normal sized font thanks.

Related

Manila editing and lua:tutorial

Hey people,
Many people were pm'ing me n asking me to write tutorials on how to edit manila files n write lua.
As its a very less known topic im one of the few people who knows how to write it and edit it.
I will try to explain the basics first n then the advanced stuff
WHAT WE DO
---
To be frank
manila editing is complicated.Not cause its hard but cause it need a lot of imagination
UnLike other languages that uses graphics like flash or vb or whatever lua and manila editing DOES NOT give you a visual workspace
You have to image what you write in real time and so it needs a lot of trial /error
THE BASICS
What we need
1>m9editor
the files we want to work on
1>As the basics i would like to explain how the background for all tabs mod was made
1.we have a file called 5c9aa261_manila.
for me this is the most important file that a developer needs
in manila this is a file that controls backgrounds
1>For example it runs on every tab and executes its functions on every tab
It is the shadow of tf3d
So anything that you want in the background in every tab or u want to be seen in every tab u put here
So by common sense the slider and the background are in this file
Now what we do for the bgfor all mod
STEP 1
1>Make a png file size 512 X 512
Manila cant take a image of any size.Therea re fixed sizes.i personally always use the size 512 X 512
So now we have a image named lets say sample.png
STEP 2
copy the file 5c9aa261_manila from the windoes folder and open it in m9editor
doubl click it
NOw the hard part
the structure of a manila file was something that took me loads of thinking to figure out
a basic structure
Group (named whatever)
--FIle in group(top most layer)--this is what is seen right on top
--File in group(second layer)--this is what is seen underneath the upper file
and so on a and so forth
LUA
lua files are action script that are recognised by the tf3d
usually lua files are either of two types
1>binaries(damn its just a name nothing more)
using the search button you can search for "binary"
click on it and you will see code in it underneath
2>files that we ad..they always end in .lua ..so using search search for ".lua" and you will find it
Lua is scanned through by tf3d when u start it the first time
lua is usually at the top of the file
so for example lets write a little lua
Code:
money=function()
rotastrainsdonations=whatpeopledonated
if rotastrainsdonations>200$ then
title.String="rotastrainsrich"
else
title.String="need smore donations"
end
end
slider.onPress:money
this is seen by tf3d
whenever you will press the slider this function will be called
and it will display what the function does!!
So when u move around in the file you will see groups and files in them..
if you understand this much its enough to make whatever the hell u want
ok now getting back to what we want to do
Step 3
Searching for the existing background
images are always .qtc files
So search for ".qtc"
you will come to a file called "backgroundlevel1..blahblahblah.qtc"
now that we found it we need to place the file we want on top of it..so thats its seen in right on top and in every tab
so how to make a file that we want?heres secret no1
1>copy any qtc file thats existing by right clicking its entry ..for example the file now is "backgroundlevel1..blahblahblah.qtc"
right click copy
now right click on the entry again
click paste below
so now we have two entries of the same name
Group
--backgroundlevel1..blahblahblah.qtc
--backgroundlevel1..blahblahblah.qtc
change the top entries name
---change this name to whatever you want--for example firstbg
so now we have two entries
--firstbg.qtc
--backgroundlevel1..blahblahblah.qtc
now click ok
move your mouse over the entry
a small popup will appear
with a name like gftfgrh455_manila
thats the name of your file
Write it down somewhere
Click save
owerwrite
Step 4
now we need a qtc file to put ur image in
just take any _manila file from the windeos foler which is a image file
For example the file that i have used in my panoramic background mod
i will attach that here
paste it in the same place as the 5c9aa261_manila file
open it in m9editor
right click it
save as png
open the png file
paste your image in
save
open m9editor
right click the qtc file
load from png
rename the file to what we got earlier "gftfgrh455_manila"
done
Now paste both these files in ur widows folder
and walla
bgforall tabs in a second
This is a basic thing to do
Next step will be to integrate images with lua..
!!
Cheers
Rotastrain
Thank you, thank you!
Awesome... exactly what I was looking for! Please, do go on....
xoxo Maureen
thats a great idea!
you are tha man!
This is very nice... I can not wait for the followup. image editing is pretty nice but I am having more trouble with decompiling the lua files. Also is there an easy way to break out the scripts and files into there directory structure? so that we can find all the internet tab items in one folder and all the common in another? I tried a few of the lua kitchens that I have seen around but most of them seem to crash when I try to use them on the 2.5 manila files. is there a difference?
Thanks for this. It is nice to see someone sharing there knowledge and expertise.
SoBBie

Editing XML files

I did a search and couldnt find a clear answer. What program(s) do I need to edit the xml files?
okcppcnut said:
I did a search and couldnt find a clear answer. What program(s) do I need to edit the xml files?
Click to expand...
Click to collapse
They cannot really be edited. They have to be complied with the program.
You can hex edit them but good luck with that.
Lookup a tool called apktool that will decompile the apk and you can edit it with smali and the xml's but a lot of the HTC files cannot be decompiled yet.
AXMLPrinter2.jar to read the .xmls and you need a Hex Editor to hex edit the .xmls.
Mods, please move to the General forum. This doesnt belong in Development.
zippy-man said:
They cannot really be edited. They have to be complied with the program.
You can hex edit them but good luck with that.
Lookup a tool called apktool that will decompile the apk and you can edit it with smali and the xml's but a lot of the HTC files cannot be decompiled yet.
Click to expand...
Click to collapse
WUT? Any .apk file can be decompiled with baksmali and recompiled with smali.
Thread moved as this is not Development.
VinceOB said:
WUT? Any .apk file can be decompiled with baksmali and recompiled with smali.
Click to expand...
Click to collapse
Yes with smali and baksmali but not apktool. That is the only tool you can use to edit XML files in plain text
zippy-man said:
Yes with smali and baksmali but not apktool. That is the only tool you can use to edit XML files in plain text
Click to expand...
Click to collapse
I'll have to try apktool, I've been doing the HexEdit way for wayyyyy too long. I'm beginning to speak in 00's and FF's.
alright man here you go. its a zip of two files i put together to help.
Thanks I will check out those files.
okcppcnut said:
Thanks I will check out those files.
Click to expand...
Click to collapse
they really help. while in android u have to edit an xml in binary format. use HxD editor to edit them but the two files i posted with allow u to convert it easily to readable xml and then find the hex strings to look for and then be able to go to binary and search for the hex string. just remember the code is in reverse when u search for it. for example u might see 01 02 03 04 in readable format (dont know what color this is its just an example) when u search for it in binary xml u would search for 04 03 02 01. hope that helps
cbarlan said:
they really help. while in android u have to edit an xml in binary format.
Click to expand...
Click to collapse
You don't. As people said above, apktool gives you opportunity to edit XMLs normally - as if application was yours. So please don't mislead other people
Brut.all said:
You don't. As people said above, apktool gives you opportunity to edit XMLs normally - as if application was yours. So please don't mislead other people
Click to expand...
Click to collapse
i was under the impression that you have to hex edit the xml's by use of an xml editor. thats how i was shown and that was by VinceOB. Who in my opinion one of the more experienced coders on this forum.
edit ...just saw ur post to try apk tools. ive downloaded it and gonna give it a try. if it works that would be great.

.9.png help!

I can't drag and drop .9.pngs to the res/drawable folder! I don't know why, but when the file shows up under /drawable, it suddenly pops up with a red x and says that all the other drawables can't be found. What is happening? I'm trying to use a .9.png as a background for a view, but I can't seem to get eclipse to recognize the .9.pngs Thanks in advance
have you tried Project > Clean
?
It's a good first line of defense for weird Eclipse errors
I tried that. It still doesn't work The only way to get it to recognize the image isbto rename it as a PNG instead of a nine-patch
what is the error that eclipse shows?
I had your same error before I used the tool provided for ninepatch building.
If you use the tool, no problem.
You can find it in: ...\android-sdk-windows\tools\draw9patch.bat
It's really easy to use. Google for a tutorial.
Make sure you don't have any other drawable file with the same name as your nine patch or the name doesn't contain uppercase characters.
edit:
or you've just created your nine patch incorrectly
Why do you want it to be called .9.png? Cant you just rename it or is it a best practices kind of thing?
Or is this a type of png? A bit confused...
nvm.. its a stretchable png
From something awesome

[Q] can any one give me the .xml file editor?

Hii!!friends..
I have no computer!!!
So..
i want to edit .xml file in my galaxy y !!
So anyone tell me that how to do?
N give me the .xml editor app.....
Plzzz...
sorry its not possible to edit xml files on a phone without decompiling the apk first - you will just get a load of symbols
There are some xml apps on google play that can read xml files after you have decompiled the apk however they do not work properly with andriod xml files so you can read them but editing them is near on impossible on a phone

App/software needed

Okk im looking for a software for pc or Android anyone would work
What i need to do is edit around 150 xml files
In all of them i have to do the same changes of copy and replace
For ex in all of them i have to vhange somc:colorizable with colorizable
Such changes i have to do.plzz suggest some apps or software
Sent from my C2305 using Tapatalk
You can use apktool mobile if you need to decompile apks on your phone
Once decompiled you can use any text editor to edit the xml file and then recompile with apktool mobile
Of course it will be a tedious & long task to do on a phone
Apktool mobile thread
http://forum.xda-developers.com/showthread.php?t=2488697
Of course on pc just use apktool to decompile and notepad++ (different from Windows notepad) to edit xml
marcussmith2626 said:
You can use apktool mobile if you need to decompile apks on your phone
Once decompiled you can use any text editor to edit the xml file and then recompile with apktool mobile
Of course it will be a tedious & long task to do on a phone
Apktool mobile thread
http://forum.xda-developers.com/showthread.php?t=2488697
Of course on pc just use apktool to decompile and notepad++ (different from Windows notepad) to edit xml
Click to expand...
Click to collapse
Sir decompile is not my problem
Editing 150 xml is the problem
So im looking for a text editor which would edit many xml simultaneously
Sent from my C2305 using Tapatalk
abhishekr700 said:
Sir decompile is not my problem
Editing 150 xml is the problem
So im looking for a text editor which would edit many xml simultaneously
Sent from my C2305 using Tapatalk
Click to expand...
Click to collapse
Well with notepad++ you can find and replace
It leaves the find & replace window open when you browse between open xml tabs so manually it would only take 2 clicks to change xml tab then click replace then repeat on the next tab
I don't know if there is a button that finds & replaces across all open tabs - you will have to have a look
marcussmith2626 said:
Well with notepad++ you can find and replace
It leaves the find & replace window open when you browse between open xml tabs so manually it would only take 2 clicks to change xml tab then click replace then repeat on the next tab
I don't know if there is a button that finds & replaces across all open tabs - you will have to have a look
Click to expand...
Click to collapse
Thnks for showing me the correct path
Will write a tutorial for others too..SHOULD I WRITE IT?
Sent from my C2305 using Tapatalk

Categories

Resources