[TUT] Secphone recompiling - Sprint Samsung Galaxy Note II

Hello All,
How many of you devs have been struck by the angst of recompiling the pesky SecPhone.apk? Or how many of you have just said the hell with it I will just have someone else who knows more do it for me?
Well I yesterday, I was actually making some changes to the SecPhone.apk file, and when it came time to recompile, BAM errors all around. Needless to say it took great, restraint on my part not to throw my laptop across the room, I've already had to replace the screen for punching it!
I then sat and thought to myself, this is enough, I have to figure this out, so I use a brillant AIO program, I'll post what you need in a few. I opened the log file and low and behold it came up with a bunch of geek speak, but upon close observation, it pointed out the following;
Code:
D:\AIO\projects\SecPhone.apk\res\values-es\strings.xml:195: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AIO\projects\SecPhone.apk\res\values-es\strings.xml:196: error: Unexpected end tag string
D:\AIO\projects\SecPhone.apk\res\values-es-rUS\strings.xml:204: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AIO\projects\SecPhone.apk\res\values-es-rUS\strings.xml:205: error: Unexpected end tag string
D:\AIO\projects\SecPhone.apk\res\values-it\strings.xml:201: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AIO\projects\SecPhone.apk\res\values-it\strings.xml:202: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException:
Now before I go further, here is what your going to need:
An apk decompiler / recompiler
RUJELUS22s Android AIO Tool created by - Rujelus22. This is the one that I use, and recommend.
APKManager is another one I have heard of by Daneshm90.
Notepad++
Now for this period of instruction, the objective is to get you to recompile your SecPhone.apk. So, pay close attention, this Grumpy 'Ole Marine, doesn't like repeating himself......<Semper Fi to all you Devildogs!!!>
The portion of the log file above, is actually telling us where the errors are and what they think we meant to add.
Go to your - \res\values directory and open the following files and look these lines for each;
values-es 195, 196
values-rUS 204, 205
values-it 201, 202
For the purpose of this tutorial I am only going to work with values-es.
When we look at line 195 and 196, this is what we see;
Code:
"line 195" <string name="throttle_time_frame_subtext">"%1$d% del ciclo transcurrido. Próx período en %2$d días (%3$s)"</string>
We are now going to open up values.xml and compare these lines. (be advised, that the line numbers will probably be different) Just search for this "throttle_time_frame_subtext"
Code:
"line 209" <string name="throttle_time_frame_subtext">"%1$d٪ of cycle elapsed
Next period starts in %2$d days (%3$s)"</string>
Look at both lines. What's the difference? .......You took too long, <grumbles to himself> , look below;
Code:
values-es - %1$d%
values - %1$d٪
Freaking amazing how something so small can just prevent you from recompiling. Now you can make those changes to the other files and you should be able to recompile, no problems....
Here is another way of doing it, my Teammate Sniper showed me this one. :highfive: In the above code it asks the following;
Code:
did you mean to add the formatted=[COLOR="Red"]"false"[/COLOR] attribute?
That is basically giving you the answer, so with that information you can add this "false" attribute after the _subtext"> like so;
Code:
From:
"line 195" <string name="throttle_time_frame_subtext">"%1$d% del ciclo transcurrido. Próx período en %2$d días (%3$s)"</string>
To
<string name="throttle_time_frame_subtext" [COLOR="Orange"]formatted="false">[/COLOR]"%1$d% del ciclo transcurrido. Próx período en %2$d días (%3$s)"</string>
That's it. Make the changes to the other files, and you should be able to recompile. Also, side note. When editing any .smali file you need to delete the classes.dex file before you recompile. Then with 7zip, right click the new apk, and open archive, and compare the classes.dex file with the original one, and they should be different sizes.
Hope this helps you all...

Very nice work here sir... I'm sure someone here has been needing this info! :good:

Ya know, I was just playing with a transparent secphone the other day and I couldn't get it to work so I deleted my changes. Figured I'd come back to it later cuz I didn't have time that day an I wanted to push the theme out.
It must have had issues from the start when samsung released it...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-Team Nocturnal Like A Boss
-Galaxy Note II Lab Rats Edition

Thanks OP great info

Thanks a million Gyrene!!! I was stuck on this damned apk, this worked like a charm!
Thanks for taking the time out to check into find the culprit and post it up for us!!:good::good:
:highfive:

I'm glad it helped you out.
Sent from my SPH-L900 using Tapatalk 2

I've been trying to recompile a jar file for days to no avail! This will help me a bunch. I'm no dev but I've been teaching myself a few tricks. Thanks a million for this thread!
Sent from my SPH-L900 using xda app-developers app

I'm glad it can help...Good luck...

Related

AXMLPrinter2 - Convert Android binary XML to human-readable XML

I've been poking around HTC's key.apk and HTC_CIME.apk in the hopes of somehow finding a way to activate the XT9 functionality (aka "Compact qwerty" and "20-key"). Still working on that. In the process, I found a neat little java app called AXMLPrinter2 which as the title suggests, converts Android's binary XML files back to human-readable XML. Take a look:
Code:
c:\and_test\java -jar AXMLPrinter2.jar p1220_symbol_sip.xml > p1220_symbol_sip.txt
Contents of p1220_symbol_sip.txt said:
<?xml version="1.0" encoding="utf-8"?>
<keyboard
width="53.0px"
hgap="0.0px"
vgap="0.0px"
height="55.0px"
keyTextSize="24.0px"
popupTextSize="32.0px"
accentPage="4"
keyboardBackground="@7F020074"
keyboardPadding="0,2,0,4"
functionKeyBackground="@7F020032"
commonKeyBackground="@7F020031"
pageKeyBackground="@7F02008A"
>
<row
>
<key
codes="0x0028,0x0040,0x005E,-14"
label="("
hgap="1.0px"
leftEdge="true"
popupCharacters="@7F08006B"
popupDelay="0"
accentType="3"
alignIndex="0"
>
</key>
...
Click to expand...
Click to collapse
Edit: there's supposed to be tabbing but xda forum code stripped em.
Well,
Now I can read the .xml but how can I edit it. I have the hex editor but the strings seem different.
beagz said:
Well,
Now I can read the .xml but how can I edit it. I have the hex editor but the strings seem different.
Click to expand...
Click to collapse
Hex editors are for modifying BINARY files, not plain text xml files. Use notepad, or something. But you'll need to rebuild the xml files after modifying for them to be of any use.
No I meant I can find the corresponding code in notepad using the .txt output and then I can change it in the hex editor. But I am trying to figure out what values to change.
.txt
text color="@7F050000"
.xml (hex)
00 00 05 7F
I can find the value but what part should be changed? in hex I know from stericson that values = BGR but which 6 of 8 should be changed?
OK, I found the problem. The ones that control color all have #FFFFFFFF as the format not @FFFFFFFF
thanks.
beagz said:
No I meant I can find the corresponding code in notepad using the .txt output and then I can change it in the hex editor. But I am trying to figure out what values to change.
.txt
text color="@7F050000"
.xml (hex)
00 00 05 7F
I can find the value but what part should be changed? in hex I know from stericson that values = BGR but which 6 of 8 should be changed?
Click to expand...
Click to collapse
Looks like its just different endianness.
This app isn't particularly useful if you just want to alter color values in a hex editor. It's more for a situation where you want to completely alter ui elements in an app without source code.
So then is there a way to convert back to binary?
anyone ever find a way to convert them back?
wow .. wrong thread lol
xile6 said:
anyone ever find a way to convert them back?
Click to expand...
Click to collapse
good question. anyone?
temporizer said:
good question. anyone?
Click to expand...
Click to collapse
yea i answered this in another thread .. lemme go look for my answer
EDIT: they talk about it here
Once you get xml element in notepad then how to convert it back to binary XML file
@above
valid question. im still searching for this answer myself.
im kinda out of place here but have been theming for a little while...but wanted to post this. its the axmlprinter2 and also amlprinter. the second file is an app that opens the xml inside of windows with out having to type in anything in cmd
from what i know you cant change anything in the file this way but at least it cuts a step or two out. enjoy
i prob wont see this thread again so pm me if u have questions
Why dont you guys just use apktool ? it allows you to read the xml, edit it and compile it back.
Apk tool is having issues with apps for 2.2. It is dependent upon smali, which JF will update soon. Other than that, it is probably your quickest way to edit xml.
Hi, I just tried to use AXMLPrinter2 to decode the status_bar.xml extracted from a 2.2 distribution. I get java.lang.ArrayIndexOutOfBoundsException.
If possible, can you confirm if this utility works with 2.2?
Thanks!
I'm getting the same problem, I cannot open XML files. I get an error. Any assistance?
Bump, same problem
What is wrong there:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ZduneX25 said:
What is wrong there:
Click to expand...
Click to collapse
I'm getting the same problem

[UTIL] REG/RGU Cleaner

Hi,
I've been looking for some app, that will take my .reg or .rgu file (dump of WM registry), specially for OEMDrivers rgu, which is over 300kB large, delete duplicated stuff, sort it etc.
That's why I created this app.
What can it do:
- Grabs your input file, goes through it, takes together all registry nodes, when you have some key twice or more times, it gets overwritten so you're sure it isn't anywhere else after that
- Put it back to new output file
- Can remove "padding" zeroes at dwords, like you have "something"=dword:0000001 -- it removes the first zeros. They are not needed there and it is way readable IMHO (maybe not for everybody, so I made it as checkbox)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It made from OEMDrivers RGU of size 313kB new one with only 270kB! With human readable lines
With version 1.7 I fixed bug, that it got saved as ANSI rather UNICODE (thanks for others noticing that), thus having 50% of file size compared to supposed size. But Unicode is the right way to save that, sorry guys! (Platformrebuilder can use both, but OSBuilder maybe not? Well this is the better way).
Also, with 1.7, there's added option to run it from command line like rgucleaner.exe <sourcefile> <targetfile> and it _should_ close itself, but I'm not sure, I can't test it now. It was done as request
Version 1.8 update -- fixed "="="something" line in Mango beta for HD2. (thanks tslany for reporting). Plus now any problem with parsing line when it fails parsing even before checking if it is correct is now catched too rather crashing and reports the problematic line.
REALLY GREAT THING!!! I'd been looking for such soft )
Wait till I get back, I got updated version, I forgot to include mui_sz registry value kind.
Promising tool...thanks bro...
OK, version 1.2 UP on first post!
Fixed registry, where was - on beginning (delete)
Added support for mui_sz string values
OndraSter said:
OK, version 1.2 UP on first post!
Fixed registry, where was - on beginning (delete)
Added support for mui_sz string values
Click to expand...
Click to collapse
great tool bro .......i dont know what are the entries it delete but my rgu changed from 138 ko to 86 ko and i seems my touchflo becames very fast after flashing
thanks once again for this
It doesn't delete anything, but:
1. loads into "virtual registry" as if it was in real registry
2. overwrites stuff that are twice etc (same name in each subkey) -- here gets lost most of the stuff, since many lines are in it sometimes more than one time*
3. and dumps from the "virtual registry"
And yes, for some unknown reason, whole system feels faster. But that's just some kind of psychics LOL.
*EXAMPLE:
[HKLM\something]
"foo"=dword:0000001
"bar"="hujah"
"woohoo"=mui_sz:"phcanoverbmp.dll,#32"
[HKLM\something]
"bar"="newone"
will merge into
[HKLM\something]
"foo"=dword:1
"bar"="newone"
"woohoo"=mui_sz:"phcanoverbmp.dll,#32"
just as in real registry or when going in prb would happen.
Nice work !!!
Thank you
Thanks for this great tool!
Hi OndraSter!
This is a great tool! And too [email protected]#n fast!!! Nice Work again
I was trying to make something like this for cli usage, but failed miserably! lol
So here I am, suggesting you to add a cmd line usage.
Something like :
Code:
RegCleanup.exe -IMGFS -XIP
that could be used while dumping a rom so all the registry files from imgfs and xip would get cleaned up!
Just a suggestion...
Anyway, thanks for all your work!
Regards!
Hi kokotas,
You mean like go through all packages and clean their registry files?
I think it is possible, Ill look on it when I get some time
Hello,
OndraSter thank you for this handy utility. I'm having a problem with the RGU attached. We hope you find its origin.
By.
Fixed, nasty bug
It was reading line 844
"DialSuffix"=";"
and everything after ; was marked as comment and didnt check if it isnt in " actually.
Should be working now, it parsed it fine (Version 1.3)
Thank you very much
Tested it with the driver's .rgu and it is a very nice tool - cleaner and better readable registry files - nice
I'm having a problem with the RGU attached v1.3
Yay your RGU was devil's made
Never seen (not sure if they are actually supported!) comments in rgu like
/* something */
or lines with just ========================
So I added checkbox "inform on incompatible lines" which, when checked, will popup lines it failed to load
Also I fixed the
"something"=-
lines, which were supposed to get deleted (but they didnt in previous versions)
1.4 up!
Thank you for your program!
Now everything works perfectly
How to use this program? Can guide me along? Thanks...
The smile means that you are just joking?
Just click on Input and select input file (the one that will be parsed)
Then click on Output and select output file (there it will be saved)
and click on GO

[Q] ROM translation

Hello!
I do not know where to ask this, so maybe I am wrong in this topic, I apologize for this.
I would like to translate an existing ROM to German, the Ultimate Droid 2.5.0 ROM. At the developer's forum nobody responds to my questions, but I really love this ROM and would like to have it in German.
I do not need any translator or translation help as I am a translator for English myself, I only need advice how to unpack the files, espacially which files I need for this, and how I repack and flash the whole thing again.
Thx in advance.
Somewhere in the XDA forums you will find an application called apktool.
Download it and extract it somewhere.
Then copy inside the applications folder the framework-res.apk file.You gonna find it inside the ROM you re trying to translate.In the same folder you should copy all the applications that you want to translate.
So now you need to decompile each and every one of them.
Run CMD.EXE and browse to that folder.Then type:
apktool if framework-res.apk
apktool d framework-res.apk (where framework-res.apk it can be anything..e.g Mms.apk,Settings.apk,Browser.apk...)
You will see a new folder named framework-res.Inside that folder you ll find another one called res and inside it another called values.From the values folder you should translate strings.xml and arrays.xml(if available).
Do this for every application that you want to translate.When you re done with the strings let me know and i ll assist you further.
A little help on where to post threads!
Post What Where:
General - general technical discussion items, news, anything else that does not fit into the other fora categories.
Q&A (Questions and Answers) - all questions, irrespective of type, get posted in here whether they be theme related, accessory related, technical, etc.
Accessories - any items to do with components and/or accessories relating to your device.
Rom Development - only meant for very advanced technical discussion directly related to ROM development activity and the delivery of actual ROMs and ROM components ONLY. Nothing else goes in here.
Themes & Apps - anything to do directly with the development of themes and/or applications. Nothing else goes in here.
Thx rolfd for moving the thread
Thx Ivanovic for your help, everything works fine with apktool. Now I got the folder u mentioned. I got the code:
<string name="cancel">Cancel</string>
<string name="copy">Copy</string>
<string name="copyUrl">Copy URL</string>
<string name="cut">Cut</string>
<string name="defaultVoiceMailAlphaTag">Voicemail</string>
<string name="defaultMsisdnAlphaTag">MSISDN1</string>
<string name="emptyPhoneNumber">(No phone number)</string>
<string name="httpErrorBadUrl">The page could not be opened because the URL is invalid.</string>
<string name="httpErrorUnsupportedScheme">The protocol is not supported.</string>
<string name="no">Cancel</string>
<string name="ok">OK</string>
<string name="paste">Paste</string>
<string name="search_go">Search</string>
<string name="selectAll">Select all</string>
Click to expand...
Click to collapse
Do I need to translate the whole <string ... </string> set or "only" the things between > and </string>, like >Select all</string>?
I also got some folders called values-... in my directory now, do I need to do something there? I attached a screenshot where you can see what I mean.
Thx in advance!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Only the stuff between <string> and </string>.
Only the xmls inside values or values-en.The strings are usually located in the strings.xml,arrays.xml and plurals.xml.Only the first is allways there.
Sent from my HTC Desire using Tapatalk
I am done so far with the framework, I translated both strings and arrays in the values folder, now I tried to open the settings.apk, but I got the following:
How can I solve the problem?
You dont need to do the if settings.apl
This is only for framework installation
Which means:
apktool if framework-res.apk
apktool d framework-res.apk
apktool d Settings.apk
apktool d Mms.apk.....
You install the framework using the if framework-res.apk and you decompile the APKs later using d XXX.apk
It works fine. What do I need to do to rebuild the ROM later?
Did you just decompiled all the APKs and translated the strings inside the values-folder?
If yes then use the following command to rebuild the APK
apktool b ./folder name of the decompiled apk goes here/ newnameoftheapk.apk e.g apktool b ./settings/ SettingsDE.apk
In a while you ll see the new APK.Right click on it and open with 7zip.Do the same for the original APK too(Take it off the zipped rom and place it in the dekstop).Then having both APKs opened with 7zip drag n drop from the new APK to the old the file resources.arsc
Do the same for every APK that you have translated strings.
I am done with the translation of the needed files, I attached the decoded files and the error log I get when I try to repack the whole thing. Something is wrong with the public.xml, but I got no idea what to do. Maybe you can find the problem.
Merry Christmas btw
First of all create a folder named values-de (inside res folder).
Thats where you keep your translated files.Strings.xml,arrays.xml and plurals.xml
Only strings.xml is always there.The other two not always.

csc opening file.rsr

hello
i can't open file rsr with p3do explorer it says me acces violation
how can i open this file ? it's not an image ?
yakapa40 said:
hello
i can't open file rsr with p3do explorer it says me acces violation
how can i open this file ? it's not an image ?
Click to expand...
Click to collapse
You can see file rsr with Wave Remaker.
Read this thread: http://forum.xda-developers.com/showthread.php?t=984482&page=27
thanks
i know how i can see file rsr i'm testing a custom csc on my wave 723
i've find :hexedit
You can edit rsr file with Wave Remaker
There is import/export function to edit languages in txt format
Also rsr files from the CSC from the SDK are very useful....those contain all the languages supported so far
It is not an easy job but it is not too hard to do
Best Regards
i would like to delete some languages from xxx.rsr
with samsung geextractor it's too long file by file
with wave remaker key delete run but not save
is there another solution ?
yakapa40 said:
with wave remaker key delete run but not save
Click to expand...
Click to collapse
Instead yes, with wave remaker you can save it. See here:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello,
I made a small program to edit and compare .rsr files.
This is an alpha version, there is still a lot of bug.
It exists only in French for now.
Tell me what you think.
Thank you
Download:
-http://www.mediafire.com/download.php?8nb562511ebtc18
-http://dl.dropbox.com/u/40346750/LBE/Langage%20Bada%20Editor%20V1.0.0.0%20Alpha.rar
wave remaker : i've not see control file for saving
thanks every body
matheo1010 said:
Hello,
I made a small program to edit and compare .rsr files.
This is an alpha version, there is still a lot of bug.
It exists only in French for now.
Tell me what you think.
Thank you
Download:
-http://www.mediafire.com/download.php?8nb562511ebtc18
-http://dl.dropbox.com/u/40346750/LBE/Langage%20Bada%20Editor%20V1.0.0.0%20Alpha.rar
Click to expand...
Click to collapse
Thanks! Awesome! Can I help you to translate it in Italian and English?
to aurex
no, thanks for me ,my job is done new file string:1,74 Mo (original::5,12 Mo)
yakapa40 said:
to aurex
no, thanks for me ,my job is done new file string:1,74 Mo (original::5,12 Mo)
Click to expand...
Click to collapse
I was referring to matheo1010
RSR Editor
hi, it's me again
yes I know Wave Remaker do this for a long time. However, something was missing
2nd thing - i measured time I was writing this script and, to be honest, i would NOT feed my family if want to do this as my basic way to make money, seriously. I spent over 3 hours to write that script and i must admit I could better spend that time
now it's time for small preview
Code:
Rsr Editor
---------------------------
<1.> Select languages
<2.> Parse rsr to xml
<3.> Parse xml to rsr
<0.> Quit
Select languages you want to preserve or press enter to exit (STRING_ID is dumped anyway).
ENGLISH selected
POLISH selected
done
Rsr Editor
---------------------------
<1.> Select languages
<2.> Parse rsr to xml
<3.> Parse xml to rsr
<0.> Quit
processing /SystemCSC/String/...
parsing Admin.rsr...OK
parsing AppTimer.rsr...OK
parsing AppWidget.rsr...OK
parsing BluetoothApp.rsr...OK
parsing BookmarkViewer.rsr...OK
parsing Browser.rsr...OK
parsing CallCommon.rsr...OK
...
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<LANGUAGES>
<STRING_IDS>
<IDS type="ASCII">IDS_FM_BODY_ALTERNATIVE_FREQUENCY</IDS>
<IDS type="ASCII">IDS_FM_HEADER_FM_RADIO</IDS>
<IDS type="ASCII">IDS_FM_BODY_MHZ</IDS>
<IDS type="ASCII">IDS_FM_POP_EARPHONE_NOTCONNECTED</IDS>
...
</STRING_IDS>
<LANGUAGE>
<ID type="INTEGER">1</ID>
<NAME type="ASCII">ENGLISH</NAME>
<STRINGS>
<STRING type="ASCII">Alternative frequency</STRING>
<STRING type="ASCII">FM radio</STRING>
<STRING type="ASCII">MHz</STRING>
<STRING type="ASCII">Earphone not connected</STRING>
<STRING type="ASCII">Frequency</STRING>
...
</STRINGS>
</LANGUAGE>
</LANGUAGES>
br

[Q] 4ext Status Error overview

Hi,
so i had from time to time problems with Status errors when flashing something with 4ext. This time it is an Status 6 error. Searching the Internet says me to change the newline symboles from Windows to unix. But they still where unix. So I don't know what other kind of problem can cause this error. Is there maybe an overview with all status errors, what they mean and how i can fix them??
Thank you all
HandyBesitzer
Status 6 could mean the zip is corrupt. Also sometimes when you change the updater script and have a syntax error it will give status 6. Check it over and make sure your not missing any semi colons or anything.
Sent from my HTC Desire using xda app-developers app
That'S the problem i changed the updater-script, but there is everything fine.
here is a picture of the script in Notepad++
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
what can be wrong with the zip file??
i used winrar, choosed zip and compression normal. removed all things from meta-inf folder, and resigned by sign-em.
==EDIT==
just complete repacked the zip but there is still the error
I found it. One of your extracting files lines has the letter 'y' at the end of it. Remove it
chromium96 said:
I found it. One of your extracting files lines has the letter 'y' at the end of it. Remove it
Click to expand...
Click to collapse
good spot. also OP u can check these scripts with the dsixda kitchen for errors
Thank you very much.
How das this with the kitchen work?? i know how to do it with an ROM i set up for working folder but how does it go for a theme pack??
==EDIT==
just removed it, repacked, and tryed to flash, but the same error
HandyBesitzer said:
How das this with the kitchen work?? i know how to do it with an ROM i set up for working folder but how does it go for a theme pack??
Click to expand...
Click to collapse
erm i dunno if it will work, like in the kitchen u can check for errors on a rom zip so just put the theme zip there and create a working folder then try check script for errors. might work, might not.
ok just put the updater-script into the meta-inf folder from my working folder of my GingerSense4 ROM. i converted to update-script and searched fro errors. Hey the kitchen says me that there is a error. -.- but i still doesn't know what it is. Is there maybe a special order the partition needs to be mounted/unmounted??
Check this out http://forum.xda-developers.com/showthread.php?t=2157659
That i allready tryed and how you can see from the pic there is still every newline char converted to Unix.
I just set up the Theme in the kitchen. It gave some errors, because there is no system folder, but i can convert updater to update and check the script. First the kitchen shorten my script up to 3 lines .
At all it found 2 issues. here the output:
==============================================
1/3: copy_dir PACKAGE:sdext /sd-ext
>> WARNING: sd-ext not found in working folder
2/3: copy_dir PACKGE:system SYSTEM:
>> WARNING: system not found in working folder
3/3: copy_dir PACKAGE:data DATA:
2 issue(s) found. Please review the update-script to ensure it is correct.
Press Enter to continue
==============================================
these errors are really funny because every thing worked, before i added the data partition and this didn't cause an error.
These tools i found mite help
UpdatezipCreator
flashpack.zipCreatorV1{TheCollective}w/EdifyScripting
How to Create Android Update Zip
thank you for your help. I just tryed a clean updater-script.
Code:
run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p2", "/sd-ext");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");
package_extract_dir("sdext", "/sd-ext");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
unmount("/sd-ext");
unmount("/system");
unmount("/data");
and i got no error. SO my Question what is the different?? The only thing i changed is that i deletet all ui_prints.
Maybe it's the 3 ui_prints at the end after unmounting?? This was made by an other Member and it worked alll the time, but i thought this looks a bit streang.

Categories

Resources