yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Check this out! https://youtu.be/Ff9GfDpH42Q

Maybe some devs look into the buildprop and kernel of the s8 to search for relevant data and compare them with our xzp...

P. S. another proof that makes me think that this sh...t is disabled in software is that with the displaylink apk the one plus 5, xiaomi mi6, etc are working. The data is sent by Displaylink app to those TX usb pins and works!

So with an app it can be sent, but with our sony software not? C'mon!!! This is BS!
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
your saying that the Displaylink APK works on the Sony Xperia XZp and on the Sony XZp, data is sent to the correct PINs on the USB-C out but it doesn't display anything? on a linked display?
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Need help from rooted devices.

Please add or search in buildprop for ro.hdmi.enable=true

If it's present like this #ro.hdmi.enable=true, just delete the #

If it's not present, just add this line ro.hdmi.enable=true

Save and test only with usb-c 3.1 to hdmi and display port alt mode compatibile cable!

Let me know
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
yours not root-able?
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hi Dazza! Yes mine is not rooted ... yet! Enabling Display port is the final step towards rooting my phone.

For devs: BoardConfig.mk and BOARD_KERNEL_CMDLINE
[Sony Xperia XZ Premium Guides, News, & Discussion] AndroPlus:
I already tested but it didn't work.
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hi, Andro,

Please look into BoardConfig.mk... you are the man and have the experience and I will try to make that bounty higher:p

P. S. Just give me a sign that you are willing to look into this please!

Here is my list with Sd835 supporting Displayport alt mode after googleing many night on forums:

Samsung S8, N8, S8+, LG v30, Razer, Essential Phone
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
/sys/class/drm/card0-HDMI-A-1/enabled disabled

for devs ... read here:

http://trac.gateworks.com/wiki/linux/display

and here:

https://discuss.96boards.org/t/hdmi-disabled-in-android-how-to-enable/3849/3
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
There are 4 modes for Type-C DP alt mode:

1) USB host only :

extcon_set_cable_state(edev, EXTCON_USB_HOST, 1);

extcon_set_cable_state(edev, EXTCON_USB, 0);

extcon_set_cable_state(edev, EXTCON_DISP_DP, 0);

2) USB device only

extcon_set_cable_state(edev, EXTCON_USB_HOST, 0);

extcon_set_cable_state(edev, EXTCON_USB, 1);

extcon_set_cable_state(edev, EXTCON_DISP_DP, 0);

3) DP only

extcon_set_cable_state(edev, EXTCON_USB_HOST, 0);

extcon_set_cable_state(edev, EXTCON_USB, 0);

extcon_set_cable_state(edev, EXTCON_DISP_DP, 1);

4) USB + DP

extcon_set_cable_state(edev, EXTCON_USB_HOST, 1);

extcon_set_cable_state(edev, EXTCON_USB, 0);

extcon_set_cable_state(edev, EXTCON_DISP_DP, 1);

we need to write the code from 4. (1,0,1)
[Sony Xperia XZ Premium Guides, News, & Discussion] lebigmac:
I had no idea that the Razer phone had displayport alt mode. Good to know.
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
I think this value needs to be changed un build.prop:

ro.usb.pid_suffix=1F1
[Sony Xperia XZ Premium Guides, News, & Discussion] tq959pii233m:
I'm already test displaylink on xzp. Everything worked on my hp type-c displaylink by insert ext. usb power.
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hello, can you tel us the name of the device?

In what resolution worked? Does support 4k?
[Sony Xperia XZ Premium Guides, News, & Discussion] lokilin:
Is this the device?

http://www8.hp.com/us/en/products/oas/product-detail.html?oid=15802211

It can stream XZP screen perfectly?
[Sony Xperia XZ Premium Guides, News, & Discussion] dazza9075:
I have a similar Microsoft device that works with other devices and laptops...doesn't work on the XZp
[Sony Xperia XZ Premium Guides, News, & Discussion] imankhamse:
the dp & hdmi are supported on the soc

see this:

https://www.qualcomm.com/documents/snapdragon-835-mobile-platform-product-brief
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Hello

Yes we know that, but seems like Sony has disabled it in kernel, or did not write the code to enable it.

I will buy a 3.1 usb c hdmi cable to convince myself... :good: maybe it was the cable. Indeed we have usb-c 3.1 with 10gbps speed so we must test with this cable...
[Sony Xperia XZ Premium Guides, News, & Discussion] Hitnmissuk:
What's the outcome for xz premium usb c to hdmi cheers
[Sony Xperia XZ Premium Guides, News, & Discussion] fbloise:
EDIT:

After extensive research and taking no for an answer I think I found the solution and It works!
[Sony Xperia XZ Premium Guides, News, & Discussion] lebigmac:
That looks great. May I ask how you achieved it?

Feel free to collect the 100 € bounty in that feature request thread. You deserve it.
[Sony Xperia XZ Premium Guides, News, & Discussion] timetraveler:
Bounty

Has the bounty been taken I found a way to send all my screen action to my TV and it works great finally I can keep my phone lol any one interested. Pm only
[Sony Xperia XZ Premium Guides, News, & Discussion] lebigmac:
Show me the proof.

Make a YouTube video of it
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
As you can read in my posts, this can be achieved with displaylink hardware, but only in 1080p, not in 4k. Therefore no bounty for extra hardware which is not 4k capable.
[Sony Xperia XZ Premium Guides, News, & Discussion] fbloise:
That’s correct, can be achieved via displaylink hardware
[Sony Xperia XZ Premium Guides, News, & Discussion] Inerent:
Seems that we now have 4k60Hz display link technology available ... but for windows. it doesn't say anything about android/linux arm machines. :(

https://plugable.com/products/usbc-6950-hdmi/
[Sony Xperia XZ Premium Guides, News, & Discussion] timetraveler:
I will try to I have send 4k video from YouTube to my 4k TV the picture is amazing
[Sony Xperia XZ Premium Guides, News, & Discussion] zzcool:
no information on how to do it just pictures showing it ?
[Sony Xperia XZ Premium Guides, News, & Discussion] fbloise:
hello

I posted in reddit

https://www.reddit.com/r/SonyXperia/comments/9futz7/displaying_content_via_hdmi_on_xz_xz1/
[Sony Xperia XZ Premium Guides, News, & Discussion] danfeng:
hello

I found this, is that possible to add this patch to kernel?
[Sony Xperia XZ Premium Guides, News, & Discussion] SGH-i200:
The missing link is the keyword "DisplayLink"! The "dp alt mode" would be cheaper, but this DisplayLink dongle does the job, too! :good:

"WAVLINK UG-3501H" (DisplayLink certified dl-3500 chipset)

After installing the app "DisplayLink Presenter") and a reboot for the Sony device, the picture was shown via HDMI.

I tested the this device with these smartphones:

1. Sony XZ1 (USB 3.1)

2. Axon 7 Mini (USB 2.0)
[Sony Xperia XZ Premium Guides, News, & Discussion] SGH-i200:
HDMI Alt Mode for USB Type-C

I would open that bounty to a implementation of "HDMI Alt Mode for USB Type-C": https://www.hdmi.org/manufacturer/HDMIAltModeUSBTypeC.aspx ;)

As wikipedia states: "As of 2016 four system-defined Alternate Mode partner specifications exist." - MHL alt mode is one of them! :silly: https://en.wikipedia.org/wiki/USB-C#Alternate_Mode_partner_specifications
[Sony Xperia XZ Premium Guides, News, & Discussion] mirhl:
At least on XZ2/XZ3 there's not even a mhl chip on the motherboard.

And internal HDMI (what's called "native source device" in the quote above?) that the SoC may even have isn't wired to anything.

https://github.com/sonyxperiadev/bug_tracker/issues/395

(starting with Xperia 1 they brought it back though)
[Sony Xperia XZ Premium Guides, News, & Discussion] RighteousJoe:
A little off topic, but not too much. Has anyone had success with Miracast on Android Pie?
[Sony Xperia XZ Premium Guides, News, & Discussion] mirhl:
Not personally, but why shouldn't it work? It's an official feature and all since as far as I can remember.
[HTC 10 Questions & Answers] drumz0rz:
Hey y'all, I've had my HTC 10 since about August 2016. It's worked wonderfully and I generally have no complaints, however recently it has started to act up, and I'm debating if it's worth the expense and effort to try and repair or if I should just bite the bullet and go to a different phone (which I would rather not do, since there aren't really any phones on the market that offer what I'm looking for and the U11 is not compatible on Verizon's network).

Here's the basics of the issues I've been facing lately:

Rear Camera: When it gets hot with use, the OIS / focus seems to act up and produces blurry wavey lines that look pretty cool but ruin photos / videos. It'll also sometimes capture purple lines and other electrical abnormalities in the photos. Camera module should probably be replaced.

Battery: I get maybe 3 hours of SoT with the battery, and I've noticed it will randomly die and boot loop sometimes with <20% indicated charge remaining. Sounds like the battery needs to be replaced.

USB Charging Port: I don't know if this is the port, or the battery or the motherboard or what, but I've found that recently, the phone won't charge with a QC3 charger plugged in. It'll either tell me it's incompatible or a slow charger. Usually just unplugging and flipping the cable around solves it. Do I need to replace this part as well?

If I'm opening up the phone to do all this work, I'm also going to swap out the black rear housing with a red one, because red looks sweet and the bastards at HTC wouldn't let me have one.

Given the issues I noted above, do you think there could be other problems going on here that would warrant replacing the whole phone? I'm trying to avoid a situation where I invest hours and $$ only to find the phone is just as broken as before and it's a sunk cost.
[General Questions and Answers] leotwix:
Hello to all the community, I am a little new in these topics but nothing more than guided me by instructions and a little intuition. I have followed this guide:

https://xdaforums.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928

In step 10, I've done everything I asked to format my nexus 6p. What I wanted to do, is that my Nexus 6p install root and TWRP as recovery. The problem is that, when trying to update my system to a new android version (from system configuration and update), the update was downloaded and the phone restarted, but when it restarted it sent me to the TWRP recovery and it did not let me install it, so I decided to find how to delete the TWRP recovery and format the phone to remove the root and I ran into that guide that I put above.

So, I followed all the steps in step 10 except the part where it says "block bootloader", so I have the bootloader still unlocked (thank goodness), install the angler 7.1.2 and restart the device but now I'm stuck in the boot animation (where there are circling circles and random things).

I ask for your help, which is the most expert topic I know about this. This was the topic I found to ask for help, if it is not the right topic I ask you please move it.

Thank you!
[General Questions and Answers] Ibuprophen:
I don't have this device but, your best bet is to post this question within the following Q&A thread that's specific to your device.

https://xdaforums.com/showthread.php?t=3206934

Here's just a handful of helpful threads that may hopefully be helpful to you.

https://xdaforums.com/showthread.php?t=3206928

https://xdaforums.com/showthread.php?t=3640279

https://xdaforums.com/showthread.php?t=3716330

Good Luck!

~~~~~~~~~~~~~~~

I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.

PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
[General Questions and Answers] leotwix:
Thanks for your answer. I already solved it, at the end of the guide I did not follow a step and that's why I could not start android. So before finishing everything, install TWRP recovery and opened it to clear cache / dalvink and it worked normally. The strange thing was that I installed version 7.1.2 in image but I get 8.0.0 in android. Well at least it works. Thank you as well!
[Android Software/Hacking General [Developers Only]] TKruzze:
Anti-Virus False-Positives

ANTI-VIRUS FALSE-POSITIVES

There have been reports of false-positive flaggings of Zip Builder and/or the Windows installer. While I can, personally, assure you that there's no malware included in Zip Builder or its installer, I also understand that there may be some concern with using software that's been flagged on your machine.

To allay your concerns as best as possible, I have included 100% of the original source code for you to inspect and/or build the software yourself. Again, there is no possibility of malware as I do all of my compiling on a clean machine that is not connected to the internet. I have also submitted all 4 Windows executables to the major AV inspection service on the net. Below are the results of these inspections:

VirusTotal.com

ZipBuild.exe (32 bit) 7/68

ZipBuild.exe (64 bit) 2/68

ZipBuildSettings.exe 4/67

Zip Builder_4.5.2_Setup.exe 1/69
[Android Software/Hacking General [Developers Only]] osm0sis:
Excellent! Glad to see a public release! I was using Zip Builder all day to prepare my latest round of updates for my Odds and Ends thread, and it couldn't be easier! :D

It's been great working with you again [MENTION=2777334]TKruzze[/MENTION], I knew you couldn't stay away from contributing awesome things to the community for too long. ;)
[Android Software/Hacking General [Developers Only]] partcyborg:
Looks very cool! You're inspiring me to clean up and release a tool that I built which has no current equivalent.

Seeing as this uses Java, what would it take to make it work under linux? As a staunch Linux/osx user who only runs a windows VM for flashing his Samsung with odin, I would love to integrate this into my workflow, but without linux or Mac support for me personally that will be difficult ?
[Android Software/Hacking General [Developers Only]] Sands207:
This is an incredible contribution. Thank you for making this public and for your hard work!
[Android Software/Hacking General [Developers Only]] TKruzze:
The only thing I'm actually using Java for is the signing portion of the process. There's no real way I can think of to easily port the rest of it to Linux. Thanks for the feedback!
[Android Software/Hacking General [Developers Only]] kamilmirza:
wow thanks [MENTION=2777334]TKruzze[/MENTION] :good:

this will be really helpful for my future firmware updates ✌
[Android Software/Hacking General [Developers Only]] papasmurf879:
Ok im very very new to all this but does this make zips that are flashable in twrp? Im wanting to learn how to do that if you guys could point me in the right direction id be thankful.
[Android Software/Hacking General [Developers Only]] kamilmirza:
yes

you need update-script and update-binary along other files
[Android Software/Hacking General [Developers Only]] partcyborg:
My mistake. Thanks for the explanation! I'm sure then that this will run in wine however, I may give it a shot at some point. If I do I will let you know.
[Android Software/Hacking General [Developers Only]] papasmurf879:
Thank you for replying im doing searches right now trying to figure it out.
[Android Software/Hacking General [Developers Only]] osm0sis:
Advanced, but check out my thread here and the linked resources: [DEV][TEMPLATE] Complete Shell Script Flashable Zip Replacement + Signing [SCRIPT]

The EDIFY references/resources are the place to start. :good:
[Android Software/Hacking General [Developers Only]] Ash225:
Can i create flashable zips of my apks. I Flash custom roms very often and some apps are needed as my daily driver so can i make a flashable zip of those apk file and flash via this tool
[Android Software/Hacking General [Developers Only]] madbat99:
Have you tried this?

This tool in this thread is for making a zip if you already have the components (updater script and binary).
[Android Software/Hacking General [Developers Only]] Ash225:
Thanks but i knew about this app i want to creat zips from my computer and not from my phone thats why i asked the question thanks for your prompt reply
[Android Software/Hacking General [Developers Only]] Ibuprophen:
This looks like this tool that will, hopefully, be helpful for one of my other little projects that I had to put aside till I finish catching up with some other projects/developments that's already on my plate.

I already have a working set of script commands for safely disabling the Google Play Protect but, i will need a medium/delivery system before I can release it and this looks promising to help with this.

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
[Android Software/Hacking General [Developers Only]] Djentist:
Did you just give me a Trojan? Because Defender says so and even VirusTotal was positive about this. Beware about using this software!
[Android Software/Hacking General [Developers Only]] JRJ442:
Yeah, I'm sure one of the most respected developers on XDA would do that. I'd be more worried about those antivirus softwares you're using than anything.
[Android Software/Hacking General [Developers Only]] TKruzze:
Definitely not a very responsible post to make. There's nothing wrong about reporting your findings, but to make an accusation like this is a bit irresponsible. I also seriously doubt that Microsoft Defender identified this as a virus (as you claim).

Anyways, here are the facts: There is no virus or malicious behavior. Below are the actual results of scans by VirusTotal and VirScan

Zip Builder_4.2.1_Setup.exe

VirusTotal.com (0/65)

VirScan.org (1/39)

ZipBuildSettings.exe

VirusTotal.com (2/66)

VirScan.org (2/39)

ZipBuild.exe (32 bit)

VirusTotal.com (2/66)

VirScan.org (2/39)

ZipBuild.exe (64 bit)

VirusTotal.com (1/65)

VirScan.org (1/39)

Based on personal experience, ANY file that is not signed with a Microsoft Root Certificate and/or uses UPX compression is going to produce false positives with the heuristics deployed by some of these 'so called' anti-virus software products in the marketplace. I'm actually surprised the numbers are as low as they are.

All that said, if you are not comfortable using the software, fine. But please exercise responsible reporting if you have questions or concerns. A big part of the reason for me releasing all the source code is to avoid having to defend myself from people making exactly this type of assertion.
[Android Software/Hacking General [Developers Only]] Djentist:
Double checking, didn't want anything bad to happen, you know. Sorry for a little drama, I hope you forgive me :)
[Android Software/Hacking General [Developers Only]] sunmughans:
Thank you so much for providing this tool.
[Android Software/Hacking General [Developers Only]] haroonbro:
I must say there is a lot to see in the world

I used to rely on winrar but since that's paid app in windows I must give your creation a try. Thanks for sharing though.
[Android Software/Hacking General [Developers Only]] bober10113:
hello, i get a message saying that i don't have enought ram. i belive this only happens with the signed option checked. if i remember correctly its from java and it states that only 1024mb is available which is not true.

its been a while so i dont remember exactly the issue but it happened on two different computer on x64 w10.

regards
[Android Software/Hacking General [Developers Only]] TKruzze:
I'd like to help research this for you but I'll need some more info. First of all, I doubt it has anything to do with the "signed option" as all that does is append the text '-signed' to the output file name. There's no memory impact with that function. Second, it would help to know the exact error message you're receiving. From your description, I can't tell if the message is from my program or from the java JRE running on your system. Third, how large is the folder that you're trying to build? (if you could share it with me (via link or pm) that would help. Also, you mentioned that this was a 64-bit Windows 10 OS, right?

However, all that said, it sounds like you might be running only a 32-bit version of java on your 64-bit system. There's nothing wrong with that, but that means you're limiting java to only being able to run in 32-bit mode which will severely constrain the memory available to the java portion of the signing process. This is probably something I should have thought to include in the original release, but it just now occurred to me reading the issue you're having. If you could check and make certain that you have the 64-bit version of the java JRE installed on your system, I'd bet that will fix all your issues. I would recommend installing the Windows Offline (64-bit) version of the installer found at https://www.java.com/en/download/manual.jsp.

On my system, I always install the latest release versions of BOTH the 32-bit and 64-bit versions of java. That way I know that I'll have the right version installed no matter the java app I'm running. In the meantime, I'm going to look at adding code to Zip Builder to check for a 64-bit version of java if you're running a 64-bit version of Windows. That way I can point users towards the solution before they have any issues.

EDIT: To test what version of java you have on your system:

Open a command prompt

Type "java -version" and press enter

If you are running Java 64-bit the output should include "64-Bit"
[Android Software/Hacking General [Developers Only]] bober10113:
thanks for your reply. to tell you the truth i wrote my comment from what i remembered that happened 2 months ago so i will try and reproduce. but if i remember correctly it is from the java vm and since java is part of win 10 i would think that it would also be 64x version that also matches the arch. that my win 10 is on. the archive that i was trying to create was infact very large but i had tried with a smaller folder of roughly 200mb and i also had that same error. I also confirm that when i un ticked append signed in signe zip file name error does mot occure.

when it does occure it is at the end of the archive build process
[Android Software/Hacking General [Developers Only]] bober10113:
ok so i tested again and x64 windows seems to have some type of embedded java but i think the env. paths arent simply declared properly or at all as java cmd did not return as a valid command. so i went to install it. using the default installer it installed a x86 version. and i also had the exact same error message when using the signed option.

lastly i then went and installed the x64 installer and then all went well.

so all in all if on a x64 windows, built in java or the regular 32 bit version isint being used properly.(i have 8 gigs and at lest 5 was available. can reproduce issue of multiple computers so it has nothing to do with hardware )

this is from win 10x64 no manualy installed java

https://xdaforums.com/attachment.php?attachmentid=4430861&stc=1&d=1519595669

this is from win 10x64 manually installed java 32bit

https://xdaforums.com/attachment.php?attachmentid=4430863&stc=1&d=1519595982

when installing x64 java, it worked.

funny thing is heap size is well under 3 gig so why is it having issues on 32bit java.
[Android Software/Hacking General [Developers Only]] Ibuprophen:
I had always thought that the maximum (default) Java Heap Size for an x86/32-bit Windows OS was between 1.4 MB (1.335144043 MiB) and 1.6 MB (1.525878906 MiB).

Just wondering myself...

EDIT: I did notice, towards the bottom of the OP, the following statement.

~~~~~~~~~~~~~~~

I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.