[Q] Samsung Galaxy xCover S5690 ROOT

Search This thread

tlc76

Senior Member
Dec 8, 2006
69
63
Bucharest
network lock hash found, but the SALT is unknown...

Well, I worked a little bit on the sim unlock code reverse engineering. The responsible bml file is bml25. The NCK and MCK codes are there, but they are hashed and they are hashed using a SALT code.
Because the length of the hash is 32 bytes for each of the 2 codes, the hash type is SHA256.

MCK code starts at offset 0x01421 and is 32 bytes long
NCK code starts at offset 0x01441 and is also 32 bytes long.

The NCK code for a NEVERLOCKED phone is:
CA E2 01 A8 B7 91 CA 25 B8 1B 04 87 6C AC D6 28 97 88 3E E4 C1 90 7D 2B D5 1D 56 71 FE EC 75 62
(this should be the hashed output string for the 00000000 input value)

The NCK code for a simlocked phone is:
A1 26 42 5F 6D 07 A2 DE 4C 75 F1 69 D0 CB F0 73 23 9E F5 1E CE C4 6B F3 C7 1F 1B D1 5D 02 9C 0E
(this is the hashed output string for the 24830530 input value)

When a simlocked phone is unlocked by code, the first two bytes of the bml25 file are changed from 01 01 to 00 00.

The problem is that I don't know the salt that Samsung uses when hashing the sim unlock code, so I cannot do a brute force based decryption on the hash.
On the other hand, it is most likely the salt has a constant value for all Xcover phones. That is because the hash corresponding to the "00000000" value (see above) is also present in a simlocked phone, 4 times in a row, right after the NCK hash. In a neverlocked phone, it appears 5 times in a row (the extra occurence is actually the NCK hash). See the attached picture for more details.

Does anyone know what salt usually Samsung uses for their Galaxy models?


ANOTHER SOLUTION would be to find a way to write back the bml25/stl25 image file, after we modify the value of the first two bytes from 01 to 00 or after we change the NCK hash to a known-by-us value (such as the one stated above). The stl25 cannot be dumped (via dd command), I get this error message: /dev/block/stl25: cannot open for read: Invalid argument
 

Attachments

  • bml25_diff.jpg
    bml25_diff.jpg
    144.7 KB · Views: 488
Last edited:
  • Like
Reactions: tastaturaqwerty

kermanp

Member
Jan 18, 2012
40
4
44
Oulu
I've finally managed to root the son of a *****! I used the Universal GB Root kit but with a small modification: I've added the GT-S5690 phone model to the getprop statements at the beginning of the file "META-INF\com\google\android\updater-script" assuming that it should work as well on this Samsung model. Well... it did work!...
Regards,
Cristian

Thank you!
This worked like a charm.
Phone is unbranded, firmware is XXKL3.

edit: Any news on custom kernel/rom for this device (overclock etc...)
 
Last edited:

asestar

Senior Member
Oct 25, 2010
239
70
Lillestrøm

Thank you so much! I got the S5690 from job today and it worked like a CHARM with your method.

For everyone else wondering what I wondered: On unrooted phone, shut it off..

Press Volume UP + Home (middle key) and then press Power. Keep holding VolUP and Home (let go of power) and you will be kicked into recovery. Just flash the zip file from tlc76 above and root is done!
 

donbarlone

Member
Aug 9, 2010
21
5
I rooted my xcover but i can't overclock cpu. I tried with setcpu and other apk. Can you overclock your rooted devices?
 

itchitastic

New member
Feb 23, 2012
1
0
i really struggled getting mine to root (full system partition) which was unbranded and bought without contract

in the end i downloaded a clean official rom, flashed that then followed the root process as described by the TC and it finally worked

all we need now is CM7
 

Tayphan

Member
Feb 29, 2012
5
0
Noob asking :)

Im not good at android this samsung is my first device with android or a linux base system. I have the Xcover with:

Android Version 2.3.6
Baseband Version S5690XXKL1
Kernel version 2.6.35.7
official.alkon@androide #23
Build GINGERBREAD.XXKL1


With an Irish mobile Operator

and I read the whole thing and i know Tlc76 root should work but i dont wanna brick my phone. So maby someone with more exp and the same build of the phone did this and can tell me can i go ahed and do the root. I need it to remove some apps and use the sd + im lerning :D. Can u guys help me?? :)
 

aemaeth2501

New member
Mar 24, 2009
1
0
Huge thanks to tlc76. Just rooted my xcover :)

Can someone give me a lead to remove some pre-installed app ? I would like to remove the samsung lockscreen, and set back the normal one, is that possible ?
 

scoubidouille

New member
Sep 11, 2010
3
0
Same problem and it works !
Thank you very much !


Yeahhh! I'm Root! Bloody bundled software! ;)


Yep, my problem was i had not enough space left on /system because of the bundled software.
Unluckly it fails silently :(

I can't post links (I'm still new) but here is my updater-script, just to be safe I copied the apk on the sd before doing it :)


updater-script
Code:
ui_print("--- Cleanup Bundled Apps ---");

show_progress(0.100000, 0);
delete("/system/app/apemap.apk");
show_progress(0.999900, 0);
ui_print("Clenup Complete!");
ui_print("Ready to root !");

apemap 2.76mb (I guess is there to avoid google to get sued again)

--- UPDATE ---

I performed the hardware reset so many times i lost the count, it dosen't free up any space.

I bought this phone on internet and I got it shipped, I do belived is for the German/Austrian market; a lot of the budled software as well as the stickers outside was in german.
Maybe German/Austrian users may experience the same problems i've got.


Here the full list, if you post me yours I will be glad to make a diff ;)

Code:
ErrorHandler.apk
Browser.apk
SisoDrmProvider.apk
DrmUA.apk
SecurityProvider.apk
DefaultContainerService.apk
NetworkLocation.odex
AccountAndSyncSettings.odex
JobManager.apk
PackageInstaller.odex
SelfTest.apk
wssyncmlnps.odex
PCWClientS.apk
DialerTabActivity.odex
Memo.apk
MarketUpdater.odex
SnsProvider.odex
InputEventApp.odex
GoogleContactsSyncAdapter.odex
wssomacp.odex
PopupuiReceiver.odex
Calendar.apk
SimAutoSettingTest.odex
PicoTts.apk
FTC.odex
SDTelLaunch.apk
TelephonyProvider.odex
NetworkLocation.apk
FactoryTest.odex
Calendar.odex
Maps.apk
syncmldm.apk
UserDictionaryProvider.odex
PolarisOffice.apk
EmailWidget.apk
FTS.odex
PhoneErrService.odex
Bluetooth.apk
GooglePartnerSetup.odex
ScreenCaptureService.odex
LiveWallpapersPicker.apk
MediaProvider.odex
SamsungWidget_WeatherClock.odex
MusicHub.apk
DefaultContainerService.odex
BluetoothDut.odex
YouTube.odex
wssyncmlnps.apk
DualClock.apk
ErrorHandler.odex
CallSetting.odex
VoiceRecorder.odex
ApplicationsProvider.apk
HTMLViewer.odex
Gallery3D.odex
GoogleServicesFramework.apk
FmRadio.odex
TouchWiz30Launcher.apk
lcdtest.apk
SecurityProvider.odex
SDTelLaunch.odex
FTM.odex
FTS.apk
CallSetting.apk
Email.odex
SnsAccount.apk
MarketUpdater.apk
Bluetooth_FTPSERVER.odex
SystemUI.odex
Personalization.apk
SamsungAppsUNA3.apk
MediaUploader.odex
AxT9IME.odex
PowerOnOffTest.apk
Encrypt.odex
GoogleCalendarSyncAdapter.apk
VoiceRecorder.apk
ApplicationsProvider.odex
ContactsProvider.apk
Personalization.odex
Preconfig.apk
GooglePartnerSetup.apk
TwWallpaperChooser.apk
Settings.odex
MobileTrackerEngineTwo.apk
DownloadProvider.odex
LogsProvider.odex
HTMLViewer.apk
PowerOnOffTest.odex
Mms.odex
GoogleCalendarSyncAdapter.odex
CertInstaller.apk
syncmlds.apk
MyFiles.odex
syncmldm.odex
BluetoothDut.apk
Admin.odex
Memo.odex
Camera.apk
GoogleContactsSyncAdapter.apk
Contacts.odex
SnsAccount.odex
Bluetooth_FTPSERVER.apk
MobileTrackerEngineTwo.odex
Browser.odex
SystemUI.apk
TouchWiz30Launcher.odex
SamsungApps.apk
ClockWidget.apk
SimAutoSettingTest.apk
GoogleQuickSearchBox.odex
AxT9IME.apk
CalendarProvider.odex
fotaclient.apk
JobManager.odex
GenieWidget.apk
wssomacp.apk
Preconfig.odex
signin.odex
lcdtest.odex
Contacts.apk
Encrypt.apk
ShareApp.odex
AlertRecipients.apk
SisoDrmProvider.odex
EmailWidget.odex
CSC.apk
Phone.odex
GoogleFeedback.apk
ContactsProvider.odex
Bluetooth.odex
Street.apk
DebugShell.apk
GoogleFeedback.odex
SelfTest.odex
wipereceiver.odex
Mms.apk
Protips.apk
SerialNumberLabelIndicator.odex
MmsProvisioning.apk
Phone.apk
GoogleQuickSearchBox.apk
DualClock.odex
PicoTts.odex
SnsProvider.apk
Protips.odex
InputEventApp.apk
VpnServices.odex
Music.odex
DeskClock.apk
MinimalHome.odex
signin.apk
SamsungWidget_WeatherClock.apk
TouchWizCalculator.apk
FmRadio.apk
GoogleBackupTransport.apk
UnifiedInbox.apk
Music.apk
DrmProvider.apk
TwWallpaperChooser.odex
VoiceSearch.apk
ClockWidget.odex
Gmail.apk
LiveWallpapersPicker.odex
CertInstaller.odex
MediaUploader.apk
VpnServices.apk
Email.apk
Talk.odex
SetupWizard.odex
CSC.odex
UnifiedInbox.odex
DrmUA.odex
GoogleServicesFramework.odex
SamsungWidget_News.odex
TouchWizCalculator.odex
GoogleBackupTransport.odex
Bluetooth_settings.odex
wipereceiver.apk
Stk.odex
BadgeProvider.odex
SamsungWidget_StockClock.apk
SamsungWidget_ProgramMonitor.apk
FTC.apk
DebugShell.odex
SecDownloadProvider.apk
DownloadProviderUi.odex
SecDownloadProvider.odex
SettingsProvider.odex
FactoryTest.apk
FTM.apk
syncmlds.odex
Superuser.apk
Phonesky.odex
serviceModeApp.odex
DeskClock.odex
Stk.apk
Admin.apk
Gallery3D.apk
SamsungWidget_News.apk
Camera.odex
SamsungWidget_StockClock.odex
MmsProvisioning.odex
UserDictionaryProvider.apk
WlanTest.odex
MediaProvider.apk
GenieWidget.odex
serviceModeApp.apk
TtsService.odex
AccountAndSyncSettings.apk
MyFiles.apk
WlanTest.apk
TelephonyProvider.apk
Settings.apk
SettingsProvider.apk
SetupWizard.apk
DrmProvider.odex
DataCreate.odex
YouTube.apk
AlertRecipients.odex
Talk.apk
DownloadProvider.apk
Street.odex
fotaclient.odex
PhoneErrService.apk
BadgeProvider.apk
LogsProvider.apk
SerialNumberLabelIndicator.apk
MinimalHome.apk
Swype.apk
PackageInstaller.apk
DownloadProviderUi.apk
Phonesky.apk
Bluetooth_settings.apk
DataCreate.apk
DialerTabActivity.apk
CalendarProvider.apk
ShareApp.apk
SamsungWidget_ProgramMonitor.odex
PopupuiReceiver.apk
VoiceSearch.odex
ScreenCaptureService.apk
TtsService.apk
Samsung-Service-App_V1.1.50.apk
SmartRunner_v2.0.0_premium_build_10090024.apk
hrs_and_all_samapps_130.apk
 

lkristjansen2

Member
Mar 12, 2012
5
0
Horslunde
Hey guys, (and girls) well yeah you can but you need to be carefull. I used an app, after i rooted mine, called deepfreeze and worked like a charm. It can be used to freeze apps (make them non operational) or for de-freezing later on to make em be usable again.

Either way i have a problem of my own though. I have searched for 2 weeks for a custom Rom for my s5690 xcover but nothing turned up¿¿ couldn't there be some cool bros out there that has made one for this device, maybe a clean Rom with no extra **** put on it? The reason why the stock isn't working swell for me is it uses max ram capacities and it reboots once in a while of its own.

Hope to get some help in my dilemma :-\

Sent from my GT-S5690 using XDA
 

PaulTT

Senior Member
Mar 2, 2012
63
14
Bucharest
@vetal127 - Try to start your device in recovery mode, then choose wipe data/factory reset. It should "repair" your phone. To enter recovery mode turn off the phone(in your case I suppose you will have to remove the battery..), then pres volume up+home+power. When the phone starts let go of power button while continuing to press volume up + home. Good luck!

@tlc76 - Thanks a lot for the root file! It worked flawlessly. Now we need one kernel which will allow CPU control and will also support netfilter...
 
Last edited:

walachus

New member
Oct 3, 2011
3
0
Thx for rooting

Worked perfectly, no strings attached. If anyone can figure out how to remove simlock would be awesome. By any chance is it possible to remove simlock by replacing S/W rom. Is Clockwork Mod compatible with the Xcover ?
 

PaulTT

Senior Member
Mar 2, 2012
63
14
Bucharest
Doesn't seem to be compatible. For flash ClockworkMod Recovey, when I'm asked to confirm phone model there are only two options available.. Samsung Epic 4G or Galaxy S i9000..
 
Last edited:

tlc76

Senior Member
Dec 8, 2006
69
63
Bucharest
Removing the simlock is really challenging. I have 2 pairs of (NCK, hash) but I don't know the salt and the hash type. Most likely the hash type is sha256, but there are also some other hash algorithms that generate 32 byte hashes: haval, ripemd256 etc.
The salt used in SGS2 is 8 times chr(0) and it is appended to the NCK. But this rule does not apply to the Xcover. So they've either changed the salt or maybe they are using some undocumented hash algorithm for hashing the NCK.

Now I'm trying to vary the salt, but I'm pretty limited here due to the huge number of possible combinations for an 8 byte salt: 256^8=18,446,744,073,709,551,616....... :(

Any idea or advice is welcome.
 
  • Like
Reactions: tastaturaqwerty

philippe.dc

Member
Mar 14, 2012
11
0
how to remove the apemap apk ???

hi everybody,
I am new in Android, but I know Unix. My sumsung has severally Germain langage applications that bored me and what I can see it runs slow.
I have the same config phone with full of Germain applications... and I suppose no space to install superuser on /system.

My question is : how do you run the bat file below to uninstall apemap application, so that some space can be free ??????? :confused:
Thanks ! :D

Yeahhh! I'm Root! Bloody bundled software! ;)


Yep, my problem was i had not enough space left on /system because of the bundled software.
Unluckly it fails silently :(

I can't post links (I'm still new) but here is my updater-script, just to be safe I copied the apk on the sd before doing it :)


updater-script
Code:
ui_print("--- Cleanup Bundled Apps ---");

show_progress(0.100000, 0);
delete("/system/app/apemap.apk");
show_progress(0.999900, 0);
ui_print("Clenup Complete!");
ui_print("Ready to root !");

apemap 2.76mb (I guess is there to avoid google to get sued again)

--- UPDATE ---

I performed the hardware reset so many times i lost the count, it dosen't free up any space.

I bought this phone on internet and I got it shipped, I do belived is for the German/Austrian market; a lot of the budled software as well as the stickers outside was in german.
Maybe German/Austrian users may experience the same problems i've got.


Here the full list, if you post me yours I will be glad to make a diff ;)

Code:
ErrorHandler.apk
Browser.apk
SisoDrmProvider.apk
DrmUA.apk
SecurityProvider.apk
DefaultContainerService.apk
NetworkLocation.odex
AccountAndSyncSettings.odex
JobManager.apk
PackageInstaller.odex
SelfTest.apk
wssyncmlnps.odex
PCWClientS.apk
DialerTabActivity.odex
Memo.apk
MarketUpdater.odex
SnsProvider.odex
InputEventApp.odex
GoogleContactsSyncAdapter.odex
wssomacp.odex
PopupuiReceiver.odex
Calendar.apk
SimAutoSettingTest.odex
PicoTts.apk
FTC.odex
SDTelLaunch.apk
TelephonyProvider.odex
NetworkLocation.apk
FactoryTest.odex
Calendar.odex
Maps.apk
syncmldm.apk
UserDictionaryProvider.odex
PolarisOffice.apk
EmailWidget.apk
FTS.odex
PhoneErrService.odex
Bluetooth.apk
GooglePartnerSetup.odex
ScreenCaptureService.odex
LiveWallpapersPicker.apk
MediaProvider.odex
SamsungWidget_WeatherClock.odex
MusicHub.apk
DefaultContainerService.odex
BluetoothDut.odex
YouTube.odex
wssyncmlnps.apk
DualClock.apk
ErrorHandler.odex
CallSetting.odex
VoiceRecorder.odex
ApplicationsProvider.apk
HTMLViewer.odex
Gallery3D.odex
GoogleServicesFramework.apk
FmRadio.odex
TouchWiz30Launcher.apk
lcdtest.apk
SecurityProvider.odex
SDTelLaunch.odex
FTM.odex
FTS.apk
CallSetting.apk
Email.odex
SnsAccount.apk
MarketUpdater.apk
Bluetooth_FTPSERVER.odex
SystemUI.odex
Personalization.apk
SamsungAppsUNA3.apk
MediaUploader.odex
AxT9IME.odex
PowerOnOffTest.apk
Encrypt.odex
GoogleCalendarSyncAdapter.apk
VoiceRecorder.apk
ApplicationsProvider.odex
ContactsProvider.apk
Personalization.odex
Preconfig.apk
GooglePartnerSetup.apk
TwWallpaperChooser.apk
Settings.odex
MobileTrackerEngineTwo.apk
DownloadProvider.odex
LogsProvider.odex
HTMLViewer.apk
PowerOnOffTest.odex
Mms.odex
GoogleCalendarSyncAdapter.odex
CertInstaller.apk
syncmlds.apk
MyFiles.odex
syncmldm.odex
BluetoothDut.apk
Admin.odex
Memo.odex
Camera.apk
GoogleContactsSyncAdapter.apk
Contacts.odex
SnsAccount.odex
Bluetooth_FTPSERVER.apk
MobileTrackerEngineTwo.odex
Browser.odex
SystemUI.apk
TouchWiz30Launcher.odex
SamsungApps.apk
ClockWidget.apk
SimAutoSettingTest.apk
GoogleQuickSearchBox.odex
AxT9IME.apk
CalendarProvider.odex
fotaclient.apk
JobManager.odex
GenieWidget.apk
wssomacp.apk
Preconfig.odex
signin.odex
lcdtest.odex
Contacts.apk
Encrypt.apk
ShareApp.odex
AlertRecipients.apk
SisoDrmProvider.odex
EmailWidget.odex
CSC.apk
Phone.odex
GoogleFeedback.apk
ContactsProvider.odex
Bluetooth.odex
Street.apk
DebugShell.apk
GoogleFeedback.odex
SelfTest.odex
wipereceiver.odex
Mms.apk
Protips.apk
SerialNumberLabelIndicator.odex
MmsProvisioning.apk
Phone.apk
GoogleQuickSearchBox.apk
DualClock.odex
PicoTts.odex
SnsProvider.apk
Protips.odex
InputEventApp.apk
VpnServices.odex
Music.odex
DeskClock.apk
MinimalHome.odex
signin.apk
SamsungWidget_WeatherClock.apk
TouchWizCalculator.apk
FmRadio.apk
GoogleBackupTransport.apk
UnifiedInbox.apk
Music.apk
DrmProvider.apk
TwWallpaperChooser.odex
VoiceSearch.apk
ClockWidget.odex
Gmail.apk
LiveWallpapersPicker.odex
CertInstaller.odex
MediaUploader.apk
VpnServices.apk
Email.apk
Talk.odex
SetupWizard.odex
CSC.odex
UnifiedInbox.odex
DrmUA.odex
GoogleServicesFramework.odex
SamsungWidget_News.odex
TouchWizCalculator.odex
GoogleBackupTransport.odex
Bluetooth_settings.odex
wipereceiver.apk
Stk.odex
BadgeProvider.odex
SamsungWidget_StockClock.apk
SamsungWidget_ProgramMonitor.apk
FTC.apk
DebugShell.odex
SecDownloadProvider.apk
DownloadProviderUi.odex
SecDownloadProvider.odex
SettingsProvider.odex
FactoryTest.apk
FTM.apk
syncmlds.odex
Superuser.apk
Phonesky.odex
serviceModeApp.odex
DeskClock.odex
Stk.apk
Admin.apk
Gallery3D.apk
SamsungWidget_News.apk
Camera.odex
SamsungWidget_StockClock.odex
MmsProvisioning.odex
UserDictionaryProvider.apk
WlanTest.odex
MediaProvider.apk
GenieWidget.odex
serviceModeApp.apk
TtsService.odex
AccountAndSyncSettings.apk
MyFiles.apk
WlanTest.apk
TelephonyProvider.apk
Settings.apk
SettingsProvider.apk
SetupWizard.apk
DrmProvider.odex
DataCreate.odex
YouTube.apk
AlertRecipients.odex
Talk.apk
DownloadProvider.apk
Street.odex
fotaclient.odex
PhoneErrService.apk
BadgeProvider.apk
LogsProvider.apk
SerialNumberLabelIndicator.apk
MinimalHome.apk
Swype.apk
PackageInstaller.apk
DownloadProviderUi.apk
Phonesky.apk
Bluetooth_settings.apk
DataCreate.apk
DialerTabActivity.apk
CalendarProvider.apk
ShareApp.apk
SamsungWidget_ProgramMonitor.odex
PopupuiReceiver.apk
VoiceSearch.odex
ScreenCaptureService.apk
TtsService.apk
Samsung-Service-App_V1.1.50.apk
SmartRunner_v2.0.0_premium_build_10090024.apk
hrs_and_all_samapps_130.apk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    I've finally managed to root the son of a *****! I used the Universal GB Root kit but with a small modification: I've added the GT-S5690 phone model to the getprop statements at the beginning of the file "META-INF\com\google\android\updater-script" assuming that it should work as well on this Samsung model. Well... it did work!

    Here is the patched version of Universal GB Root:
    Universal_GB_ROOT_v5_patched_for_S5690.zip
    Mirror:
    http://uploading.com/files/8m63916d/Universal_GB_ROOT_v5_patched_for_S5690.zip/

    Here is the code (in red) that I've added to the "META-INF\com\google\android\updater-script":
    Code:
           getprop("ro.product.product") == "GT-B7510"[COLOR="Red"] ||
           getprop("ro.product.device") == "GT-S5690" ||
           getprop("ro.build.product") == "GT-S5690"[/COLOR]
           );

    Please post some feedback here, whether you succeed or not to root the phone using this workaround. I will let StoneBoyTony know about this, so he can integrate it in the official release of the Universal GB Root tool, if the solution proves to be stable and usable (so far I am the first to confirm that it works).

    Regards,
    Cristian
    3
    Hello , to get into recovery mode i tried this :

    - press volume up, home button and power, then release power button and keep the rest until recovery mode appears.
    3
    Tried so far (without success):
    zergRush -> failure (operation not permitted)
    DooMLoRD_v3_ROOT-zergRush-busybox-su -> failure
    SuperOneClick v2.3.3 -> failure
    adb reboot recovery (stock recovery), install update from sdcard, Universal_GB_ROOT.zip -> failure

    My S5690 is running Android 2.3.6
    baseband: S5690XXKL3
    kernel: 2.6.35.7 official.alkon@androide #25
    version number: GINGERBREAD.XXKL3
    CSC: S5690OXFKL2
    simlocked on: orange romania

    Please help!
    My intention is to actually remove the SIM lock, but I need access to nv_data.bin in order to search for the unlock code.

    Regards.
    3
    Patched it to make it work on Latin American version (S5690L)

    This will also work on S5690.

    http://dl.dropbox.com/u/15110285/Universal_GB_ROOT_v5_patched_for_S5690L.zip
    2
    Mirror: http://uploading.com/files/8m63916d/Universal_GB_ROOT_v5_patched_for_S5690.zip/

    xenux55: most likely you have an incomplete file. Please test it on your PC using WinZip/7Zip or any other archive manager BEFORE you try to install it via the phone's recovery interface.

    uhugyorgy: are you sure that bml15 is the file in charge with the sim lock on Galaxy Xcover S5690 phone model?