yashsingh1/xdaforums huggingface dataset:
[Sony Xperia 1 Guides, News, & Discussion] lal883:
Great stuff, so it worked on Xperia XZ2 Compact! Many thanks to @MrCooper95 for sharing the discovery here.

Continuing my previous comment, the updated qUnlockTool worked for me and it was the "SIM unlock" button that I pressed. Network lock was already removed, but "Bootloader unlock allowed" was marked as "No" when I received this device. After running the qUnlockTool, the Bootloader unlock allowed changed to Yes and further I unlocked the bootloader with the code from Sony's open devices website and following the unlock instructions there.
[Sony Xperia 1 Guides, News, & Discussion] muphetz:
Need Help,,. I need backup file from qunlcoktool for sony xz2,,i lost my imei,baseband unknown after unlock,,i have tried write backuo but stil it didnt work,,
[Sony Xperia 1 Guides, News, & Discussion] lgoxvxe:
Restoring someone else’s backup will make your device not boot up, and can only enter flashmode.If the baseband is unknown, try to flash modem.sin, amss_fsg.sin
[Sony Xperia 1 Guides, News, & Discussion] SymbianRefugee:
The unlock server at https://nugsm.com/product/sony-xperia-cable-unlock-0-counter-supported/ is back online.

I will try in about 16 hours from now and report back how it went.
[Sony Xperia 1 Guides, News, & Discussion] SymbianRefugee:
Also to note NEW bootloader locked Xperia X phones area available on https://shopee.com/ for $50 (fifty dollars). they are coming from china, outside Asia you might find on a local site.
[Sony Xperia 1 Guides, News, & Discussion] Rachsutha:
ไม่มีการปลดล็อกเครือข่ายย่อย
[Sony Xperia 1 Guides, News, & Discussion] andyblessing:
Anyone to help me buy this tool, PayPal is not allowed in my country, but I have skrill account...

Need help to purchase it...

Thanks...
[Sony Xperia 1 Guides, News, & Discussion] SymbianRefugee:
I've been getting the 144 error for the last few daysbut today I got a need to update dongle error

Went here and downloaded the updated software https://www.gsmserver.info/serverservicedtl.php?id=19

And success

To this:
[Sony Xperia 1 Guides, News, & Discussion] pavwal:
Hello! how did you pay the loan?
[Sony Xperia 1 Guides, News, & Discussion] sa4zet:
I gave more than a week rest to this project, because I didn't have time to do it.

I write my experience if anyone has a similar problem like mine or this guy:

https://xdaforums.com/t/issues-with-fastboot.3971227/

So if I run any fastboot command in fastboot mode mine phone always restarted immediately and the error was

FAILED (Write to device failed (Cannot send after transport endpoint shutdown))
fastboot: error: Command failed

In flash mode I always kept:

FAILED (remote: 'Command not authenticated')
fastboot: error: Command failed

The solution was I had to use a generic kernel (that allows usb2.0) regardless to I ONLY have usb3 connectors on my laptop.

All fastboot command worked in fastboot mode (blue led).

So finally I have a TWRP on my unlocked XZ Premium.

BIG thanks to everyone to wanted to help me!
[Sony Xperia 1 Guides, News, & Discussion] 7aufiz:
works great on xz1 sov36 japanese version without lost any network and imei
[Sony Xperia 1 Guides, News, & Discussion] Geekmv1:
Can i use this method?
[Sony Xperia 1 Guides, News, & Discussion] Ashiiz:
Hi why user can't use on server

plx help
[Sony Xperia 1 Guides, News, & Discussion] pritos:
I followed the instructions of the OP and I was able to change the Bootloader Unlock Allowed from No to Yes. I was able to unlock the bootloader of my XZ1 Compact (SO-02K). I was able to install TWRP for G8441. I was able to install Lineage OS 18.1 (Android 11) and it is working okay on my device. Some minor kinks but easily fixed.

Only major issue I encountered is that the NFC is no longer working. I don't really use NFC so not really a major issue for me but others might have a need for NFC. The NFC hardware probably is different for the SO-02K and G8441.

Is it possible to create a flashable zip file that will fix the NFC? Maybe a Dev can create a zip containing the NFC drivers, settings, config of the SO-02K so it can be flashed on a converted XZ1 Compact.
[Sony Xperia 1 Guides, News, & Discussion] RRGodeg:
I have done the sim unlock with qunlocktool and it is correct to change the boatloader always allowed: no to yes but my simcard is having problems my device sony xz1 sov36 is there a solution?
[Sony Xperia 1 Guides, News, & Discussion] fermincab:
Could this work on elder models, like the mini pro sk14a? (2012)
[Sony Xperia 1 Guides, News, & Discussion] BiG_NoBoDy:
Does it work on sgp712? Z4 tablet, WiFi only.
[Sony Xperia 1 Guides, News, & Discussion] riadjb1005073:
yes
[Sony Xperia 1 Guides, News, & Discussion] Yuryzyn:
Does one purchase can unlock lots device or only one device per purchase?
[Sony Xperia 1 Guides, News, & Discussion] MrCooper95:
Only one device per purchase.
[Sony Xperia 1 Guides, News, & Discussion] 6dg6b:
Unfortunately this seems to be a scam. I placed an order from the recommended site: https://nugsm.com/product/sony-xperia-cable-unlock-0-counter-supported/

and I have received nothing for days.

UPDATE: after contacting them I received my username/password

Doesn't work on Sony Xperia X Compact SO-02J

My haste in skepticism was unwarranted. My Sony Xperia X Compact SO-02J with a previously unlocked sim now has an unlocked bootloader. Thank you NUGSM and Mr. Cooper!
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
@6dg6b try join them on whatsapp, I've just ordered mine, and got code in an hour.

@MrCooper95 I can't unlock my bootloader yet, I have these errors with S1 UNLOCK TOOL:

Command CRC bad

shutdown error: upportedOKAY

ERROR : FRP RESET FAILED

And I have 1 credit when I check it.

Any help welcome, thanks :)
[Sony Xperia 1 Guides, News, & Discussion] algem08:
I have a Sony XPERIA Z4 tablet (European). No SIM-lock, but with Bootloader Unlock Allowed = No

That makes it impossible to get a custom ROM running on this device. Until I found this post... I wish...

So I bought a code from NUGSM, that I received yesterday. I downloaded the newest version of the "Sony Xperia Cable Unlock / FRP Removal - 0 Counter Supported - qUnlock S1 Unlock Tool", put in the user and password, run the tool and got as a response: "SUCCESS" (1630) UNLOCK DONE.

So I rebooted the tablet,entered *#*#7378423#*#* to access the service menu, but hen...

unfortunately, still I get Bootloader Unlock Allowed = No :cry::cry::cry:

So for my Z4 (SGP771) it seems to be a waste of money!! I'm still not able to get a custom ROM on it.

However, if anyone knows a method to get a custom ROM on this device, I'd love to hear that!
[Sony Xperia 1 Guides, News, & Discussion] algem08:
for my Z4 tablet (SGP771) with LTE it does not work!
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
Ok, I feel a bit dumb but I now have my bootloader unlock allowed to YES .

First try : I used "FRP Unlock" button from S1 UNLOCK TOOL software, it said success but bootloader unlock allowed was still NO.

Then I read back this thread and someone asked if it was SIM or FRP unlock, and success with SIM UNLOCK

2nd try : I used "SIM Unlock" button , bootloader unlock allowed to YES

So I had to pay 2 code, 40£ :')

I have been misled by NUGSM page title : "Sony Xperia Cable Unlock / FRP Removal "

tldr: USE SIM UNLOCK BUTTON

@algem08 : did you use SIM or FRP button ?
[Sony Xperia 1 Guides, News, & Discussion] Lavievn:
i used on my sim unlocked SOV38 (xperia xz2 premium), i want to make from "NO" to "YES" on my bootloader, everything running smooth and fast...but then my bootloader still same, nothing change on my phone :(
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
As a said on my last post, you have to use SIM Unlock button =/
[Sony Xperia 1 Guides, News, & Discussion] Lavievn:
i used it before, it's shows that my phone is SIM UNLOCKED and failed, then i used "FRP" button, lost the credits and nothing happen :(
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
Sad for you, I think you'll have to buy another credit
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
SIM
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
I made a drm keys backup before doing sim unlock by flashing a compatible firmware and using this exploit

https://xdaforums.com/t/xz1c-xz1-xzp-temp-root-exploit-to-backup-drm-keys-implemented.3795510/
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
I've flashed turkish stock rom only to do my drm backup.

I dont think this exploit work with XZ2.

And I have no idea what th S1 tool backup is for =/
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
Xperifirm
[Sony Xperia 1 Guides, News, & Discussion] Nosfay:
I've found my XZ1 rom on it, I dont know about XZ2.
[Sony Xperia 1 Guides, News, & Discussion] 死求了鸭:
Hi,it worked great ! I was able to install TWRP for sov36 and I was able to install Lineage ,PixelExperience. but all display "No SIM card",but imei isn't lost.I try to enable in Settings→Xperia Parts→Modem Switcher Activity to switch others modem but still display "No SIM card".that mean I lost the network ?
[Sony Xperia 1 Guides, News, & Discussion] Lavievn:
use "backup" button after unlock, everything came back as before but bootloader unlocked still unlocked :D
[Nexus Player Original Android Development] fcipaq:
Updates:

2020-04-06

* Preserve temporary installation files by moving them from /tmp to /install

* Include wifi config file

2020-02-08

* Delete some unnecessary files from rootfs

* Fix issue with udev rule (which might prevent graphics from working properly)
[Nexus Player Original Android Development] fcipaq:
A small demo on Youtube...

[YOUTUBE]OEP7aR-44cw[/YOUTUBE]
[Nexus Player Original Android Development] arleybarros:
Is it possible to boot something like Batocera linux or Recalbox so we can use it as a retro console?
[Nexus Player Original Android Development] fcipaq:
Well... that is an interesting idea! In theory you may run any Linux distro that still supports kernel 3.10. And maybe that applies to the two afore mentioned distro. I mean some of the Odroids (which might be supported) have a quite similar setup in terms of the drivers basis (Android drivers running via libhybris).

On the other hand this won't be plug and play or even installing, but one would rather have to put quite some work into it... If you are willing to get your hands dirty, I will try to offer some support.
[Nexus Player Original Android Development] fcipaq:
PS: Batocera Linux seems to support Odroid XU4 which has OpenGL ES support (just like the Nexus Player), so there is a change that this could work.
[Nexus Player Original Android Development] Nephilim3883:
trying to finish step 2 and get the following:

debootstrap

/home/bonnie/Downloads/fugu_mate_desktop/fugu_rootfs_creator: line 44: debootstrap: command not found

cp: cannot create regular file '/home/bonnie/Downloads/etc/network/': No such file or directory

cp: cannot create regular file '/home/bonnie/Downloads/etc/': Not a directory

cp: cannot stat 'rootfs/*': No such file or directory

Chroot...

mount: sys/: mount point does not exist.

mount: dev/: mount point does not exist.

mount: proc/: mount point does not exist.

chroot: failed to run command ‘bin/bash’: No such file or directory

umount: sys/: no mount point specified.

umount: dev/: no mount point specified.

umount: proc/: no mount point specified.

Exiting chroot

Done.
[Nexus Player Original Android Development] lunigma:
Try

sudo apt install deboostrap
[Nexus Player Original Android Development] Nephilim3883:
That worked. But now the issue is during boot I get:

Waiting on root device /dev/sda1

I’ve tried using a USB flash drive and an external HDD. Wondering my maybe the OTG cable is crappy.
[Nexus Player Original Android Development] lunigma:
Run a file system check on your flash drive, it might be corrupted. A bad OTG cable could also be the culprit, try it on a phone with micro USB.

---------- Post added at 02:48 PM ---------- Previous post was at 02:46 PM ----------

Has anyone gotten the WiFi to work?
[Nexus Player Original Android Development] Nephilim3883:
It was definitely the OTG hub being a piece of junk. I’m reinstalling everything now and will try again when it’s done.

I did find out if you have installed everything to usb once already then all of the files and folders have already been downloaded to the system and you have to manually delete everything in /mnt and /media (not sure if you HAVE to delete everything in /media but that’s what I did).

Also, his video mentioned WiFi works. Not sure how to get it working if it doesn’t.
[Nexus Player Original Android Development] Nephilim3883:
This is as far as I have gotten after getting a new OTG hub and rerunning the rootfs script for the USB flash drive:
[Nexus Player Original Android Development] fcipaq:
Sorry for my delayed response. This usually happens if you got a corrupted root file system. That's why you get the

"devtmpfs: error mounting -2"

message. Good news is: your storage is properly detected and mounted, so most likely no hardware incompatibilities.

When creating to the file system be sure to a) either write it directly to the SD card (i.e. mount the SD card to e.g. /mnt) b) or first write to disk IMAGE (not directly to a directory). If you write the rootfs to a directory and then copy the directory over to a SD card might end up with a broken root file system.
[Nexus Player Original Android Development] fcipaq:
Wifi should work out of the box.

Could you please get be the output of:

sudo ifconfig

and

dmesg | grep -i dhd
[Nexus Player Original Android Development] Nephilim3883:
Could you please provide the method for writing to disk image? I am using Lubuntu to run the rootfs script. Thanks
[Nexus Player Original Android Development] fcipaq:
That would be (executed from the rootfs creator's directory):

sudo su
mount /dev/sdX1 /mnt
./fugu_rootfs_creator /mnt YourUserName YourPassword
umount /mnt

Replace sdX1 with the proper device name and replace YourUsername and YourPassword with your desired user name and password respectively.

Btw: What version of Lubuntu are you using, 18.04? (because I tested with Ubuntu 18.04)
[Nexus Player Original Android Development] Nephilim3883:
It is the latest version, 19.10

I will try create the image instead and see how it goes. Thank you for providing the information and for your work on this project.
[Nexus Player Original Android Development] Nephilim3883:
I got further this time. It acts as though it wants to go into Debian but I just get stuck on a blinking cursor using the EXTERNAL WCONSOLE boot image. If I use the EXTERNAL NOCONSOLE image it just stays on a white screen.
[Nexus Player Original Android Development] fcipaq:
Hm, odd... Maybe you could start over and upload the installation log.

Mark all the output of the installation of the Lubuntu console and copy and paste it to https://paste.ubuntu.com/

Just make sure your console has a line buffer large enough, because the log will be quite long.
[Nexus Player Original Android Development] Nephilim3883:
FYI- I can get into tty1 by Alt+F1 which lets me login to the terminal. After that I have no idea what to do. I am thinking maybe there’s an issue with Xorg.conf

I forgot what command I used but I get: No Screens Found (EE)
[Nexus Player Original Android Development] Nephilim3883:
Here is the install log: https://paste.ubuntu.com/p/8kVjDX4NCC/
[Nexus Player Original Android Development] fcipaq:
Ok, could you please create the following file: /etc/firmware/wifi/bcmdhd.cal

And place the contents of the following link into the file: http://paste.ubuntu.com/p/76pW8wdNQ8/

If it works, please report back and I'll fix the kernel and system image.
[Nexus Player Original Android Development] lunigma:
That worked! Thank you for all your hard work! This is a great quarantine project to work on.
[Nexus Player Original Android Development] fcipaq:
Ok, there is the error: /tmp gets delete before the files I placed there could get installed. Must be a new debootstrap behavior.

I adapted the installer script accordingly. Please re-download 200406_fugu_mate_desktop.tar.gz and rerun.
[Nexus Player Original Android Development] Nephilim3883:
I’ll let you know what happens. Is it possible to dual boot Debian and android?
[Nexus Player Original Android Development] fcipaq:
Absolutely. Flash the Linux kernel to the Recovery Partition. When booting into Recovery you will actually boot into Linux. Might be better to do it the other way around as Android sometimes silently restores original Recovery partition and you have to flash the Linux kernel again. Depends on what OS you use most of the time.
[Nexus Player Original Android Development] Nephilim3883:
It boots straight to tty1. Unfortunately this time I didn't set the terminal history to unlimited so I don't have a full install log to paste. I will have to try again in order to get the full log.
[Nexus Player Original Android Development] snobrd4life:
fcipaq, thanks for the great work. I have been trying to figure out how to get a working clean linux build working on any of the old (but not useless) android devices I have lying around the house. I have been trying my hardest not to have to go out and buy a raspberry pi where it might be possible to recycle an android device into a linux server from which I could run a simple homebridge node server. Unfortunately any of the methods like Andronix or Linux Deploy do not give me PID 1 to run systemd as a process which the node server would require.

So, I'll get to the point, do you think there is a way that I can compile everything (or flash an image) via adb instead of using a USB flash drive? DD direct to the data or recovery partition? I ask because I only have an OTG cable, but no hub. I'd have to boot into Debian with my USB keyboard connected before being able to connect anything with bluetooth.

i'm not that fluent in linux but I can manage based on reading up on XDA. I'm very eager to try to get this to work in order to get a working homebridge with my nexus player that has been other unplugged and unused for almost a year now. i appreciate any feedback or support. thanks!
[Nexus Player Original Android Development] Nephilim3883:
He outlined in step 3 how to install Linux onto the actual NP partition.

You still have to do steps 1&2
[Nexus Player Original Android Development] snobrd4life:
Thanks for the reply. Yes, but his guide says to use a USB flash drive. I can’t plug a flash drive and keyboard in at the same time. Or did I miss something?
[Nexus Player Original Android Development] Nephilim3883:
Ah. I am using an OTG hub
[Nexus Player Original Android Development] fcipaq:
Hm, hard to tell what went wrong. I suggest to live boot Ubuntu 18.04 and try the rootfs creator again. (Maybe it's an compatibility issue. I re-ran the script yesterday and had no problems.)

Installing to internal flash without USB hub should be possible (in theory) tough tricky (and untested). You may run the rootfs creator to write the filesystem into a file on the harddisk. Afterwards convert the file to an Android sparse image to make it flashable via fastboot. Lots of things can go wrong here.

Easiest way sure is to get a USB hub for a couple of bugs.
[Nexus Player Original Android Development] Nephilim3883:
Using Ubuntu 18.04 worked thanks.
[Nexus Player Original Android Development] snobrd4life:
I understand. Can you please provide the commands of how you would do this? I'd like to test and report back. I'm using Ubuntu 18.04.4 in Oracle VM.

I could try to fumble through it myself, but I consider myself to be barely above survival level in linux.
[Nexus Player Original Android Development] snobrd4life:
The other would be to somehow boot into Debian into the RAM, unplug flash drive, navigate with USB mouse to connect bluetooth mouse/keyboard, reconnect USB and proceed with step 3 to load to internal storage. Is there a script that I could add to the rootfs creator to default boot Debian into RAM?
[Nexus Player Original Android Development] fcipaq:
Installing w/o a USB hub is quite tricky. In theory it can be done but it's definitely no recommended. There is no script and all this is completely untested. Also, booting a Debian Live ISO into ram is not possible due to a) an insufficient amount of RAM and b) the lack of AUFS support in Kernel 3.10.
[Nexus Player Original Android Development] snobrd4life:
Got it thanks! Found a neighbor with a USB hub and managed to get to tty1 to be able to input user and pass. Problem is I only have about 5 seconds to enter anything until the screen goes black. Could it be a power issue of the hub? Corrupt USB?
[Nexus Player Original Android Development] snobrd4life:
Definitely a power issue. I connected a powered USB HDD as boot volume and it worked. Unfortunately it looks like I keep getting corruption or failures during the rootfs creation. After a few more failures, I finally wiped the USB HDD and started from scratch, followed the steps.... and it worked!!!
[Nexus Player Original Android Development] snobrd4life:
Just wanted to follow up as show that I got everything working via USB finally! Even got Homebridge working properly, albeit I had to install an older 32 bit version of nodejs. Definitely not going to win any speed contests, but it is working! Thank you fcipaq!

To set up on internal storage, how do you suggest to flash to internal storage? I tried to dd my USB partition to local EXT4 partition created on internal storage, but that did not work. I also tried to run the rootfs creator from Debian, but it gave me errors very early in the debootstrap that I could not get past regardless of sudo and getting/updating debootstrap. Any ideas?
[Nexus Player Original Android Development] fcipaq:
Nice work! And sorry for the delayed response. Well first thing that has to be regarded is that the internal bootimage will currenly only boot from partition /dev/mmcblk0p9 (I deleted all partitions > 8 and then created one big partition instead). If you do have another partition layout, let me know and I can recompile the kernel image for you with the appropriate boot partition.

Second thing is, you need to dd the image of your USB drive when it's unmounted. That means, dd your USB drive from within another installation (e.g. on your PC). Then you may copy that image as a file to your USB drive. Afterwards boot your Nexus Player with that USB drive (containing also the dd image of itself) and then dd the image onto the internal storage.
[Nexus Player Original Android Development] snobrd4life:
Awesome that worked! Running off internal bootimage!
[Nexus Player Original Android Development] OxyX:
Hi, I seem to be having the same error on the Nexus Player. I have compiled the USB multiple times from both Ubuntu 20.04 and 18.04 with VirtualBox. Please see the attached log. Thanks.

[IMG="log"]https://i.imgur.com/rw0qhJI.jpg[/IMG]
[Nexus Player Original Android Development] snobrd4life:
I believe your issue is that the partition table of the USB drive is not being detected. The way I finally got a working USB boot drive was to completely wipe the drive in Gparted in Ubuntu 18.04, create a new ms-dos partition table, and create one ext4 partition. that partition then needs to be mounted to /mnt in order for the rootfs creator to do its job correctly. please refer to post #16 for the exact code.

took me a few days to get it right. without a clean partition table, the rootfs creator will likely fail and the nexus player won't boot.

as said previously by others in this thread, this has been a great quarantine project with a lot of starting from scratch, but every time that i advance and finally get something to work it's awesome. i personally have learned a ton about linux in the process. i always wanted a raspberry pi and now the nexus player seems to fit the bill quite well for my needs.