yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Chris2u:
Hello,

I'm desperately looking for a way to achieve an extended desktop on Android devices with TV-Out that almost resembles the extended desktop/dual screen experience known from traditional OS on laptops with an attached display.

In the end I want to be able to write Android programs that can decide whether a certain view shows on the mobile screen or on the second display, just like it is possible on the iPhone. This would allow apps to embrace both displays for unique interaction. Equally, by attaching a pico-projector, there can be private information handled on the display and public information on the projector.

What I know so far (please correct me on any false information):

There is analog TV-Out like on the Galaxy S, where mirroring the android screen to the attached display seems to be hardwired in the GPU, therefore not being an option.

Then we recently got HDMI-out on Android devices like on the LG Optimus Speed (2x), Samsung Galaxy S2 which mostly just mirror the mobile screen when attached to an HDMI display (except for HD video output).

And finally there are two devices from Motorola, the Atrix 4G with its Webtop application and the Droid X2 supporting Motorolas Dual Screen API.

The Atrix 4G uses a separate X11 server that knows of the mobile LCD Screen and the HDMI display (xorg.conf) and therefore can show two different desktops at the same time. Furthermore it shows a VNC-like view of the Android OS and its window manager. However, the environment is not Android anymore but embedded linux (Jaunty), therefore it would not be possible to write Android applications spawning multiple displays for this.

The Dual Screen API from Motorola supported on the Droid X2 allows exactly what I'm looking for, at least by means of OpenGL/EGL contexts. That's similar to what could be used as hidden API on iPhone prior to iOS 4 to enable an extended desktop (two separate views).

My Problem:

First the Droid X2 is not available in Europe (yet) and I already have an Optimus 2x and a Galaxy S2. I consider also buying a Motorola Atrix. All these have HDMI. Knowing all threads on hacking Webtop and HDMI mirroring, what would be the right way to go to achieve something similar to a Dual Screen API on other devices than the Droid X2?

Second, what would be the best way to integrate the second display with Android's Window Management that one could write something similar to

windowParams.output = WindowParams.HDMI;
updateWindowParams(window, windowParams);

Unfortunately, I don't have much knowledge about Android Window Management behind the scenes. I would be glad if anyone could shed some light on Android Window Management in the context of HDMI output.

ANY help or discussion GREATLY appreciated.

Chris
[Android Software/Hacking General [Developers Only]] Chris2u:
Is there really nobody out there with an answer to my first post on XDA-D? :(
[Android Software/Hacking General [Developers Only]] denis111:
I've found this https://groups.google.com/forum/#!topic/android-developers/Jxp_9ZtzL60 :(

I have HTC Sensation and stock apps are able to do separate output. So there might be vendor specific apis...
[Android Software/Hacking General [Developers Only]] Chris2u:
Thx for your answer.

One of these APIs I learned recently about is the HDMI Dual Screen API by Motorola. Three of their Android devices already support it.

http:⁄⁄developer.motorola.com/docstools/library/motorola-hdmi-dual-screen-api/
[Android Software/Hacking General [Developers Only]] denis111:
Hi,

I've found this code by decompiling htc video player in Sensation rom:

import android.os.IDisplayService;
import android.os.IDisplayService.Stub;
import android.os.ServiceManager;

.....

IDisplayService localIDisplayService;
try
{
localIDisplayService = IDisplayService.Stub.asInterface(ServiceManager.getService("display"));
boolean bool1 = localIDisplayService.IsHDMIConnected();
boolean bool2 = localIDisplayService.IsHDMIEnable();

...

But! android.os.IDisplayService does not exists in android api and i was not able to find any jar which contains it.
[Android Software/Hacking General [Developers Only]] infopad:
Hello,

I am looking for something similar but for tablets and I have been with the same problem.

Some progress in the solution?

Thanks!
[Android Software/Hacking General [Developers Only]] adeyo:
Try the iDisplay app. Maybe it is what you are looking for. ...it does mirroring to your cpu.
[Android Software/Hacking General [Developers Only]] tymcode:
Dual Display API Deprecated

The Motorola dual display API is no longer supported past Gingerbread. There doesn't appear to be anything to replace it.

:(
[Android Software/Hacking General [Developers Only]] S.Phrenic:
I'm also interested in the development of this feature. I own a GT-N8010 and would love to use the s pen combined with presentation of slides. Did you have any progress in your search?
[Android Software/Hacking General [Developers Only]] frosT88:
???

Any news on this subject?

Is extendind android desktop to tv via hdmi possible?
[Galaxy S II Original Android Development] ficeto:
DarkyROM2 XWKF3 v1.0 Beta

for GT-I9100 SGSII​

To install this ROM you will need to flash SuperCore Kernel!

ROM Features:

Extended Power Menu

Overscroll Glow

Custom Battery Icon

Custom notification menu

busybox

bash

openvpn

SuperCore 1.0 inside

XXKE7 Modem inside

Kernel Features:

root

bootanimation

/system/etc/init.d support

custom CWM Recovery (nandroid not yet working)

Instructions:

Download SuperCore and DarkyROM2 from the links bellow

Install SuperCore with ODIN

Boot and upload DarkyROM2 zip to internal SD Card

Reboot into recovery (vol-up+home+power) it takes some time, so be patient ;)

Use the recovery menu to select the zip and install it

Reboot and enjoy

WARNING:

If you get into bootloop after flashing through recovery,flash CF-Root kernel to boot into the ROM. I'm investigating this issue and will be happy in anyone can help with some logs. If you get this bug and have the knowledge to get logcat and shell command outputs, please do so and halp me make this better :)

Sidenote:

This ROM installs without wiping your data, if you want to wipe, put a folder/file called "wipe" inside /sdcard/Darky folder.(do not factory reset/wipe from CWM!)

SU binary is in /system/xbin and busybox+bash+openvpn are there too :) you have Superuser issues maybe because Chainfire's kernel puts it in /system/app instead of /data/app (like this ROM does) and therefore old data gives FCs. Easy fix is to uninstall it and then reinstall it from Market.

SuperCore Kernel at this point is not better than CF-Root, so you still do not gain anything using it other than getting some feedback to me so I know what works and what needs fixing in this initial release. Things will get better as we go :)

Theme is slightly modded stock theme with added battery icon and different notification bar (that is for now as Joel will have more work to do on it). framework-res.apk and SystemUI.apk are UOT kitchen compatible, so you can make whatever mod from there apply to your phone and have it even more custom ;)

Screenshots:

Download Links:

SuperCore 1.0 d Kernel: HERE (changed initramfs, should help bootloop problem)

DarkyROM2 v1.0 Beta 2: HERE (fixed Browser lag and added SC1.0_d kernel)

Browser fix: XWKF3-browserfix.zip

More Info: HERE
[Galaxy S II Original Android Development] borstri:
Welcome... we have been waiting..
[Galaxy S II Original Android Development] onslaught:
nice to see darky moved to sgs2 too :]
[Galaxy S II Original Android Development] daleski75:
screenshots?
[Galaxy S II Original Android Development] Yanardag:
thx for the rom.
[Galaxy S II Original Android Development] mach0boi:
I'm waiting for this also! :)
[Galaxy S II Original Android Development] gravis_jg:
Finaly!- we've been waiting for so long

welcome darky crew

Sgs 2 JG - XDA Premium
[Galaxy S II Original Android Development] sardroid:
Welcome ficeto&darky team:)
[Galaxy S II Original Android Development] ficeto:
Just attached some to the OP :)
[Galaxy S II Original Android Development] patjanter:
WELCOME

Nice to see de best rom on de galaxy s 2.+1 for darky s
[Galaxy S II Original Android Development] sardroid:
Do not worry if the phone is a long time you entered into recovery:)wait...
[Galaxy S II Original Android Development] Yanardag:
Hi,

the clockworkrecovery is not working !!! i cant change to the recovery menu !!!!!!

Edit: The clockworkrecovery is working. It takes so loooooong about 30sek at least.
[Galaxy S II Original Android Development] syps54:
Yes !!!! Dark'ys roms come back !!! Nice to see you again :) let's test it immediately !
[Galaxy S II Original Android Development] OneDream:
Great to see Darky (and co) getting involved with the customization of the I9100.
[Galaxy S II Original Android Development] bclark:
Downloading now! What fw is this based on? I see the modem is ke7 but nothing about what build?

How can this already be rated one star?? Trolls...

Edit: actually the title says it all, hahaha sry.
[Galaxy S II Original Android Development] flow78:
really happy to have DarkyRom on my SGS2. Thanks for your work
[Galaxy S II Original Android Development] HarryRag:
Woooot Darky's gor GS2

GT-I9100 DroidHarry reporting for duty
[Galaxy S II Original Android Development] sardroid:
After flashing DarkyROM phone restarts on the Kcell logo..any idea?
[Galaxy S II Original Android Development] ficeto:
the long time that it takes for the recovery to boot really bugs me. Will investigate it further :) your words guys really make me happy :) I hope you like this release :) And I wish you less AOS bugs ;)
[Galaxy S II Original Android Development] john291:
Oooooo Noooooooo,

I had the samsung galaxy s en flashed almost al darkys rom.

Now i have the galaxy s2 and i think i am gonne get the virus again to flash the great darkys roms.

Welcome back darky with your galaxy s2
[Galaxy S II Original Android Development] ficeto:
Yup :) it was the default logo :)

you can flash any CWM3 compatible bootanimation and it should work :) I'm waiting for Goldie to make me a new one for the SGS2 (need to tell him that now )
[Galaxy S II Original Android Development] angiogram:
Hi Darky

I'm on asia rom currently (XWKFI/Singapore). If I flash your rom, how can I get back to my original csc. Thanks in advance.
[Galaxy S II Original Android Development] mxn-:
Need screens
[Galaxy S II Original Android Development] sardroid:
Look into first post.
[Galaxy S II Original Android Development] 【Kent】:
Have Chinese Menu ??
[Galaxy S II Original Android Development] _Sale_:
Welcome, nice to see you! :)
[Galaxy S II Original Android Development] bluheart:
Been waiting for this! Will test and tell u!
[Galaxy S II Original Android Development] zidane:
does this have arabic support like the darky ROM on SGS?
[Galaxy S II Original Android Development] frewys:
What is the SuperCore 1.0? Custom kernel?
[Galaxy S II Original Android Development] sardroid:
I've been flashing Batista boot animation:http://xdaforums.com/showthread.php?t=1140680 and not working,still hanging on on boot animation:(
[Galaxy S II Original Android Development] ficeto:
has to do with install script ;)

here is a version that will work :)
[Galaxy S II Original Android Development] Andy2.2:
yessss finally :D:D
[Galaxy S II Original Android Development] adelskrev:
Finally been on darkys since i bought my sgs hope you will do a good work with sgs2 too :)
[Galaxy S II Original Android Development] D_Magic:
Hey Joel & Ficeto, nice to see you here

Finally Darkyrom for sgs2 :)

Thanks!!!!
[Galaxy S II Original Android Development] MetalWeirdo:
In this ROM the CRT animation works well ? I'm going to flsh it anyways #ORD
[Galaxy S II Original Android Development] Mr.Greg:
This rom is overclocked? How is? Any feedback?
[Galaxy S II Original Android Development] flow78:
nice rom. its very fast but browser issue. :(
[Galaxy S II Original Android Development] ficeto:
what issue?
[Galaxy S II Original Android Development] bthefirst:
The issue that it doesn't scroll or laggy scroll? I had that problem when I installed the Extended Power Menu...
[Galaxy S II Original Android Development] flow78:
laggy scroll
[Galaxy S II Original Android Development] flow78:
and it works now?
[Galaxy S II Original Android Development] failax:
Will you inserrt CRT on-off animation?
[Galaxy S II Original Android Development] Batskoning:
Installed :D Booting now for the first time..:D

Why is this rom better/faster then Cognition 1.08 or VillainROM-1.4.0..?

How is battery life..?

Greetings From Holland
[Galaxy S II Original Android Development] bthefirst:
No, I 'uninstalled' Extended Power Menu and the laggy browser was history...

Couldn't find the real reason why it happened, but in this thread you can see more people have/had this problem...
[Galaxy S II Original Android Development] ficeto:
Browser FIX

Browser fix here: XWKF3-browserfix.zip
[Galaxy S II Original Android Development] kaasisonfire:
Wow that's fast!

Thanks! Loving your rom so far!
[Galaxy S II Original Android Development] sardroid:
Ficeto can you add full rom with fixed boot animation?
[Galaxy S II Original Android Development] borstri:
Question....

Allready on custom rom, and cwm recovery 4, is odin part of a story still required?
[Galaxy S II Original Android Development] adelskrev:
Is your kernel compatible with tegrak overclock?
[Galaxy S II Original Android Development] ficeto:
Have not tested on chainfire's recovery, but you can give it a shot. The worst that could happen is your dalvik not to get wiped ;)
[Galaxy S II Original Android Development] ficeto:
bootanimation is not broken in the rom, but rather in the install script of the ZIP you sent me ;) use the one I gave you and you'll have that bootanimation
[Galaxy S II Original Android Development] flow78:
thanks ficeto for your fast answer
[Galaxy S II Original Android Development] ficeto:
seems working just fine :) OC at 1.4 -> Quadrant is 3932 :)
[Galaxy S II Original Android Development] flow78:
now with this fix the browser works great
[Galaxy S II Original Android Development] prosumerhacks:
oh no! :( are you sure?
[Galaxy S II Original Android Development] Batskoning:
Stock 1.2 Ghz : 3500 Quadrant...

Dont know the score of Cognition s2 rom.. Someone..?

Euhm, why wifi signal/mobile signal does not have green in bar's..?

Can we have the stock batt icon with % ..?

Can u make screen nr4 as homescreen..?

When u push home it will go to the 4th tab..

Nice rom guys.. :D Keep up the good work..

Greetings from holland.. :D
[Galaxy S II Original Android Development] Spartoi:
The only thing missing from this ROM would be the CRT animation and the Desktop Browser. Can you add these in the next release?
[Galaxy S II Original Android Development] Mr.Greg:
About 3300 in quadrant. is this rom oveclocked?
[Galaxy S II Original Android Development] snijper:
i get bootloop...
[Galaxy S II Original Android Development] Batskoning:
I think it's not standard overclocked, when u install setcpu i guess it will be clockable..
[Galaxy S II Original Android Development] Techvir:
@ficeto :

Can u give me a link to see more about the supercore kernel ?

Thanks
[Galaxy S II Original Android Development] Batskoning:
Heey Snijper..

Enter recovery

Make a back-up (Don't need to back-up when u'r using Titanium)

Do a Full Wipe/Factery Reset

Dalvik Wipe

Install zip from SD Darkyrom2

Install > reboot
[Galaxy S II Original Android Development] snijper:
I already did...I still get bootloop...
[Galaxy S II Original Android Development] Batskoning:
First install CF-Root-SGS2_XW_XEU_KE7-v4.0-CWM4 with Odin..

Then install Supercore kernel with odin..

Open recovery and install DarkyROM2

So it worked for me :)
[Galaxy S II Original Android Development] ficeto:
This is all there is ATM :) I'm working on it for the last 3 days ;) will github the sources as soon as I get a few recovery nags worked out :) kernel sources are actually at project-voodoo's github (I have not modified anything there yet) as initramfs and recovery are the main things I need to get running stable first :)
[Galaxy S II Original Android Development] snijper:
I did what u said man...still the same..I don't get it...first time something like this happens to me..thanx anyway man....
[Galaxy S II Original Android Development] mon@diac:
get bootloop, too...
[Galaxy S II Original Android Development] alabak2002:
I have been waiting for Darky to switch to SGS2 since I got my phone a month ago. I'm really glad the wait is over.

Thank you!
[Galaxy S II Original Android Development] uppon2:
Hey mate. Nice to see you working here, I used Darky ROMs all the way up to the steel ROM froyo edition maybe back in September last year on my SGS 1 but then switched to Insanity as I found it to better suit my style. However, How much of this is darky actually helping you with, I know you were building the dark core kernel if I remember correctly so don't get me wrong I believe you are capable but it just seems a bit misleading if darky isn't even working on this project.....

P.S - Some people experience issues with SGS 2 ROMs not posting to the UI without doing a factory wipe before flashing ROMs over any old ROM/Firmware.

Matt
[Galaxy S II Original Android Development] eskamhl:
Bootloop also for me, coming from B70 ( KF2 modem ) :eek:

FATAL EXCEPTION IN SYSTEM PROCESS: Connectivity thread :confused:

I've tried also to format /system with CF-ROOT's recovery but it won't work :(
[Galaxy S II Original Android Development] borstri:
Flashed directly over Lightening rom. So far so good, only my favorite LauncherPro gets FCs, switched to alternative launcher...curently not prone to a full wipe...

Additionaly I have wiped manually dalvik and cache.

After flash, for what I can see all sw remained, only launcherpro is deleted.

Also, for what extent quadrant can be trusted, it gives 3380 score.
[Galaxy S II Original Android Development] aydc:
So what's super about this "SuperCore" ?
[Galaxy S II Original Android Development] surya_mca:
Lvu to c u darky here... Back in action......
[Galaxy S II Original Android Development] miloradov:
yes yes yes
[Galaxy S II Original Android Development] rwonderz:
thank you !! i'll try tomorrow :)
[Galaxy S II Original Android Development] fuzzl:
best rom for best phone:)
[Galaxy S II Original Android Development] Batskoning:
Install CF-Root-SGS2_XW_XEU_KE7-v4.0-CWM4 with Odin..

Enter Recovery and "wipe data/factory reset" then do "wipe cache" =>Reboot into download mode..

Then install Supercore kernel with odin..

Open recovery and install DarkyROM2
[Galaxy S II Original Android Development] mon@diac:
Thanks but tried your suggestions and still not working.. always bootloop
[Galaxy S II Original Android Development] DregorBaer:
Mee too...
[Galaxy S II Original Android Development] Batskoning:
Hmm.. Strange..

First attempt, straight hit..

I had bootloop's when coming from an other rom and didn't do a data/factory reset" and a "wipe cache"
[Galaxy S II Original Android Development] lupo2503:
yes Bootloop
[Galaxy S II Original Android Development] trishul:
DARKY ROM

guyz

just a curious question :)

maybe im wrong

i PM'ed darky n he said he would be coming out with a ROM for SGS2 in 2-3 weeks.

THIS ROM doesnt look like darky's ROM.

why would darky not be posting this ROM .. why "ficeto"

i think its just someone who has named it DARKYROM :)

this isnt darky's work remotely.. ive used his ROM's before on my galaxy S i9000

;)
[Galaxy S II Original Android Development] dezz:
trishul - you my friend are a tiny bit IGNORANT
[Galaxy S II Original Android Development] hunhool:
http://www.darkyrom.com/community/index.php

(right side of the page);)
[Galaxy S II Original Android Development] netcitizen:
installed over stock KF3 and flashed super kernel. rebooted smooth. pretty fast. No lag / stutter in long menus while scrolling up and down.

Like the battery percentage mod.

need to test GPS..

But one thing i noticed is that i do not see CWM app and superuser app in my applications list. Also ROOT explorer failed to run saying that it did not manage to get root access. any solutions?
[Galaxy S II Original Android Development] trishul:
ok guys

:(

im sorry

i AM ignorant !!!

just guess i put my foot in my mouth without thinking :)

sorry !!
[Galaxy S II Original Android Development] jorelleperds:
not sure but try downloading superuser from market
[Galaxy S II Original Android Development] :
Just get your info on the proper channels, ficeto is the darky rom kernel dev.

Darky is not available cause he is in his Master Exams periode for the next weeks ;)

https://twitter.com/#!/darkyy92

@ficeto great to hear - I sadly have to prepare for next week's master exams...
[Galaxy S II Original Android Development] kva:
Batskoning, what ROM did you use before this one ?

I'm having boot animation loop also.

I'm downloading stock KF3 right now. Will try to flash it first and this ROM after.

p.s.: no luck for me :( looping boot animation :(
[Galaxy S II Original Android Development] Locster126:
bootloop here aswell!! came from villain rom 1.4, wiped data/system/cache, flashed supercore kernel, flashed darky...bootlooped..went back to supercore recovery and wiped again and flashed darky once again but still bootlooping... not very good start to have half the people here ending up in bootloops..

EDIT: ok I flashed CF-ROOT kernel and it boots up now...so the problem isnt with darky rom but with the supercore kernel.....hmmmmm...
[Galaxy S II Original Android Development] gn00my:
No problems here. Wiped everything. Coming from litening rom 1.5. Rom feels fast and stable. Hope battery life is good also :-)
[Galaxy S II Original Android Development] Batskoning:
My previous rom was Villian...

After that i flashed stock ke7 firmware for europe.. (I9100XWKE7_I9100XXKE4_I9100XEUKD1)

Then i did all the wipe stuff at recovery...

Installl kernel + build..
[Galaxy S II Original Android Development] ficeto:
Alright.... bootloops :) please throw at me suggestions (and links to ROMs) that I can try and get that bootloop so I can get it fixed :( flashed, reflashed and nothing gets me into bootloop.

Thank you all!
[Galaxy S II Original Android Development] Spartoi:
Coming from VR 1.4 and everything flashed fine except the Superuser app wasn't installed so I had to install it from the market to get root.

Can we get the desktop user string browser for this ROM?
[Galaxy S II Original Android Development] Locster126:
try using CF-ROOT kernel instead of supercore kernel....

I managed to boot up now with CF-ROOT kernel and could re-flash supercore now and its working..
[Galaxy S II Original Android Development] ficeto:
could this be related to wiping the data from recovery? I will remove it as a way to wipe from OP and see results. A user sent me logcat on the ROM's forum and it looks like /data does not get mounted or is in some way inaccessible.

will figure this out and fix it. Sorry for the problems, but I have no other way of really finding major bugs. As I said :) I never got a bootloop...
[Galaxy S II Original Android Development] SimplyD:
You know I love you guys, right?

Thanks and farewell for now to Pulser and Villain Rom. Great idea on the VR Tweaks app, I'm not sure I can live without it. ;)

Installing :D
[Galaxy S II Original Android Development] Darkyy:
Just a quick note:

ficeto and me are making DarkyROM since v9.x ;)

You guys can fully trust him as we work closely together.

Don't worry, the ROM will get better and better as soon as we start to work TOGETHER on it. We're great as a team ;)
[Galaxy S II Original Android Development] huzz:
w00t!!

On another note had boot loop as well. Its definitely got something to do with the kernel ROM boots fine with CF.

Cheers
[Galaxy S II Original Android Development] Dextrosan:
Just a quick question. Is there a way to get the data toggle in the notification bar as a standalone tweak for other roms? Or am I just missing some sort of a setting? Thank you in advance.

Dex
[Galaxy S II Original Android Development] jony013:
bootloop ..........tried everything.............. no luck.