Rabu, 04 Januari 2012

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)

Minggu, 01 Januari 2012

info update - SGS2 and Sony Bravia Engine

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

UPDATE: SGS2 Gallery Sony Bravia Engine demo


first of all i would like to say thank you for your supports, either for the finally output or for me.

after careful consideration, i tend to release a demo so that ppl can see the real effects when the braiva engine is turned on in the samsung gallery.

for the development, i think it will be better to let interested developers to join and enhance it in their own way with their own expertise individually or as a group. i believe this will benefit the whole community. i will publish a simple guide for the developers instead of working on it alone. however, it requires more time and efforts to deal with the smali files, plus dependencies, permissions, libraries and so forth in this case.

in fact, this is what i planned to. so probably in the coming few days, there will be some more info added. and hopefully, someone will produce a I9000 version, and perhaps on other android devices as well

thank you for your patients, and thank you for my fans and supporters

and as usual, i do enjoy sharing new or dirty tweaks and mods to all of you :D

Sabtu, 31 Desember 2011

official SGS2 ICS rom leaked - I9100XXKP4 and I9100XXKP8

two new Samsung Galaxy S2 ICS roms leaked - I9100XXKP4 and I9100XXKP8. XXKP4 is a 4.0.1 while XXKP8 is a 4.0.8 with code OXAKP8. the 2 ICS, aka Ice-Cream Sandwich or Android 4.0 roms, are supposed to be internal beta releases. reports claim the XXKP8 is stable enough with minor problems, and the camera, haptic feedback, backlight buttons etc are all working fine plus the modem signal is better than XXKP1 and XXKP2 leaked before.



a movie clip provided by SamsungFirmwares showing I9100XXKP8 Android 4.0.3


what's more is, you don have to worry about the warranty thing if you opt not to root the phone since the KP8, and perhaps KP4 also, can be flased with odin without increasing the flash counter (the reason behind is, since they r official roms, therefore the counter wont change).

for those advanced users, it should be easily rooted as before


below are some of the download links for XXKP8 found on the xda forum:
link 1
link 2 (password: samfirmware.com)

they are not uploaded by me so all credits should go to those ppl who provide the links


enjoy your ice cream sandwich!

Jumat, 30 Desember 2011

Samsung Galaxy and Sony Bravia project - resume?

UPDATE: info update - SGS2 and Sony Bravia Engine

UPDATE2: SGS2 Gallery Sony Bravia Engine demo

the row between me and one of the forum was finally settled and i planned to resume the development of this mod in SGS and SGS2, or probably on all other Android devices. however, it looks like the Sony Bravia Engine thing has been forgotten by ppl already coz i couldnt see ppl talking about this anymore, and perhaps nobody wants it now ...

if you r one of the fans of this mod, pls kindly show me your support by making a comment to this post, give it a like, sending it to your friends and tell them about this, etc, so that i can see if there are at least someone still waiting for this mod around the world. otherwise, i just keep it for my own use

thank you

Selasa, 20 Desember 2011

SGS2 Gallery3D with Sony Bravia Engine previews

UPDATE4: more Bravia Engine screenshots marked with differences

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

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

UPDATE: SGS2 Gallery Sony Bravia Engine demo


see the differences with Sony Bravia Engine turned on in Samsung Galaxy S2 I9100 with default gallery (Gallery3D.apk). for those who believed Sony Bravia Engine can only be run on Sonys device but not others, you can still say that this is not a "100% port" and i will not argue with you. however, you must admit that it can be run on a SGS2 too


EDIT: these screenshots were made on 15 Dec 2011, but for some reasons the publish date was postponed. there is no schedule for resuming the development yet, until a row with one of the forum is resolved.

also note that the images on the left are identical to those on the rigth hand side (except the bottom one), indicating the outputs from Samsung Gallery3D with Sony Bravia Engine and SonyEricsson Gallery3D are indifferent




Samsung Gallery3D with Sony Bravia Engine SonyEricsson Gallery3D
click here to view the original file
click here to view the original file
click here to view the original file

Samsung Gallary3D - a closer look (1/2 scale)
without Sony Bravia Engine with Sony Bravia Engine
click here to view in full size (800x480)

Jumat, 16 Desember 2011

development for gallery3D with bravia engine paused

UPDATE2: SGS2 Gallery Sony Bravia Engine demo

UPDATE: more screenshots SGS2 Gallery3D with Sony Bravia Engine previews


just realized some ppl are talking about this around some forums, therefore i am here to inform you that, i am still alive :P

the project is paused at the moment since i want to sort out why my threads talking about this were deleted about 2 days ago (after i went to bed.... ) in a forum without any warning or message, neither before nor after the deletion

i am still waiting for the reasons behind ... and i am sorry about that