[Q] Redirect bada 2.0 to "another Update-Server" - Possible? - Bada Software and Hacking General

Well...
I think, this should be interesting stuff for builders of custom firmwares...
Like CheckFus and bada itself there must be stored some information about the Connection to the Update servers...
I think, it should also be possible, to change the URL of this Server.
So every "Custom-Builder could set up its own update server...
Any ideas about it?

If you mean FOTA...
"Software update" button...
Then mainproblem is... Deltafiles unknown Format...
I don't know any Tool nor method to "unpack"...
So how create files for update?
Config files are easy... DMSetup.ini in Registry folder...
Best Regards

Okay...
This might be one of the next challenges for all modders...

Just some thoughts...
For this we could use FOTA skills...
Solution could be in SyncML/2400257.cfg...
Here should be also Download-URL be stored...
Maybe manipulate it...
There is just a way needed, how to create delta files, what the handset can handle...
Sorry...
My brain is to small for that...

This is very interesting to me
No Idea how to create/extract delta files
Maybe changing Download URL possible
Disabling FOTA check (it won't install delta file if the ROM is custom )....No idea too
I know that PFS files seems bad because not being OTA updates but after comparing to delta files...i'd just say PFS files are perfect
Best Regards

Related

apps_compressed.bin

With PSAS (only FULLversion) it is possible to "decompress" apps_compressed.bin for investigation.
It uses Algo:
TkToolVer:1.6.3
I don't know way to make own apps_compressed.bin.
As Multiloader for instance not accept decrypted apps_compressed.bin
As example some older apps_compressed.bin from S8500.
http://www.megaupload.com/?d=2JIKS8QD
Best Regards
u reache some limit bro........... cant download from RS........but good going
can u write a tutorial
so that other members too can find something
thanx!
gr8 gng mate
PSAS can only decrypt in Full Version.
Costs 30 Euro...
BUT I can upload via Request some decrypted files for study.
I'm not an Seller of PSAS nor I force you to buy PSAS.
But this is the only Tool I know, which decrypt these apps_compressed.bin and bootloader.mbn. Tested by me with:
S5250
S5330
S5750
S7230
S8500
S8530
http://forum.revskills.de/viewtopic.php?f=14&t=700
Wait few minutes. I will upload to megaupload... from S8500 as example.
Best Regards
Edit:
Download example apps_compressed.bin taken from S8500:
http://www.megaupload.com/?d=2JIKS8QD
Same as in first post.
So what did u get inside that?? What was compressed in layman terms pls.......
Expect not too much. Depend on knowledge...
Now file is "human readable"... Ready for Reverse engineering.
Minimum Requirement HEX Editor...
Then you can find Text like this:
Please receive DB2 by TkFileExplorer.exe !!primaryRecord
Click to expand...
Click to collapse
Remember where u saw TkFileExplorer.exe else...
You could search for Textstrings... like:
widget
bondi
.
.
.
So many things to explore.
Best Regards
hi guys I'm working on some bada's modding projects...
is it possible to have an example of uncompressed files?
thank you in advance
edit : I have now seen the uploaded uncompressed file...
I hoped it was more "human" readable...
http://www.megaupload.com/?d=PFWCKTGZ
This is from XXJID... bada 1.2 S8500 stuff.
Best Regards
adfree said:
But this is the only Tool I know, which decrypt these apps_compressed.bin and bootloader.mbn.
Click to expand...
Click to collapse
Hi,
could you upload the decrypted bootloader, too? Maybe someone here will find some exploitable code in that will help "jailbrake"-ing the system, or allow booting unencrypted OS (modified Bada or Android from Galaxy S for exmaple...)
TIA!
@ anghelyi
http://forum.xda-developers.com/showpost.php?p=10304951&postcount=3
Here I have attached some more things about Bootloader... some ELF files included... maybe "easier" for Reversing.
Best Regards
adfree said:
@ anghelyi
http://forum.xda-developers.com/showpost.php?p=10304951&postcount=3
Here I have attached some more things about Bootloader... some ELF files included... maybe "easier" for Reversing.
Best Regards
Click to expand...
Click to collapse
Thanks! I'll check it!
Little overview...
Best Regards
Hi adfree,
Can you say me the name of PSAS software please?
http://psas.revskills.de/
RevSkills is the new name of PSAS.
This feature only in registered Fullversion possible.
NOT in Trial Version.
Best Regards
Thanks but seems to be not compatible with windows 7 64 bits
Will try later, Have a good night adfree
look like that apps_compressed.bin contains a big secret
i flashed amss.bin file & apps_compressed.bin file from spoofable fw as an update for non spoofable fw and the result was getting a spoofable fw with its code name in the about phone menu but i lost all the updates made in the non spoofable fw
can anyone know where is the part in the app_compessed.bin that allow spoofed games run or not?????
To clarify:
I'm NOT support spoofing.
Prior files were not decompressed, "only" decrypted.
But now.
http://rapidshare.com/files/453882158/XXJL2decrypted_apps_decompressed.rar
File is from XXJL2.
Maybe we can find other usefull infos.
Best Regards
Now we can encrypt.
Thanx to ho1od
Any suggestions?
Mabye few things can be enabled or disabled...
TRUE can be found 600 x
FALSE over 700 x
Best Regards
I'm working on decompression QMD, thanks to mijoma
I was looking for the decompressed files of apps_compressed.bin (S8500XXJL2 and S8500XEKC1 only), but the link does not work.
If anyone (or you, adree) can decompress (not only decrypt) those files and upload them somewhere, that would be very kind/nice. Maybe I can work something out and if we are ever able to encrypt the files back, we may have a new better cleaned up version by that time.
Btw, thanks for the efforts, adree and ho1od.

QuB an mighty Tool for Samsung handsets

This Tool is amazing. Many features.
Source is here:
http://rk-team.net/showthread.php?11-%CD%EE%E2%FB%E5-%E2%E5%F0%F1%E8%E8-QuB
"Lesson 1"
Make hidden folders visible for research and Backup.
For instance folder System is the RC1 file, mounted into RAM...
Many Thanx RusEm and Team.
Best Regards
Hi thank you for this tool but it is only for "qualcomm" platforms i think (not sure). In s8500 qualcomm is only processor for calls.
QuB is designed for Samsung handsets.
This command is 100 % working on S8500 and U700, tested by me.
You have to select same COM Port like you would choose for File Manager...
No magic.
Then you have access to nvm folder, system folder and few more...
System folder is read only as it is the mounted RC1 file...
Best Regards
But... with this... what kind of researches could be done?
"Lesson 2"
Decrypt Firmware files, like:
apps_compressed.bin
and
boot_loader.mbn
Best Regards
adfree said:
"Lesson 2"
Decrypt Firmware files, like:
apps_compressed.bin
and
boot_loader.mbn
Best Regards
Click to expand...
Click to collapse
If you can decrypt bootloader... that's mean you're closer to install other os?
Ok, maybe the information given in "lessons" can cause more expectation
Waiting for lesson three!
does all these features run on trial mode???
or should i buy the app
there is no profile for s8500 why???
i know you are not the developer of the app adfree but i just wanted to put those questions
does all these features run on trial mode???
Click to expand...
Click to collapse
Yes.
Public solution.
Tested with QuB_public_v.0.3_001_beta.rar
Best Regards
@adfree: take a look at the screen, i got only question mark on the application. do you know what is the problem?? may be due to lang files ??
Main Language is Russian.
See Screenshot. Blue marked... then you see right Russian-> change into English.
Not all Text is translated.
Best Regards
wonderful new tool
-i am able now to view the files in the ram but don't know what to do with them
-after decryption of apps_compressed.bin i found out that i have a very little brain to modify in that file
i can't wait for lesson 3
thanks adfree and good luck
"Lesson 3"
apps_compressed.bin
Decompressed example from XXJL2 is here:
http://forum.xda-developers.com/showpost.php?p=12300153&postcount=17
Code:
Type : Unofficial Version
Number : 362
Builder : Administrator
Host : S1-AGENT05
Date : 2010/12/23
Time : 14:24:54
[B][COLOR="Red"]Size[/COLOR][/B] : 82576764 bytes
CheckSum : 0x32cdbee8
I was not able to decompress with QuB, maybe my fault...
Helpfull would be, to know which part is with CheckSum.
82576764 bytes
Best Regards
Really nice tool.
Setting FmSecureMode to off gives us the chance to see where everything is located and we can investigate and chang the files on the pc. now we need to find a way to get them back to the wave
Maybe with PfsDeleteList.txt / *.pfs ?
Also after reboot FmSecureMode is set to on again.
But we can already see where the fonts are located, that the sms viewer is html/css based like the one for email and any other messages (so we can easiely change layout, colors, font-size,...) and a lot of other things like replacing images etc.
When we get this working, nothing keeps us anymore from a fully customized bada
In combination of TkFileExplorer 2.4 you can see this.
Caution!
Renaming or other Directory Manipulation can lead to Bootcycle.
At your own risk.
http://forum.xda-developers.com/showpost.php?p=12515691&postcount=20
Thank you very much for posting Xenon.
Best Regards
yes indeed the tool works fine
adfree said:
Main Language is Russian.
See Screenshot. Blue marked... then you see right Russian-> change into English.
Not all Text is translated.
Best Regards
Click to expand...
Click to collapse
How did you get the s8500 otion in handset? I dont have it. Do you have a plugin for it?
How did you get the s8500 otion in handset?
Click to expand...
Click to collapse
I've made my own... but not all Settings... So it makes no sense to upload.
Best Regards
adfree said:
I've made my own... but not all Settings... So it makes no sense to upload.
Best Regards
Click to expand...
Click to collapse
Still can u please upload it? Its a kind request.
There is nothing special...
Make folder + S8500XXJL2.ini...
Folder is nearly empty... I've made an Logo.jpg with text.
But again. You NOT need it. As mandatory parameter are wrong or missing...
[Loader]
[PreConf]
[Patch]
...
1.
You can use S8500 or other not listed Samsung handsets like U700 with QuB. BUT not with all features...
2.
Many features NOT need attached handset...
Best Regards
Need help in decompressing Rc1 and Rc2 files. I see some tabs in Qub saying Rc1 and Rc2. Dont know how to use them to dump rc1 and rc2 files. And if I do, is there any way to upload them back like in trix. Or can you use trix to decompress rc1 and rc2 files? If yes, how? Help would be very much appreciated.

OAP aka ZIP wtf... $%!

Since when handset can handle oap files?
Never seen before nor tested...
I can see in WinComm some actions...
Best Regards
You have just discovered a method to install applications like .apk for Android?
If yes.... :') i would be so happy!! (we would be!)
A new era could begin.
great work AdFree! as always
I heard that first version of bada (1.0) was able to install *.oap files, but samsung disabled it to prevent from installing piracy apps. Maybe some CSC feature or variable in firmware?
So cool
but I tested both encoded OAP and decoded OAP and none of them works!!!
but a problem is that when i open asphalt6.oap with size of around 400mb it shows error without even 1 second loading
so where is the problem?!!
Well
You need to see this
It is so funny
This is DCF file
Of course it throw on me an error after opening dolfin
Best Regards
Tested short on JL2 ...
oap is not supported file... but DCF same info.
On bada 2.0 DCF leads to wrong site... maybe because this:
http...http...
Later more... need some time to test few things...
I'm now on JL2 and investigate more in certs... certchain...
About oap...
I heard that first version of bada (1.0) was able to install *.oap files, but samsung disabled it to prevent from installing piracy apps.
Click to expand...
Click to collapse
Yeah... Its complete weired at all...
http://developer.bada.com/badaforum...de-sdk&messageId=5584&startPage=94&curPage=96
From may 2010...
But remember... We have to differ between bada SDK (Developer) signed "testapps"... commercial apps from store... and Samsung signed apps...
But please take an look into:
AppEx\Sys\SamsungApps\SamsungApps.oap
Their are 3 more oap (ZIP) which are autorestore if you delete the apps from Osp folder...
Also all transfered files from Kies or from internal Store are oap (ZIP)...
Maybe we have to find correct folder...
Maybe we need license file + oap...
Maybe...
But why Samsung integrate this into handset visible for us?
Samsung has humor like this Andromeda Warp thingie...
An kind of easteregg?
Best Regards
Little progress...
On S8500XPKG5 I saw AppEx/Sys folder with both:
*.oap
AND
*.zip
Install of OAP shows me Error 0108...
Maybe I have an idea... will check more with WinComm...
Best Regards
0108
Installation failed: Failed to find root certificate.
The root certificate is not found on the device.The root certificateis required to build the certificate chain for the application integrity check.
Click to expand...
Click to collapse
...
Best Regards
Okay.
For XPKG5 I have managed to install all 3 types of App via ZIP... OAP.
I can install Samsung internal Apps... like in Firmware.
"Cert A"
I can install Samples like in SDK...
"Cert B" = rootCACert.cer
I can install Apps from store...
"Cert C"
All 3 Installations from SD Card or internal Memory with simple zipped files.
Best Regards
Stotter spotz.. since when does Bada support zip files
So how did you installed apps?
is there a special location we should put special certs there?
OAP Installation only successfully in XPKG5...
In other Firmware blocked...
Not sure yet why...
I will do some more tests...
XPKG5 include ZIP + OAP files... they are not 1 : 1
BDAgent.oap
BDAgent.zip
Maybe OAP need special Flag to work... will try if I am back on other Firmware...
Other method to install, this time in folders structure:
http://forum.xda-developers.com/showpost.php?p=24992809&postcount=35
Best Regards
hi adfree, I long to write to you on this issue with the files. OAP but I forgot as proof that telling the truth I'll add screen and a link to the file to confirm that I have not changed before extensions, i upload this file maybe can be useful to someone. sorry for my english i use google translate
rapidshare.com/#!download|214p1|3925164345|a6tczu9746.oap|24690
adfree said:
OAP Installation only successfully in XPKG5...
In other Firmware blocked...
Not sure yet why...
I will do some more tests...
XPKG5 include ZIP + OAP files... they are not 1 : 1
BDAgent.oap
BDAgent.zip
Maybe OAP need special Flag to work... will try if I am back on other Firmware...
Other method to install, this time in folders structure:
http://forum.xda-developers.com/showpost.php?p=24992809&postcount=35
Best Regards
Click to expand...
Click to collapse
Maybe winmerge is useful for comparing differences of these 2 files
BTW can device handle encoded OAP files?
@ maniek909
Your file is ENcrypted *.oap... During Installation on Wave it will be DEcrypt into "other Format"...
Then second *.oap file is only ZIP Archiv...
@ r_22009
Total Commander can compare 2 file also.
Best Regards
Now i have XPKG5
would you mind telling a short tut to install OAP?
thanks
would you mind telling a short tut to install OAP?
Click to expand...
Click to collapse
Only XPKG5...
1.
Install Certs... start with Cert from bada SDK:
rootCACert.cer
2.
Your app is now in ZIP Format... Check it or create self.
Rename into .oap
Remember, with rootCACert.cer you have to try better with bada SDK signed Apps...
Other 2 Certs came from Firmware... extract them...
Code:
Samsung_RootCA.crt
SamsungSBRootCA.cer
Best Regards
would you mind uploading the first cert as i dont have SDK? thankx
I am little bit paranoid...
I don't think Samsung is my best friend, if I share now their Certs...
To protect myself...
Btw...
Please be sure... you have visit and read some other threads...
As rootCACert.cer is floating around...
Btw 2...
I have forgotten, that Samsung moved in bada 2 to RSA 2048... before most RSA 1024 used in bada 1.x ...
So more Certs possible to try...
@ r_22009
Summary for you...
Use search or Google ...
Input:
rootCACert.cer
Best Regards
S8530 XPKD6 can also handle OAP...
Maybe interesting for research...
Best Regards

Play with me...

As now Certchain... signing is very easy with XadaXppsXignature.exe... for BOTH:
bada 1.x
AND
bada 2.x
It is possible to modify Binary *.exe from Apps.
Few ideas:
- Translation of some Apps...
- minor changes... maybe bug fixing...
First stupid test was to increase *.exe to learn more about memory handling... RAM...
But failed... as added 2 MB at end of ELF
Success with stupid text change...
Many more ideas... but for now limited by time... and skills...
Anyway. Limitation by RSA 1024 is gone... blown away.
Best Regards
Maybe I give an example...
kona.exe = Samsung Apps
Maybe now we could do some funny things with this app... for instance:
Remove dxmn forced Updates...
Samsung Apps is working very fine in older Firmware, with older Samsung Apps App...
I think kona.exe is very powerfull...
All I can say is Andromeda...
As we know, we can install more then 1 kona.exe ...
Best Regards
Sorry I cannot understand the relation of signing apps using this method and modifying exe files
would you mind explaining?
Sorry I cannot understand the relation of signing apps using this method and modifying exe files
would you mind explaining?
Click to expand...
Click to collapse
Are you able to modify Apps?
Especially *.exe ?
Now you can modify *.exe and ceate new HASH... you can sign this new *.exe file...
Also in bada 2...
Best Regards
NICE!!
I can't wait to see some good tweaks
Code:
[KONA][UTIL]Kona Version = 1.x.x
How to prevent annoying useless updates of Samsung Apps?
Any idea where Version is stored from kona.exe ?
Best Regards
probabely exe files are using a special compression
we should crack it !! ?
Any idea where Version is stored from kona.exe ?
Click to expand...
Click to collapse
Yes.
Harcoded and secured with RSA99999999... impossible to change.
Andromeda proofed.
You need text Editor... and...
Best Regards
As opera mini servers are blocked in our country , i want to replace the opera mini (bada version) servers with my custom servers
i found the strings in exe file like "http://mini5.opera-mini.net:80"
when i replace it with my own server "http://sanjesh.org.uk.to/cgi-bin/nph-proxy.pl/0A/http/mini5resource.opera-mini.net:80" and i signed the app with XadaXppsXignature.exe then i get error 0112 while installation with this method
what can i do?
or maybe i can change the exe while the app is installed via kies?
0112
Installation failed: Application manifest missing or invalid.
The application manifest file specifying the application metadata is invalid or missing.
Click to expand...
Click to collapse
Remember DCF files are encrypted... check Info folder...
Best Regards
Yeah your right, i forgot that
so any ideas how to edit opera mini?
cuz when i install it on my device it makes DCF files
how to prevent that or how to get rare files ?
r_22009 said:
Yeah your right, i forgot that
so any ideas how to edit opera mini?
cuz when i install it on my device it makes DCF files
how to prevent that or how to get rare files ?
Click to expand...
Click to collapse
Did You Read it Opera Mini Already Released For Upper Waves
http://forum.xda-developers.com/showpost.php?p=25604062&postcount=13
Yeah I did but i think you havent read my posts
the opera mini default servers are blocked in my country
so i want to replace the servers with my own servers
so i want to modify exe file
got it? any ideas?
r_22009 said:
Yeah I did but i think you havent read my posts
the opera mini default servers are blocked in my country
so i want to replace the servers with my own servers
so i want to modify exe file
got it? any ideas?
Click to expand...
Click to collapse
Sorry My fault.I didn't read All posts
hello r 220009
maybe other solution : opera mini exist also in java (6.5.26955 advanced jar and jad)
if you know how to modify and compress jar , you can try
good luck
I'm currently using java version with my own server
now i want to have native one
adfree i know I'm a dumb but this is important for me?
you have no ideas about this?
Please post Agent String..
So I could search... if time...
If wrong, what should I help you?
I am lazy now, not read all posts again...
Best Regards
a short summery for u:
i want to change the opera mini server as its blocked in my country
this is the original server "http://mini5.opera-mini.net:80" in exe file
this is the custom server which should be replaced "http://sanjesh.org.uk.to/cgi-bin/nph-proxy.pl/0A/http/mini5resource.opera-mini.net:80"
so how can i change this?
how can i get unsp*ofed files of opera mini (without DCF) for installing via this new method? or can i change the application while its installed via kies?
any ideas ?
On russian site has tutorial for breaking DCF while installing

[Q] Retrieve FOTA-Updates directly from Servers to PC?

Simple question...
But no Answer...
Is there a way to get FOTA firmware files?
I know, download links could be found on the device in *.cfg file...
But is it possible to get these links without cfg file?
@adfree Where are you
If you have an device, where it works...
Then rename it...
You need only 3 incredients...
1.
Product Code
2.
Name of apps_compressed.bin or yesterday found way over CSC...
3.
Name of CSC...
Example.
I have:
S8500XXLG1/S8500DBTLA1 (DBT)
change into, as example
S723EXXLG1/S723EOXALG1 (DBT)
Start FOTA on your device... download file...
NOT update, no danger if you do...
Then check this file for Link
SyncML/2400257.cfg
Without FOTA working device it is posssible to download from Server... very easy.
Only you need to count... add + 1 ...
Problem... you can't search...
And you don't know what is inside the file... only which Product file and model name + date...
Best Regards
Uupsi...
S7230E is not good example...
No idea why. I am not able to find something...
But I can confirm that it work for:
S8530
S8600
S7250 ( I think I have tried... )
If you have only S8500.
Small bada I never tried before and I can't remember I have seen anything...
Maybe other URL ...
Best Regards

Categories

Resources