yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] b63:
you mean an updated version of PatchSamsungView.zip ?

then i would think only the patch and version 3.0.0 is needed and it should run on every android device.

btw. i edited the androidmanifest.xml of my 3.0.0 to run it in fullscreen mode.

original:

theme="@android:style/Theme.NoTitleBar"

edited:

theme="@android:style/Theme.NoTitleBar.Fullscreen"

so no more problems with the remote control on devices with soft keys.
[Android Software/Hacking General [Developers Only]] saccet:
Thanks for the instructions, but I couldn't get it to work. I have Samsung UE55F7005 TV (2013) and Samsung Galaxy S Advance phone. What happens is TV asks to allow connection, after allowing the SmartView does this :"Select allow on tv screen" -> Unfortunately app has stopped -> "Connecting. It may take 20-30 seconds."

Back button don't work. It just says Connecting and nothing happens. Same thing on my tab Ainol Novo Hero 10 with CM10.2.

Any ideas how to make it work?
[Android Software/Hacking General [Developers Only]] b63:
hello! with which version did you try at the samsung phone? if you have the original samsung os on it no additional libraries should be necessary and version 4.0.1 should work - i would try this one: http://xdaforums.com/showpost.php?p=48199478&postcount=48.

on the non samsung device the additional libraries are need at the right place and version 3.0.0 (or 3.0.1).

- other versions did not work on my kf (and i assume on every other non samsung device).

how long did you wait on the "connecting" screen? did it not timeout by itself?

my kf needed about a minute to time out and show the error message.

can you bring it to landscape mode by taping in the small window?

maybe regardless what message is currently shown?

in landscape mode it was the first time i got a picture from the tv, then it worked in portrait mode too.

if you have been asked by the tv to allow the connection you have it almost working!

must be a tiny detail - maybe the log give you a hint in the right direction.

catlog from google play is a nice tool to view the log.

hmm - sorry - no more ideas ...

update: have added a video how the prog starts on my kf to see what should happen.

it's in german and the picture from the tv is not shown because i can't capture the overlay

- but believe me, it's there.

hope it helps ...
[Android Software/Hacking General [Developers Only]] Dblfstr:
Added libINVOKER to the patch.

View attachment 2511544
[Android Software/Hacking General [Developers Only]] b63:
hello !

i assume you have installed "PatchSamsungView.zip" too ;)

looking through your log i see that "libsurfaceflinger_client.so" can't be loaded.

is it in your system/lib ?

after some reading i'm pretty shure it is not included in cm10.

would try to find one for cm10 and your device or try the one i have found.

it should be for samsung (s2?) but i don't know what android version.

then check the log again to see what else is missing or going on.
[Android Software/Hacking General [Developers Only]] Mythos123:
does this patch work with the nexus 5 kitkat 4.4.2 stock rom, with xposed framework and gravity box and with franco.kernel?

or

the nexus 7 (2012) with kitkat 4.4.2 stock rom?

I tried on the nexus 5 but I can not get dual screen to work, resulting in the app force closing, much like previous posts.

allthough the remote controll functionality works just fine.

also, I have a samsung UE55D8000 smart tv from 2011 if that helps.

Nexus 5 & Tapatalk.
[Android Software/Hacking General [Developers Only]] jayman350:
got this working on my Kindle Fire, very very much appreciated. here i was thinking that i was going to need to pick up a Samsung tablet to get another dual view device. my bank account thanks you as well :D
[Android Software/Hacking General [Developers Only]] Dblfstr:
lol, that's pretty specific. I have no idea if it will work. Sorry.
[Android Software/Hacking General [Developers Only]] Mythos123:
I can be even more specific if need be. :D

no but seriously, has anybody got dual screen working on kitkat or with a samsung UE55D8000 smart tv?
[Android Software/Hacking General [Developers Only]] Dblfstr:
Did you install the patch? And are you using version 3 of the app? Apparently that combo works. Will it work in kit-kat...who knows. I stopped development (on my end) because my TV wasn't even supported... I didn't know that until after the fact though.
[Android Software/Hacking General [Developers Only]] Mythos123:
I did and I am.

I used the flashable zip that you've provided and followed instructions as mentioned in previous post.

After several attempts (it seems to be random) I managed to get a connection to my TV as shown, but the small screen in the app isn't clickable and doesn't change picture, it just stays that way regardless of portrait or landscape mode.

I know for certain that dual screen is supported by my TV cause I remember the marketing back in 2011 when I did buy it. What I don't know is if this patch works with kitkat on the nexus 5?

Also, is it possible to flash this patch without a custom recovery?

I want to give it a try on my Nexus 7 (1st edition), though it's on stock recovery.

thoughts anyone?
[Android Software/Hacking General [Developers Only]] b63:
you can extract the zip file

in the newer version there are 3 files you can copy to the right folder and set the permissions like the other, allready present files. then reboot the device.

com.samsung.device.xml to system\etc\permissions

com.samsung.device.jar to system\framework

libinvoker.so to system\lib

furthermore libsurfaceflinger_client.so in system\lib is needed (at least with version 3.0).

i assume that libsurfaceflinger.so is also needed.

i dont know if these files are present in kitkat.

on a samsung s4 mini with android 4.2.2 libsurfaceflinger_client.so is not present, instead libsurfaceflinger_ddmconnection.so is present and i am using smartview version 4.0.1 on this device. maybe you give this version a try and try to find out with a log viewer what files are missing. just a idea ....

all versions work in portrait mode. with a tap in the little dualview window it should switch to landscape mode.

hope this helps ...
[Android Software/Hacking General [Developers Only]] Mythos123:
thanks for your help, allthough I don't have root access on my tablet so it will have to wait.

on my Nexus 5 with android 4.4.2 kitkat it's just like on your Samsung S4 Mini; libsurfaceflinger_client.so is not present, instead libsurfaceflinger_ddmconnection.so is. unfortunately on both my Nexus 5 and Nexus 7 (1st edition), smartview version 4.0.1 fails to install for some reason.

so for now I'm sticking with smartview 3.0.0 :

1. i've flashed the patch including libinvoker.so.

2. i've put libsurfaceflinger_client.so in system\lib (the one provided by you).

i now have the following 3 files in system\lib (not sure if this is the way to go):

libinvoker.so

libsurfaceflinger_client.so

libsurfaceflinger_ddmconnection.so

3. rebooted device

4. started application

the app either can't get past connection screen, or connects with/without dual screen in app (either way remote control and dual screen doesn't work).

any help interpreting the logfile would be much appreciated.
[Android Software/Hacking General [Developers Only]] b63:
i'm not shure too ...

have left in your log only the important things that are happening (see attachment).

libTMI_stagefright_jni.so (part of v3.0.0) cant be loaded.

and here i found a possible explanation:

http://www.askphonehelp.com/256079/apk-library-port-to-other-android-device

in short: i think the quite old v.3.0.0 will not work with kitkat :(

will extract v.4.0.1 and take a look whats in there ...

UPDATE:

extracted v.4.0.1 and did some tests on my kindle fire (gingerbread).

used libTMI_stagefright_jni.so and libTMI_stagefrightT1_jni.so (this is the one my device is loading) from v.4.0.1 with my v.3.0.0 and it is working. since v.4.0.1 is working on android 4.2.2 there my be a chance that this might work. if the libTMI_stagefright_jni.so is working i dont know what problems may come next - only tests and logs can show us ...

i understood that your devices are not rooted - is this right?

then you will not be able to change the files in data\data\com.samsung.smartview\lib for testing purposes. if you reboot the device the files are overwritten from the files in the .apk anyway.

means that in the end you will need a modified v.3.0.0 apk. i could create one but have no space to upload it - it's too big for xda ;) maybe you give me a pm if you have a possibillity to share the files ...
[Android Software/Hacking General [Developers Only]] Mythos123:
I'm sad to hear that v. 3.0.0 is not compatible with kitkat,

though I'm glad to hear that you are looking into other possible solutions,

and I'm truely grateful for it!

allthough I should maybe lower my expectations on this thing ever going to work.

it would be so cool though if i could get dual screen going on my portable devices!
[Android Software/Hacking General [Developers Only]] b63:
custom version 4.0.5

after learning a lot from the progress Dblfstr and Modchen had made, i was reading a lot about

java and smali code. so i was able to make custom versions of the newest version 4.0.5.

all 3 versions do the following:

- no additional patch is needed for installation (com.samsung.device.jar/xml)

- no sec_feature.jar/xml is needed

- no libinvoker.so is needed

- make the prog think it is on a samsung galaxy S2

(MANUFACTURER,DEVICE,MODEL and PRODUCT - NOT the BOARD!)

custom version: download deleted

custom fullscreen version: download deleted

+ works in fullscreen mode (for device with on-screen buttons like the kindle fire)

custom debug version: download deleted

+ every possible logging is enabled (for testing on new devices, to see what's going on)

tested on:

- kindle fire (gingerbread)

- galaxy tab 1 (gingerbread)

- galaxy s4 mini (jelly bean)

on the samsung devices the original version is working too - no need to spoof the device.

nevertheless following things are still true:

- on non samsung devices some force closes and hangs will likely happen on the first start.

if you see "multi.display is starting" you have a good chance.

see this post from nygmam: click here

- there seems to be a dependency with the original libmedia.so and/or libmedia_jni.so of the device.

some functions in this files seem to be needed (unsatisfied link error).
[Android Software/Hacking General [Developers Only]] Dblfstr:
That's awesome man! Smali code hurts my brain.
[Android Software/Hacking General [Developers Only]] spadival:
Anyone wants to have a go at porting the latest version over?

https://play.google.com/store/apps/details?id=com.sec.smartview.tz
[Android Software/Hacking General [Developers Only]] atomizasser:
up
[Android Software/Hacking General [Developers Only]] E:V:A:
Very good work!

I just tested on I9100 SlimKat 4.4.2 with a UExxES5700.

Everything I can see works, but I don't see any dual display options anywhere,

since my TV is not supported.

Here's the QR to sv-4.0.5-cust.apk to simplify downloading.
[Android Software/Hacking General [Developers Only]] fp1712:
No use for my Toshiba Thrive:rolleyes:
[Android Software/Hacking General [Developers Only]] chechill:
Please,

Can anyone mod the Smart view 2.0 for 2014 tv models?

This Smart view 1.0 doesn't work with the 2014 models, H series
[Android Software/Hacking General [Developers Only]] docksid3:
uppppp
[Android Software/Hacking General [Developers Only]] Passato:
also doesen't work with F Serie:(
[Android Software/Hacking General [Developers Only]] n0j0e:
Yeah, +1

UE55H6410, HTC One with ViperOne Rom 7.0.1 (4.4.3)

[size=-4]Send with much love & Android.[/size]
[Android Software/Hacking General [Developers Only]] bobstar_fr:
hello

Please, Can anyone mod the Smart view 2.0 for 2014 tv models?

UE48H6400

HTC Sensation : Rom ARHD 7.3

How to communicate between my HTC Sensation with Samsung TV series H (2014).

Thanks
[Android Software/Hacking General [Developers Only]] Joakim_Lind:
I've tried this on my Nexus 5 (5.1) without any luck. I can install the app if I remove any previous old versions and run and sync the app with my C8705. But the app crashes every time when trying to go from the sync screen.
[Android Software/Hacking General [Developers Only]] pamarakos:
Not anyone here able to help?

I'm sure everybody who asks for this mod is willing to donate....at least I am....
[Android Software/Hacking General [Developers Only]] suburbano:
Please update this, dualview workng on note 9 would be great.
[Android Software/Hacking General [Developers Only]] modchen:
Bad news, unfortunately, Dual View Mode is not showed up, once connected to the TV :( So, what I've detected during lunchtime, seems to be used somewhere in the app. I think we have to look further into the byte code and hack it to not che k if its running on an samsung device
[Android Software/Hacking General [Developers Only]] Dblfstr:
Ok, That is good news, and bad news.

Good news, my TV might be supported. Bad news, we do not have it figured out yet. Well I did make the flashable.zip to make it easier to get the needed files onto the phone. Added to the op.

And dang there are a lot of smali files in this app :(

---------- Post added at 11:31 AM ---------- Previous post was at 11:19 AM ----------

"(
[Android Software/Hacking General [Developers Only]] DelLoce:
I can't help with the development at all..

However, I CAN say, that the SmartView-function only works on D7xxx and D8xxx

The "supported model"-list is only for the remote-functions..
[Android Software/Hacking General [Developers Only]] Dblfstr:
I was afraid of that.

Still, we got it working on non-Samsung devices.

I do not know if others could get it installed but I could not without the added Samsung files.

I wonder if the remote app would install without the added files since it has the same functionality.

I tried with my Samsung Blu-Ray player too. I can control it but no dual view. Is this a TV thing or and app thing?...
[Android Software/Hacking General [Developers Only]] DelLoce:
The Dual-View ONLY works with D7XXX and D8XXX-tv-sets ..!!
[Android Software/Hacking General [Developers Only]] TECK:
I'm pretty sure it will not install if the .jar dep is not present into phone.

Edit: I see what you mean, the Samsung remote. :)

Well, visit the link... if your phone shows as being incompatible, than the app is .jar dependent.
[Android Software/Hacking General [Developers Only]] Dblfstr:
Yes, not Blu-Ray players, just being thorough! Remember this "However, I CAN say, that the SmartView-function only works on D7xxx and D8xxx"?

GOT IT!!

Thanks again.

I was asking (thinking out loud) if this is TV or APP related. Probably TV related, but if these things were not questioned, there would be no development on anything.

---------- Post added at 10:24 AM ---------- Previous post was at 10:22 AM ----------

"

This app is incompatible with your T-Mobile Samsung GT-I9100.

T-Mobile Samsung GT-I9100

This item is not compatible with your device

"

:D
[Android Software/Hacking General [Developers Only]] nunyabiziz:
I have the Epic 4G touch and un55d8000 but still unable to access dual view. I tried the apk from the market and here but no luck. Can anyone confirm that they are able to use dual view on a SG2 with a d7000 or d8000?
[Android Software/Hacking General [Developers Only]] TECK:
Were you able to install the app directly from Android Market, on your phone?

Looks like you just answered the question other devs were trying to sort out. :)
[Android Software/Hacking General [Developers Only]] zip905:
Epic 4g Touch - no dual view for me

I've got an Epic 4g Touch and a Samsung UN46D8000 2011 tv and there's no dual view option through the Smart View app. Downloaded it directly from the Android Market. Works as a remote but no dual view :(
[Android Software/Hacking General [Developers Only]] modchen:
Found again some interesting lines in the code

if (!ViewController.this._currentModel.isFilled())
{
if (!ViewController.this._actionProvider.isSuport2ndTV())
break label563;
WLog.d("SSEO_2NDTV", "current model is support 2ndTV !!!");
ViewController.this._currentModel.fillwithOhterFeature(1);
}

these are located in com/samsung/remoteTV/model/controllers/ViewController.java

AND

public void setAttributes(View paramView, ItemDescription paramItemDescription)
{
if (paramView.getId() == 2131296826)
{
if (!this._actionProvider.isSuport2ndTV())
return;
if (!this._actionProvider.isConnect())
return;
}
if (paramView.getId() == 2131296828)
{
if (!this._actionProvider.isSuport2ndTV())
return;
if (!this._actionProvider.isConnect())
return;
}

in com/samsung/remoteTV/autoLayouting/fillStrategies/MainMenuItemFillStrategy.java
[Android Software/Hacking General [Developers Only]] Dblfstr:
WOW, I was out of town all last week. Seems there has been a lot of work since I was here last.

modchen, I read your post in the other thread about adding classes the apk. Good idea. I am afraid that once we have found all the necessary files, the TV will not be able to output to our devices. I HOPE NOT :D

Wish I had more time to work on this, you are a lot faster (and knowledgeable) than me right now. And I think we are in really different time zones...
[Android Software/Hacking General [Developers Only]] modchen:
I'm in GMT+1 :)

Well, before this thread, I didn't know anything about, deodex, smali, apktool, ... :)

Not enough time is also my problem, first I can only try at home, as a tv is required! Second, my girlfriend doesn't like if I spent hours on things blocking the computer AND tv at the same time :)

Do you have some knowledge in java development ?

PS: I think continuing on the other thread is better, as there are a lot more readers, then here.
[Android Software/Hacking General [Developers Only]] Dblfstr:
GMT - 5 : That is 10:02 A.M. right now

Central time in America.

Yeah, I have a little knowledge. I have been fiddling with this stuff for about a year now.

I am married and my wife does not like me spending all my free time on the computer either (GO FIGURE) :D

That other thread seemed dead to me. I could have this thread moved to the hacking section (that was my intention). Or we could continue in the other thread. Although, that thread was full of lies and I don't like that. :D
[Android Software/Hacking General [Developers Only]] modchen:
can you please explain 'little knowledge' ?

do you regularly develop software? java, php or any other language ... ?

the tool needed to decompile and recompile the apk is apktool (it produces the smali files, etc, which you can modify)

Usage:

apktool decode file.apk outputfolder/
apktool build outputfolder/ filebuild.apk

Afterwards

you need to sign the apk with signapk

signapk cert.pem key.pk8 filebuild.apk filesigned.apk

then you need to install it on your phone with adb

adb install filesigned.apk

if the app is still installed you need to uninstall it before installing your new build

adb uninstall com.samsung.smartview

with "dex2jar" "jd-gui" I was able to create a more readable and understandable code then the smali files, however. it is impossible to recompile simply this java code because a lot is missing

BTW : I modified the AndroidManifest.xml also. so it's no longer required to have com.samsung.device.jar on your phone. I've added the included Feature class simply to the apk

PS: As I already said, before this thread I didn't have any knowledge about tools nor I knew their names :)

This video helped me a lot to start quite fast, without having to google to much : http://www.youtube.com/watch?v=zIESqZ4Vp3E

apktool can be downloaded here :

http://code.google.com/p/android-apktool/

signapk was found here :

http://www.londatiga.net/it/how-to-sign-apk-zip-files/

dex2jar :

http://code.google.com/p/dex2jar/

Simply extract the classes.dex from the apk (apk can be unzipped)

dex2jar classes.dex

jd-gui

http://java.decompiler.free.fr/?q=jdgui

Open the produced jar with it
[Android Software/Hacking General [Developers Only]] Dblfstr:
Do I regularly develop software ? NO. Do I like to fiddle with .apks? YES

Do I have all these tools currently? YES. Do I know how to use them? YES

Do I edit the Netflix app? and the MLB at bat app? and the Slingplayer app? YES

I do not use the dex2jar, although I have it.

I thought I had already mentioned this, maybe not. My problem is TIME. I go down one rabbit hole only to have to leave to do something else.

I have the app running on my phone and I have created a flashable zip with the Samsung files needed (this had to be signed). Anyway; I am doing my best with what time I have.

Thanks.
[Android Software/Hacking General [Developers Only]] modchen:
ok, thank you for explaining your knowledge

In summary, I wanted to know, if its needful, to create a git repository where we could share our work and reengineer together the app

however, without having a good knowledge in development (especially android/java) unfortunately you cant help me currently I think

best solution would be do find some students willing to help,they usually have a lot more time then we both do :)

I'll post my results here, when I went further, but I wont think, I'll find a lot time the next days
[Android Software/Hacking General [Developers Only]] Dblfstr:
Yep, which is why I posted this thread, hopefully to get some better suited devs in here to help. I had planned to move this thread to the dev section after it gained some traffic.

Maybe I should move it now...

"unfortunately you cant help me currently I think" makes me sad lol

I'm no master, but I'm no scrub either ;) I wish you the best of luck. All I want is to get some dual screen action on my phone.
[Android Software/Hacking General [Developers Only]] Dblfstr:
File Type: apk	com.samsung.smartview-201-2.3.6.apk - , 208 views)

File Type: zip	PatchSamsungView.zip - , 127 views)

Could some of you that are downloading tell us about your result...

I would like to see a log of someone that has it working in dual view.

Thanks
[Android Software/Hacking General [Developers Only]] Dblfstr:
This?

<uses-library android:name="com.samsung.device" android:required="true" />

to this?

<uses-library android:name="com.samsung.device" android:required="false" />

I will try it.
[Android Software/Hacking General [Developers Only]] modchen:
exactly :)