Related
I have been trying to edit an apk file, basically change some pngs. But after iam done I can't install it anymore. Why is that?
I used 7z to open the apk archive and replaced a few pngs. I put the apk on the sdcard, open to install, goes thru installing then fails. Any help would be appreciated.
Sent from my PC36100 using Tapatalk
dont you have to sign it again or something.. did you keep the same file names for the pngs?
I kept the same file names and sizes. Do I need to sign them?
jasongthang said:
dont you have to sign it again or something.. did you keep the same file names for the pngs?
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk
just delete all the stuff in the META-INF folder, make edits, rezip, and resign. easy
What's the easiest way to sign an apk?
dkdude36 said:
just delete all the stuff in the META-INF folder, make edits, rezip, and resign. easy
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk
soulassasin187 said:
What's the easiest way to sign an apk?
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
You need an apk signing tool. Basically, you put the modified apk, in the signer folder, without the meta-inf folder, and run a quick command, your signed apk is then spit out. I'll attach the one I use when I get back to my laptop.
Hey... I think this thing makes phone calls too!
Here is the APK Signing Tool that I use.
Just unzip it somewhere, put the apk in the auto sign folder, open a command prompt to the folder, and run sign.bat, it should run you through it. There's a read me file in there, read it in case I forgot something.
Also, when editing market apps, they need to be resigned, but if ur editing built in app from the system, they do not. The HTC signature needs to remain intact on those.
Worked perfectly. Thank you.
JTNiggle said:
Here is the APK Signing Tool that I use.
Just unzip it somewhere, put the apk in the auto sign folder, open a command prompt to the folder, and run sign.bat, it should run you through it. There's a read me file in there, read it in case I forgot something.
Also, when editing market apps, they need to be resigned, but if ur editing built in app from the system, they do not. The HTC signature needs to remain intact on those.
Click to expand...
Click to collapse
Sent from my PC36100 using Tapatalk
i am having trouble with kitchen. it wont zipalign my apk. it keeps saying
error unable to zipalign.
scripts/do_zipalign: line 62 /tools/zipalign_files/zipalign no such file or directory.
when i check the file is there.
please help
i have never had this problem. i did just reinstall kitchen.
Have you tried adding the directory to your path variable? I'm just guessing here
elegantai said:
Have you tried adding the directory to your path variable? I'm just guessing here
Click to expand...
Click to collapse
Not sure what you mean.
Sent from my PC36100 using XDA App
Are you on windows?
it looks like it will be looking for the zip align in the following directory(if do_zipalign is a file):
scripts/tools/zipalign_files/
Is this the directory the script is in?
Trust me I have searched t'internet to no avail.
I don't need or want people asking me why I want to cheat in this game...needless to say I had a Galaxy S II stolen and lost a 12hour worth save of this game.
I'm amazed that the iPhone version has an easy hack... but nobody has been able to do this in the wonderful Android community....
Anyway... I offer a beer to whoever can help me with this (or the first person to haha)... I promise.
Thanks in advance.
Really, nobody has a clue on this one? I previously found a couple of properties files but for some reason can't find them now...
I'm serious about donation too
Sent from my GT-I9100 using XDA App
kickassdave said:
Really, nobody has a clue on this one? I previously found a couple of properties files but for some reason can't find them now...
I'm serious about donation too
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Really not that much harder than doing it on the iphone.
If you got titanium backup then backup the game then open com.KelliNoda.Battleheart-20110702-203401.tar
you get a folder called data.
then thers some folders inside it.
correct path to the directory where the file is you want to edit is data\data\com.KelliNoda.Battleheart\shared_prefs
thers an XML file in there, edit that one to your liking.
For the gold i edited this line
<int name="1gold" value="xxx" />
where x is the amount of gold you currently have on the what i assume is first save
i changed it to <int name="1gold" value="999" />
and i had 999 gold.
basically just edit it along and see what happens.
Not really sure where this XML file is located on your phone but since titanium is free on market you might as well use it
Some quote for an easier editing
Also if you want to change their level just look for
1partyDB#level. Replace the # with 0-8. Each number corresponding to a party member.
To edit their power and defense, look for
1partyDB#power and 1partyDB#defense. Replace the # with 0-8.
Click to expand...
Click to collapse
the # correspond with the heroes that you have. 0 is lucille, 1 is shepherd. and so forth
here's an example:
<key>1partyDB1power</key> <---- the first '1' corresponds to the save file. the second '1' correspond to the character (shepherd)
<integer>75</integer> <---- change this to change his attack power.
take a look at the picture I've attached to get a better understanding.
Please note that this was done with version 1.0.0.
I haven't tried it with the newer version yet.
Edit: I tried it with the newer version and it works still.
Also the best way to look for the hero's value is just to search for their name and then most of the value you would want to change would be just right above their name. [power level is right below their name though]
Click to expand...
Click to collapse
To change lucilles level look for
1partyDB0level and change it to
Code:
<int name="1partyDB0level" value="30" />
for shepherd look for 1partyDB1level and chance it to
Code:
<int name="1partyDB1level" value="30" />
so both
here's my xml file http://www.mediafire.com/?27gtc0ch59exxob where i got all possible partymembers at lvl 30 and lucille/shepherd at lvl 40 and and little over 23 million gold.
firstly make sure you got a folder called TitaniumBackup on your SDcard, if its not there then open titanium backup and make a backup of battleheart or if you havnt made a backup of battleheart then make sure you do that before moving on.
Put the above mentioned file into the TitaniumBackup dir.
unmount your SDcard
run titanium and choose to restore data only to battleheart.
then run battleheart and you should find a savegame called goa200
I'm also sure you could simply do
Code:
ADB push com.KelliNoda.Battleheart.xml /data/data/com.KelliNoda.Battleheart/shared_prefs/
but i dont have adb on this laptop so i never tried
just make sure you kill the battleheard process first
Thank you very much for your help. I owe you a beer. On my phone just now but you got a donate option I can send to?
I managed to work out how to do it from your first post. Only wanted to modify the gold but again thank you very much for the other information as well
Sent from my GT-I9100 using XDA App
kickassdave said:
Thank you very much for your help. I owe you a beer. On my phone just now but you got a donate option I can send to?
I managed to work out how to do it from your first post. Only wanted to modify the gold but again thank you very much for the other information as well
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
No need for any donate. i play battleheart as well and never thought it was that easy to cheat =)
kickassdave said:
Anyway... I offer a beer to whoever can help me with this (or the first person to haha)... I promise.
Thanks in advance.
Click to expand...
Click to collapse
I did promise! I think it's fair... but if you are sure it's ok... fair enough!
kickassdave said:
I did promise! I think it's fair... but if you are sure it's ok... fair enough!
Click to expand...
Click to collapse
and i kindly refuse said offer as it wasnt much of a thing to do =)
goa200 said:
No need for any donate. i play battleheart as well and never thought it was that easy to cheat =)
Click to expand...
Click to collapse
That's very nice of you dude, we appreciate the help. Thank you!
no matter how i edited the value, it wont stick. it kept returning back to original value.
edited: finally got it to work, i was using root explorer and it automatically restore backup file. thanks for the guide.
MorRoquen said:
That's very nice of you dude, we appreciate the help. Thank you!
Click to expand...
Click to collapse
I knew I wasn't the only person trying to work out how to do this... ended up doing a wee level hack as well haha.
Sent from my GT-I9100 using XDA App
when i edit the values it dont change, it back to the original, why?
My values go back to normal or the game force closes, what am I doing wrong? Nd I'm using version 1.13 arm
goa200 said:
here's my xml file http://www.mediafire.com/?27gtc0ch59exxob where i got all possible partymembers at lvl 30 and lucille/shepherd at lvl 40 and and little over 23 million gold.
firstly make sure you got a folder called TitaniumBackup on your SDcard, if its not there then open titanium backup and make a backup of battleheart or if you havnt made a backup of battleheart then make sure you do that before moving on.
Put the above mentioned file into the TitaniumBackup dir.
unmount your SDcard
run titanium and choose to restore data only to battleheart.
then run battleheart and you should find a savegame called goa200
I'm also sure you could simply do
Code:
ADB push com.KelliNoda.Battleheart.xml /data/data/com.KelliNoda.Battleheart/shared_prefs/
but i dont have adb on this laptop so i never tried
just make sure you kill the battleheard process first
Click to expand...
Click to collapse
thanks for the tip!
just a noob question. how do i edit the xml file inside the .tar.gz file? i tried extracting the contents and then editing the xml file but winzip cannot put it back into the .tar.gz file.
Y0sHii said:
My values go back to normal or the game force closes, what am I doing wrong? Nd I'm using version 1.13 arm
Click to expand...
Click to collapse
two things:
1) don't edit in windows. it inserts carriage return characters not compatible in Android/Linux/Mac's/etc. Download a text editor onto your phone (I used TextWarrior) or do it in Linux
2) make sure edited xml file has same owner, group and permissions as original xml file. Root Explorer can easily change owner/group/permissions.
aussiebum said:
2) make sure edited xml file has same owner, group and permissions as original xml file. Root Explorer can easily change owner/group/permissions.
Click to expand...
Click to collapse
I couldn't set owner/group even after the file was in /data/data/com.KelliNoda.Battleheart/shared_prefs/. Instead I just checked read/write for "Others" under permissions and that made it show up.
aph said:
I couldn't set owner/group even after the file was in /data/data/com.KelliNoda.Battleheart/shared_prefs/. Instead I just checked read/write for "Others" under permissions and that made it show up.
Click to expand...
Click to collapse
You can do it on a PC
If you take out the file and edit it using notepad, you can overwrite the file within the tar using 7zip without having to decompile and recompile the tar.
Open it up using 7zip, browse to the location of the XML file and click and drag your edited version in to overwrite. You'll get a couple of messages, ok them both and you're done. Now just move the tar file back to your titanium backup folder overwriting the original. Now restore your backup and hey presto.
Sent from my GT-I9100 using XDA App
kickassdave said:
You can do it on a PC
If you take out the file and edit it using notepad, you can overwrite the file within the tar using 7zip without having to decompile and recompile the tar.
Open it up using 7zip, browse to the location of the XML file and click and drag your edited version in to overwrite. You'll get a couple of messages, ok them both and you're done. Now just move the tar file back to your titanium backup folder overwriting the original. Now restore your backup and hey presto.
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
Using TB restore data on Battleheart yields FC's for me 100% of the time. After a phone crash, I've been working on restoring my chars (not interested in cheating) for 4 days, trying at least 2 dozen potential solutions.
The "Others r/w" hack works for me at the moment and after days of effort, I'm sitting happy getting it to work at all.
If it breaks again I'll give your method a shot. Thanks for the input!
SO I have done some tireless searching but have not found any the answer, So I figured I would give it a shot here.
JonMayer over in the CM7 thread found the solution to the (at least to me) annoying issue of not being able to adjust call volume. The solution in is here http://forum.xda-developers.com/showpost.php?p=20337874&postcount=3914
I was going to try to make a flashable zip for this so it would be a simple fix instead of having to change the system file. Its really just overlaying a file with 2 value changes. but all of the guides i see on making flashable zips are for apk's and themes and such...Can anyone point me in the right direction??
If you pre-edit the file just take a simple zip like my circle battery mod, and using Windows explorer with jzip (should be built in) you open the zip, make the directory structure exactly as listed and put your file where it belongs. It will replace the file on your phone when you flash it.
So in otherwords under system in the zip you will click it, delete the app folder, right click and add new folder usr, then click that and add new folder keylayout, click that and add the file to that.
kennyglass123 said:
If you pre-edit the file just take a simple zip like my circle battery mod, and using Windows explorer with jzip (should be built in) you open the zip, make the directory structure exactly as listed and put your file where it belongs. It will replace the file on your phone when you flash it.
So in otherwords under system in the zip you will click it, delete the app folder, right click and add new folder usr, then click that and add new folder keylayout, click that and add the file to that.
Click to expand...
Click to collapse
Awesome! That's kind of what I was thinking, but want sure. I am going to give it a shot !
Edit: do I have to resign the zip?
Sent from my SPH-D700 using xda premium
adamdelozier said:
Awesome! That's kind of what I was thinking, but want sure. I am going to give it a shot !
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
I make flashables that way all the time. Saves a lot of FC issues.
Just out of curiosity, has anyone seen this/use it? http://forum.xda-developers.com/showthread.php?t=1248486
Sent from my SPH-D700 using xda premium
Ceelos09 said:
Just out of curiosity, has anyone seen this/use it? http://forum.xda-developers.com/showthread.php?t=1248486
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
i will be checking this out tomorrow!
Sent from my SPH-D700 using xda premium
adamdelozier said:
i will be checking this out tomorrow!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
kennyglass123 said:
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
will do. kind of excited to start checking out the development end of things. but with a 7 week old AND a 7 year old, time its pretty short!
Sent from my SPH-D700 using xda premium
adamdelozier said:
will do. kind of excited to start checking out the development end of things. but with a 7 week old AND a 7 year old, time its pretty short!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Family first man! I am happy with my swap method but interested in learning more about the scripts used.
Sent from my SPH-D700 using XDA App
kennyglass123 said:
Give us a report on it Adam.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
SO, the tool looks good, very simple and gives you both the edify and amend options for the scripter. I think my issue is because I am on CM7 and the files sytsem is MTD, I have not been able to figure out the mountpoint, in order to mount the system folder as R/W. I keep getting status 6 errors and it wont flash. I hjave spent about 2 hours on this this morning and am stumped. I even got the updater script from the CM7 install to see if i could find it there, but all I am seeing is mount ("yaffs2", "MTD", "system", "/system) and that isnt working. The version attached is using the mount script I found here - http://forum.xda-developers.com/showthread.php?t=994940 but in that thread it doesn't show the mount point for the Epic 4G.
Again, all I am trying to accomplish here is to overlay the qwerty.kl file with the one in my zip. having this much trouble with just this small zip, makes me have even MORE appreciation for the ones putting these ROMS together!
I have attached the mess here to see if anyone could take a look and help an aspiring developer out
The mount point for /system on yaffs2 is /dev/block/mtdblock2
So you would do:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system
And to remount as read only when you're done (not sure its necessary?) Replace the rw with ro:
mount -o ro,remount -t yaffs2 /dev/block/mtdblock2 /system
xBTx said:
The mount point for /system on yaffs2 is /dev/block/mtdblock2
So you would do:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system
And to remount as read only when you're done (not sure its necessary?) Replace the rw with ro:
mount -o ro,remount -t yaffs2 /dev/block/mtdblock2 /system
Click to expand...
Click to collapse
Awesome!! I will give that a try now.
adamdelozier said:
Awesome!! I will give that a try now.
Click to expand...
Click to collapse
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
xBTx said:
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
Click to expand...
Click to collapse
I noticed that and was converting it. Thanks again!
Sent from my SPH-D700 using xda premium
adamdelozier said:
I noticed that and was converting it. Thanks again!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
You're very welcome.
xBTx said:
Actually, those are terminal commands. From CWM you can do (so in the updater script):
mount("yaffs2", "MTD", "system", "/system")
And:
unmount("/system")
Click to expand...
Click to collapse
So I am still getting status 6
Code:
ui_print("Preparing to update");
# mounting system as r/w - ATTENTION - set the the mount point
# to the proper for your device! Example mountr command is
# mounting system for Samsung GT-I5800 aka Galaxy 3
mount("yaffs2", "MTD", "system", "/system");
ui_print("Installing volume control while screen off..");
# copy system content to the system directory on your device
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done! You may now reboot your phone and enjoy the experience ;-P");
Use notepad++ to save the updater script. See if that helps.
xBTx said:
Use notepad++ to save the updater script. See if that helps.
Click to expand...
Click to collapse
When I do that, it saves it as a text file. Is that OK?
Man, this is some frustrating sh*t! Lol!
Sent from my SPH-D700 using xda premium
adamdelozier said:
When I do that, it saves it as a text file. Is that OK?
Man, this is some frustrating sh*t! Lol!
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
If you open up your zip and drag the updater script to your desktop, right click and hit "Edit with Notepad++" then you can edit it and save it, and it won't add the extension.
xBTx said:
If you open up your zip and drag the updater script to your desktop, right click and hit "Edit with Notepad++" then you can edit it and save it, and it won't add the extension.
Click to expand...
Click to collapse
Its a no go man. No matter what I do, I get a Status 6 error in CWM. I think I quit for now. I have been screwing around with this on and off for 6 hours! Maybe I am just stupid today!!
I was just doing some more digging. Could it be the update-binary that is screwing it up? The files I am using are from a BML zip???
Edit: I guess not...I just took the update-binary from the CM7 ROM package and still getting that stupid status 6...
i have a soundboard app, that doesent need data connection to play(so i know the sound files are SOMEWHERE on my phone) and i want to find them and save them to eternal storage, how would i go about doing this? would my phone have to be rooted?
rooted - probably yes...BUT don't assume that if an app plays any sounds that they are in a separate file or even file format that can be easily extracted and used outside the app. All depends on how the developer decided to make the files available, and if they are in a separate file or not.
Poke around with something like the ES explorer or other file system browser. If this needs a data connection to get the sounds originally, you MIGHT find them...
As pointed out, it depends on how the dev made the app. You may need to decompile it. (If you need to ask how, you need to search smali, backsmali, aol multi tool, etc)
Sent from my SGH-T999 using Tapatalk
DocHoliday77 said:
As pointed out, it depends on how the dev made the app. You may need to decompile it. (If you need to ask how, you need to search smali, backsmali, aol multi tool, etc)
Sent from my SGH-T999 using Tapatalk
Click to expand...
Click to collapse
how do i know if i need to decompile it? what are things i should look at to figure out how to get them?
nhyrum said:
i have a soundboard app, that doesent need data connection to play(so i know the sound files are SOMEWHERE on my phone) and i want to find them and save them to eternal storage, how would i go about doing this? would my phone have to be rooted?
Click to expand...
Click to collapse
Depends on how the app saved the music. It may be propitiatory format like what Audible does. My guess the location would be somewhere in /data partition. That's where typically application data resides. Start to look for it under /data/data
nhyrum said:
how do i know if i need to decompile it? what are things i should look at to figure out how to get them?
Click to expand...
Click to collapse
If you can't find the files anywhere else, then you may have to. Not guaranteeing it, just giving you somewhere to look.
Already told you what to search for if you want to learn how to decompile an app.
(Though aol multi tool should be APK multi tool!)
Sent from my SGH-T999 using Tapatalk
so i can get inside the app's folder in data/data. but inside all of the folders are some weird file types. I assume that means i have to decompile the app?
Possibly. Try unzipping it first. It may have a resources folder that's easier to get to. If not then I'm guessing you may have to fully decompile it.
Sent from my SGH-T999N using Tapatalk
DocHoliday77 said:
Possibly. Try unzipping it first. It may have a resources folder that's easier to get to. If not then I'm guessing you may have to fully decompile it.
Sent from my SGH-T999N using Tapatalk
Click to expand...
Click to collapse
theres an xml doc, .so .db and some other files it doesent say the extension. im using es file explorer, is there something better to use?
nhyrum said:
theres an xml doc, .so .db and some other files it doesent say the extension. im using es file explorer, is there something better to use?
Click to expand...
Click to collapse
ES File Explorer is fine. You are looking for a Direcotry/Folder called Resources. Once you find it, you will need to analyze the contents to find out where the App Data is.
If you don't see it you'll have to decompile to find all its contents. Though audio isn't usually compiled in that I'm aware of. But if you can't find it elsewhere, that's the best place to look next.
Sent from my SGH-T999N using Tapatalk