• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[HOWTO] Backup your CSC

Search This thread

splattx_x

Senior Member
Mar 31, 2011
204
31
DISCLAIMER: Please bear in mind that my flashing didn't end up perfect and I'm still learning. That said, we're just gonna be copying some files so I think it's kinda harmles to the phone. It worked for me, but it doesn't mean it will necessarily work for you, I post this because I think it's important that we share our experiences so we can learn from each other. Also I cannot guarantee that it will restore everything. In short what I mean is you do this under your own risk. This procedure was tested only on the following models. If you have success in other models please post back so I can update the list

Tested:
- Galaxy 551 (GT-i5510L)
- Galaxy mini (GT-S5570L)

1. Type *#272* IMEI # on your phone. In the little white box that appears on top there's a 3 letter code, that's your CSC code. Now hit the back button. (DON'T click "Install")

2. Go to /system folder and look for the file "CSCFiles.txt". To make things easier copy it to your sdcard and then download it to a pc so you can watch it during the procedure.

That file lists all the files that the phone uses to install a new CSC when you enter the code *#272* IMEI # so basically what we have to do is go through the system folders looking for those files and back them up in the sdcard or to a pc (your choice). Also back up with Ti Backup (just in case, you should always do a backup)

3. Flash.

4. After flashing go to the /system/csc folder. Inside this folder we have subfolders named with the codes of all the CSC included in the CSC file. What we need to do is create a folder with our CSC name (my case it was CTI) and then put all the files we backed up earlier in it.

5. Take your backed up CSCFiles.txt and back it up again, we're gonna be modifying it (TIP: if you're using Root Explorer for this process it makes a backup for you named CSCFiles.txt.bak).

6. Now we are going to tell android where the files are now so it can install them. Open your CSCFiles.txt for editing (note: I edited with Root Explorer, I just opened the file with windows Notepad to copy some sections for this post and it opened all in one long line, so it's probably not a good idea to edit it on windows) mine looked something like this

Code:
/system/media/bootani.qmg
/system/media/video/shutdown/shutdown.qmg
/system/media/audio/notifications/Claro.mp3
/system/CSCFiles.txt
/system/csc/contents.db
/system/csc/customer.xml
/system/csc/isnew_csc.txt
/system/csc/others.xml
/system/csc/sales_code.dat
/system/csc/feature.xml
/system/SW_Configuration.xml
/system/wallpaper/drawable/wallpaper_claro.jpg
/system/wallpaper/drawable/wallpaper_claro_small.jpg
/system/wallpaper/default_wallpaper/default_wallpaper.jpg
/system/app/LauncherMyfiles.apk
/system/app/YahooSearch.apk
/system/app/Plugger.apk
/system/app/MBO2_SMS_I5510L_CSBP_AMX_302.apk
/system/app/LauncherMessage.apk
/system/app/LauncherCamera.apk
/system/app/LauncherStk.apk
/system/app/CTI_Link.apk
/system/app/AMXNotification.apk
/system/app/LauncherCalendar.apk
/system/app/ASCR_SMS_i5510L_ML_AMX_301.apk
/system/app/LauncherContact.apk
/system/app/TopappMessage.apk
/system/app/LauncherMusicplayer.apk
/system/app/LauncherSettings.apk

you can tell there are some customized animations (with the operator logo) and sounds, then some bloatware and apps (which I didn't chose to restore) and then there are these files

Code:
/system/CSCFiles.txt
/system/csc/contents.db
/system/csc/customer.xml
/system/csc/isnew_csc.txt
/system/csc/others.xml
/system/csc/sales_code.dat
/system/csc/feature.xml
/system/SW_Configuration.xml

I only copied these files to the /system/csc/CTI folder we previously created and now comes the "tricky" part. You have to copy the files maintaining the path that the file says. i.e. the CSCFiles.txt goes into /system/csc/CTI/system/CSCFiles.txt then sales_code.dat goes in folder /system/csc/CTI/system/csc/sales_code.dat and so on. Then we have to edit our CSCFiles.txt to reflect these new paths so it will look something like this

Code:
/system/csc/CTI/system/CSCFiles.txt
/system/csc/CTI/system/csc/contents.db
/system/csc/CTI/system/csc/customer.xml
/system/csc/CTI/system/csc/isnew_csc.txt
/system/csc/CTI/system/csc/others.xml
/system/csc/CTI/system/csc/sales_code.dat
/system/csc/CTI/system/csc/feature.xml
/system/csc/CTI/system/SW_Configuration.xml

7. Finally if we've done eveything right when we type *#272* IMEI # our CSC will be listed and we can chose it, select it.

WARNING: THE FOLLOWING STEP WILL ERASE ALL YOUR PHONE DATA AND PERFORM A HARD RESET

8. Click "Install". The phone will shutdown.

9. Turn it on, an image of the little green droid with a box appears for a while and then the phone shuts down again. Just wait a little longer and it will reboot itself and presto!! You have your phone flashed and with your CSC restored!! (and hopefuly everything works out fine). Note that this time the reboot can take longer since it copies all the files before starting the OS.

This is my first Howto so any questions, comments, help will be greately appreciated and encouraged. I will try to answer if I can. Also if you try this on a different phone please tell me so I can start making a list with supported/not supported devices.
 
Last edited:

jmlowes

New member
Apr 10, 2011
2
2
Finally!!!

Worked like a charm. I was able to restore the original CSC on my device and proceed with carrier updates. Thanks so much!
 

elPicione

Member
Sep 4, 2012
18
9
I have a little warning for this: the "contents.db" is actually an SQLite file, which contains the full path+name and the filesize of the CSC files. I think that this file should be edited when you change the path or the size of your CSCs. Screenshot attached
 

Attachments

  • shot.jpg
    shot.jpg
    23.6 KB · Views: 332

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    DISCLAIMER: Please bear in mind that my flashing didn't end up perfect and I'm still learning. That said, we're just gonna be copying some files so I think it's kinda harmles to the phone. It worked for me, but it doesn't mean it will necessarily work for you, I post this because I think it's important that we share our experiences so we can learn from each other. Also I cannot guarantee that it will restore everything. In short what I mean is you do this under your own risk. This procedure was tested only on the following models. If you have success in other models please post back so I can update the list

    Tested:
    - Galaxy 551 (GT-i5510L)
    - Galaxy mini (GT-S5570L)

    1. Type *#272* IMEI # on your phone. In the little white box that appears on top there's a 3 letter code, that's your CSC code. Now hit the back button. (DON'T click "Install")

    2. Go to /system folder and look for the file "CSCFiles.txt". To make things easier copy it to your sdcard and then download it to a pc so you can watch it during the procedure.

    That file lists all the files that the phone uses to install a new CSC when you enter the code *#272* IMEI # so basically what we have to do is go through the system folders looking for those files and back them up in the sdcard or to a pc (your choice). Also back up with Ti Backup (just in case, you should always do a backup)

    3. Flash.

    4. After flashing go to the /system/csc folder. Inside this folder we have subfolders named with the codes of all the CSC included in the CSC file. What we need to do is create a folder with our CSC name (my case it was CTI) and then put all the files we backed up earlier in it.

    5. Take your backed up CSCFiles.txt and back it up again, we're gonna be modifying it (TIP: if you're using Root Explorer for this process it makes a backup for you named CSCFiles.txt.bak).

    6. Now we are going to tell android where the files are now so it can install them. Open your CSCFiles.txt for editing (note: I edited with Root Explorer, I just opened the file with windows Notepad to copy some sections for this post and it opened all in one long line, so it's probably not a good idea to edit it on windows) mine looked something like this

    Code:
    /system/media/bootani.qmg
    /system/media/video/shutdown/shutdown.qmg
    /system/media/audio/notifications/Claro.mp3
    /system/CSCFiles.txt
    /system/csc/contents.db
    /system/csc/customer.xml
    /system/csc/isnew_csc.txt
    /system/csc/others.xml
    /system/csc/sales_code.dat
    /system/csc/feature.xml
    /system/SW_Configuration.xml
    /system/wallpaper/drawable/wallpaper_claro.jpg
    /system/wallpaper/drawable/wallpaper_claro_small.jpg
    /system/wallpaper/default_wallpaper/default_wallpaper.jpg
    /system/app/LauncherMyfiles.apk
    /system/app/YahooSearch.apk
    /system/app/Plugger.apk
    /system/app/MBO2_SMS_I5510L_CSBP_AMX_302.apk
    /system/app/LauncherMessage.apk
    /system/app/LauncherCamera.apk
    /system/app/LauncherStk.apk
    /system/app/CTI_Link.apk
    /system/app/AMXNotification.apk
    /system/app/LauncherCalendar.apk
    /system/app/ASCR_SMS_i5510L_ML_AMX_301.apk
    /system/app/LauncherContact.apk
    /system/app/TopappMessage.apk
    /system/app/LauncherMusicplayer.apk
    /system/app/LauncherSettings.apk

    you can tell there are some customized animations (with the operator logo) and sounds, then some bloatware and apps (which I didn't chose to restore) and then there are these files

    Code:
    /system/CSCFiles.txt
    /system/csc/contents.db
    /system/csc/customer.xml
    /system/csc/isnew_csc.txt
    /system/csc/others.xml
    /system/csc/sales_code.dat
    /system/csc/feature.xml
    /system/SW_Configuration.xml

    I only copied these files to the /system/csc/CTI folder we previously created and now comes the "tricky" part. You have to copy the files maintaining the path that the file says. i.e. the CSCFiles.txt goes into /system/csc/CTI/system/CSCFiles.txt then sales_code.dat goes in folder /system/csc/CTI/system/csc/sales_code.dat and so on. Then we have to edit our CSCFiles.txt to reflect these new paths so it will look something like this

    Code:
    /system/csc/CTI/system/CSCFiles.txt
    /system/csc/CTI/system/csc/contents.db
    /system/csc/CTI/system/csc/customer.xml
    /system/csc/CTI/system/csc/isnew_csc.txt
    /system/csc/CTI/system/csc/others.xml
    /system/csc/CTI/system/csc/sales_code.dat
    /system/csc/CTI/system/csc/feature.xml
    /system/csc/CTI/system/SW_Configuration.xml

    7. Finally if we've done eveything right when we type *#272* IMEI # our CSC will be listed and we can chose it, select it.

    WARNING: THE FOLLOWING STEP WILL ERASE ALL YOUR PHONE DATA AND PERFORM A HARD RESET

    8. Click "Install". The phone will shutdown.

    9. Turn it on, an image of the little green droid with a box appears for a while and then the phone shuts down again. Just wait a little longer and it will reboot itself and presto!! You have your phone flashed and with your CSC restored!! (and hopefuly everything works out fine). Note that this time the reboot can take longer since it copies all the files before starting the OS.

    This is my first Howto so any questions, comments, help will be greately appreciated and encouraged. I will try to answer if I can. Also if you try this on a different phone please tell me so I can start making a list with supported/not supported devices.
    1
    this should be sticky since there had been success and the OP did post proper tutorials...