[GUIDE] Restoring Swype the Easy Way - G2 and Desire Z Themes and Apps

This post DOES NOT CONTAIN SWYPE BINARIES, and presumes that you have backed up your original Swype.apk and libSwypeCore.so files. If you forgot to, you can get them by doing an unyaffs on the system.img from any of your nandroid backups that would contain swype, or the G2's PC10IMG.zip, and extracting the files from system/lib/libSwypeCore.so and system/app/Swype.apk.
You can also check this post for other methods of attaining your old Swype files: http://forum.xda-developers.com/showthread.php?t=841603
DO NOT USE THIS ARCHIVE WITHOUT FIRST ADDING THE SWYPE FILES. BAD THINGS MAY HAPPEN. I'M NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOUR PHONE EITHER WAY.
TO RESTORE THE SWYPE FILES FROM A NANDROID BACKUP:
See this post http://forum.xda-developers.com/showthread.php?t=835971 for the original PC10IMG.zip file that should theorietically also contain it - though I have not yet figured out how to extract files from its system.img
1. Locate your nandroid backup that you know you made when you had Swype​2. Find the system.img in the nandroid backup (probably in /sdcard/ClockworkMod/backup/)​3. Open an adb shell and execute the following:
mkdir /sdcard/system
cp /sdcard/ClockworkMod/backup/YOUR-BACKUP-NAME/system.img /sdcard/system/
cd /sdcard/system
unyaffs system.img​4. Mount your sdcard on your PC and navigate to the system/app folder and copy Swype.apk to your desktop​5. Navigate to the system/lib folder and copy libSwypeCore.so to your desktop​You can now safely delete the system folder on your sdcard (it's taking up a lot of space).​
Now you should have Swype.apk and libSwypeCore.so ready to go.
Once you get those files, you're ready to create the update zip:
1. Download the FixSwype.zip attached to the bottom of this thread, and edit it with your favorite archive editor (I prefer 7-Zip, because it's open-source and fully-featured).
You should see:
system
META-INF​
2. Browse to the system/app directory, and paste in your Swype.apk
then, go back up to the system/lib directory, and paste in the libSwypeCore.so​
3. Move the new FixSwype.zip to your SD Card, either via mounting it on your PC and manually copying it, or by "adb push FixSwype.zip /sdcard/"​
4. Reboot to recovery. Navigate to "apply zip from sdcard" or equivalent function, and select your FixSwype.zip.​5. You're done! Reboot the phone, go to Settings, Language & keyboard, and check "Swype". Enjoy! You now have a permanent Swype-restoring patch.​
Of course, you'll have to re-run this process any time you install a new ROM, as the new ROM will overwrite your existing /system partition, where Swype lives.
So, whenever you install a new rom just...
1. apply the new ROM's .zip file
2. apply the FixSwype.zip file
wash, rinse, repeat!​
Want to buy me a beer? Click here!

There's not really any need for this if you're using CM. Once you have Swype on your phone, create a file in /system/etc/ called custom_backup_list.txt. Each line in the file should be the path to a file that you want preserved when you flash a new version, with the leading /system/ removed. So, for swype, your /system/etc/custom_backup_list.txt would have:
app/Swype.apk
lib/libSwypeCore.so
(I also added app/Quickoffice.apk, along with the modified files for the fixed keymap.)
Once you have this file in place, Swype (and whatever else you list) will be preserved automatically for you every time you flash a new CM.

itp said:
There's not really any need for this if you're using CM. Once you have Swype on your phone, create a file in /system/etc/ called custom_backup_list.txt. ...
Click to expand...
Click to collapse
itp,
This is really good info to have! Thanks. I've heard rumors (unconfirmed by myself) that Rom Manager does not honor this file, so I'll leave my post up for the time being, for people who may find it useful or don't feel comfortable playing in /system.

how do i do a unyaffs on my stock backup rom so i can get the swype keyboard back? Also does this work on virtuous roms?

hate to break your heart, but the easier-est way is already made just by 3 clicks in an apk.
http://forum.xda-developers.com/showthread.php?t=841603
just download the apk in the link of mediafire through your phone or from computer move it to your sd card.
use a file manager/browser to locate and install the file.
open, look for the swype which it only shows that file...click and it will do the rest for you by itself.
oh and make sure you check it in the keyboard settings and uncheck any other keyboards you might have installed.

mbergh22 said:
how do i do a unyaffs on my stock backup rom so i can get the swype keyboard back? Also does this work on virtuous roms?
Click to expand...
Click to collapse
I just now updated the post above with directions for this. Oh, and yes it should work for any/all ROMs.

GunToYoMouth123 said:
hate to break your heart, but the easier-est way is already made just by 3 clicks in an apk.
http://forum.xda-developers.com/showthread.php?t=841603
Click to expand...
Click to collapse
Neat...I had seen that post before but not since it was updated with the apk. Cool.

does that apk work with virtuous roms? and which unayffs file do i download and where do i store it?

unyaffs is a command that is built in to Android

It says unyaffs not found
Sent from my HTC Vision using XDA App

mbergh22 said:
It says unyaffs not found
Click to expand...
Click to collapse
Hmm, make sure you're spelling it right... otherwise, not sure. It's possible (but unlikely) the ROM you're using doesn't include it. It's definitely in cyanogenmod...
Edit: here's a screenshot of when I used 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"
}

From what I remember, unyaffs will not work on Mac. Are you on a Mac?

rraxda said:
From what I remember, unyaffs will not work on Mac. Are you on a Mac?
Click to expand...
Click to collapse
Nope windows 7 and I have even tried it through the terminal on my phone. I am using the latest virtuous rom.

rraxda said:
From what I remember, unyaffs will not work on Mac. Are you on a Mac?
Click to expand...
Click to collapse
This command is executed on the phone, not on the computer, so it wouldn't matter if it's Mac, Windows, Linux, BSD, etc...

mbergh22 said:
does that apk work with virtuous roms? and which unayffs file do i download and where do i store it?
Click to expand...
Click to collapse
Unfortunetly the apk i sent doesn't work for sense roms,you should ask the original poster . I tried on sense roms, and it says no swype found in back-up file. But for cm and froyo roms,it does work.
Sent from my HTC Vision using XDA App

Weaseal said:
This command is executed on the phone, not on the computer, so it wouldn't matter if it's Mac, Windows, Linux, BSD, etc...
Click to expand...
Click to collapse
Weaseal said:
Open an adb shell and execute the following:
mkdir /sdcard/system
cp /sdcard/ClockworkMod/backup/YOUR-BACKUP-NAME/system.img /sdcard/system/
cd /sdcard/system
unyaffs system.img[/INDENT]
Click to expand...
Click to collapse
My bad... I thought that when you said "open an adb shell" you were speaking of running adb shell from cmd? Is that wrong?

Related

[HOW TO] build an autosigner for OSX

Ok, so I'm kind of new to automator which is why I'm making this as a tutorial instead of a download.
1. First you need to download the AndroidMod.zip JesusFreke posted
http://android-dls.com/forum/index.php?f=24&t=191&rb_v=viewtopic
2. Copy the three highlighted objects from the SignApk folder to the folder of your choice, I chose one called signapk in my applications folder
{
"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"
}
3. Open the info window for one of the files in there final destination, keep it open as we're going to use the Where field in the next step.
4. Open Automator and choose a custom workflow. First go to Files and Folders then choose Duplicate Finder Items. What this does is create a duplicate of the file we're going to sign and pass it to the shell script we're about to create.
Then scroll down to utilities and then choose Run Shell Script.
5. Change the drop down for pass inputs from to stdin to as arguments. This allows us to either create an application we can drop files we want to sign onto, or create a finder plugin so we can right click(or ctrl-click if you're on a single button trackpad or mouse) and sign it from there.
6. The basic usage for the signapk.jar included in the android mod file is as follows: java -jar signapk.jar testkey.x509.pem testkey.pk8 <update.zip> <update_signed.zip>
what we need to change is add the absolute path to signapk.jar, testkey.x509.pem, and testkey.pk8. Thats what is listed in the where field in the get info window comes into play, just type everything listed there right infront of each of those three files. In my case thats going to be /Applications/signapk/. We also need to change <update.zip> to "[email protected]" with the quotes. Thats what is actually going to be the input from either dragging and dropping or right clicking. Finally the last parameter we just need to remove because we made a duplicate of the file to be signed, and if theres no final parameter it overwrites the file sent to it. My final shell script is shown in the image below.
7. Save the file as an application if you want to drag and drop files onto it and Save it as a plugin and then select finder if you want to be able to right click and sign. When using a finder plugin you right click and go to more, then automator, then choose the plugin you just saved.
Thats It! whenever you use it it will automatically create a copy of the file you're signing (ex. Launcher.apk -> Launcher copy.apk or update.zip -> update copy.zip) and sign that. The copy is the signed version and the original is left untouched.
Feel free to modify this however you want, if someone wants to release a prebuilt version of this automator action, thats perfectly fine by me, you don't even need to ask for permission. Do whatever you want with it.
Thanks very much! I was getting tired of launching Parallels whenever I wanted to do something like this.
yes super useful, was sick of tossing files back and forth between my computers. definitely needs to be a sticky.
I couldn't get it to work for me with ADP1.1 When I try to boot up with update.zip I get the error that the files were not signed. For argument sake I redid everything a few times. And saved my files exactly where you saved them and still no luck. Any ideas?
::edit:: I think that my problem has something to do with certain files not changing to .apk when I change them back from .zip. Some of my .apks change to that black square that you know are some executable program while the rest remain little white ones. Any ideas on how to change them to normal executable files?
yeah, if you open the info (command + i) on the file you'll see that the file has the .zip hidden. In the info window you can delete the .zip extension and just leave the .apk. Theres a setting somewhere to enable file extensions always, and it's quite nice to have that enabled
I already have it enabled. That is why I can't figure out why some files do that and some don't.
Edit: Finder is reading some of them as Unix executable and others as documents. I guess the trick is trying to figure out how to fix that.
That would be as simple as running chmod on them in the console, however I've never had a problem with that, as long as they're named.apk and not .apk.zip I've never had a problem putting them back on the phone even if osx didn't see them as unix executables
That is the only thing I could think of and chmod did not work. But I am not 100% sure that it is even the files that is the problem.
::Edit:: After testing things a little more I think it has something to do with the signing itself. Even though it makes that copy I don't think it is actually signing the file. Would you be able to upload your program?
i have had the exact same problem as Broopa and its getting really anoying lol could someone please upload the file for us to use.
Anyone have any idea why the folders aren't getting signed. I even installed java from Apples developer site and no luck.
c'mon people...youve all done it can you please send some info our way??
sorry guys I don't know why it's not working now. I'll try to get it fixed and reposted.
Any updates on this? I still can't get it to work.
i created the workflow, saved it as a service for finder, and tried it out.
it creates the dupe file, but pops up with an error message:
The action "Run Shell Script" encountered an error.
there must be something wrong with the script itself, or the arguments being called by it.
is nobody still working on this? i know it's been over a year, but this would be very helpful to have available.

[Boot Animation] Android Bios Boot Animation

[Boot Animation] Android Bios Boot Animation​​
Thanks to frysee for creating the original. See his thread here with versions for other devices as well.
I have made some boot animations for our Galaxy Ace, wanna to share with you..
{
"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"
}
- Download - boot animation
Android Bios Boot Animation CM7 Version
- Download - CM7 Version
Root Explorer method:
1. Rename the downloaded file to 'bootanimation.zip'
2. Put it on your SD card
3. Open Root Explorer and copy bootanimation.zip to /system/media. This will replace the existing boot animation
4. Reboot your phone
ADB method:
1. Make sure you have downloaded android sdk
2. Put android sdk in C:\
3. Set the directory of command prompt to C:\android-sdk-windows\platform-tools. Click here for a video tutorial.
4. Rename your boot animation to bootanimation and put it in C:\android-sdk-windows\platform-tools
5. Open cmd
6. Type in order:
-adb remount
-adb push bootanimation.zip /system/media/bootanimation.zip
-adb reboot
Im using Coderom v1, stock ROM not tested
sorry my bad english
note : animation duration depends on ROM boot time, so I can't guarantee it is running to the final screen on all devices
​
Do i have to rename the file?
QNBT said:
Do i have to rename the file?
Click to expand...
Click to collapse
yup, rename file download to bootanimation.zip
Im running stock gb 2.3.4 (xxxkph) and all i have i these files:
Would replacing the sanim.zip do anything?
Thanks in advance!
QNBT said:
Im running stock gb 2.3.4 (xxxkph) and all i have i these files:
Would replacing the sanim.zip do anything?
Thanks in advance!
Click to expand...
Click to collapse
i never tried with stock rom, I try to help find a solution on google
try this method
DWYOR= Do With Your Own Risk
1. Rename the downloaded file to 'bootanimation.zip'
2. Put on your SD Card
3. Open Root Explore go to system/bin
4. Find samsungloop, then move them to another folder
5. Copy bootanimation.zip to /system/media
6. In folder /system/media rename all files *.qmg to *.qm (bootsamsung.qmg & bootsamsungloop.qmg)
7. Reboot
source in indonesian site
sorry my bad english
Thanks for the reply!
I will try that as soon as i have time, however, I did try this method without any success.
Nothing wrong with your English, u've been very helpful!
QNBT said:
Thanks for the reply!
I will try that as soon as i have time, however, I did try this method without any success.
Nothing wrong with your English, u've been very helpful!
Click to expand...
Click to collapse
I like your font, can you share it?
Offtopic:
Mr0lala said:
I like your font, can you share it?
Click to expand...
Click to collapse
I see you have good taste! Get Fontimizer @ the market for free and look for the font "TitilliumText22L001". There are thicker version of it as well - if you have trouble reading with that font.
Ontopic: Didn't work, but ill just wait for Cyanogen and use UOT Thanks!
Thank for shared
So Beautiful.. thanks for share
dhedee said:
[Boot Animation] Android Bios Boot Animation​​
Thanks to frysee for creating the original. See his thread here with versions for other devices as well.
I have made some boot animations for our Galaxy Ace, wanna to share with you..
- Download boot animation
Root Explorer method:
1. Rename the downloaded file to 'bootanimation.zip'
2. Put it on your SD card
3. Open Root Explorer and copy bootanimation.zip to /system/media. This will replace the existing boot animation
4. Reboot your phone
ADB method:
1. Make sure you have downloaded android sdk
2. Put android sdk in C:\
3. Set the directory of command prompt to C:\android-sdk-windows\platform-tools. Click here for a video tutorial.
4. Rename your boot animation to bootanimation and put it in C:\android-sdk-windows\platform-tools
5. Open cmd
6. Type in order:
-adb remount
-adb push bootanimation.zip /system/media/bootanimation.zip
-adb reboot
Im using Coderom v1, stock ROM not tested
sorry my bad english
Click to expand...
Click to collapse
hey .. thanks for the new boot animation..
you said that your using coderom v1. can you please give me the link to download this rom. i'm looking for it from past many days and i dint find it yet.. thanks in advance..
abhi.bana said:
hey .. thanks for the new boot animation..
you said that your using coderom v1. can you please give me the link to download this rom. i'm looking for it from past many days and i dint find it yet.. thanks in advance..
Click to expand...
Click to collapse
cek PM please
I love it so much! Thanks!
Sorry for bumping this I just couldn't find anything more updated.
I tried both ways and got trouble with them.
Tried to copy the file using Boot Explorer but was denied due to privileges.
Installed the SDK but had no idea how to use it.
Would anyone mind explaining how to enable the option of copying the file into the system folder or how to use the SDK software?
Thanks,
Sam.
SamBaum said:
Sorry for bumping this I just couldn't find anything more updated.
I tried both ways and got trouble with them.
Tried to copy the file using Boot Explorer but was denied due to privileges.
Installed the SDK but had no idea how to use it.
Would anyone mind explaining how to enable the option of copying the file into the system folder or how to use the SDK software?
Thanks,
Sam.
Click to expand...
Click to collapse
boot explorer or root explorer ?
try this
- open root explorer /system/media
- tap the Mount R/W button at the top so that it reads Mount R/O instead.
- copy bootanimation.zip to /system/media
- reboot
It's Root Explorer, sorry about that.
And thanks, I was able to paste the file in the folder but nothing changed...
The folder has two .qmg files called "bootani.qmg" abd "samsungani.qmg"...
Do these have to be moved/deleted or something?
Why does the boot animation not complete?
the android logo(the text one) didn't appear or just skipped to the home screem after the boot?
Sorry for my bad english.
SamBaum said:
It's Root Explorer, sorry about that.
And thanks, I was able to paste the file in the folder but nothing changed...
The folder has two .qmg files called "bootani.qmg" abd "samsungani.qmg"...
Do these have to be moved/deleted or something?
Click to expand...
Click to collapse
what rom you use?stock rom?
try this
dhedee said:
i never tried with stock rom, I try to help find a solution on google
try this method
DWYOR= Do With Your Own Risk
1. Rename the downloaded file to 'bootanimation.zip'
2. Put on your SD Card
3. Open Root Explore go to system/bin
4. Find samsungloop, then move them to another folder
5. Copy bootanimation.zip to /system/media
6. In folder /system/media rename all files *.qmg to *.qm (bootsamsung.qmg & bootsamsungloop.qmg)
7. Reboot
source in indonesian site
sorry my bad english
Click to expand...
Click to collapse
urnamu said:
Why does the boot animation not complete?
the android logo(the text one) didn't appear or just skipped to the home screem after the boot?
Sorry for my bad english.
Click to expand...
Click to collapse
animation duration depends on ROM boot time, so I can't guarantee it is running to the final screen on all devices
Guess it's gonna take another post...
The providers' logo is gone but the screen remains blank.
Is it because I did something wrong or is it due to a timing mishap (startup too short for the animation? - If so, where could I find shorter ones?)
SamBaum said:
Guess it's gonna take another post...
The providers' logo is gone but the screen remains blank.
Is it because I did something wrong or is it due to a timing mishap (startup too short for the animation? - If so, where could I find shorter ones?)
Click to expand...
Click to collapse
boot animation it work or not?or work but not complete?

[HOW TO][LTE] Revert to original 4.0.1 STOCK on Windows

Hello, I did some searching and didn't see anything like this for Windows.
** NOTE: This requires the ADB and bootloader drivers to be installed already **
Google released the original 4.0.1 firmware (including radios and bootloader) in a compressed .tgz file. You can get that here:
https://dl.google.com/android/aosp/mysid-itl41d-factory-516b56c2.tgz
Extract the file into a working directory. Then... extract this (attached) into that directory as well.
Either reboot to bootloader manually or turn on USB Debugging, then run flash-all.bat and everything should go from there!
This is just a modified version of the script Google sent along with the package, so there shouldn't be any issues.
Tested the script on my own phone, and it completed twice. So it should be safe. But as always, you assume the risk!
Thanks, this worked for me. However, it does not re-lock the bootloader. You can tell by when the Google logo is on the screen while booting up, if there is an unlocked lock on the bottom then it is unlocked. To fix this, type in:
flashboot oem lock
Click to expand...
Click to collapse
After that you should be good to go again and be stock.
Why not use the 4.0.2 image? Makes more sense to use the latest version:
https://dl.google.com/dl/android/aosp/mysid-icl53f-factory-65895fa8.tgz
I get a "Missing adbwinapi.dll" error when trying to use your .bat? How do I ensure ADB is installed correctly?
Zzim said:
I get a "Missing adbwinapi.dll" error when trying to use your .bat? How do I ensure ADB is installed correctly?
Click to expand...
Click to collapse
If you've got the SDK installed put the fastboot files in the sdk\tools or sdk\platform folder where adb is located. The adbwinapi.dll should be located in there.
Or just copy adbwinapi.dll into the same folder where you have the "restore kit" files downloaded from the OP.
confirmed working bailed me out on a bootloop when trying to root my CDMA Verizon Galaxy Nexus
error
i have the flash.all file in my platform tools but i got an error device not recognnized message?
how do i get this file in zip form?
https://dl.google.com/android/aosp/m...y-516b56c2.tgz
djeddieone said:
confirmed working bailed me out on a bootloop when trying to root my CDMA Verizon Galaxy Nexus
Click to expand...
Click to collapse
cerotes have galaxy nexuses? hrm
mikedfromaz said:
i have the flash.all file in my platform tools but i got an error device not recognnized message?
how do i get this file in zip form?
https://dl.google.com/android/aosp/m...y-516b56c2.tgz
Click to expand...
Click to collapse
Winzip.. unzip it twice...
Sent from my Galaxy Nexus using XDA App
edit: got it thanks
Thank you for the script..i know it will come in handy one day or another!
Sent from my Galaxy Nexus using xda premium
whenever i try to extract the files using winzip it says it can't read the header etc etc. Any ideas?
bigeric828 said:
whenever i try to extract the files using winzip it says it can't read the header etc etc. Any ideas?
Click to expand...
Click to collapse
It was zipped with WinRAR as a standard zip file. Should be able to be opened on just about anything... Have you tried redownloading?
oops already posted this but i put it in the wrong thread but here it is again sorry.
does anyone know how i can get this working? whenever i run it i just get an error: device not found
waiting for bootloader...
flashing bootloader...
error cannot load "bootloader-toro-primek10.img"
<waiting fo device>
anyone suggestion? ive tried reinstalling the drivers and its still not working
any help is appreciated thanks
so.....how do we run the script? with fastboot? with what commmands? it's late, i'm tired and i just want to start from scratch on my GNex...had Wallet running, then loaded BB, lost Wallet, now wallet won't run on ANY rom i have, even rebuilt to 4.0.2, but need to get back to 4.0.1...i posted a question in the Q&A section if there was an ODIN of 4.0.1 lying around somewhere....hopefully i'll get some help either way...
thanks.
EDIT...got it, double click the bat file...the original post did not say that.....thanks for the last post for mentioning it
|Jason8| said:
Hello, I did some searching and didn't see anything like this for Windows.
** NOTE: This requires the ADB and bootloader drivers to be installed already **
Google released the original 4.0.1 firmware (including radios and bootloader) in a compressed .tgz file. You can get that here:
https://dl.google.com/android/aosp/mysid-itl41d-factory-516b56c2.tgz
Extract the file into a working directory. Then... extract this (attached) into that directory as well.
Either reboot to bootloader manually or turn on USB Debugging, then run flash-all.bat and everything should go from there!
This is just a modified version of the script Google sent along with the package, so there shouldn't be any issues.
Tested the script on my own phone, and it completed twice. So it should be safe. But as always, you assume the risk!
Click to expand...
Click to collapse
Having seen the Nexus S sticky for factory firmware etc., I think its time we see this or another post evolve into the same sort of thing including full restores for 4.0.1, 4.0.2 and the eventual 4.0.3(lte) radio's etc.,
Here's a modified script that will allow you to choose between 4.0.1 and 4.0.2. (as long as you have either image or both) It also has the option to re-lock the bootloader.
I'll also update it when the official 4.0.3 images are released.
I don't take no credit for what was already done, I just modified 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"
}
Instructions:
=========
1- Extract folder with contents of this package.
2- You will need the Google Factory image for the version you want to restore, or both if you want.
3- Extract the image files to the same folder in step one. Image files should not be in a seperate folder!
So you should have, in one folder, the above files contained in this package plus:
image-mysid-xxxxxx.zip (xxxxxx= pertains to what version)
radio-tor-i515.xxxx.img
radio-cdma-tor-i515.xxxx.img
flash-all.sh
bootloader-tor-primexxxx.img
4- Dbl click on GNexRestore.bat and follow the prompts.
Optionally, if you do have the Android SDK installed, just copy the image files and GNexRestore.bat to the platform-tools folder.
fastboot.exe will also be needed, if you don't have it already, just copy the one in this package to the same location.
Then run GNexRestore.bat
when you extraxt the factory image i get one file and the icon looks like a blank piece of paper. is that how it is suppose to be
When you extract the image, you should see a folder with the files you need.
e.g. this is from 4.0.2

[CM9/AOKP][HOW TO] Change the background image of your settings menu/Dialer/Contacts

Hi all,
This guide is split into two parts as of now , part 1 is for changing the settings menu background and part 2 is for changing the backgground for dialer and contacts.
Part -1
may be this method is known to few but im posting this to people who dont know how to change the background image of the settings menu and other few.
Sample screenshots
{
"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"
}
Like it?
here is the method to do this.
Software needed :
1.7zip (to replace the image)
2.android sdk(to use adb commands to push/pull the files)
How it works:
We are modifying/replacing an image called "background_holo_dark.png" in the "framework-res.apk" which is responsible for displaying background images in menu.
Step 1:
Use the following adb command below to pull the "framework-res.apk" from your mobile to pc.
Code:
adb pull system/framework/framework-res.apk
Step 2:
Open the framework-res.apk via 7zip and navigate to the following directory
"framework-res.apk\res\drawable-nodpi\", you will see a file called "background_holo_dark.png". Delete the image and dont close the 7zip.
Preparing your own image:
Now use any png image you want to set as background , resize it to 512 x 512 via mspaint or any other image editing software and rename the file to "background_holo_dark.png".
Drag the newly created image file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push the file back to mobile, type the following command in the same command prompt
Code:
adb remount
now type the following
Code:
adb push framework-res.apk system/framework
Step 4:
Now reboot your mobile, you will have the new background image enabled
Part-2
Wanna change the background of the dialer and contacts?? well read below,
Step 1:
Use the adb command (or u can use root explorer) to pull the "Contacts.apk" from your mobile to pc.
Step 2:
Open the Contacts.apk via 7zip and navigate to the following directory
"Contacts.apk\res\drawable-nodpi\", you will see a file called "background_dial_holo_dark.png". Delete the image and dont close the 7zip.
Drag the image (similar to the one created in part 1 of the guide) file back to 7zip(to the same directory where the old file is deleted) and close the 7 zip .
Step 3:
Now its time to push/copy back the file back to mobile. Copy back the file to the same directory from where it is copied.
Step 4:
Now reboot your mobile, you will have the new background image enabled
Your dialer and contacts shortcut may be missing from your launcher, just drag it back to the homescreen from the app drawer.
Step:5
This step is optional!!! If you do not get those shortcuts, enter cwm and wipe cache and dalvik cache.
Sample screenshots.
Note:
For users who know how to use root explorer can use the same to copy/paste the framework-res.apk before and after editing.
Sample images are taken with 160 dpi, this mod will work with all dpi.
credit:
vertimus (thanks to him , he helped finding the right image to replace)
you can find some ready to use backgrounds in this post ... will be updating this post when i find something beautiful for a background
updated with a few more images
Now the journy began, will try it soon
For those who don't have the sdk tools...
Root explorer can also be used in order to copy the framework-res.apk and after editing paste it again.
mitsos89 said:
For those who don't have the sdk tools...
Root explorer can also be used in order to copy the framework-res.apk and after editing paste it again.
Click to expand...
Click to collapse
Yeap
But doing this, just after copying, the phone made a small reboot. And after, I had the new background image
(I try with adb remount, but this command doesn't work...)
So I did it with ES Explorate
Black background
Thanks for this tutorial. Was having trouble using root explorer so I just used ES File Explorer and that worked fine. Finally have the black background I love in Settings.
Link is below for anyone that wants it
works also fine for non CM9 Rom, but the category bars (interface, device etc.) are not transparent. How to change it?
Thanks and Greetz
kr4mb3
Why developers from S2 not developing themes for ICS?
kachrukamble said:
Why developers from S2 not developing themes for ICS?
Click to expand...
Click to collapse
i think it will take some more time as still there are many users using gb. once ics hits stable , then we can see hell lot of themes
updated with a few more images, people who try this mod do post their background image in this thread so that it can be shared
wow i don't know the process was that easy.. also working on aokp and maybe cna rom since both cm9 based.. if no 7zip present Winrar could do the job..
here's mine..
background:
the background also effect other app that uses standard android framework
mass esolle
Here is mine.
Thanks bala_gamer for the info sweet as nice and simple cheers.
Heres mine:
mm i put the file in but didnt work.. is it the same file for ics roms
xinfinityoO said:
mm i put the file in but didnt work.. is it the same file for ics roms
Click to expand...
Click to collapse
you mean samsung ics roms? if you are using the stock theme for samsung roms then replace the following file in the same directory
"tw_background_dark.png".
If you are using themed samsung roms then you can give this guide a try
xinfinityoO said:
mm i put the file in but didnt work.. is it the same file for ics roms
Click to expand...
Click to collapse
Which rom you are using???. Let me know so i can help you.
thanks allot working what about other background like menu button also for dial-pad how to make it transparent ...... etc
I've been trying this more ever and I couldn't get it to work. I had it once but as soon as I flashed a theme of CM9 it was over-written and if I try to replace the file I always get a bootloop. And even worse is that I can't install Java for the pc program so if anyone can give me a step by step on how to do this with root explorer and 7zip that would be very appreciated
frigers said:
I've been trying this more ever and I couldn't get it to work. I had it once but as soon as I flashed a theme of CM9 it was over-written and if I try to replace the file I always get a bootloop. And even worse is that I can't install Java for the pc program so if anyone can give me a step by step on how to do this with root explorer and 7zip that would be very appreciated
Click to expand...
Click to collapse
its the same with root explorer
1. copy the framework-res.apk to your sd card.
2. edit the apk using the same procedure in the 1st post.
3. now copy the file to sdcard.
4. copy back the file from sd card to system/framework
5. set the permission as follows in root explorer
OOX
OXX
OXX
6.reboot
bala_gamer said:
its the same with root explorer
1. copy the framework-res.apk to your sd card.
2. edit the apk using the same procedure in the 1st post.
3. now copy the file to sdcard.
4. copy back the file from sd card to system/framework
5. set the permission as follows in root explorer
OOX
OXX
OXX
6.reboot
Click to expand...
Click to collapse
Do we need to re-sign the APK after pasting the image in the zip file? or we can simply put this APK back to the framework folder?
EDIT: Nevermind.. it works!! without re-signing the apk. thanks.

[TUT]DEODEX Stock ROM

{
"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"
}
First Lets know some Basic knowledge
about DEODEX/ODEX...
What is Odex and Deodex ROM
What is an ODEX file?
In Android file system, applications
come in packages with the
extension .apk.
These application packages, or APKs
contain certain .odex files whose
supposed function is to save space.
These ‘odex’ files are actually
collections of parts of an application
that are optimized before booting.
Doing so speeds up the boot process,
as it preloads part of an application.
On the other hand, it also makes
hacking those applications difficult
because a part of the coding has
already been extracted to another
location before execution.
What is an DEODEX file?
Deodexing is basically repackaging of
these APKs in a certain way, such
that they are reassembled into
classes.dex files.
By doing that, all pieces of an
application package are put together
back in one place, thus eliminating
the worry of a modified APK conflicting
with some separate odexed parts.
So, Deodexed ROMs (or APKs) have all
their application packages put back
together in one place,
allowing for easy modification such as
theming. Since no pieces of code are
coming from any external location,
custom ROMs or APKs are always
deodexed to ensure integrity.
How this works?
For the majority noobs amongst us,
Android OS uses a Java-based virtual
machine called the Dalvik Virtual
Machine.
A deodexed or .dex file contains the
cache used by this virtual machine
(referred to as Dalvik-cache) for a
program, and it is stored inside the
APK.
An .odex file, on the other hand, is an
optimized version of this same .
dex file that is stored next to the APK
as opposed to inside it.
Android applies this technique by
default to all the system applications.
When an Android-based system is
booting, the davlik cache for the
Davlik VM is built using these .odex
files, allowing the OS to learn in
advance what applications will be
loaded, and thus speeds up the
booting process.
By deodexing these APKs, a developer
actually puts the .odex files back
inside their respective APK packages.
Since all code is now contained within
the APK itself, it becomes possible to
modify any application package
without conflicting with the operating
system’s execution environment.
Advanteges & Disadvantages
The advantage of deodexing is in
modification possibilities.
This is most widely used in custom
ROMs and themes. A developer
building a custom ROM would almost
always choose to deodex the ROM
package first,
since that would not only allow him to
modify various APKs, but also leave
room for post-install theming.
On the other hand, since the .odex
files were supposed to quickly build
the dalvik cache, removing them
would mean longer initial boot times.
However, this is true only for the first
ever boot after deodexing, since the
cache would still get built over time as
applications are used.
Longer boot times may only be seen
again if the dalvik cache is wiped for
some reason.
Note:Themes for android come in
APKs too, and if you want to modify
any of those, you should always
choose a dedoexed custom ROM.
Click to expand...
Click to collapse
GUIDE TO DEODEX STOCK ROM
Java Development KIT(Download & Setup Guide)
ANDROID SDK
xUltimateV2.3.3(only this version is capable with samsung device)
1.Download android-sdk & extract it.
2.Copy sdk folder & paste it into
Code:
C:\Program Files\Android
3.Change name from SDK to
Android.sdk.
(inside folder look like this)
4.you need to flash stock firmware
first & Root your device.
5.Connect your phone to computer.
(Make sure you have select USB
debugging in
Settings>Applications>Development)
6.Download & extract xUltimate zip.
7.Launch Main.exe(Run as
administrator)
8.If everything goes well xUltimate
should recognize the phone and make
a connection.You now should see a
list of options.
9.Select option (1) pull /system/app.
Wait until it complete.
10.Select option (2)pull /system/
framework. Wait until it complete.
11..Then select option (3) Deodex /
system/app. Wait until it complete.
[If encounter any error. Find out
which .odex file is it. Then
remove .odex file from folder origi_
app in xUltimate folder]
(i found 5 errors so i attached that
app's deodex files below you just want
to paste in system/app when this
process complete)
12.Then select option (4)Deodex /
system/framework. Wait until it
complete.
13.DONE : your rom is now deodex.
Now Exit from xUltimate
Click to expand...
Click to collapse
Now there is another ways to install deodex files in device
\\ from Android.SDK
1.Put the phone in USB mass storage.
2.Go to xUltimate folder and copy
"done_frame", and "done_app", and
move them to the root of the sdcard.
3.Now get out from USB storage
mode.
4.Go to
Code:
C:\Program Files\Android\android.sdk
& open command promote there.
5.Enter following codes.
(if you are using adb shell in su for
the first time, keep phone screen on.
After entering "su" code, super user
request prompt in phone. Press
allow )
Code:
adb shell
su
stop
mount -o rw,remount /system/ /
system/
cp /sdcard/done_app/* /system/app/
rm /system/app/*.odex
cp /sdcard/done_frame/* /system/
framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /
system/
reboot
6.Now you have deodexed rom.
Click to expand...
Click to collapse
CREDIT: j.posarekar70
In the step system/ cmd says permission denied, help!
SMOKERBUNNY said:
In the step system/ cmd says permission denied, help!
Click to expand...
Click to collapse
your device (if jellybean)
Code:
Setting > developer option >
root access > set to Apps &
adb
connect to pc & give another
try
TheDeath1803 said:
wow
it so complex
I'll try
thanks
Click to expand...
Click to collapse
try n reply....
TheDeath1803 said:
i have try and it success
again
tks
Click to expand...
Click to collapse
o nice...welcome dude
imElectronica said:
o nice...welcome dude
Click to expand...
Click to collapse
no no, its not jelly bean, its gingerbread and yes i have debug mode, its logical, but as I got all the phone previously??
with that command gives that answer and I've tried hundreds of times.
And FORGIVE AS TALK OF JELLY BEAN IN A FORUM S5360? THERE EVEN KNOW THAT FOR THIS PHONE AND THIS IS SUPPOSED TO OFFICIAL STOCK NO? AND IN SECTION ONLY S5360 so here CLEARLY CAN BE TALKING GINGERBREAD
SMOKERBUNNY said:
no no, its not jelly bean, its gingerbread and yes i have debug mode, its logical, but as I got all the phone previously??
with that command gives that answer and I've tried hundreds of times.
And FORGIVE AS TALK OF JELLY BEAN IN A FORUM S5360? THERE EVEN KNOW THAT FOR THIS PHONE AND THIS IS SUPPOSED TO OFFICIAL STOCK NO? AND IN SECTION ONLY S5360 so here CLEARLY CAN BE TALKING GINGERBREAD
Click to expand...
Click to collapse
I think you r talking about Jellybean....
anyone help? system/ command says: permission denied
SMOKERBUNNY said:
anyone help? system/ command says: permission denied
Click to expand...
Click to collapse
Don't connect to the internet.. but turn on usb tethering... my sister's phone won't get connected as you said. I turned on usb tethering simply and it worked for me.. just try it and tell me...
Sent from my Celkon A97i using xda app-developers app
---------- Post added at 07:06 PM ---------- Previous post was at 07:04 PM ----------
SMOKERBUNNY said:
anyone help? system/ command says: permission denied
Click to expand...
Click to collapse
I recommend you to use apk changer.. its a nice tool works with command prompt.. it is actually built for modifying apk.. but it has option to deodex your rom automatically..but has some options to pull the files from your phone with some clicks... very easy to use..
If you have root access surely it'll work.. and tell something about your phone partition.. if you don't provide the correct path to the source file also it will fail...
Sent from my Celkon A97i using xda app-developers app
SMOKERBUNNY said:
no no, its not jelly bean, its gingerbread and yes i have debug mode, its logical, but as I got all the phone previously??
with that command gives that answer and I've tried hundreds of times.
And FORGIVE AS TALK OF JELLY BEAN IN A FORUM S5360? THERE EVEN KNOW THAT FOR THIS PHONE AND THIS IS SUPPOSED TO OFFICIAL STOCK NO? AND IN SECTION ONLY S5360 so here CLEARLY CAN BE TALKING GINGERBREAD
Click to expand...
Click to collapse
praderj said:
Don't connect to the internet.. but turn on usb tethering... my sister's phone won't get connected as you said. I turned on usb tethering simply and it worked for me.. just try it and tell me...
Sent from my Celkon A97i using xda app-developers app
---------- Post added at 07:06 PM ---------- Previous post was at 07:04 PM ----------
I recommend you to use apk changer.. its a nice tool works with command prompt.. it is actually built for modifying apk.. but it has option to deodex your rom automatically..but has some options to pull the files from your phone with some clicks... very easy to use..
If you have root access surely it'll work.. and tell something about your phone partition.. if you don't provide the correct path to the source file also it will fail...
Sent from my Celkon A97i using xda app-developers app
Click to expand...
Click to collapse
ok, proves with what I have you recommended, it is strange That Work with tethering usb only but to try ... That it is not. I will also try apkchanguer, but I have miss exactly what it says in this Tutorial and Already had extracted all the files system and framework and Already had deodex, the problem is to re-insert all the phone.
SMOKERBUNNY said:
ok, proves with what I have you recommended, it is strange that only work with tethering usbpero to try ... that it is not. I will also try apkchanguer, but I have miss esactamente what it says in this tutorial and had already extracted all the files system and framework and already had deodex, the problem is to re-insert all the phone.
Click to expand...
Click to collapse
Hello friend..
Apk changer has an option to push back the deodexed apk.. I've done it once.. if you want I can make you a cwm update.zip file just transfer your apks to the specified folder..then flash it.. you don't need to apply commands.. easy right.. now give me your partition details...I'll write an updater script for you...
Sent from my Celkon A97i using xda app-developers app
i go to try and post results,
sorry my bad english
praderj said:
Hello friend..
Apk changer has an option to push back the deodexed apk.. I've done it once.. if you want I can make you a cwm update.zip file just transfer your apks to the specified folder..then flash it.. you don't need to apply commands.. easy right.. now give me your partition details...I'll write an updater script for you...
Sent from my Celkon A97i using xda app-developers app
Click to expand...
Click to collapse
i try apkchanguer and not have to pull apks to my phone.
SMOKERBUNNY said:
i try apkchanguer and not have to pull apks to my phone.
Click to expand...
Click to collapse
Hello friend.. if you give your partition details I'll make you a clockworkmod zip.. you can install from recovery with ease.. if yoj need send me the details like phone model. Processor type.. partition type.. in pm...
Sent from my Celkon A97i
praderj said:
Hello friend.. if you give your partition details I'll make you a clockworkmod zip.. you can install from recovery with ease.. if yoj need send me the details like phone model. Processor type.. partition type.. in pm...
Sent from my Celkon A97i
Click to expand...
Click to collapse
ok only i can say i have samsung galaxy Young s5369 is exactly s5360 but mine is exclusively of vodafone. My stock rom is Bumb1 and wherei can see you need to see partition type
SMOKERBUNNY said:
ok only i can say i have samsung galaxy Young s5369 is exactly s5360 but mine is exclusively of vodafone. My stock rom is Bumb1 and wherei can see you need to see partition type
Click to expand...
Click to collapse
Here is the update zip bro..
http://www.mediafire.com/?8u4rrp0f1gdm47p
Unpack the zip.. copy your app folder to /system/app in the zip and the framework to the framework folder.. then pack it. Install via cwm.. script needs busybox installed on your phone.. custom recovery will have busybox already...
Do a complete back up before installing... change the update binary from one of your update files. Co the binary included is meant for mt devices..
Don't forget to hit thanks..
Sent from my Celkon A97i
praderj said:
Here is the update zip bro..
http://www.mediafire.com/?8u4rrp0f1gdm47p
Unpack the zip.. copy your app folder to /system/app in the zip and the framework to the framework folder.. then pack it. Install via cwm.. script needs busybox installed on your phone.. custom recovery will have busybox already...
Do a complete back up before installing... change the update binary from one of your update files. Co the binary included is meant for mt devices..
Don't forget to hit thanks..
Sent from my Celkon A97i
Click to expand...
Click to collapse
yeeeeaaa thanks for all man
SMOKERBUNNY said:
yeeeeaaa thanks for all man
Click to expand...
Click to collapse
Does it worked for you.. and don't need to say thanks.. you can just hit thanks button. That's enough for me...
Sent from my Celkon A97i
praderj said:
Does it worked for you.. and don't need to say thanks.. you can just hit thanks button. That's enough for me...
Sent from my Celkon A97i
Click to expand...
Click to collapse
ok, but i have a problem with your flashable zip, i put my update-binary and cwm says me status 6 error
SMOKERBUNNY said:
ok, but i have a problem with your flashable zip, i put my update-binary and cwm says me status 6 error
Click to expand...
Click to collapse
simply use the update binary which i gave.. Check weather it worked..

Categories

Resources