[Guide] How to Fix Status 7 Error while Installing ROMs - HTC One X

If you are getting status 7 error while installing any custom ROM, this fix might help you (it helped me too ).
Open the ROM zip using 7-zip or WinRAR,
Navigate to meta-inf/com/google/android & Extract the updater-script.
Open updater-script using Notepad++ & delete the lines that contains the "getprop..." (3 lines)..
Save the file.
Drag it back to the Original zip (the same directory from where you've extracted it) using 7-zip and confirm.
Enjoy Flashing.. :good:
PS: You can also use WinRAR, just change compression method to store.

viraj6990 said:
If you are getting status 7 error while installing any custom ROM, this fix might help you (it helped me too ).
Open the ROM zip using 7-zip or WinRAR,
Navigate to meta-inf/com/google/android & Extract the updater-script.
Open updater-script using Notepad++ & delete the lines that contains the "getprop..." (3 lines)..
Save the file.
Drag it back to the Original zip (the same directory from where you've extracted it) using 7-zip and confirm.
Enjoy Flashing.. :good:
PS: You can also use WinRAR, just change compression method to store.
Click to expand...
Click to collapse
after that i m getting status 6 error
set_perm:some changes failed
tried everything u hv mentioned but still geting status 6 error
please help what i should do now

i am gettin problem after this step
viraj6990 said:
If you are getting status 7 error while installing any custom ROM, this fix might help you (it helped me too ).
Open the ROM zip using 7-zip or WinRAR,
Navigate to meta-inf/com/google/android & Extract the updater-script.
Open updater-script using Notepad++ & delete the lines that contains the "getprop..." (3 lines)..
Save the file.
Drag it back to the Original zip (the same directory from where you've extracted it) using 7-zip and confirm.
Enjoy Flashing.. :good:
PS: You can also use WinRAR, just change compression method to store.
Click to expand...
Click to collapse
i was able to flash a new rom this way but all the roms hang with in few seconds after coming to home screen..help!!!

Related

edit framework-res.apk no boot!

i have all frameworks and apps deodexed
i made some changes on a framework-res.apk then i have repacked it, signed, flash on my rom.
but it no boot, stay ever on "HERO" screen!
i try to modify com.htc.resource.apk , flashing it, and all ok!!
anyone can help me?
M
You can't sign the framework file with a test key! Same applies to Rosie - don't try to re-sign it, or it'll just bootloop.
Just edit the files directly in the zip using 7-zip or something like that
Woops ^^, sounds like your implementing Manup456 SenseHero theme...
Stickman89 said:
Woops ^^, sounds like your implementing Manup456 SenseHero theme...
Click to expand...
Click to collapse
yes but with some changes to color map.. and maybe to components
M
nprussell said:
You can't sign the framework file with a test key! Same applies to Rosie - don't try to re-sign it, or it'll just bootloop.
Just edit the files directly in the zip using 7-zip or something like that
Click to expand...
Click to collapse
yayyyy haha i don't like working on a theme
M
i am on a mac.. i have 7zip ecc ecc but i can't edit without unrar the archive!
help!
just repack the framework-res.apk,dont sign it and it will flash fine
it wont work if you repack framework-res.apk as the classes.dex cannot be compressed, youll notice if you extract a 3mb framework-res, recompressing it makes it 1.5mb
ok so:
1- rename framework-res.apk to framework-res.zip
2- unarchive it
3- do changes
4- recompress all? file into a .zip
5- mv ./framework-res.zip ./framework-res.apk
6- push into the /system/framework directory
right?
mr.bang said:
ok so:
1- rename framework-res.apk to framework-res.zip
2- unarchive it
3- do changes
4- recompress all? file into a .zip
5- mv ./framework-res.zip ./framework-res.apk
6- push into the /system/framework directory
right?
Click to expand...
Click to collapse
Yes, but you must choose to pack in a zip without compression
after renaming to .zip and doing the work just rename to .apk no need to repack that
eriously, im getting pretty tierd of this....
I`ve followed your tutorial (slaved) and it seems to be working awsome, BUT I did it with my own ROM and called it Update.zip and I did everything you said, even let the 9. files alone, but when I'm restarting the system, the boot window is there constantly/for ever, what is wrong?
mr.bang said:
i am on a mac.. i have 7zip ecc ecc but i can't edit without unrar the archive!
help!
Click to expand...
Click to collapse
Make sure you have zip (the package) installed.
You should also install a MAC port of the midnight commander.
Browse to your framework apk and just enter it via mc. It should recognize the magic bytes as ZIP and enter VFS mode, allowing you to enter the apk just as if you were entering a folder.
After you make all your changes (I guess simply overwriting some pngs), just exit from the folder through ".." till you see the apk itself.
There. Done.
I do my cooking on a linux workstation, and this is one way of doing it.

[Q] How to extract firmware package via Kies Firmware Update

can u point out the folder???
It resides in the User Temp folder of your windows user profile.
And is deleted as soon as the firmware upgrade is completed on your phone.
can you post the exact compressed file name..what zip utility are you using.
I know winzip is suck..cant unzip alot of stuff.
What size is the package file ?
if the package is stored on non-english characters..that post problem too.
Its just any random file name ending with a TMP extension. Its about 257MB.
e.g. tmp2EFA.tmp
Still no leads to opening this file.
Post the first line of the file: some formats are identifiable based on their opening signature.
Sent from my GT-I9000 using XDA App
i2umi said:
Its just any random file name ending with a TMP extension. Its about 257MB.
e.g. tmp2EFA.tmp
Still no leads to opening this file.
Click to expand...
Click to collapse
What unzip program are you using ?
Can you try change the extension to .7z and use WinRar to unzip it..Winzip no go
Before Kies starts to flash the firmware, it decrypts the .tmp file to .zip file in the same directory. When Kies update window says "Extracting binary file" or something like that, you can copy the zip file from temp directory. It contains one tar and one dll file. Tar file can be flashed with Odin
Norpa76 said:
Before Kies starts to flash the firmware, it decrypts the .tmp file to .zip file in the same directory. When Kies update window says "Extracting binary file" or something like that, you can copy the zip file from temp directory. It contains one tar and one dll file. Tar file can be flashed with Odin
Click to expand...
Click to collapse
If that's the case, are there any other ways to decrypt this file back to zip directly than doing the whole upgrade thing again just for the zip?
hmanxx said:
What unzip program are you using ?
Can you try change the extension to .7z and use WinRar to unzip it..Winzip no go
Click to expand...
Click to collapse
Tired all. no go.
i2umi said:
Tired all. no go.
Click to expand...
Click to collapse
Use the method given on post #8

[Tutorial] How to Enable/Disable CRT-Off for ICS ROMs

This tutorial is written for those interested in modifying the framework-res.apk to enable/disable CRT-Off effect on ICS (Samsung) ROMs using Windows 7. I'm sure it doesn't vary that much with other operating systems. I have used many tutorials from XDA (sources below) - but I will compile everything into one easy guide. Hope this helps! Otherwise, you can get the CWM flashable ones here.
What you need
- APKTool: apktool.jar, aapt.exe, apktool.bat, apktool1.4.3.tar.bz2
- APK Multi-Tool
- XML Editor: Notepad++ or Windows Notepad
- WinRAR or 7-zip
Update: You can also use this modified ApkTool. - thanks sileshnair.
Instructions
I will be splitting this tutorial into several steps to break down the processes (and possibly provide easier troubleshooting help).
Setting up the Files You Need
1. Download all the files needed above.
2. Install necessary programs (winRAR, 7-zip, Notepad++, APK Multi-Tool, etc.)
APK Multi Tool should ask you to choose a default folder. Just make sure you know where it is.​3. Create a folder where you can access. (for me: My Documents/Flash/APKTool)
4. Place: apktool.jar, aapt.exe, apktool.bat, and apktool1.4.3.tar.bz2 into that folder.
Decompile
1. Obtain framework-res.apk from your phone. This can be done using Root Explorer and going to: system/framework/
2. Place framework-res.apk into the folder where you placed apktool.jar (and the rest of them).
3. Exit the folder (so that you are looking at it as "APKTool"). Hold-shift and right-click the folder (APKTools), and select "open command window here.
4. A command prompt should pop up. Type the following:
apktool if framework-res.apk​apktool d frameowrk-res.apk
This should decompile the framework, allow it to run and close after it completes.​
Editing CRT-Off Effect
1. Once the decompiling completes, go back into "APKTools" folder and you should see another folder (framework-res).
2. Open it, and go to: framework-res/res/values.
3. Right-click bools.xml and either press "edit" or "edit with Notepad++".
4. Find the line that says "(bool name="config_animateScreenLights">true</bool) (I changed the first and last part into brackets because it would comflict with the forum code, it should be "<" and ">" respectively).
5. Change the "true" to "false".
6. Save and close.
Compiling
1. Go back into APKTools folder where you had apktool.jar, apktool1.4.3.tar.bz2, etc.
2. Unzip apktool1.4.3.tar.bz2, and unzip again, inside should be a file called "apktools.jar". Replace the original one in "APKTool" folder.
3. Leave the folder (like you did in decompiling) and hold shift and right-click the folder and select "open command window here".
4. Type the following in the command window:
apktool b framework-res​5. Now go to: APKTool/framework-res/dist/
6. There should a file created called "framework-res.apk", right-click and open with winRAR or 7-zip.
7. In winRAR, click "Extract To" and press OK. (Pretty sure you can extract in 7zip too).
8. This should create a new folder called "framework-res". Go inside it where you see the files (assets, res, AndroidManifest, resource.arsc).
9. Go find your original framework-res.apk (located in the root APKTool/ folder) and right-click and open with winRAR (or 7zip).
10. Select "META-INF" and "AndroidManifest.xml" and extract it to the folder created in step 8.
11. Select-all the files within the folder (of step 8) (it should now contain: assets, res, META-INF, AndroidManifest, resource.arsc) and right-click and "add to archive" (again, with winRAR - sure 7zip is something else).
12. In the prompt, change the following: Archive format = zip, Compression method = store. Press OK.
13. This should once again create a framework-res.zip file in the folder.
14. Press alt (assuming you are using Window 7) > Tools > Folder Options. Press the view tab, and uncheck "hide extensions for known file types.
15. Rename "framework-res.zip" to "framework-res.apk".
Now this "framework-res.apk" file is ready to be pushed to your phone's system/framework folder. Your phone should hang, restart it, and you now have CRT-Off effect! If you want to make a CWM flashable - below is the tutorial.
Making a CMW-Flashable File
1. Go below and download my template.zip. Extract the folder "template".
2. Take the completed framework-res.apk from earlier and place it in: template/system/framework.
3. In the template/ root directory, select META-INF and system and right-click, add to archive.
4. In the prompt, change the following: Archive format = zip. You can rename it to whatever you wish "LPS_CRTOff_On.zip".
5. Take the zip file to where your APK Multi Tool directory and place it in the "place-apk-here-for-signing" folder.
6. Open APK Multi Tool application from the start menu > programs.
7. Press any key to continue, and press 19 (Sign an apk (Batch Support)(inside place-apk-here-for-signing folder only)).
8. It should close when it is done, the zip is now ready to be flashed with your phone.
And there we go. I tried! LOL. Good luck. =) If I wasn't very clear, you can go back to my sources and derive what I did from them.
Sources
- [MOD] Decompile and Rebuild ICS framework-res.apk without errors by stars2
- [Tutorial] How to add CRT TV off effect by tweezit
- [TUTORIAL] How to create an CWM installable .zip (Mod) by FlorisNL
Thanks, thanks and thanks. This is the first method that works for me to decompile framework-res.apk and systemui.apk. Thank you.
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Brotuck said:
Nice writeup thanx !
But isn't it easier to just use apk-multitool for the entire thing ?
I know i always do it like this (even when it still was called apk manager)
Click to expand...
Click to collapse
I tried it with ICS roms and it did not work for me. Thus - having to use the apktool instead. =(
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
sileshnair said:
This apkmanager will work on ICS roms. Tested. All credit to Wanam.
Click to expand...
Click to collapse
Sweet thanks!
@krazykat
On bools.xml:
<bool name="config_animateScreenLights">false</bool>
It is set to 'false' by default.
Any idea on this? Thanks in advance.
More info: Xperia Neo V, official ICS 4.0.4 by Sony
dafuq is CRT-OFF?
Thanks you so much @ OP
It was a very simple task.

How to Remove or Change "Swipe Screen to Unlock" NEW

:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
.line 159
......
.......
Click to expand...
Click to collapse
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!​
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.​
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
help!!
AsmirGT said:
:highfive:Hello,
i used this tut from this link below and sucsefully removed unlock text on my sgw with REBEL ROM
here is the link:
http://forum.xda-developers.com/showthread.php?t=1561369
the only differnce at me was the line to delete it into CircleLockScreen.smali.
i'm newbe but its very simple
If you like it press Thanks Button :fingers-crossed::fingers-crossed: by dev LegendK95 for this tut
P.S: At first i have error at cmd window and had to rename folder.
You can download the Unlock.rar file from DL Link unpack it on your PC push your android-policy.jar file into folder and follow the post from Dev.The Folder include all files you need to mod
DL:
http://dl.dropbox.com/u/70025396/Unlock.rar
IF YOU WANT CHANGE LOCKSCREEN TEXT AND ANOTHER ONE THIS IS TUTORIAL HOW I DO THAT SUCCSEFULLY!!!​
You need:
1.APK Manager or APK tool installed on your PC and Notepadd++ for editing .xml files and 7Zip to open .apk files
2.Copy your original framework-res.apk into Input Folder
3.rund script.bat for Windows user right click run as admin.
4.Choose first option 22 to set the current project
5.Choose 9 to decompile framework-res.apk
6.now you goto folder /projects/framework-res.apk/res/values/strings.xml and open it with Notepad++
7.Now you can edit what you want to change.(THIS IS ONLY FOR ENGLISH!!!)
7a. Ctrl+f and searc for "swipe to unlock" and change text
7.b I look by Ibanez7 some silly Screenshot where he changed
RECOVERY---> BOOTLOOP or
DOWNLOAD --> HARDBRICK :laugh::laugh:
you can change if you want those things just a few lines under Unlocktext line,you see it.
see here :
http://dl.xda-developers.com/attach.../4/8/0/6/5/uploadfromtaptalk1340385533687.jpg
If your system language is e.g German as by me you must goto
values-de/strings.xml and make changes there.​
All changes made now we must recompile framework-res.apk
8. Choose 11 to recompile and wait
8a. Choose Y for system file and choose Y at second question.
8.b we have 2 folders now build and keep folders
9.We made changes of .xml files so we goto keep folder on the root and delete resources.arsc from keep folder and push any button
9a. into input folder we have file unsignedframework-res.apk
9b. Choose 12 to resign the file.
When i put those file into system/framework folder i have a lot of FC so i do a follow step.(IT'S VERY IMPORTANT)
10. Choose original framework-res.apk rightclick -->7Zip--->Open (let this window open)
11. Goto Apk Manager Folder then to projects/framework-res.apk/built/apk and pick the resources.arsc file and drag and drop copy into 7 Zip Opened window.Apply it.
12.Close 7Zip Window.
13.Push framework-res.apk file from input folder NOT signedframework-res.apk
into system/framework and overwrite the original one.
14 Reboot once and thats all
Enjoy :highfive::highfive::highfive:
C ya
If you like it press -----> Thanks Button
Click to expand...
Click to collapse
it keeps me sending annoying FC screens.. i follow all the directions carefully, what should i do
thenks

[MOD] No Increasing Ringtone + HOW to ! - Sprint S3

Hey guys !
I made a quick NoIncRing MOD, I figured while i was at it i would explain how to create the MOD.
I would like to Thank criskelo for his ZIP :
http://forum.xda-developers.com/showthread.php?t=1700174
I don't own an S3 but i did have the mod checked by an owner (works), i don't know what rom's it will work on so make a backup (as i said in the instructions).
How to Flash :
1. make sure you phone has a CWM recovery
2. backup SecPhone.apk and Secphone.odex (for odex rom's)
3. download the zip and place it in your internal SD
4. flash using, install zip from sd - choose zip from sd card
Download :
[urlhttp://www.mediafire.com/?h3nriarzvifhug2[/url]
*Tested on LEN
I'll be happy to make Mod's for Any ROM you want. Simply attach the SecPhone.apk application from System/app
HOW TO ?
1. extract Secphone.apk from your phone/rom - system/app
2. download baksmali.jar and smali.jar from : http://code.google.com/p/smali/
3. extract classes.dex from SecPhone.apk
4. Put the classes.dex in to a folder alon with smali.jar and backsmali.jar then open a COMMAND window and navigate to the folder.
5. enter the following command :
java -Xmx512m -jar baksmali.jar -a 15 classes.dex
Click to expand...
Click to collapse
6. You will now have an OUT folder, inside find : Ringer$1.smali
7. Look for 2 lines containing :
setstreamvolume
Click to expand...
Click to collapse
8. Erase them (one is at the middle and one at the end)
9. now go back to your folder with classes.dex, OUT folder and smali.jar and erase classes.dex (VERY IMPORTANT !!)
10. In the command window enter :
java -Xmx512m -jar smali.jar out -a 15 -o classes.dex
Click to expand...
Click to collapse
11. Now you will have a new classes.dex , drag it back in to your SecPhone.apk and in to my ZIP.
12. Flash and enjoy
this is such a great mod! Thanks again. Works perfectly!
So many awesome MOD.
Your welcome guys
Thanks for the mod but where the heck does secphone.apk live so I can back it up? A search in ES File explorer yielded no results.
Ah there you are............. system/app/
Hey I'm learning this stuff. That's my story and sticking to it!
the best way to figure these things out is by opening my zip with 7zip or winzip.
Inside you will see META-inf and system
then you can tell where the apps/xml's go !
system/app/secphone.apk
yoelsd said:
the best way to figure these things out is by opening my zip with 7zip or winzip.
Inside you will see META-inf and system
then you can tell where the apps/xml's go !
system/app/secphone.apk
Click to expand...
Click to collapse
That's good to know.
The Mod works great on my SPH-L710. Thanks!! :good:
?
Has anyone tried this mod yet with the LF9 update?
Update: tried to apply Sprint's latest update from an update zip in CWM in another thread in this section and it failed because the update could not find "secphone.apk". So I copied back secphone.apk and secphone.odex, did the Sprint update.zip (LF9) and then re-flashed this mod. So far everything is working well.
This works GREAT for the Note II. Thank you for posting it!
Can this be updated for LJ7?
Sent from my SPH-L710 using xda premium
It works on LJ7 if you follow the how to.
yoelsd said:
HOW TO ?
1. extract Secphone.apk from your phone/rom - system/app
2. download baksmali.jar and smali.jar from :
3. extract classes.dex from SecPhone.apk
Click to expand...
Click to collapse
I tried to follow the "how to" so that I could do this myself. However after extracting SecPhone.apk there is no "classes.dex" inside of SecPhone.apk... What should I do to get this to work?
I am running the: Sprint LJ7_update_FULL_Odex Rom
Thanks in advance!
mod applied
I followed your instructions ad succesfully applied mod on galaxy i9100 XWLSJ stock rom.
thanks
delete plz
I downloaded the smali and baksmali files and followed the instructions but when I enter the first code my cmd windows says it can't be accessed. Any help? Do I need to decompile first or can I just open the apk with winrar?
Has anyone else got this to work on MD4? I looked for the setstreamvolume and could only find one line. Is that all there is?
I finally got this to work on MD4.
i can confirm that this does NOT work on MD3 rom.
Has anyone figured out how to fix that on md3 rom? I'm usie an app, which works, but also is always running in the background.

Categories

Resources