Galaxy S2 I9100 Gallery Sony Bravia Engine demo

UPDATE4: Sony Bravia Engine for Samsung Galaxy S3 coming soon

UPDATE3: more Bravia Engine screenshots marked with differences

UPDATE2: SGS2 ICS 4.0.3 Sony Bravia Engine demo with wallpaper rendering available

UPDATE: now with wallpaper enhancements - SGS2 wallpaper Sony Bravia Engine demo


this is an incomplete but working demo for implementing Sony Bravia Engine in Gallery3D on Samsung Galaxy S2/Samsung Galaxy Note for Android 2.3.6 Gingerbread/Android 4.0.3 Ice-Cream Sandwich. once you have installed it, your existing Gallery3D WILL BE REPLACED by this demo. note that no performance or memory tweaks, stress tests, etc were performed in this demo, and bugs or force closes are expected but not observed so far

EDIT: the current version is incompatible with I9000 yet


i considered it a success based on the following facts and results:
- the library needed by the Sony Bravia Engine for converting images was loaded and being used by the gallery app
- the gallery app warned against missing libraries if they could not be accessed
- the be_photo file did played a role and the outputs were back to nornal (without the Bravia engine) if it was not accesssible
- the images were processed/converted by the engine during the image creation
- the outputs produced (screenshots captured) by the Samsung Gallery3D were identical to those produced by Sony Gallery installed on my device in terms of file sizes, checksums, etc
- the outputs produced by the Samsung Gallery3D alone without the Bravia engine were different in terms of file sizes, checksums, etc


i cannot, however, assure it is 100% ported for the reason that i do not own a SE device. but even i do, the outputs cannot be compared directly due to different resolutions, color engine, brightness used, etc




PLEASE READ THIS POST CAREFULLY BEFORE DOWNLOADING OR INSTALLING THIS DEMO!!





system requirements:
- gingerbread/ice-cream sandwich
- rooted
- CWM recovery
- built and tested on:
Samsung Galaxy S2 GT-I9100- 2.3.6 - I9100XWKK5
Samsung Galaxy S2 GT-I9100 - 4.0.3 - I9100XXLP6
Samsung Galaxy Note GT-N7000 - 2.3.6 - N7000XXLC1
Samsung Galaxy Note GT-N7000 - 4.0.3 - I9220ZCLP6


files to be copied to your phone:
- /system/app/Gallery3D.apk
- /system/etc/be_photo
- /system/lib/libbmpcnv.so
- /system/lib/libiwi.so
- /system/lib/libiwiOmx.so
- /system/lib/libiwiOmxUtil.so


installation:
backup your files first!!!
then, either:
1/. with CWM
- put the zip file in your sdcard
- reboot into recovery mode
- choose the zip file and select update
- reboot your phone

or:
2/. with File Manager/Explorer/shell
- extract the zip file
- copy the system folder extracted from the zip to your /system (rw permission is required)


settings:
- NO EXTRA setting is required
- NO NEED to edit any prop file


turning on the Sony Bravia Engine:
- NO NEED to do anything, the engine will be turned on by default


tunning off the Sony Braiva Engine:
- you can only turn it off TEMPORARILY (*see below)


uninstalling the demo:
- the simpliest way is to overwrite the Gallery3D.apk with your previous version
- remove the files listed above if you want a complete uninstall but not a must


how to check the Sony Bravia Engine is loaded and running:
- create a new folder in your external sd card is suggested, eg /mnt/sdcard/external_sd/sbetest/, then copy an image file of your choice in that folder
- within that newly created folder, make a new copy of the image file you just copied there, and rename it by adding a tag 'BE-OFF' to the filename without quotes. now you will have two identical images here and read like eg, myimage1.jpg + myimage1BE-OFF.jpg, myimage2.jpg + myBE-OFFimage2.jpg, etc. the engine will ignore all files with the BE-OFF tag so a normal output will be produced instead
- if you created the new folder in your external sd card, go to Settings > Storage, and select Unmount SD card, followed by selecting Mount SD card again as to force a media rescan
- if you created the new folder elsewhere but not in your external sd card, perform a media scan either by running a third party app like 'Rescan Media', which can be found on the market
- start Gallery SBEDemo and you should see the new folder and files just created
- then,

1/. for normal users
- browser the two images and you should see the differences in sharpness, color, etc. if you do, then the Sony Bravia Engine should be running properly
- do a screen capture for the two images and save them. compare the two file sizes and they should be differ (beware of the zoom in/out buttons, etc and make sure they look identical when capturing the screenshots)

2/. for advanced users
I - by checking the pids
- get the pid of the gallery (media) by:
a) pidof com.cooliris.media
or,
b) ps | grep media | grep -v grep
- get the pid that is using the lib file /system/lib/libbmpcnv.so after clicking an image in the gallery by:
fuser /system/lib/libbmpcnv.so
- the pid returned from fuser should be equal to the pid of the gallery
II - by checking the file size and checksum of the files
- perform screen captures for both images
- compare the checksums and they should differ
III - by comparing the output produced by SonyEricsson's Gallery
- install SonyEricsson's Gallery and make sure it runs properly with the bravia engine
- perform screen captures for the images in both Gallery SBEDemo and SonyEricsson's Gallery
- compare the checksums and they should be identical
IV - by reading log file
- read the log by logcat and you should read messages like 'BE-OFF' tag or '### entering be 111' with tag MediaItemTexture


in order to prove it further, you can:
- click on an image without BE-OFF tag, press the home button and switch to another app or home, rename the /etc/be_photo, then press the home button to switch back to gallery again to see the differences, and a log will be printed and read like the following:
01-04 22:43:56.194: ERROR/BitmapConverterNative(1382): Failed to LoadParameters, Missing Parameter files ==========
- kill the gallery app and rename the /system/lib/libbmpcnv.so, start gallery again and click on an image, you will get a force close because the required library file libbmpcnv.so has been removed/renamed, and you will find a log message like:
01-04 22:48:34.964: WARN/dalvikvm(5192): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sonyericsson/swiqi/BitmapConverter;
01-04 22:48:34.964: WARN/dalvikvm(5192): threadid=15: thread exiting with uncaught exception (group=0x4001e578)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192): FATAL EXCEPTION: TextureLoad
01-04 22:48:34.969: ERROR/AndroidRuntime(5192): java.lang.ExceptionInInitializerError
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.MediaItemTexture.transformWithIQI(MediaItemTexture.java:394)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.MediaItemTexture.load(MediaItemTexture.java:166)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.RenderView.loadTextureAsync(RenderView.java:313)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.RenderView.access$900(RenderView.java:53)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.RenderView$TextureLoadThread.load(RenderView.java:1280)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.cooliris.media.RenderView$TextureLoadThread.run(RenderView.java:1264)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load bmpcnv: findLibrary returned null
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at java.lang.Runtime.loadLibrary(Runtime.java:429)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at java.lang.System.loadLibrary(System.java:554)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     at com.sonyericsson.swiqi.BitmapConverter.<clinit>(BitmapConverter.java:30)
01-04 22:48:34.969: ERROR/AndroidRuntime(5192):     ... 6 more
01-04 22:48:34.969: WARN/ActivityManager(812):   Force finishing activity com.cooliris.media/.Gallery




and, that's all. feedbacks and questions are welcomed



PLEASE READ THE DISCLAIMER AND WARNING CAREFULLY BEFORE DOWNLOADING OR INSTALLING THE FILE(S)!!



DISCLAIMER

The file attached below is an unfinished demo resulted from a feasibility study for integrating Samsung Gallery3D application and Sony Bravia Engine, and is provided for educational and research purposes only. This demo is solely to describe and explain how to implement the engine with the Samsung Android Gallery application, and is only intended for demonstrating the outputs produced by Samsung Gallery3D application with Sony Bravia Engine on the Android platform. It is, however, in no ways or by no means to be used on a daily basis, nor to be used for any commerical purpose, and it is not supposed to be distributed or published in any kind.

Samsung Gallery3D, Sony Bravia Engine, Android and all other trademarks mentioned belong to their respective owners.



WARNING

The file(s) attached are provided as is and for demo only. You should pay attention to the laws in your country or region, whichever and wherever applicable. You have to make sure you are not offended by downloading, accessing, transmitting, using, or in any other way utilizing any material contained in the file(s). You further understand and acknowledge are legally able to use or access the material(s) according to the laws in your country or region, and agree to waive, and hereby do waive, any legal or equitable rights or remedies you have or may have against me, regarding all matters related to your use of the file(s).

I am NOT RESPONSIBLE for any damages, including bricked phones, partial or total loss of data resulting from the use of the file(s) contained, in all kinds and/or by any means, caused by using or accessing the file(s)/material(s), including problems caused by the file(s) and/or by third parties. You shall be solely responsible for the consequences of using or accessing the material(s) and I will not be held responsible in the event any charges, including but not limited to civil and criminal charges, be brought against any individuals using the material(s) contained in this post and or attachment(s).





By clicking on the link below you agree to all the terms and conditions described above, and fully understand the risks involved for using or accessing any materials found here, and agree to assume and take on all of the risks and responsibilities in any way associated with this yourself.



download link: Gallery3DSBEDemo (in CWM zip)
Previous
Next Post »