yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ Questions & Answers] AVeers:
Hi XDA,

It's been a while since I've done any work on any phones, I've previously used roms on Galaxy S and SIII. But those are a while ago as you can see. I've got an Xperia XZ, the bootloader is currently unlocked. But I cannot, for the life of me, get any further despite following several guides and programs. So I'm at a loss.

At this exact moment, I have my XZ connected to my pc with the blue light on. CMD in ADB/Fastboot cannot detect the device. My understanding is I need to flash the kernal and recovery first, then I can consider flashing a custom rom.

Would anybody be able to assist me? I dropped this project a few months ago, so I'll need to check what rom I was going to use and update the img files I have.

Thanks
[Sony Xperia XZ Questions & Answers] awadnisar:
Installed fastboot abd on pc?
[Sony Xperia XZ Questions & Answers] AVeers:
Yep, that's been installed. I do have an issue which I thought/think is driver related as the daemon doesn't always start, and doesn't detect the phone correctly either.
[Sony Xperia XZ Questions & Answers] lilbrat:
What OS is on your computer?
[Sony Xperia XZ Questions & Answers] AVeers:
Windows 10, I also tried Linux Mint but didn't get much further.
[Sony Xperia XZ Questions & Answers] lilbrat:
Have you disable the drivers vetification?
[Sony Xperia XZ Questions & Answers] AVeers:
Yep!
[Sony Xperia XZ Questions & Answers] lilbrat:
Can flashtool detect your device? Sorry for all the questions but got to start somewhere and have you tried changing USB ports and cables?
[Sony Xperia XZ Questions & Answers] AVeers:
No, the questions are good. There will be something wrong that I can't find, so we need to work it out somehow.

Flashtool doesn't consistently detect the device. The computer does, flashtool doesn't. I have changed the cables with some success, but that hasn't helped me progress much further.
[Sony Xperia XZ Questions & Answers] lilbrat:
Hmm, have you install the drivers from Sony developer site? Also try it on another computer..i wonder if you have a bad connection port on your phone thus the reason I asked about another computer.. Try reinstalling fastboot and adb, drivers etc. with your anti-virus disable.. And does Sony companion work? USB debugging turned on?

Sounds silly but sometimes we forget, like redoing doing your phone from scratch and you can't delete some stuff and only to remember later that you forgot to install busybox or mount your system partition.. lol
[Sony Xperia XZ Questions & Answers] AVeers:
Thanks Lilbrat,

I'll be doing a fresh install, hopefully this weekend. And will cover what you have mentioned and report back. Thanks!
[Sony Xperia XZ Questions & Answers] YasuHamed:
since this is your first Xperia device, you must first familiarize yourself with the ENVIRONMENT and TOOLS in which SONY Xperias can be played with !

some basics I wrote for X, but applies for XZ also , please read as it will be helpful!

https://xdaforums.com/showpost.php?p=72141176&postcount=7

now

since your boot is already unlocked so I can safely assume that you don't have TA.img file at all!

this leaves you with only two solutions

1. install 3rd part ROMS

2. flash sony STOCKROM and flash MODDED kernel (most of us do this)

your XZ has project name by SONY called KAGURA, your device on xperifirm is recognized by this name, dual/single you have to specify

from flashtool, xperifirm, download latest firmware 41.3.A.2.157 under KAGURA, close xperifirm and FLASHTOOL will start creating FTF file AUTOMATICALLY, click OK to any script question. and let it create ftf for u

flash it on your XZ,

send me kernel for 41.3.A.2.157, i will patch it for u! (patching guide is given in this forum but at this point i think it will be too much for you, so i will fix the kernel for u)

KAGURA twrp can be found at https://dl.twrp.me/kagura/ ( unlike SAMSUNGS, sony Xperias don't have inbuilt RECOVERY )

flashing recovery is MUST!

when device is switched off, connecting USB CABLE to PC and MObile while

1. HOLDING VOLUME UP KEY (blue LED) is FASTBOOT MODE (used mainly for sending twrp and kernels )

2. HODLING VOLUME down KEY (GREEN LED) is FLASHMODE (used mainly to FLASH stock roms using FLASHTOOL

you must install

1. Xperia Companion

2. flashtool ( www.flashtool.net) (after installing goto C:\flasthool\Drivers folder and install the driver.exe select COMMON Fastboot / flashmode drivers + z5/z4/z3 family of all drivers (there is no XZ , as Z5p drivers supports XZ)

3. install minimal adb and fastboot 1.4x from XDA (google it)

4. using these TOOLS you can

a-flash firmwere

b flash recovery

c flash modded kernel

d boot in to recovery (twrp) and flash MAGISK 16.x .zip from twrp + drm patch files! ( i will give you later with modded kernel)

e reboot and your device will wakeup ROOTED having DRM FIX! ---- switch off the SOFTWARE updater using any ROOT APP FREEZE app from playstore!
[Sony Xperia XZ Questions & Answers] AVeers:
Currently working through a reinstall of flashtool etc, I can detect the phone using the Sony Companion tool, so thats positive. I haven't seen any notification that drivers have installed, but I do have the XZ drivers unzipped here.

Edit1: It doesn't detect or anything when the blue or green lights are on phone either. Not sure about them at this point.

Edit2: Just going through your guide as well Yasu, I cannot locate "sony Xperia X motherboard drivers (sa0107)" or anything similar to my device. Just throwing that out there. Installing the two common results in Sony Mobile Communications (ggsomc( USB (11/10/14 3.1.0.0) installing, but Google. Inc (WinUSB) AndroidUsbDeviceClass (12/06/10 4.0.0...) failing.

Will continue. Derp, just noticed I have a completely different flash tool. Sony Mobile Flaster by Androxyde, v0.9.25.0 but atleast it detects the connected device more than previously.

21/004/2018 13:04:44 - INFO - List of connected devices (Device Id) :

21/004/2018 13:04:44 - INFO - - USB\VID_0FCE&PID_0DDE\CB512CK84Q	Driver installed : false

21/004/2018 13:04:44 - INFO - List of ADB devices :

21/004/2018 13:04:48 - INFO - - none

21/004/2018 13:04:48 - INFO - List of fastboot devices :

21/004/2018 13:04:50 - INFO - - none

Edit 3: Right, forgot to disable Win10's driver signature. Fixed that part again.
[Sony Xperia XZ Questions & Answers] AVeers:
Downloaded the wrong firmware, so just working on that again (41.3.A.2.157 / R1E).

I was planning to flash Rudy's AOSP Oreo, but I'll have to go back and see as I chose that several months back.

Edit1: Completed flash. Phone is now 41.3.A.2.157, kernal 3.18.66. Android 8.0.0, bootloader unlocked. Rooted says no. This is certainly a lot more difficult than I remember!

Edit2: Recovery flash completes when command is ran, but adb does not register the device being listed, fastboot does. So I've hit the stump again with being unable to successfully flash twrp-3.2.2-0-kagura.img as recovery.img

Edit3: Last one for today. I can't open recovery from my phone, but can force it with fastboot boot recovery.img which has worked. However, it has loaded to a Mount - Decrypt Data screen and wants a password. I'm not aware of a password being required, and if I recall the device is encrypted. Ouch, should have seen this coming.
[Sony Xperia XZ Questions & Answers] YasuHamed:
1. as i mentioned " (after installing goto C:\flasthool\Drivers folder and install the driver.exe select COMMON Fastboot / flashmode drivers + z5/z4/z3 family of all drivers (there is no XZ , as Z5p drivers supports XZ) "

2. once these drivers are installed, you will get SOMC notification when very first time you connect your XZ in any MODE (volume up / and /or / volume down)

3. while flashing firmware, if you didnt tick WIPE areas, you will get encryption error , you must perform CLEAN FLASHING

4. before booting in to twrp, you must flash MODIFIED KERNEL - you can take modded kernel from my post in this forum

5, boot into twrp, flash drm fix files, flash magisk and wipe delvik cache/ cache and Reboot!
[Sony Xperia XZ Questions & Answers] AVeers:
Yep, I see what you mean now. I missed the options on the flash screen, I thought it was odd that the time it took didn't match anything close to the times you described.
[Sony Xperia XZ Questions & Answers] AVeers:
That didn't end well, clean flash, flashed kernel, TWRP booted correctly this time from the phone. Except phone now won't boot past the Sony logo.

I was also comparing your instructions against korom42's, and another third party. Which naturally are all similar and straight forward, still didn't help. :eek:
[Sony Xperia XZ Questions & Answers] YasuHamed:
did you flash the modded kernel?

if you simply flash magisk on original kernel!

you will be stuck on SONY LOGO
[Sony Xperia XZ Questions & Answers] lilbrat:
OK, I still following this with some interest, as a bit of clarification seems to be needed.. Now granted for some reason Flashtool doesn't have the XZ drivers even the newest version but there are mb drivers on Sony Developer site.. https://developer.sony.com/develop/drivers/ . (see pic)

[MENTION=9272101]AVeers[/MENTION], more computer questions reason being you said Flashtool is seeing your phone a bit better, which leads me to believe you're still having driver issues.. Are you on a laptop or a desktop? If it's a desktop have you tried plugging your USB into the rear panel, straight into the mb also have you tried disabling your anti-virus when installing your drivers? Oh, and where are you located as your firmware is for the middle east, if I remember correctly..
[Sony Xperia XZ Questions & Answers] AVeers:
Hi Mate,

I won't be able to work on this further until the weekend. But I do have those drivers from Sony here. And have been using firmware as per Australia (generic). Which is correct for my location.

The phone is plugged into the mobo via rear panel, and this is a desktop running Win10. I'm in test mode to eliminate the driver signing issue. I have not disabled the anti-virus, but I haven't had issues before.

When I run the flash for the firmware, boot.img or twrp.img, it takes seconds to complete, generally less.
[Galaxy S 4 Mini Themes and Apps] HemanthJabalpuri:
***stock users only***​

⇛Deodexed, Zipaligned Apps and Framework for I9192DDUCOF2 users.....

⇛This file deletes all .odex files in /system/app, /system/framework, /system/priv-app and replaces the apps and frameworks having same name.......

⇛Flash the zip file you downloaded from below given download link in any custom recovery.....wipe not required

⇛Any Data loss will not happen...

⇛If your stock rom is debloated, then you have to debloat once again after flashing this......

⇛First boot may take upto 15mins don't panic

Your stock ROM is now deodexed and zipaligned ​

Download:-

https://androidfilehost.com/?fid=11050483647474830683 ~~~309mb

:good:
[Galaxy S 4 Mini Themes and Apps] HemanthJabalpuri:
For I9192UBSCQB1

https://androidfilehost.com/?fid=11410932744536981569
[Tilt, TyTN II, MDA Vario III General] josh9992000:
hi lads hope you can help whats the largest micro sd card anyones had in tytn11 vario3 etc

i was wanting to get a 16gb but cant find if its sdhc compatable
[Tilt, TyTN II, MDA Vario III General] robosiris:
I'm using an 8gb SDHC card now, some others I hear are using the 12gig that's curently out. From what I know and read, the TyTn II is capable of using up to 32 gig SDHC cards.
[Tilt, TyTN II, MDA Vario III General] josh9992000:
cheers mucka will give one a go and report back
[Lenovo K8 Note Questions & Answers] rykus:
Hey guys and gals... I need a little help here. My venom black 64gb 4gb ram k8 note rear camera jus focus but doesn't take picture. I can't take video with rear camera but no picture. Front camera works well. The phone came working good but after a few days of use I got this error. I searched online and I saw a few ppl with the problem on Lenovo website. Any ideas what could be wrong. Thanks
[Lenovo K8 Note Questions & Answers] Ahmad.Mohsen:
me too

I'm having the same exact problem, I searched online a lot.

there's no answer on Lenovo website or any other
[Lenovo K8 Note Questions & Answers] Bloodshed247:
my issue is that the "rear camera" opens the front camera harware and "front camera" opens the "rear dual camera harware", I can't find any info on how to fix it.
[Moto G5 Plus Questions & Answers] ahagersr:
When using portable hotspot in MIUI other devices can connect but have no internet connectivity. This issue is not present in any other Oreo ROM.

Anyone have any ideas for a fix?
[Moto G5 Plus Questions & Answers] washoq:
I think you should ask for that in MIUI rom thread as you mentioned it is only happening for that particular rom.
[Moto G5 Plus Questions & Answers] dhinesh_cool:
wait for miui10
[Moto G5 Plus Questions & Answers] ahagersr:
MIUI 10 is still in alpha, some Xiaomi devices don't even have functioning hotspot on those builds.

Either way, after some digging I found a fix. Here it is.
[Moto G5 Plus Questions & Answers] ahagersr:
I did ask for help in that thread, and instead of receiving an answer people complained that MIUI 10 wasn't here yet.

Either way, the fix is shared above for anyone else who has that issue.
[Moto G5 Plus Questions & Answers] cpm:
Hmm was just looking at a MIUI video on YouTube yesterday, as I've bought a Xiaomi Redmi Note 5.

From what I remember seeing, that's a MIUI bug that has been fixed in the latest stable release?
[Moto G5 Plus Questions & Answers] ahagersr:
I believe so. It seems to show up on random devices from time to time.
[Moto G5 Plus Questions & Answers] dhinesh_cool:
Thnx for the fix
[Xiaomi Mi 5X Questions & Answers] vvorth:
Hi, so i've just installed A1's 8.1 version 9.6.3(security update from 5th of June). Ported with modded TWRP. Looks good with one exception - mobile network keeps disconnecting and connecting back constantly. So basically it makes phone unusable at all.

Any idea how to fix it? May be by flashing specific radio?

PS before i was using 8.1 beta versoin 8.5.11(security update from May) without issues.

SOLVED by flashing modem that comes with original A1 8.1 rom. Video recording isn't working btw. The only thing i found for now
[Xiaomi Mi 5X Questions & Answers] vvorth:
Ok, rolled back to that same 8.1 beta. Mobile network is connecting and disconnecting constantly as well. Now i'm not sure if it was working before since i've used this rom for few hours only and just may be didn't notice it initially. Going back to 8.0 until solution found.
[Xiaomi Mi 5X Questions & Answers] bandicout:
Did you flash the A1 rom straight into TWRP or edited before? :confused:
[Xiaomi Mi 5X Questions & Answers] vvorth:
Flashed by fastboot. Booted to recovery straight ahead to port it with a1to5x script. But again, flashing A1's modem fixed the issue for me.
[Xiaomi Mi 5X Questions & Answers] bandicout:
How files you flash?

I use system.img and boot.img, but enter in bootloop
[Xiaomi Mi 5X Questions & Answers] vvorth:
Do you port your rom after installation using modded TWRP? Running a1to5x in TWRP terminal right after flashing your system and boot?
[Xiaomi Mi 5X Questions & Answers] bandicout:
Yes, i do... Flash boot and system from tissot-F-OPM1.171019.019.V9.6.3.0.ODHMIFE in fastboot, use comand a1to5x in TWRP, wipe dalvik and cache. But start in bootloop :(
[Xiaomi Mi 5X Questions & Answers] vvorth:
To be honest i have no idea what could be wrong then. I assume are already factory reset to make sure it's a clean installation. Sorry. I'm also just trying everything possible unless i'm not sure i can restore it after failure.
[Xiaomi Mi 5X Questions & Answers] vvaibhavv:
Can you just share the link of firmware you flashed, and the link of script also. Please.
[Xiaomi Mi 5X Questions & Answers] vvaibhavv:
Alright so I successfully flashed Mi A1 8.1 Oreo.

Download the Firmware from Here: https://xdaforums.com/showpost.php?p=76947535&postcount=421

Flash system and all other files manually.

Or else, use this method https://xdaforums.com/mi-5x/how-to/guide-how-to-install-a1-rom-5x-t3777139

(Remeber to keep all the files in "images" folder.

Install TWRP.

Wipe dalvik and Cache

Go to Advance, terminal run a1to5x
[Xiaomi Mi 5X Questions & Answers] Pathania08:
I'm using Aex 5.7 on my MI 5X and my network is constantly dropping. What could be done to fix it? Thank you.
[Galaxy Note 4 Q&A, Help & Troubleshooting] MAKUPAL12:
Hi everybody can you please help me what is the best custom kernel for n910c performance and battery spacelemon,h-vitamin or suemax kernel pleaseeeee reply asapp pleaseeee
[Galaxy Note 4 Q&A, Help & Troubleshooting] w41ru5:
Squeaking like pliiiiiizzzz and ASAP would not help you.

What help you (and others like you) is to READ and TEST. No one will know but you what you want from the kernel.

Or the phone - performance and battery (long lasting battery I suppose) don't go well in the same sentence.

So go ahead, read the bloody threads and try to think in order to take a decision.

Spacelemon is very good along with Synapse where u can tweak many things. But again, if u want speed and performance - this comes with cost of the battery juice.

And don't be lazy, READ.
[Galaxy Note 4 Q&A, Help & Troubleshooting] MAKUPAL12:
but what do you most prefer bro? please prefer just 1 kernel
[Galaxy S 4 i9500 Original Android Development] Erag0n:
I am not responded any problems in your phone after flash it!!!

YOU MUST KNOW THIS IS A VERY UNSTABLE ALPHA VERSION!!!

Now,you are good to go.

Acoording to it is a alpha version ROM,I won't give it to much description.

What you should know please check my old post here.

Download Link:It's uploading to MEGA.In China,this is not has a webdisk could be used to upload files for international usage.So the upload is very slow.

Issues:

Unknown.

More things will be added later.

XDA:DevDB Information

Mokee Oreo, ROM for the Samsung Galaxy S4

Contributors

Erag0n, Erag0n

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.4.x

Based On: Mokee Open Source

Version Information

Status: Alpha

Current Beta Version: MK81.0

Beta Release Date: 2018-07-01

Created 2018-07-01

Last Updated 2018-07-01
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Please administrator close it.

This post is open by wrong due to bad internet connection situation.

Thanks.
[Android Head-Units] andreiutzu21:
hi everyone i was trying to update firmware on my xtrons d717al and after update complete screen goes white and no response at all. what can i do in this case. plesse help me !!!!!!
[Galaxy S 4 i9500 Original Android Development] horizon.:
我来自中国，你能不能把这个包发给我?
[Galaxy S 4 i9500 Original Android Development] qseyqd:
Is there any news about the rom?!
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Sorry guys.This project couldn’t be finished because old GPU driver in S4.The driver is not open source so I can not update it.Sorry I don’t fully consider the situation to open this project.

It’s my fault, I am so sorry.

Thanks to Alberto’s help.

I am not responded for any problems in your phone after flash it!!!

YOU MUST KNOW THIS IS A VERY UNSTABLE ALPHA VERSION!!!

Now,you are good to go.

Acoording to it is a alpha version ROM,I won't give it too much description.

What you should know please check my old post here.

Download Link:

ROM:This ROM is fully in development,if you want to have a test,please read my thread post in page 2.

TWRP Recovery Must flash via Odin.

TWRP Recovery(tar):https://mega.nz/#!puplmKgb!m0CLP6Cic...FmafqPg5PCCT8s

Issues:

Dark screen,only charging mode could be used.

Our discussion group:https://t.me/Mokeei9500

More things will be added later.

Source Code

https://github.com/mokee-exynos5410

XDA:DevDB Information

Mokee Oreo, ROM for the Samsung Galaxy S4

Contributors

Erag0n

ROM OS Version: 8.x Oreo

ROM Kernel: Linux 3.4.x

Based On: Mokee Open Source

Version Information

Status: Alpha

Current Beta Version: MK81.0

Beta Release Date: 2018-07-01

Created 2018-07-01

Last Updated 2018-07-01
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Notice:You must use the new twrp to flash ROM.

The new TWRP has some issues but I will fix it later.
[Galaxy S 4 i9500 Original Android Development] Erag0n:
I have just tested，device couldn't start,I have find the problem and is going to build again.

Please DON’T INSTALL until I release new build.
[Galaxy S 4 i9500 Original Android Development] ZeroCool98:
Wow I didn't expect to get oreo for our s4 :D

I'm gonna be testing it soon :)
[Galaxy S 4 i9500 Original Android Development] moaz.abd6:
Good work mate...but the recovery never working...it is still boot into recovery
[Galaxy S 4 i9500 Original Android Development] Erag0n:
The ROM’s kernel has issues,I was trying to fix it.

TWRP issues is all solved,I will upload it tomorrow.
[Galaxy S 4 i9500 Original Android Development] moaz.abd6:
hmm...when you will release the update?
[Galaxy S 4 i9500 Original Android Development] Erag0n:
The kernel problem is serious.I think I just forget to modify it to support Oreo.

It may take me 2-3 days because I am busy recently.

It won’t be long to enjoy Oreo ?.
[Galaxy S 4 i9500 Original Android Development] AboodTheLord:
no problem bro, take your time

and i wish the ROM is gonna be better than LOS based ROMs :P

Since this one is started by you, not based on another ROM

so i wish you have a good time working on it and have fun :P and give us a nice ROM

and you can always ask for Donations in your Threads, some people would still do these days :P

and if you got a telegram or a Telegram group for i9500, please post it so we can talk there and discuss about the phone there more :P

if you don't, you can join my off-topic Group

or you can ask me to make a i9500-mokee-Oreo group, or something like this :P

my group invite link is >> https://t.me/joinchat/BQbHqUY5kaAso-_HCXJddA <<
[Galaxy S 4 i9500 Original Android Development] ELdragonxii:
Take all your time possible.

I'm always looking for your publications.

really great thanks for keeping the device updated.:good:
[Galaxy S 4 i9500 Original Android Development] Erag0n:
The modify is fully wrong.

I need start from beginning.

Sorry, I think this project has a long way to go.

I will keep developing.

If someone don’t have patience to wait, I could understand it.

It’s my first time to host a big update of system,I have to learn more about it.

Finally,thanks to everyone waiting my project.
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Taday’s Progress (7.3)

Kernel works well,Light is work,TWRP is work,but screen is dark.

It didn’t crashed after start phone,but screen is always dark.
[Galaxy S 4 i9500 Original Android Development] ZeroCool98:
Awesome mate :) .Take your time.
[Galaxy S 4 i9500 Original Android Development] fhazly:
I really expect the presence of oreo and now it has come true :laugh: I just have to wait
[Galaxy S 4 i9500 Original Android Development] blascogm:
Excellent, I'll be waiting for a new ROM update.
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Hi,everyone.

I have made a new build,it contains Project treble.

This build is fully rebased,so I think it could be used.

But my phone was drained out in yesterday's test,due to that I need a tester.

If you want to test it,you must backup your phone and know how to use Odin restore your phone.

MOST IMPORTANT:Today's build is fully Alpha ROM too.

If you want to take a risk,here is the link:

TWRP must flashes via Odin.

TWRP Recovery(tar):https://mega.nz/#!puplmKgb!m0CLP6Cicx24AYKtxQL9dbv7aBIkDFmafqPg5PCCT8s

Oreo Alpha ROM:https://mega.nz/#!Ryox1IxJ!yWDM0Kq18GZYMvgdr3x_OvMT7YGti1IxhNOOTLx6qT4

Finally,please send me the test report,thanks for your test.
[Galaxy S 4 i9500 Original Android Development] fhazly:
black screen and stuck at boot

only the indicator light is on

twrp is still booting
[Galaxy S 4 i9500 Original Android Development] Erag0n:
Thanks for testing.

TWRP must flashed via Odin.

The ROM is still have problem.
[Galaxy S 4 i9500 Original Android Development] ZeroCool98:
Can the TWRP be flashed with the existing TWRP?Or it doesn't work?
[Galaxy S 4 i9500 Original Android Development] Erag0n:
If you don’t use 3.1.1 TWRP before,you need use Odin.