Dolfin.so and bada 2.0 rumours... 2012 - Bada Software and Hacking General

New year, new attempt.
I've read that in XXLA1 Browser is not able to use hundrets of MB, like your PC, where you can see in Task Manager temporary memory is reserved...
For me I can see over 1500 MB...
Okay. No joke.
Lets investigate why resource problem...
1.
b.kubica rocks ever and ever again.
Thank you very much.
http://forum.xda-developers.com/showpost.php?p=21958851&postcount=224
With this and TriX you can expand all *.so files. Also Dolfin.
Dolfin not changed since XXKK5...
2.
Dolfin source is here:
https://opensource.samsung.com/rece...application&classification2=&classification3=
Its NOT exact for bada, but...
3.
With WinComm we can log what happens in Background...
http://forum.xda-developers.com/showthread.php?t=928170
Maybe we can find Limits by Dolfin...
Maybe we can tweak Dolfin....
But before we need to understand how it works....
Maybe someone can host own site for test and SIMPLE make 1 HTML content with 1 JPG...
Try different sizes of JPG...
Maybe start with 10 MB jpg file...
If Dolfin can handle it, increase size... oterhwise reduce size...
It would be interessting. How much MB Dolfin can handle, before site is too big or resource problem occured.
Thanx for reading.
Best Regards

Hi Adfree,
I don't know if it is related with the topic that you are researching in this thread, but looking into firmware files using Trix or Wave Remaker you can found some browser config files (in FFS/SystemFS/User/Br folder) where you can see the following parameters:
dolfinconfig_osp.ini:
Code:
// MEMORY Configuration - START
BAL_MAX_MEMORY_USAGE=80
BAL_BACKINGSTORE_MAX_MEMORY_USAGE=85
BAL_MAX_PLATFORM_ALLOCATE=4096988 //4 * 1024 * 1024
BAL_RESERVED_MEMORY_THRESHOLD=8388608 //8*1024*1024
BAL_MAX_IMAGE_BUFFER_SIZE=20971520 //20mb
BAL_MAX_IMAGE_CANVAS_BUFFER_SIZE=4194304 //4mb
If you look for strings in Dolfin.so you can find some references to this parameters also.
I don't know if this info is useful for your research, but I hope so
Cheers!

if you need a web hosting for your project i can provide you as much as space you want for free!!!

I have not much time yet.
But I think good start is investigation of:
dolfinconfig_osp.ini
Or find similar config files... you can also try to modify them...
Thanx amaciarey.
Check for instance KK5, KK7, KL6, LA1 and maybe also helpfull.
Check S8600 Firmware...
Maybe more reserved...
About webspace...
Not much needed. Only for test, how big content can be, before Dolfin strikes...
Best Regards

I have problem with usual sites on dolphin
even when i open www.badaos.net in 2 tabs sometimes it says "the page is too large"
i want to help this project but i dont know why stune doesnt work on my FW:
XXKL6 asian language
so how can i access to dolphin config files? thnx
---------------------
Webspace sent to adfree
the domain is www.dolphintest.co.cc
that now it's empty!!
---------- Post added at 05:11 PM ---------- Previous post was at 04:19 PM ----------
now a 13MB !! image is set at www.dolphintest.co.cc

adfree said:
I have not much time yet.
But I think good start is investigation of:
dolfinconfig_osp.ini
Or find similar config files... you can also try to modify them...
Thanx amaciarey.
Check for instance KK5, KK7, KL6, LA1 and maybe also helpfull.
Check S8600 Firmware...
Maybe more reserved...
About webspace...
Not much needed. Only for test, how big content can be, before Dolfin strikes...
Best Regards
Click to expand...
Click to collapse
That's a good idea Adfree i'm downloading the last available S8600 firmware right now, if there's something interesting i'd post it here.
Cheers!

my Internet speed is low
so please someone test this page on dolphin
http://www.dolphintest.co.cc/

r_22009 said:
my Internet speed is low
so please someone test this page on dolphin
Click to expand...
Click to collapse
For me the page is working but Dolfin does not show the image. I think that size of images is limited to 20971520 bytes (20 MB) or maybe 4194304 bytes (4 MB), and i'm pretty sure that your image is bigger than that.
Cheers!
EDIT: About your problem with Stune... if you want to use Stune in Bada 2.0, you need to use 1.0.6 Version otherwise it's not working. Maybe this is your problem ??
EDIT 2: I have just seen your previous post right now... sorry for that.
I think that Dolfin supports images smaller than 4 MB, keeping the sum of all images below 20 MB... can you try to put in your page several images. But keeping the total weight of the images below 20 MB, and one of them bigger than 4 MB. I'm sorry to ask you to work . Thanks in advance

I think it is easier to patch ini files through PFS instead of Stune because some files are made read only
PFS example is attached with original ini file
Edit it from Wave Remaker and test
Note that the files are in two directories and you need to edit both
Best Regards

mylove90 said:
I think it is easier to patch ini files through PFS instead of Stune because some files are made read only
PFS example is attached with original ini file
Edit it from Wave Remaker and test
Note that the files are in two directories and you need to edit both
Best Regards
Click to expand...
Click to collapse
Sorry for the noob question mylove90 but... if i understand you correctly, the only thing that i have to do, is a low flash using your .pfs file? Please, correct me if i'm wrong.
Cheers!

Take a look at index
i've put 4 images each of theme around 4mb
about stune, i'm using 1.0.6 and it can connect but i cannot browse my files
Edit: Thank you my problem is solved
i think my stune had problem
it was solved with another stune downloading!

@amaciarey
You are totally right
Let's do some tweaks in that thing
Best Regards

I have now little bit time to check out few basics...
I need now some hours...
Best Regards
Edit 1.
Short checked different Firmwares...
Code:
XPKG5
BAL_MAX_MEMORY_USAGE=80
BAL_BACKINGSTORE_MAX_MEMORY_USAGE=85
BAL_MAX_PLATFORM_ALLOCATE=4096988 //4 * 1024 * 1024
BAL_RESERVED_MEMORY_THRESHOLD=14680064 //14*1024*1024
//FILE PATH Configuration
XPKH1
BAL_MAX_MEMORY_USAGE=80
BAL_BACKINGSTORE_MAX_MEMORY_USAGE=85
BAL_MAX_PLATFORM_ALLOCATE=4096988 //4 * 1024 * 1024
BAL_RESERVED_MEMORY_THRESHOLD=1048576 //1*1024*1024
KK5
and also
LA1
BAL_MAX_MEMORY_USAGE=80
BAL_BACKINGSTORE_MAX_MEMORY_USAGE=85
BAL_MAX_PLATFORM_ALLOCATE=4096988 //4 * 1024 * 1024
BAL_RESERVED_MEMORY_THRESHOLD=8388608 //8*1024*1024
BAL_MAX_IMAGE_BUFFER_SIZE=20971520 //20mb
BAL_MAX_IMAGE_CANVAS_BUFFER_SIZE=4194304 //4mb
S8600...
BAL_MAX_MEMORY_USAGE=80
BAL_BACKINGSTORE_MAX_MEMORY_USAGE=85
BAL_MAX_PLATFORM_ALLOCATE=4096988 //4 * 1024 * 1024
BAL_RESERVED_MEMORY_THRESHOLD=8388608 //8*1024*1024
BAL_MAX_IMAGE_BUFFER_SIZE=20971520 //20mb
BAL_MAX_IMAGE_CANVAS_BUFFER_SIZE=4194304 //4mb
Edit 2.
Short logged with WinComm Standard Samsung site...
Code:
WMM : Total 13631488 bytes allocated from platform, current = 2097152 bytes
WMM : Total 11534336 bytes allocated from platform, current = -2097152 bytes
This I can see if I visit gamershell
Code:
WMM : Total 24117248 bytes allocated from platform, current = 2097152 bytes
WMM : Total 22020096 bytes allocated from platform, current = -2097152 bytes
Cache Debug, expires now: expire:3502855669 devicetime:3502829991
Edit 3.
Why not analyze whole folder?
SystemFS\User\Br
More ini files...

In other forum nice user posted this as example:
http://melander.dk/delphi/dragdrop/
Thanx.
It works on my S8530.
Maybe someone can please post sites where Dolfin give up...
Site too big not enough memory etc...
Thanx.
Best Regards

I'm sorry but i've been busy the last days...
@r_22009:
I tried to load the webpage in wave's browser but none of the images is shown . Maybe we have to analyze all the .ini files in /User/Br folder to find the right one to edit.
@mylove90:
I didn't have so much time to play with your .PFS file... but i will do it, i promise
@Adfree:
I'm not clever enough to fully understand your WinComm logs, but i've been analyzing the available heap memory through internal menu with dolfin running in background (only dolfin) after a soft reset (so the RAM of the device was clean) and it crashes when the allocated memory is about 80 MB, so i think that maybe the answer is in one of the *.ini files in /Br folder. I think is a good idea to analyze the behavior of dolfin in problematic web pages. In spain there is a web of a newspaper that crashes with all Bada 2.0 firmwares up to now. It is w w w.as.com (i'm sorry but i can't post links yet). This web page has a lot of flash contents, images and other heavy stuff.
Cheers!

Good job.
Thanx.
www.as.com
Is no porn, its spanish sportsite.
My S8530 crashes...
short freeze, then reboot...
Before I had forced Dolfin with 4 Tabs at same time...
Code:
www.chip.de
www.melander.dk/delphi/dragdrop/
www.ebay.de
www.gamershell.com
Now with as.com site we could play with Internet settings...
Maybe disable flash and all is good...
I'm not clever enough to fully understand your WinComm logs,
Click to expand...
Click to collapse
Same problem here. I'm also not fully understand WinComm...
But I try to learn.
Best Regards

First attempt.
Disabled JAVA Script + Flash.
Then www.as.com is running.
Now Question and or or...
Maybe both JAVA Script AND Flash... or maybe only 1
We will see.
Best Regards

3 short tests:
1.
JAVA Script + Flash disabled.
as.com runs.
2.
JAVA Script again enabled.
Reboot.
3.
JAVA disabled, Flash again enabled.
as.com runs.
So 1 problem could be JAVA Script...
Now I'll try to log with WinComm... maybe I see something...
Best Regards

It seems S8600 users with more RAM have less problems...
5 Tabs at same time seems maximum...
I have short tried with reduced rcs (smaller CSC file)... seems no affect...
Will try with both... modified RC1 and rcs...
Error messages can be found in Browser.rsr in CSC with Wave_Remaker
Best Regards

RC1 optimization : http://forum.xda-developers.com/showpost.php?p=22907665&postcount=69
Combined with CSC optimization : i ripped of all unused languages and keeps Arabic & English only in both strings & Keyboard
Now www.as.com opens on my phone normally with no freezing or rebooting
Any other page that give page too large please to test ??
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.

Contents.xml

SystemFS\User\MultiStage\Contents.xml
You could extract this file from *.FFS or grab from handset.
Maybe some tweaking possible...
S5PC110_EVT1_UM10.pdf
2D Graphic Engine
− BitBLT
− Supports maximum 8000x8000 image size
Click to expand...
Click to collapse
<FileFormat>
<JPG>
<MaxFileSize value="4096000"/>
<MaxWidth value="5000"/>
<MaxHeight value="5000"/>
<ThumbNail>
<MaxWidth value="1280"/>
<MaxHeight value="1024"/>
</ThumbNail>
</JPG>
There are more infos in this file...
<MaxInstallCount>
<NativeApp value="100"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
</AStore>
</Contents>
</SDP>
Check out, maybe interesting or helpfull.
Best Regards
I already tryed to increase the max. resolution to 8000x8000px for jpg a week ago but it didnt worked
This file exists 2 times and I flashed them correctly to the wave (tested with sTunes after flash), the limits seems to be set somewhere else...
The image sizelimit is also higher than 4096000 byte (or what it is) - about 10 mb.
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
SystemFS\User\MultiStage
User\MultiStage
@ st0rmi
Thanks.
Yes, via sTune this file is twice.
It seems writeprotected files are most in folder SystemFS... as Backup.
If you check via TriX Firmware files. Then Contents.xml is in *.FFS... maybe edit before flashing. Then changes in both files on handset.
Not tested yet...
@ rex4u
At the moment I have nothing changed in this file, so no idea what happens.
Maybe soon few tests...
Best Regards
@adfree: Yeah thats what I have done
I just used sTunes to copy the contents.xml back to my pc and view if the edited xlm are really on my phone because it didnt worked...
@adfree
No bro' I was offering my own suggestions to this configuration file.
It might allow us to install more than 100 apps in phone and show in Menu.
Second it might show Java apps icons in Menu.
My 2 cents
xml parser
please help me
a want to parser punker xml data base.
rex4u said:
I would have liked to tweak this setting to 200 or more and see but unfortunately there are not that many good apps to install.
<MaxInstallCount>
<NativeApp value="300"/>
<NativeWidget value="50"/>
<JavaApp value="-1"/>
</MaxInstallCount>
Btw, what does this Java value mean ? Could it be that it controls whether to show icon in Menu or not ?
Click to expand...
Click to collapse
it's into the 'app counter' field, '-1' may be means 'unlimited' number of java apps installable, but I haven't read yet the whole xml... anyway if it is editable it's an interesting thing..
I saw that file a while ago while looking for something inside my phone (very special thing that made me to copy the whole phone)
there is a lot of interesting things but i never tried tweaking it
Maybe if someone have enough knowledge to add few new extensions and test them
Also removing some stupid limits would be awsome
Sorry i've no time to test that with you guys but would appreciate results
Best Regards
You dont need modif ffs or other just use pfs file to modif what you want and in real time direct phone flash pfs file and not have write protect problem
Just says Thank
Example file : dont give attention of boot img cause i dont take time to do it in 800x480 but its 400x240 then its make bug but with pfs file you can upload anything you want to change !!!
Good hack !!!
Maybe with this you can create dual boot or i dont know what a pro smoker can do, you can also try to put her rc2 or rc1 directory i dont try it !!!
Download example, in this one you can see SystemFS and Registry directory, off course you can put her all directory you want to flash pfs, using trix to modified or wave remaker more faster :
https://rapidshare.com/files/809973956/Circle.pfs
An idea its like you can make your one firmware with personal Widget installed and other idea welcome....Just take file registry and Widget folder on phone and put it on PFS
i can not open new thread
i went to parser an xml file with structure like this.
<?xml version="1.0"?>
<node1>
<node2>
<node3>
<node4>
<node5>
text
</node5>
</node4>
</node3>
</node2>
</node1>
Click to expand...
Click to collapse

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.

How can we edit *.so file?

I found into shp folder *.so files and I want to ask if we can edit them
because I want to see what have in the files
OpEuroIME.so and OpEuroIMESetting.so
HEX Editor... expect not tooo much.
This leads to this...
http://forum.xda-developers.com/showthread.php?t=1294406
But we could investigate, if this or other files about language is in arabic S8600...
Best Regards
.so are equivalents to .dll libraries which you can find in Windows. They contain almost only machine code.
And you cannot edit them, because these are digitally signed, first you'd have to bypass integrity&sign check mechanisms.
Some one using Linux can try this program please?
http://www.fileinfo.com/extension/so
Not to edit, but if it was possible at least to read .so file?
you can see GCC compiler in SDK files....of course if you have it
"SDK Path"\Bada\2.X.X\Tools\Toolchains\ARM\arm-bada-eabi\bin\gcc.exe
You can see this in the readme file too
The executables in this directory are for internal use by the compiler
and may not operate correctly when used directly. This directory
should not be placed on your PATH. Instead, you should use the
executables in ../../bin/ and place that directory on your PATH.
Click to expand...
Click to collapse
So any ideas about a DEcompiler
This is just a compiler that make .so files....Maybe non-compressed ones only too
Best Regards
ML90 Did you try to see so file with SDK?
Because I never used it
There is nothing to see in there
You can use gce2elf plug-in for trix to decompress .so files from bada 2.0 and the files will be converted to elf files that were available in bada 1.2 FWs before
S8600 .so files can't be decompressed until now !
There is no way to compress files back yet !
As i say these files can contain pure code and no pics or any stuff like that as they are compiled from .O libraries files used by C/C++ apps
We need the real experts to come back and help us
Best Regards
Thanks for your answer.
Even if we got pure c++ code perhaps we should be able to see what for exemple setting.so file call on other file firmware... that was my idea
After I know we can not rebuild a file, but it's just to have some more infos that should be usefull?
After I know we can not rebuild a file...
Click to expand...
Click to collapse
This is not 100 % correct...
*.so files are signed... So Security is main problem...
To modify or to rebuild is only problem of skills...
If "Android boys"... ...
See here:
*.so files are also known in Android world...
http://forum.xda-developers.com/showpost.php?p=23559274&postcount=15
Android use folder lib with *so files...
Maybe good chance to find some source... if these files also open source...
But again.
Break first Security check, then you can modify *.so files... depend on your brain.
But at the moment Dead ends...
Smart skilled users on ""holiday""... or missing in action...
First "safe" attempt to remove Security Check:
apps_compressed.bin...
Compression Algo needed... as you have no full access in compressed BINary...
If Bootloader checks *.so files... maybe FOTA could help...
To break RSA 2048...
I hope few of our smart Devs come back to bada Hacking.
To search and find *.so sources in Android world is not useless...
Maybe it helps to better understand.
Best Regards
hi,
editing is not a problem - we dont need to compress gce back - similar situation to rc1/qmd image (gce is light weight qmd version)
Happy to see you there Kubica, we realy need your knowledge
Bada have no big interest if we can't custom firmware (thanks to samsung ).
Someone could post and edited so file please? it's just to see relation with others files in the firmware.
editing is not a problem - we dont need to compress gce back - similar situation to rc1/qmd image (gce is light weight qmd version)
Click to expand...
Click to collapse
Thanx b.kubica
Attached is DEcompressed Admin.so from S8500 XXKK5 as example...
With Help of TriX easy task.
Thanx again.
Here we can see (if we want) Codes as TEXT Strings...
http://forum.xda-developers.com/showthread.php?t=1154945
Prior in bada 1.x they were located in apps_compressed.bin... now in this Admin.so...
In theory we could edit few Codes to harder combos... like:
*#1234567#
But how remove or "rebuild" GeneralSoInfo.so.sig Integrity check
Vodafone branded Firmware or S8600 for instance uses few different Codes... sometimes...
Maybe this could 1 of our first modified *.so file, if someone break *.so Security check.
Thanx.
Best Regards
adfree said:
if someone break *.so Security check.
Click to expand...
Click to collapse
done
b.kubica said:
done
Click to expand...
Click to collapse
How
simple 1 byte patching
later I will post more info
On bada 1.x
Better on XXJEB, other not tested yet...
Only first 4 KB are signed...
If you change something at higher address... above 0x1000
See here:
http://forum.xda-developers.com/showpost.php?p=25255252&postcount=47
Big thanx mijoma
Now I will check again XXLC1... bada 2...
Anyway.
Big thanx b.kubica
My Preconfig Code is now:
*#1234567*#
Best Regards
---------- Post added at 11:27 PM ---------- Previous post was at 11:09 PM ----------
I can confirm... bada 2 on XXLC1 has improved Sig Check...
But now no problem anymore.
Thank you very much b.kubica
Best Regards
apps code:
Code:
// pseudo C
unsigned int AppPkgSvcRequest ( ... )
{
unsigned int action = *(struct field ptr);
switch ( action )
{
/* ... */
case 6:
/* check signature ;) */
break;
case 7:
/* ... */
}
}
assembled code:
Code:
patt: [B]06[/B] 28 3F D0 07 28
mask: FF FF 00 00 FF FF
replace first byte with anything grater than 7 and you'll know what are we talking about
Thank you very much b.kubica
For easy test... Code change in Admin.so:
http://forum.xda-developers.com/showpost.php?p=23127738&postcount=54
Now we could for instance play with Dolfin.so ... Browser.
I need more time to find something usefull.
Best Regards
Someone can explain please? I don't get it
very simply mod - Radio without earphones connected
from LA1 but should works on similar too.

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

Categories

Resources