yashsingh1/xdaforums huggingface dataset:
[Xperia SP Original Android Development] LaRazón:
Have you flashed twrp to the fota partition? If not, check the first post again. If you have, then I don't know what could be the problem.
[Xperia SP Original Android Development] Aurumnus:
No, I haven't flashed twrp to the fota partition. I don't understand how I must do it.

I read the "TWRP thread", but I I don't understand what and how I must do.

With Redmi phones and Miui, I have done it many times.

But with Xperia SP and the guides here at XDA, I can't figure it out.
[Xperia SP Original Android Development] LaRazón:
Well, try doing the steps in the TWRP-thread, under

HOW TO INSTALL EASILY TO FOTA :

. I'm affraid I can't help you more than that.

Have you tried aosp-9 yet [MENTION=5201135]globe79[/MENTION] ? [MENTION=2233641]AdrianDC[/MENTION] seems to have uploaded it, but no mention about it yet(?). I'd like to give it a shot, too. :)
[Xperia SP Original Android Development] Aurumnus:
Thanks.

So, I flashed TWRP using this guide: https://hoanganhduc.github.io/misc/linux/2018/my-first-experience-with-android-phones/

I enterd TWRP, I copied AOSP ROM to the phone and then flashed it.

Phone rebooted, stuck on android logo for some minutes and then phone entered Android Recovery and gave me 2 options.

Try again or factory reset. I chose factory reset and an error message appeared. I pressed power button, phone closed and when I reopened it, process repeated.

I chose "try again" this time. Same result.

I reset phone by pressing the reset button on the back of the phone, then entered fastboot. I used "fastboot devices" command and now message "PSDN:YT910S24YZ&ZLP fastboot" appears.

What can I do?
[Xperia SP Original Android Development] Klaus N.:
[MENTION=6170696]Aurumnus[/MENTION]

First of all, I wonder why don't you follow Adrian's instructions?

And 2nd, did you update your device to the latest Sony stock firmware (btw, it's the 12.1.A.1.207 fw) before your try to switch to AOSP? If not, do that before proceeding here.

The next (TWRP) thing is, after fastboot flash boot (Adrian's latest) twrp-3.2.3-20180810-boot-huashan.img and entering it, you have to flash the twrp-3.2.3-20180810-fota-huashan.zip (which you have to place onto your external or internal sd of your Huashan, ofc) and then reboot into recovery. Not till then flash the AOSP rom and GApps. The links to the mentioned TWRP files you'lll find in Adrian's appropriate TWRP-thread in the op in the "DEVELOPMENT DOWNLOADS FOR HUASHAN" section (take the latest [3.2.3] ones).

And if you want root, have a look in the "Q&A - FAQ" section of the op of this thread!

And last but not least a little hint: Read the op exactly, maybe twice or more - then you'll succeed ;)
[Xperia SP Original Android Development] Aurumnus:
[MENTION=7240445]nuremberg[/MENTION]

Thanks for your reply.

Yes, I had latest Sony stock firmware, the one from COSMOTE (I'm pretty sure it's the worst implementation of stock SONY firmware for this phone).

It took me a lot of time but I managed to found it, so I can try to flash it again.

I believe this clarifies a lot of things for me. I only did the first flash.

I've read the instructions many times.

The problem is with my brain. I can do things I see in pictures or videos, but it's quite difficult for me with only written instructions.

EDIT 1: I can't flash stock firmware with flashtool. Phone disconnects from flashmode a minute after connecting.

EDIT 2: I opened a new thread asking for help, don't want to clutter this thread, since it's for AOSP ROM and not general problem solving.
[Xperia SP Original Android Development] globe79:
[MENTION=6170696]Aurumnus[/MENTION]

Go to this thread page. Sony is not Samsung nor Motorola - you can get permanent TWRP via FOTA method only, you can't update eg. Magisk as easily as on other devices.

I was using "Flashtool 0.9.25.0" for flashing TWRP img (not zip) as boot image - TWRP overwriting system kernel. It is not permanent as system overwrites it during normal flash, but is useful for debugging. You can flash TWRP that way and prepare all zips on your SD card to flash at once (I flash lineageos.zip, boot bridge modified with magisk, open gapps pico and fota TWRP). Its unlikely to brick Xperia SP! Never give up!

[MENTION=8891098]LaRazón[/MENTION]

I had no time this weekend - sorry. I'll try it soon! I'd like to update TWRP to 3.3.0.0 at once.
[Xperia SP Original Android Development] LaRazón:
[MENTION=5201135]globe79[/MENTION], well I just went ahead and updated my TWRP to 3.2.3 (couldn't find the zip for 3.3.0.0) and flashed aosp-9-20190422-huashan-adriandc.zip along with Open Gapps arm-9.0-micro-20190601.

There were a couple reboots and little bit of lag initially, but now (couple of hours later) it seems fine. Sort of forgot about doing a factory reset, and didn't realise how much would be preserved from the previous version, even with the new Gapps in place.

Overall, the ROM seems at least as smooth as before. I actually had some lag on Oreo, but less(?) with this one (this time, I started by flashing the boot.img, does that make a difference?). Not an expert with these things really... :silly:

Obviously not the fastest in 2019, but still seems like a great ROM. Will be testing it more now.

Thanks once again [MENTION=2233641]AdrianDC[/MENTION], much appreciated. :)
[Xperia SP Original Android Development] Bugemberoger:
Videos don't play but there's sound in the background, anybody facing the same issue on 9.0?

And when am using opera mini and I enable data saver, phone freezes, fades and reboots
[Xperia SP Original Android Development] LaRazón:
No problems here, YouTube video clips work fine as does the Opera Mini + data saver combination.

[MENTION=8310422]Bugemberoger[/MENTION], are you still having problems? I'm sure you did a clean flash and all that?
[Xperia SP Original Android Development] Bugemberoger:
I did a clean flash, which GApps did you flash [MENTION=8891098]LaRazón[/MENTION]

---------- Post added at 08:33 PM ---------- Previous post was at 08:33 PM ----------

I did a clean flash, which GApps did you flash [MENTION=8891098]LaRazón[/MENTION]
[Xperia SP Original Android Development] LaRazón:
Open Gapps micro (YouTube not included by default). It's all there in post #861.
[Xperia SP Original Android Development] Scorpion2185:
How can I do a screenshot with the phone?

The lateral camera button doesn' t work but is really not a problem.
[Xperia SP Original Android Development] Klaus N.:
Push <power> (and keep it hold) and right after push <vol-> in addition; release both keys, as soon as the screenshot was token ;)
[Xperia SP Original Android Development] Scorpion2185:
I successfully installed this ROM.

I used SuperSU but I cannot drop a root terminal.

If I use adb shell with the phone in debug mode:

$ su
/system/bin/sh: su: not found

I tried also termux.

How can I root the phone?

I tried also Magisk but TWRP stated that the installation failed.
[Xperia SP Original Android Development] DahakePL:
Try this.

https://xdaforums.com/crossdevice-dev/sony/mod-boot-bridge-sony-elf-t3506883
[Xperia SP Original Android Development] Scorpion2185:
But I can see:

I must avoid to damaged the system or I will be log out from some apps.

Did someone try it on the Xperia SP?

Edit: I saw on the first comment:
[Xperia SP Original Android Development] DahakePL:
Just read instructions and flash the zip to make magisk work.

No idea whether newer magisk versions work but for sure older ones worked fine.
[Xperia SP Original Android Development] Scorpion2185:
What version did you try?

I can see on the first comment by AdrianDC developer of that:
[Xperia SP Original Android Development] DahakePL:
It was a long while ago, I don't remember.

Can't you just experiment? Try magisk 17 or 18 or 19. It's not like your phone is gonna blow up.
[Xperia SP Original Android Development] Scorpion2185:
Can I just flash the Magisk zip with TWRP?
[Xperia SP Original Android Development] DahakePL:
Try and see, it probably won't work without the boot bridge.

Why are you so scared to try out things?
[Xperia SP Original Android Development] Scorpion2185:
I have no way back if something goes wrong, since I don' t use the phone much I don't know if it is worth the effort.

Is there any change to break the system?
[Xperia SP Original Android Development] DahakePL:
Probably not much of a risk
[Xperia SP Original Android Development] eric.ger.01:
BootBridge worked for me with Magisk 20.1. Installation with the Magisk zip alone doesn't damage the phone, it only throws an error and aborts.
[Xperia SP Original Android Development] Scorpion2185:
I did not try that.

Now the phone cannot boot, it ends in recovery.

I copied the recovery.log and also the kernel log.

In the first there is an error:

[...]
parsing languageFile
parsing languageFile done
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Scaling theme width 0.666667x and height 0.666667x, offsets x: 0 y: 0 w: 0 h: 0
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
[...]

Can I fix the phone with TWRP recovery terminal or something?
[Xperia SP Original Android Development] nhicko95:
at page 5-7?
[Xperia SP Original Android Development] Andreus94:
I'm on android screen since 15 minutes. I flashed only the rom but I'm not able to boot it up. Suggestions?
[Xperia SP Original Android Development] Torontus:
Sometimes, you have just to wait a bit. But if takes too long, do a force reboot and try again.
[Xperia SP Original Android Development] Andreus94:
thanks, I tried 2-3 times then I gave up, I'll try in the next days ;)
[Xperia SP Original Android Development] Torontus:
In a worst scenario, do a clean install :good:
[Xperia SP Original Android Development] Andreus94:
It was a clean install ;)
[Xperia SP Original Android Development] Andreus94:
Can I flash the zip without any patch before?

I found the problem, my Data and Cache partitions were f2fs, I don't know if it was really this the problem, but after changing them to ext4 the ROM took less than 5 mins to boot ;)
[Xperia SP Original Android Development] :
Thanks , youre work help my old phone live again .. And break all smartphone coming with android m and n..

Xperia sp its "O" :laugh:

3 day with new update everythink is ok, just some minor bug..

Sometime camera cannot open .. Close and open again its work. Bug file manager when copy file and minimize to home.. When reach 100% .. Notification cannot clean and need click cancel to close that..

My phone c5302 and its not support 4g but its work using 3g connection.. Just minor bug.. Connection sometime lost..

Overall its a great oreo rom for my device and i use for my daily driver.

For next update can u make two step camera button work.. Focus then snap..

And support for gapps, iam not using all google product.. Just need setup account for play game ;)
[Xperia SP Original Android Development] lamtrinhan1503:
I can't access my MicroSD using Solid explorer. Help me pls!
[Xperia SP Original Android Development] Haxk20:
Its probably solid fault and not Oreo fault because other file manager can see sdcard
[Xperia SP Original Android Development] Andreus94:
Great ROM congratz :)

The phone is very fast and smooth!

Is it normal that the 3G/H+ often doesn't appear? even if the data works ;)

I'd like power menu personalization and advanced reboot, but for these things there is time ;)

Only a little problem, the phone seems to heat up a bit too much.
[Xperia SP Original Android Development] nhicko95:
NO
[Xperia SP Original Android Development] Andreus94:
Very detailed ahahah...

anyway I patched with tingle ;)
[Xperia SP Original Android Development] nhicko95:
then it works?
[Xperia SP Original Android Development] Andreus94:
Generally yes, for many apps it's OK.

But there are some problems with notifications and location; push notifications doesn't work for example for fotmob (live scores app), or outlook. And an app that requires GPS doesn't work. I installed another microG zip found in the forum that is more complete but, even if I'm pretty sure all is set well, I have the same problems. But the rom is too fast so atm I'm fine so ;)
[Xperia SP Original Android Development] Torontus:
Good afternoon people.

i have flashed magisk like [MENTION=2233641]AdrianDC[/MENTION] says in is BootBridge post, instalation was fine, latest version, but im facing some lags in UI.

Someone facing the some prob?

Edit.

In the last hour, i deactivated 3 apps to install 3 others of my choice, then I restarted my xsp, and the lag disappear. Don't know why, but ok:svetius:
[Xperia SP Original Android Development] Andreus94:
How can I remove the system notification that says "App is Running in the Background"? is it possible?
[Xperia SP Original Android Development] Torontus:
Where do you see that notification?
[Xperia SP Original Android Development] Andreus94:
I had an app call SystemApp that runs on background. There was a persistent notification "SystemApp is running on background, click to see the battery stats" but even clicking, the notification didn't remove.
[Xperia SP Original Android Development] Torontus:
Well, if go to apps and notifications in settings, chose the app, and you can disable notifications about that app and more.
[Xperia SP Original Android Development] Jadimo:
There was a nice guide on xda main page, here's a link.

But You should probably ask this question in Q&A sections :)
[Xperia SP Original Android Development] Drummer605:
Thanks so much AdrianDC for keeping our SP's up to date, this is the only reason why I still keep it! (also, the lack of money, but still, lol)

I'm currently experiencing 2 issues:

1) Wi-Fi is only connected on first attempt, if I turn it off and then on it is "getting IP address" infinitely. Switch on/off Wi-Fi, airplane mode or the whole phone doesn't help, but what helps is.. rebooting the router. After that it connects again, but if switched off - same thing again.

2) Unable to boot with /data is in f2fs, it says "Encryption failed" and offers to make a Factory reset, but it doesn't help unless you change the /data to ext4

Hope this bugreport helps somehow! Thanks again and looking forward to more stable Oreo ROMs, would be great to see LineageOS-based one :)
[Xperia SP Original Android Development] Haxk20:
well i use Wifi daily and turning wifi off and on doesnt make that bug for me at all so it might be your router thats causing it try to connect another wifi and see if that bug still appear.

also about the second error that is probably android bug itself.

and he will surely release LineageOS 15.0 for our device once Lineage15.0 is officialy released as finished
[Xperia SP Original Android Development] Drummer605:
Yeah, but it worked flawlessly on 7.1.2 just before swtiching to 8.0, so I think it can be ROM-related. Will see if it changes in the next update. Unfortunately I don't have another WiFI around to test it
[Xperia SP Original Android Development] Torontus:
No problems here too with wifi. Do another clean install.
[Xperia SP Original Android Development] ervinakoc x:
Thank you very much for your hard work bro and that you give life and support Xperia SP!

The rom is flawless. There are of course the small sticks but it is ok.

you can re-energize the battery light and battery alerts and when the battery reaches 100% to turn on the light? Also, you can play music with the volume keys, and activate the lens with the power-off key ???

and to do something to install the micro g?

because unofficial gapps are laggy and heavy on the device! Thank you
[Xperia SP Original Android Development] Last_Warrior:
So far no issue everything working.

Does Music app have any customization for equalizer ? seems pretty simplistic app
[Xperia SP Original Android Development] nhicko95:
can i get a copy of your patched framework.jar on new build?
[Xperia SP Original Android Development] Andreus94:
I didn't install the 19 Sept build. To be honest if there aren't so much improvement atm I prefer remain so with a working and fast build.

Do you want my framework. jar from 11-09?
[Xperia SP Original Android Development] nhicko95:
i will attach my framework.jar here can you patch it ?
[Xperia SP Original Android Development] nhicko95:
[MENTION=5662807]Andreus94[/MENTION] here thanks
[Xperia SP Original Android Development] Andreus94:
This is my framework patched from 19-09 build
[Xperia SP Original Android Development] nhicko95:
thanks bro
[Xperia SP Original Android Development] Cyrus.xda:
Hello Mr.Adrian Thanks Again For Your All efforts To Keep This Old Guy Feel Young Again...Words Are Unable To Grateful Of All Your Works...

Everything is Grate in This Beautiful ROM But There's Some Bug I Find And I Don't Know Its Only Me Facing With This Issue Or Others Having This When I Have An Incoming Call

There's Only A Black Screen And I Can't Answer the call the only Way I Can Answer When The Phone is Screen On.

With First Build We Don't Have This issue the only problem is Camera and Bluetooth...

Another Small Bugs Is related to Smart Unlock Trusted Face when I Just Wanna Register My Face keeps Stopping...

By The Way Thank You For Everything...You're Always More Than Imagine More Than Expect You Actually The God's Of Huashan [emoji119][emoji120][emoji108][emoji173]
[Xperia SP Original Android Development] morontashif:
Its giving me an error reading the zip file
[Xperia SP Original Android Development] Torontus:
Try a clean install.
[Xperia SP Original Android Development] Torontus:
The error is.... ?
[Xperia SP Original Android Development] Gshrestha:
Is it only me or anyone else who is facing sometimes severe noise during phone call and also the network goes completely down sometimes as well :confused:
[Xperia SP Original Android Development] superspiro:
How do I use this, I'm having trouble getting microg to work
[Xperia SP Original Android Development] nhicko95:
download that framework.jar replace on your framework folder then flash the microG and google sync zip
[Xperia SP Original Android Development] Andreus94:
has someone problems with the Alarm? Mine rings but the app timer doesn't appear LOL
[Xperia SP Original Android Development] AdrianDC:
Yes AOSP DeskClock is faulty and doesn't follow Oreo standards, the next releases will include the initial fixes for that.
[Xperia SP Original Android Development] Torontus:
Affirmative, mine does nothing at all. Let's just wait for fix :cool:
[Xperia SP Original Android Development] Smankusors:
Dear AdrianDC,

I got the problem, the XSP won't detect my WiFi hotspot. :(

I tried to use the WiFi analyzer, then,

But if I use my other phone, the result should be like this,

My WiFi hotspot is "MBUH gak bondo mz" at the most right. And I'm standing right in front of my WiFi router.

Is this because my WiFi channel? :confused:

Oh yeah, the XSP can also detect "A8" hotspot, but very low signal. :eek:
[Xperia SP Original Android Development] Retro77577:
Nice ROM. It's really smooth....

Any idea how to change the default LED colour ( White )

Thanks 😀
[Xperia SP Original Android Development] Andreus94:
[MENTION=2233641]AdrianDC[/MENTION] hey man! I didn't know the Blue Screen of Death was on Android too LOL

This mornig during the normal use the screen has become elecctric blue and I could not do anything. I was not fast to take a photo of the phone cause then it reboots. But it has been a bit hilarious :D
[Xperia SP Original Android Development] nhicko95:
cause of this is of tapped wire on charging cable
[Xperia SP Original Android Development] Andreus94:
What do you mean "tapped"? I have to change the cable?
[Xperia SP Original Android Development] nhicko95:
something like that negative and positive wire are ib touch
[Xperia SP Original Android Development] Andreus94:
mmm ok...I hope this is not a problem with my phone's micro usb
[Xperia SP Original Android Development] Cyrus.xda:
I'm Really Sorry To Ask And I Know It's Not Related With Your ROM And I Experience This Problem Even With 4.4.4 CM....

My Issue is About Bad Performance In Gaming Not Really Grate 3D Games Like Asphlat...Real Racing Or Injustice 2... I'm Talking About 2D Games Like Candy Crush I Just Notice Really Poor Performance Against The Official 4.3...Everything is Highly Better In Custom ROMS Specially RAM Management But Game Performance Is Poor...I'm Just Asking If Anybody Knowing Something About How To Fix This Issue Or At least Make It To The Official Gaming Performance In Anyway Like Flashing Custom Kernels...Overclocking...Increasing ZRam...

Just Tell Me Or I Have to Installing MultiROM And Having The Official With This Amazing ROM.... Again I Have To Apologize To All Of You Because Asking This.
[Xperia SP Original Android Development] NIKHIL YADAV:
Do not use SD card as adoptable storage, it will bring a significant improvement in gaming. I m currently on Lineage OS, and have played Asphalt Street storm, Ironblade, Real Racing 3, Candy crush and many titles that require significant amount of graphic power. Asphalt 8 is one case that works great but takes HUGE load time, on the contrary Street Storm works smooth.
[Xperia SP Original Android Development] Cyrus.xda:
Men I'm Talking About 2D Games And I Have To Tell You I Experience Lag Even I Don't Installing Too Much Application...

I Already Use SD Card As A Portable Storage Games Like Asphalt Or Real Racing In Some Episode Because The Impact Of RAM Getting Force Closed And How You Can Play This Titles Without Lag Is That Really You Have A Xperia Sp... Meybe My Phone is too much old I having this phone for 4 Years
[Xperia SP Original Android Development] Retro77577:
Is there any app to change notification led colour as its stuck on purple as default now.

Music pulse work fine
[Xperia SP Original Android Development] demen.gratisan:
sir i need rom for smooth multitasking n low ram usage....any suggest??

sorry for my bad eng
[Xperia SP Original Android Development] varioventus:
Oh, that's amazing, cause all of us here are eager to find the ROM with bad multitasking, bad RAM management and worst battery...
[Xperia SP Original Android Development] demen.gratisan:
nice :laugh:
[Xperia SP Original Android Development] AdrianDC:
Upcoming release from September 30th :

- Minor improvement to the DeviceSettings redesign

- AOSP DeskClock alarm handling fixes

- SDCardFS storage support

- Almost finalized clean and new enforced sepolicies (to confirm per device / user)​

If a feature was working on the previous release and not on this one, please detail as much as possible about it, how it was used / found and please share an adb logcat.

Reports without logcat, specific to a user that can't be reproduced, will be not be helpful. PM the logcat if you do not want to post it here.
[Xperia SP Original Android Development] NO PROBLEM:
Hiii. Thanks Brow For Your Hard Works. when file upload in mega ? Im In Waiting dude:cyclops:
[Xperia SP Original Android Development] miladn78:
Hi Mr Adrian

I have a problem with USB tethering and Hotspot , When I share my internet with this options it's works for several minutes and then internet disconnected.
[Xperia SP Original Android Development] Haxk20:
You know it should be good if you also post him logcat since now he cant do anything without it
[Xperia SP Original Android Development] AdrianDC:
At the time you posted that, the September 30th build was not yet uploaded (which it is now).

Therefore your comment can't be related to what I wrote and to the new release with finalized sepolicies.

Please try to stay on topic and related to the post you quote, otherwise it doesn't make much sense to understand issues.

As for USB tethering and hotspot, I'm using them all the time since months on Master & Oreo, it works properly.

I'm even writing this post with USB Tethering used, over today's release.
[Xperia SP Original Android Development] NO PROBLEM:
Hey Mr Adrian DC. in this update camera app is not exist and won't work in other apps. can i fix this isuse from any way or i must wait for next release??? and thank you for your heroic works...