There's a similar post of how to change the default homescreen in Touchwiz 4.0
unfortunately, the method by changing the "default.prop" did not work for some STOCK ROM (like ZSKF1 and ZSKF4). After spending more than a week, I have find a conclusion. (Don't laugh me spending too long on this. I9100 is my first Android Phone.....and i just want to share with those who suffered like me...)
try this:
1. download the attachment "apktool.rar"
2. extract "apktool.rar" to C:\apktool (easy for locate the files under windows's Command prompt)
3. pull "TouchWiz30Launcher.apk" from /system/app using RE Explorer and put it into C:\apktool
4. now go to CMD (Windows Command Prompt)
5. type the following:
- C:\apktool\apktool d "C:\apktool\touchwiz30launcher.apk "C:\apktool\touchwiz30launcher"
6. once it has finished, you will see there is a folder named "touchwiz30launcher"
7. inside the folder C:\apktool\touchwiz30launcher, go to \res\layout-port
8. find the "launcher.xml and edit it with Notepad
9. find the - launcher:defaultScreen="0"
10. change it to launcher:defaultScreen="3"
11. save and exit
12. go back to CMD and type:
- C:\apktool\apktool b C:\apktool\touchwiz30launcher\
13. now you've got a folder namded "build" under C:\apktool\touchwiz30launcher\
14. open your TouchWiz30Launcher.apk by using 7z (choose "Open archive") you will see a file "resources.arsc"
15. replace the "resources.arsc" with the one uncer C:\apktool\touchwiz30launcher\build\apk\
16. put TouchWiz30Launcher.apk back to your phone.
17. restart
This is the way how I've made it, but to be honest, I AM A NEWBIE, the above method i used to changing something of the Framework, and I found it also work on this.
Please if any expert can improve or point out any mistake.
It's better to have third party Launcher installed just incase if it's not working, and still have a chance to undo it by placing the original files back.
Alas this didn't work on:
Villain ROM 1.4
Also modified the launcher.xml in \res\layout-port-1024x600 but this made no difference.
Anyone managed to figure this out?
andyvaughan said:
Alas this didn't work on:
Villain ROM 1.4
Also modified the launcher.xml in \res\layout-port-1024x600 but this made no difference.
Anyone managed to figure this out?
Click to expand...
Click to collapse
i can 2nd that! would love to see a fix...
Tested on litepro 1.5. Doesnt work
You don't change xml file but you have to make changes to Launcher.smali
find the following lines:
const/4 v0, 0x4
const/4 v2, 0x0 <<< change this value to 0x3
const-string v1, "N"
.line 291
sput v2, Lcom/sec/android/app/twlauncher/Launcher;->DEFAULT_SCREEN:I
.line 292
sput v2, Lcom/sec/android/app/twlauncher/Launcher;-DEFAULT_SCREEN_NO:I
const/4 v2, 0x0 <<< add this line
recompile and copy to system/app folder
hey guys decided to use this thread to clear out one thing.
what should I edit in order to change de app/home button to other position ?
kcchik said:
There's a similar post of how to change the default homescreen in Touchwiz 4.0
unfortunately, the method by changing the "default.prop" did not work for some STOCK ROM (like ZSKF1 and ZSKF4). After spending more than a week, I have find a conclusion. (Don't laugh me spending too long on this. I9100 is my first Android Phone.....and i just want to share with those who suffered like me...)
try this:
1. download the attachment "apktool.rar"
2. extract "apktool.rar" to C:\apktool (easy for locate the files under windows's Command prompt)
3. pull "TouchWiz30Launcher.apk" from /system/app using RE Explorer and put it into C:\apktool
4. now go to CMD (Windows Command Prompt)
5. type the following:
- C:\apktool\apktool d "C:\apktool\touchwiz30launcher.apk "C:\apktool\touchwiz30launcher"
6. once it has finished, you will see there is a folder named "touchwiz30launcher"
7. inside the folder C:\apktool\touchwiz30launcher, go to \res\layout-port
8. find the "launcher.xml and edit it with Notepad
9. find the - launcher:defaultScreen="0"
10. change it to launcher:defaultScreen="3"
11. save and exit
12. go back to CMD and type:
- C:\apktool\apktool b C:\apktool\touchwiz30launcher\
13. now you've got a folder namded "build" under C:\apktool\touchwiz30launcher\
14. open your TouchWiz30Launcher.apk by using 7z (choose "Open archive") you will see a file "resources.arsc"
15. replace the "resources.arsc" with the one uncer C:\apktool\touchwiz30launcher\build\apk\
16. put TouchWiz30Launcher.apk back to your phone.
17. restart
This is the way how I've made it, but to be honest, I AM A NEWBIE, the above method i used to changing something of the Framework, and I found it also work on this.
Please if any expert can improve or point out any mistake.
It's better to have third party Launcher installed just incase if it's not working, and still have a chance to undo it by placing the original files back.
Click to expand...
Click to collapse
hi hk mate,
i suggest u go and download notepad2 or notepad++ etc, which can save txt file in unix format. don ever trust m$ notepad when u r dealing with unix/linux/android/mac
good luck
remorema said:
hey guys decided to use this thread to clear out one thing.
what should I edit in order to change de app/home button to other position ?
Click to expand...
Click to collapse
simply because ppl have diff preferences
Related
How to get a Transparent status bar!
ok ok there are still a few problems to work out but maybe some people smarter than I will know the answers.
Here's what you should know before we begin... MAKE A BACKUP FIRST
at the moment ..
1. this does not work with the stock touchwiz launcher (may be a simple fix havn't looked into it yet.)(well works everywhere but the desktop)
works quite well with ZEAM and not too shabby with GO EX (if you use multipicture live wallpaper from the market)
havent looked into any others.
2. the status bar is still clear on the lockscreen (may annoy some)
fixible with multipicture wallpaper just set use lockscreen settings and then lock screen settings and set a black picture.
probably not perfect but it's a start.
thanks to KBanause for providing the info needed at this link http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
This tut also assumes you have some basic computer skills and can navigate from a command prompt. and that your computer has java installed. (most do you just need the runtime enviroment if you don't have it get it here http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html)
OK if you still want to try this
START HERE
MAKE A BACKUP FIRST
download
clearstatustry.zip (attached above)
unzip this file to a folder (7zip or winrar ect whatever)
you should have 4 files here
baksmali-1.2.8.jar
smali-1.2.8.jar
statusbar_background.9 - 25.png 25% transparency
statusbar_background.9 - 50.png 50%transparency
still here . wow ok you must really want to see this.
pick one of the statusbar_background files and rename it statusbar_background.9.png
now you need the SystemUI.apk from your phone it's in /system/app
grab it with a file browser that has root access and copy it into the folder with that other crap.
next Open SystemUI.apk with your zip tool, do not extract, just open.
navigate to the res/drawable-hdpi/ folder and copy your statusbar_background.9.png over the existing one.
now go back to the root of the SystemUI.apk and Drag classes.dex out to your folder.
open a command prompt and navigate to your folder with these files.
or just shift + right click in the folder you extracted the files to and select open command prompt here.
run this command
java -jar baksmali-1.2.8.jar -o classout/ classes.dex
now go back to your folder
and navigate to classout\com\android\systemui\statusbar
open StatusBarService.smali in a txt editor
find the line
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
above that change const/4 v5, 0x2 to const/4 v5, -0x3
save and close
Go back to your CMD prompt and enter this command
java -jar smali-1.2.8.jar classout -o classes.dex
ALMOST THERE I PROMISE
now copy the classes.dex back into the root of the SystemUI.apk file and close
MAKE A BACKUP FIRST
now just copy that systemui.apk back into the /system/app folder on your phone
dont mind the force close and reboot.
MAKE A BACKUP FIRST
if it doesn't seem to work try a live wallpaper
or use Multipicture live wallpaper from the market to set a static image.
this will probably mess up your phone but hey sorry MAKE A BACKUP FIRST
mjcollum said:
java -jar baksmali-1.2.8.jar -o classout/ classes.dex
Click to expand...
Click to collapse
For those that are unfamiliar with command line and get file not found errors, instead of typing everything try this
Code:
java -jar [b](drag baksmali-1.2.8.jar file here)[/b] -o classout/ [b](drag the classes.dex file here)[/b]
This will fill out the path to your files for you if they aren't in the root directory.
mjcollum said:
Go back to your CMD prompt and enter this command
java -jar smali-1.2.8.jar classout -o classes.dex
Click to expand...
Click to collapse
Same concept here
Code:
java -jar [b](drag smali-1.2.8.jar file here)[/b] [b](drag classout folder here)[/b] -o classes.dex
Either way, thanks for the guide. I'm sure a lot of people will find it useful
Good call I didn't even think to let people know about that.
also another heads up for anyone that doesn't know you can shift + right click in the folder and choose open command window here that way you don't have to navigate to the directory.
Wow- I can't believe this thread got buried with only a few posts.
I have followed these outstanding instructions word for word with no issues at all, however my status bar is still blacker than black! After completing this, I went back and pulled my SystemUI.apk again, decompiled it, and checked to make sure the smali edit and the .9 were still there which of course, they are. Is there an xml color code that needs to be changed as well?? I tested this with both Go launcher and ADW and no luck. Help!?!?
Thanks!
I would think that maybe using the transparent lock screen and this we could figure it out. I would love to have that option!
I really wish we could get this working. its the Last visual hack I want to do on my SII that I can't do. Everything else is perfect just really hate that black bar. I can hide it but then I can't see my info either. Grrrrr
In addition to the smali edit and the statusbar_background.9, I found an XML difference between a miui clear status bar systemUI and all of ours (as in any ET4G systemUI. I'm getting ready to mod it and push it. I'll let you know if it works!
Sent from my SPH-D710 using xda premium
I tried this step by step with no luck. To make it white could you just change -0v3 to -0v1 or make the statusbar image white?
Is this possible with apk manager using notepad++ to edit the smali file and recompiling?
Thanks.
is there an easy way for me to "change" the image to another opaque image ie an actual image not a "color"
I could just crop X pixels from the top of my image and MAKE THAT the background for the status bar if that is possible.
Ok I think I figured it out and I don't even think you have to edit the smali but I could be wrong. You have to edit the layout/statusbar xml file and at the top you see ff000000 which is black and change that to the desired color or make it transparent. I just made mine white but combined with the smali edits shown here but stock statusbar image.
nerys71 said:
is there an easy way for me to "change" the image to another opaque image ie an actual image not a "color"
I could just crop X pixels from the top of my image and MAKE THAT the background for the status bar if that is possible.
Click to expand...
Click to collapse
There is, to do that make sure you have the newest version of Android SDK, Java, and ADB
Download APK Multitool here - http://apkmultitool.com/?q=node/5
Extract it then extract the apps you are going to mod, in your case framework-res and SystemUI.
Put the SystemUI.apk in the modding folder and run the script to decompile SystemUI with the framework-res as a dependency (option 10). Before proceeding, but after decompiling check the log file to ensure everything decompiled without error, otherwise it won’t recompile. Errors are usually due to improperly patched .9.png’s, and while they can be very confusing, you can just swap bad ones out with those from a stock ROM until after you’ve made your edits.
Once you have decompiled without any errors open your project folder (inside whatever you named your APK Multitool folder and navigate to;
res/layouts/statusbar.xml:
On the second line find <com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="#ff000000" android:focusable="true" android:descendantFocusability="afterDescendants"
change it to
<com.android.systemui.statusbar.StatusBarView androidrientation="vertical" android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
Do the same on the second to last line which is the date view. It will have the color code (#ff000000) change it to "@drawable/statusbar_background"
Follow the prompts to recompile and use the new apk created in the mod folder called unsignedSystemUI.apk. In the drawable-hdpi folder you’ll find a png named statusbar_background.9.png, which is what will now be displayed as the status bar instead of the color code. You can make it any color you’d like. Ideally, you should ensure that the .9 is properly patched, but if you swap it out after recompiling it somehow doesn’t seem to matter much.
Good luck.
I just don't feel comfortable going to those lengths just yet.
Guess I will have to wait (hope) for a simpler solution
I tried the metamorph one but it does not work (bad file)
You only have to edit calls to the image in system UI status bar XML as someone above said. No smali edits required. Currently it calls a color code. You want it to call an image. Alternately, you could simply use a color code with transparency as well and skip editing an image all together. =P
Sent from my SPH-D710 using XDA App
nerys71 said:
I just don't feel comfortable going to those lengths just yet.
Guess I will have to wait (hope) for a simpler solution
I tried the metamorph one but it does not work (bad file)
Click to expand...
Click to collapse
It's actually easier to do than it is to read, but if you're not comfortable with t yet thats understandable.
What ROM are you using? If you send me the SystemUI.apk your using I can take a look at it.
Change the color code if you want something simple, but if you want to use an image up there, do as posted a few posts up.
calkulin's 2.7
nerys71 said:
calkulin's 2.7
Click to expand...
Click to collapse
+1, if someone has this working on calks 2.7 could you please share the files you edited? Id love to add this to my theme. If no one has already did it, ill give it a try and post results if successful
I can post one tonight, its very easy to do.
Minimal black and white theme has transparent statusbar
Sent from my SPH-D710 using xda premium
Greetings and Salutations, Epic 4G Touch Owners and other curious parties!
Disclaimer: Just reading this may cause your head to burst, your phone to catch fire, dogs and cats may do the tango! I am not responsible for any bad stuff that happens from you reading or acting on the information in this thread.
If any ROM authors want to use this fix in their ROMs, I'm completely cool with that. A quick kudos in your credits section would be nice, though.
Background: People were asking about removing the ascending ringtone volume. I don't really care either way, personally, but there is demand.
Thankfully, the fix is quite simple!
Credits
the_ozyrys - One of the first posts I saw this in.
The brave XDA members who try these instructions and report their success or failure!!!
XDA for being a great source of information!!!
XDA members for thinking outside of the box!!!
The fix:
This fix requires editing your Phone.apk file. If you are using one of the fine custom ROMs on XDA, be aware that the you or the author may have already made changes to the Phone.apk file, so using my file IS NOT RECOMMENDED.
If you are using the Calkulin's E4GT ROM v1.5a ROM, you can safely use my attached Phone.apk file. It may work with other "stock" ROMs, but this is the one I based it on. Make sure to rename it to Phone.apk
What you need to perform this mod:
1. An Epic 4G Touch ROM ZIP file, or a phone running a Epic 4G Touch ROM.
2. The Java SDK -- So you can run Smali.
3. Smali/Baksmali -- So you can decompile/compile the classes.dex file.
4. Android SDK -- To push/pull files from your phone (adb only).
5. Some sort of archive tool (such as WinRAR, 7zip, etc).
5. A text editor capable of editing UNIX-formatted files. I recommend Notepad++, personally.
Ease Of Use Tips: Install Java SDK first, then Android SDK (if you need adb). Download the smali files (smali-1.2.8.jar and baksmali-1.2.8.jar at the time of this writing) to a new "working" folder where we can do our magic.
KEEP A COPY OF YOUR PRE-EDITED PHONE.APK FILE, just in case!
Android is case-sensitive, so ensure that your file is named Phone.apk, and not phone.apk.
Instructions:
1. Put your phone in AIRPLANE MODE (hold Power->Airplane Mode)
2a. [If you are using a ROM ZIP File]: Use 7zip/WinRAR/WinZip to open the ROM ZIP file. Navigate to system\app and extract Phone.apk to your "working" folder.
2b. [If you want to grab Phone.apk from your running phone]: Use adb to pull Phone.apk to your working folder. Example: adb pull /system/app/Phone.apk C:\Working\Phone.apk
TIP: To avoid problems, ONLY USE adb to pull/push Phone.apk. Phone apps may cause unknown issues.
3. Go to a command prompt in your "working" folder and run the following command: java -jar baksmali-1.2.8.jar -o Phone/ Phone.apk
4. Browse to your "working" folder and see that there is now an Phone folder inside, with other subfolders. Browse to Phone\smali\com\android\phone.
5. Edit the file called Ringer$1.smali with your favorite UNIX-format compatible text editor and look for the following text. The key is to search for setStreamVolume. There should be two results. Comment the line below that is in BOLD by adding a hash (#) in front of it.
Code:
.line 394
iget-object v1, p0, Lcom/android/phone/Ringer$1;->this$0:Lcom/android/phone/Ringer;
iget-object v1, v1, Lcom/android/phone/Ringer;->mAudioManager:Landroid/media/AudioManager;
[B]invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V[/B]
6. Change that line to say #invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
7. Save Ringer$1.smali
8. Go back to your command prompt, change to your "working" folder and issue the following command: java -jar smali-1.2.8.jar Phone/ -o classes.dex
9. Open Phone.apk in your favorite archiver.
10. Drag the file called classes.dex from your "working" folder into Phone.apk and replace the one already in there.
11. Run the following commands to get the file on your phone:
Code:
adb remount
adb push Phone.apk /system/app/Phone.apk
adb reboot
IF ADB REBOOT DOESN'T WORK, REBOOT YOUR PHONE MANUALLY. YOU MAY HAVE TO PULL YOUR BATTERY. ANDROID DOES NOT LIKE REPLACING THE PHONE APK WHILE RUNNING.
Your phone should reboot and now have one volume level when the phone rings.
Please let me know whether or not this worked for you. I'd like to make a list of ROMs (with applicable mods) this works for or doesn't work for.
I will do whatever I can to help if you are struggling. If there's something you don't understand, please let me know. I can update the instructions if I accidentally wrote something wrong.
the_ozyrys was one of the first I saw that posted it when I was searching for this mod, so you can give credit to him, http://forum.xda-developers.com/showpost.php?p=8482676&postcount=13.
And BTW thanks for posting the how to because I was actually going to add this mod for the next release, so if people ask, I'll point them this way
Calkulin said:
BTW thanks for posting the how to because I was actually going to add this mod for the next release
Click to expand...
Click to collapse
Excellent, Calk. I'll wait for you to do that so as not to bork my phone LOL.
Nice tutorial Ithink I will give it a shot just tonsee if I could do it. Now aall I need is a tutorial on how to mod the dialer to the center like Calls.. I happen to be testing out another rom and miss that tweak. THX again OP
Sent from my SPH-D710 using XDA App
Is there any way we could get a flashable zip of this?
Nice.
Sent from my SPH-D710 using XDA App
hey guys i was wondering if i could get some help because no matter how many times i try to do this mod myself i cant seem to get it right.
if anyone could mod the themed apk file that i attached i would greatly appreciate it
thanks in advance
xx8todiefor6xx said:
hey guys i was wondering if i could get some help because no matter how many times i try to do this mod myself i cant seem to get it right.
if anyone could mod the themed apk file that i attached i would greatly appreciate it
thanks in advance
Click to expand...
Click to collapse
Sorry for the delay -- here is a file that should work. Don't forget to rename it to Phone.apk before you put it on your phone.
Thank you so much Nivron
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.apkapktool 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-res5. 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.
Since I never found any good tutorials for me to enable the crt animation on the galaxy ace (or maybe there are some and im just stupid) I decided to make a tutorial of my own. NOTE : this is the way i did it and it worked so it should also work for you.
WARNING : THIS METHOD INVOLVES MODIFYING YOUR FRAMEWORK-RES.APK FILE, IF YOU DON'T WISH TO POTENTIALLY HAVE TO RE-FLASH YOUR STOCK ROM THEN TURN BACK NOW.. YOU HAVE BEEN WARNED
Anyway to the point.
Prerequisites :
[*] A galaxy ace
[*]A PC
[*] Enabled USB debugging on your phone - Go to settings-->applications-->development and check USB debugging
[*] Your phones USB cable so you can connect it to your PC and the proper drivers installed - or a SD card slot in your PC
(If your on your stock rom just connect to Samsung kies and install the drivers from the menu options, im pretty sure its under tools)
[*]A rooted Ace - http://forum.xda-developers.com/showthread.php?t=1282011
[*] CWM recovery - I have attached it. To flash it boot in recovery (Hold power and home button when you see samsung logo let go of home button). Then select apply update from sd card
[*]Root explorer on the ace - Can be obtained from the Google play store for free
[*]Knowledge of how to navigate through a command prompt environment - http://www.watchingthenet.com/how-to-navigate-through-folders-when-using-windows-command-prompt.html
[*] 7zip - http://www.7-zip.org/download.html
[*]apktools - I've attached an archive of it extract it to any location you want (The C:\ folder would be preferable because then theres less command prompt navigating to do)
[*] A text editor - Notepad will do
[*] Android SDK - (Optional and Recommended) : In case we fail and cant navigate with our phone (But we wont fail hopefully ). Can be downloaded here - http://developer.android.com/sdk/index.html
Ok Assuming we meet all the requirements
Step 1 : Get a copy of your framework-res.apk on your sd card. Do this by starting up root explorer on your phone, navigate to system - framework, scroll down and you should see framework-res.apk. Keep your finger pressed on it and you should see some options, select copy. Now press back twice and find the sdcard folder. Paste it anywhere you want (I made a folder for it so its easier to manage).
Step 2 : : Connect your phone up to your PC:
If you have sd card slots in your PC then unmount your sdcard from your phone by going to settings-SD card and Phone storage , take out your SD card and stick it in the SD card adapter that you should have gotten with your phone and stick that in the SD card slot in your PC
If you don't have an SD card slot then simply connect your phone to your PC via USB. When you connect it you should get a notification saying that the USB is connected, if you didn't you may need to install the drivers. On your phone drag down the notification bar and tap on "USB connected" and then tap "Connect storage to PC"
Step 3 : Now that your phone or SD card is connected you will need to navigate to where you put your framework-res.apk. cut it and paste it to a folder on your computer of your choice (somewhere easy to find). Now make a copy of it (yes that was not a typo we will need the original copy of framework-res if we fail, but we shouldnt fail). Anyway copy and paste it to the folder that you extracted "apktools". So for me that was "C:\Android\apktool" Yes i made a folder called android in C (easier to manage).
Step 4 : Now that we have a copy of framework-res.apk in the apktools folder we can modify it to enable the crt animation (at this point you can choose to disconnect your phone or SD card from your PC and connect it later or leave it in). Now we need to start up command prompt. This is where our years of command prompt navigating come into place . At this moment you should see "C:\Users\<Your Username>", you will need to navigate to where you extracted apktools, if you extracted it in "C:\" or somewhere else easy then this should be a walk in the park for you. If you extracted in "C:\" just type "cd C:\" then "cd apktool" and your there. For others, well....Go on to step 5 in a couple minutes
At the end of it you should see something like "C:\.......\apktool" (not the dots obviously)
Step 5 : now that you have framework-res.apk in the folder where you extracted apktools and you have command prompt open lets get started. First we will need to install framework to your system so we can compile correctly. To do this type "apktool if framework-res.apk" in command prompt. If you were successful you should see something like "I : Framework installed to C:\......."
Step 6: We will now need to decompile framework-res.apk. To do this type "apktool d framework-res.apk framework1". If it decompiled succesfully then there should be a folder called "framework1" where you extracted apktool.
Step 7 : Now we get to make that modification we need. Click on "framework1" --> "res" -- > "values". Find a file called "bools.xml" right click on it and click edit. Now we are looking for this line :
<bool name="config_animateScreenLights">true</bool>. Once you have found it change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>" now we save it (Do not click "save as" just click save)
Step 8 we will now need to recompile framework-res.apk. So open up the handy dandy command prompt and type "apktool b framework1 framework-res-new.apk". If all went well you should see a file called "framework-res-new.apk (Dont worry about all the writing in the command prompt window you saw, if you saw any). framework1 is the folder with our edited file
" NOTE: We are NOT using framework-res-new.apk as our new framework-res.apk IT WILL NOT WORK
Step 9 : This is where we are going to use 7zip. You have to open your original apk (the one we copy pasted into the apktool folder) with 7zip. right click on "framework-res.apk". Click "Open" and a window should show up check the box that says to open with a list of installed programs. You will need to browse to the folder you installed 7zip and click on "7zFM", then click "Ok". Now that we have our original "framework-res.apk" open in 7zip need to navigate to the "framework1" folder. Click on "Build -->apk" and there should be a file called "resources.arsc". Drag and drop this file in the 7zip window. You should get a confirmation box. Click "Ok" (There is already one in the 7zip window, the one we are dragging and dropping will replace it).
Step 10: Once we have replaced the "resources.arsc" file we can close the 7zip window. Now heres where the android SDK comes in handy. The rest of this tutorial will be split up into 2 parts; People with the android SDK and people without it
People with Android SDK
NOTE : you have the USB cable to your phone then you can continue on with this, if you only have the SD card however you will need to go to the "People without Android SDK" section to continue.
You will need to copy and paste the "framework-res.apk" (The one in the apktool folder) to the "platform-tools" folder in the android sdk folder. If you installed it in the default location it should be here - "C:\Program Files (x86)\Android\android-sdk\platform-tools", if you have copy pasted it in the "platform-tools" folder you should see a file called "adb"("adb" is a file located in the platform-tools folder).
Now connect your phone to your PC and boot your phone in recovery mode. Select mounts and storage and select mount/system.
Open up command prompt and navigate to the "platform-tools" folder where you pasted "framework-res.apk". Your command prompt window should look something like this : "C:\.....\platform-tools". Now to make sure your phone is connected properly type in "adb devices", you should see your device under list of attached devices. Now that your phone is in recovery mode, you have the "framework-res.apk" in your "platform-tools" folder and you have mounted the system type in
Code:
adb shell mv system/framework/framework-res.apk system/framework/framework-res.old
This will make a backup of your original "framework-res.apk". Then type
Code:
adb push framework-res.apk system/framework
This will replace your original "framework-res.apk" with the one you modified. Once that is done, unmount/system, clear the cache partition and clear the dalvik cache (select "advanced -->clear dalvik cache") and then reebot the system. This will take a few minutes because we cleared the dalvik cache so please be patient. We are not done yet.
If your phone is not responding once you reboot it then you will need to boot in recovery, connect your phone to your PC, mount/system, open up command prompt and type
Code:
adb shell rm system/framework/framework-res.apk
adb shell mv system/framework/framework-res.old system/framework/framework-res.apk
reboot
(Personally this has never happened to me but these commands will replace your old "framework-res.apk, so your phone will start responding) You may need to repeat the steps to get your CRT animation working because something in your framework-res.apk probably screwed up (again its just a hunch as it has never happened to me)
If your phone is responding or you repeated the steps to get it responding then you can follow these steps. Once the phone has rebooted Open up root browser and navigate to "system-->framework" and change the permissions of framework-res.apk to "rw-r--r--".Then find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation. If it worked for you dont forget to press the "thanks" button
People without Android SDK
If you were directed here from "People with android SDK" because you didnt have the USB cable then stick your sd card in the computer using the adapter (please tell me you have the adapter..)
WARNING : IF THIS METHOD DOES NOT WORK AND YOUR PHONE DOESNT RESPOND YOU MAY NEED TO RE-FLASH A STOCK ROM THEN GO BACK TO A CUSTOM ROM IF YOU HAVE ONE, YOU MAY WISH TO TURN BACK AND ABANDON TRYING TO GET THE CRT ANIMATION, BUT ASSUMING YOU HAVE FOLLOWED THE STEPS PROPERLY IT SHOULD WORK PLUS YOU HAVE COME THIS FAR
If you have your USB cable then connect your phone up to the computer (Im assuming you know how to do this now). locate the "framework-res.apk file in the "apktool" folder the copy/paste it anywhere on your SD card ( i made a folder for it). Make sure you have a backup of the original framework-res.apk. Now that you have the modified framework-res.apk in your SD card open up root browser, find your modified framework-res.apk and move it to "system-->framework", it will replace the original one, so be sure to have a backup then change the permissions of framework-res.apk to "rw-r--r--". Once this is done go into "system" and find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation. If it worked for you dont forget to press the "thanks" button
A special thanks to the following threads and forums for helping me help you
http://androidforums.com/esteem-all-things-root/520917-guide-how-properly-decompile-recompile-apks-apktool.html
http://forum.xda-developers.com/showthread.php?t=1185231&page=4
http://forum.xda-developers.com/showthread.php?t=1225565
If you have any questions or it didnt work please post them and ill try answer them to the best of my slightly noobish ability
Actually we already have same thread here :-? why did u re-post again? and I feel this guide is more complicated :-< sr but just my own feeling.
wait we do? i couldnt find it thats why i made a guide
Eh?!
I though
Open up root browser and navigate to "system-->framework" and change the permissions of framework-res.apk to "rw-r--r--".Then find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation.
is enough?
EJ98 said:
I though
Open up root browser and navigate to "system-->framework" and change the permissions of framework-res.apk to "rw-r--r--".Then find your build.prop file, highlight it and click edit (you may want to make a backup of it first). Find the line that says "debug.sf.hw= 1 and add a "#" at the front so it looks like this "#debug.sf.hw= 1" essentially you are just commenting the line out. Were almost done. Go to "Settings-->Display-->Animation" and check "All animations" And then reboot your phone. Once your phone is rebooted enjoy your new CRT animation.
is enough?
Click to expand...
Click to collapse
Im not understanding your question
Well honestly, there's one better tutorial out there, anyways good effort!
Congratulations, but i dont have courage to do it.
Don't work in my Galaxy Ace. When I put the mod framework-res.apk in phone, this made a reboot and never boot again.
I made a restore with CWM and the phone back from dead
Note a problem when I do the recompile, the final file turns out only with 3MB and the original have 6MB. Is the problem?
Sorry my english
ghostrat said:
Don't work in my Galaxy Ace. When I put the mod framework-res.apk in phone, this made a reboot and never boot again.
I made a restore with CWM and the phone back from dead
Note a problem when I do the recompile, the final file turns out only with 3MB and the original have 6MB. Is the problem?
Sorry my english
Click to expand...
Click to collapse
First of all i am very sorry for my late reply been very busy with tests and stuff. What happened was you didnt put the resources.arsc file into your original apk. If you still have the original and the modded apk open up your modded apk with 7zip (it should be called framework-res-new.apk) and find a file called "resources.arsc", open up your original framework-res.apk and drag and drop the resources.arsc file from the modded apk into the original framework-res.apk, put the original framework-res.apk into your phone in the appropriate folder, enable all animations from settings-->display and reboot, you should now have the crt animation
It worked for me but I had to restart the phone after editing the build.prop file. thanks given to you.
getting this error @ step#8
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Chito>cd..
C:\Users>cd..
C:\>cd apktool
The system cannot find the path specified.
C:\>cd android/apktool
C:\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Chito\apktool\framework\1.apk
C:\android\apktool>apktool d framework-res.apk framework1
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\android\apktool>apktool b framework1 framework-res-new.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\android\apktool\framework1\res/layout-sw600d
p
invalid resource directory name: C:\android\apktool\framework1\res/layout-w600dp
invalid resource directory name: C:\android\apktool\framework1\res/values-h720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Chito\AppData\Local\Temp\A
PKTOOL7712514577009503253.tmp, -x, -S, C:\android\apktool\framework1\res, -M, C:
\android\apktool\framework1\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Chito\AppData\Local\Temp\APKTOOL7712514577009503253.tmp, -x, -S, C:\android
\apktool\framework1\res, -M, C:\android\apktool\framework1\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Step 7 : Now we get to make that modification we need. Click on "framework1" --> "res" -- > "values". Find a file called "bools.xml" right click on it and click edit. Now we are looking for this line :
<bool name="config_animateScreenLights">true</bool>. Once you have found it change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>" now we save it (Do not click "save as" just click save)
Click to expand...
Click to collapse
It working on s5830.
Thank you.
: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