AmonRa error? - Android Software/Hacking General [Developers Only]

I have no clue what forum to put this in so I hope this is ok.
I'm trying to flash a theme but am getting a status 6 error? Any ideas why?
I read that it might be that it can't read a file properly ie. if you use notepad to write the updater-script, but I used notepad++ so I don't think that could be it.
Thanks in advance
edit - mod can delete this now.
Turns out it was because I had it set to UNIX EOL and UTF-8 Encoding, when I changed it to UNIX EOL and ANSI it flashed.

Related

editing string in cmhomeres.dll

When I try to edit a string in cmhomeres.dll, at the end of each text line there is a \0x00 which is lost when saving the change (for all the strings in that resource number and not only for the particular line I'm trying to change). And if I type the \0x00 then the result is \\0x00.
I'm using PE Explorer and followed the instructions given in it's help (under How to edit stringtable strings). Tried both explained methods.
(Did a forum search and found no help for this subject).
What am I doing wrong?
Well.... 0x00 is a null-character, so it is impossible to replicate (as far as I am aware). What are the effects of modifying the string, excluding the \0x00 and running it on your phone? Are there errors? [ Did you remember to re-sign the DLL ... You can find the signer by searching the forum...] I haven't actually changed strings in the cmhome DLL...so I am not so sure on the subject.
Unsign - edit - sign. Yes, those steps were followed.
PE Explorer's help states that each line of the stringtable must end with a null character but so far I have not been able to force it into the text.
Tried with ResHacker but using that one the null-char in not even visible.
If I save to a text file, edit there and reintroduce into the dll now I even get CR-LF chars
Have not tried copying the file without null-chars to phone for testing because the help file already raised a flag about null-char and afraid to brick it.

Help me out! editing XML file..

I just recently checked out LauncherPro beta, and i really like it, my only problem is that the shortcut icons arent really what I like.
All I want to do it edit the default_workspace.xml so that the target APKs for the shortcuts will be Phone, Messages, Gallery, and Browser. I've already edited the icons to reflect that.
I already decoded the binary XML, I just need to know how to re-compile it to a binary XML after editing.
Sorry guys, I'm a complete noob when it comes to any kind of coding... and thanks in advance
edit: I already read Stericson's sticky, but I either just didnt get it, or didnt see anywhere to re-compile a decompiled binary XML.
If you have used AXMLPrinter to decode XML, then no, you can't compile it back. It's for looking into XML files only, not for editing them as text.
AFAIK my apktool is only one tool, which gives you possibility to edit XML files easily:
http://forum.xda-developers.com/showthread.php?t=640592
AXML is what I used, but re-editing it is no problem. I tried using apktool, but it gives me a "java" is not recognized as an internal blah blah message.. I've googled it, and made sure the environment variables were correct also, just updated Java a couple hours ago as well.
edit: and oh, thanks for the reply.. it's the only one I've gotten so far between here and droidforums so far.
I don't really know, why you don't have java command set in your PATH - I think Java installer does it automatically :-/ You could find java.exe file on your disk and:
Add it to PATH - there are many arts about this in the internet.
Edit apktool.bat file to call java command using full path, i.e. replace "java" with something like: ' "C:\Program Files\Java\java.exe" '.
Don't use apktool.bat, call Java directly: ' "C:\Program Files\Java\java.exe" -jar %WINDIR%\apktool.jar d somefile.apk outdir '

Cant figure out how to change Sprint banner

I dont know how to use CDMA workshop or Hex edit, but I really want to change my Sprint banner. Is there a way to do this using terminal emulator?
No, but a hex editor is pretty self explanatory imo.
If only I had your level of skill and intelligence. I could not even get past step 1. I download the file. The instructions say to remove the .txt extension, but when I download it, it is already in .xml but it is a .txt document, and I cant figure out how to change it.
http://forum.xda-developers.com/showthread.php?t=801537
fmedina2 said:
If only I had your level of skill and intelligence. I could not even get past step 1. I download the file. The instructions say to remove the .txt extension, but when I download it, it is already in .xml but it is a .txt document, and I cant figure out how to change it.
http://forum.xda-developers.com/showthread.php?t=801537
Click to expand...
Click to collapse
goto your folder options in windows and uncheck "hide extensions for known file types".. then you can see the .txt extension in windows
http://www.wikihow.com/Disable-Hidden-File-Extensions-in-Windows-XP Same instructions for XP, Vista, 7
Otherwise CDMA workshop is on isohunt.com if you search for it. Get the cracked version. It will report a false positive with most anti-virus.. no virus though.
Editing now. Never tried to use adb, lets see if I can conquer that...
After I put in the modified version of the .xml how do I 'close the file', or put the framework-res folders contents back into the .apk since I unzipped it. Or do I just push the .apk and leave the extracted folder alone?
Nvm, got it.
fmedina2 said:
Nvm, got it.
Click to expand...
Click to collapse
Assuming this means you got it working? Best bet, for future reference, for help with a specific mod, is to try and post in that particular thread. I know the guy who did the hex edit approach, and he's pretty willing to help .

how to edit a android xml file

yea so I'm wondering how do you edit a android xml file exactly ?
An xml file is just text and some formatting. You can edit xml files with any text editor, even notepad.
For this kind of thing, I recommend PsPad...it's free and is able to handle the formatting/tabbing of all sorts of files.
now i'm getting there lol but when i open it up its all hex
i would like to learn this as well..thanks
furrelkt said:
i would like to learn this as well..thanks
Click to expand...
Click to collapse
Have you tried PsPad ?
i need help
the_scotsman said:
An xml file is just text and some formatting. You can edit xml files with any text editor, even notepad.
For this kind of thing, I recommend PsPad...it's free and is able to handle the formatting/tabbing of all sorts of files.
Click to expand...
Click to collapse
I have opened some xml, plist etc files before. I came across one recently that will not open no matter the editor. It says error blah blah blah.
i guess it's the encoding thing. please can you help?
I have also attached the file i want to open and the image of the error message received so you can be informed of exactly what I am saying.

[Q] XML editing (this certain file)

My problem isnt to know what i should edit, it's more like when i open this file (attached here) i'm getting random text which most likely indicates that it's unreadable.
I tried using notepad at first, then dreamweaver and at last some XML editor from microsoft. All failed. I dont think it's something wrong with the file since it works fine.
Anyone able to get it right? Thanks in advance.

Categories

Resources