yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] calin_cia:
[MENTION=6754437]millosr[/MENTION] Thank you for this ROM, it's definitely very good work! I've installed it on a freshly unlocked phone and it works much better than the stock rom.

I've recently run into an issue where the phone shuts down. It's only happened once, but it seems like it might be worth looking at (quote from tombstone):

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Sony/aosp_nozomi/nozomi:8.1.0/OPM7.181205.001/milos12102354:userdebug/test-keys'
Revision: '0'
ABI: 'arm'
pid: 254, tid: 254, name: suntrold >>> /system/bin/suntrold <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/suntrold": cannot locate symbol "MD5_Init" referenced by "/system/bin/suntrold"...'

Indeed, if I try to run the binary myself from adb I get a similar message:

1|nozomi:/ # /system/bin/suntrold
WARNING: linker: "/system/bin/suntrold" has text relocations (https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23)
CANNOT LINK EXECUTABLE "/system/bin/suntrold": cannot locate symbol "MD5_Init" referenced by "/system/bin/suntrold"...
Aborted
134|nozomi:/ #

Hope this can be of some use!

Edit: I was able to seemingly solve this problem. I've created a pull request detailing what was going on and how I solved it here: https://github.com/millosr/vendor_sony_nozomi/pull/1 . (sorry for the lack of hyperlink, my account is too new :D ).

Cheers!
[Sony Xperia S, Acro S, Ion] nageswarswain:
Editing my post again:

Yes The ROM has to flash by the twrp mentioned by millosr.

My post of using the above linked twrp is partially correct to only solve the sdcard not mounted issue.Now I have tried to flash the b05 with my above said twrp but faced the error 7.so I have flashed the twrp 3.2.3 again and flashed the ROM.

Conclusion: Better to use twrp 3.2.3.Sdcard mount issue is not the real problem as you can browse all the files on data-media
[Sony Xperia S, Acro S, Ion] nageswarswain:
[MENTION=6754437]millosr[/MENTION] is this prerooted??Sorry yes it is rooted.

sometimes WiFi stopped working and the solution is for me to reboot.
[Sony Xperia S, Acro S, Ion] noMercy1337:
[MENTION=6754437]millosr[/MENTION] [MENTION=5709791]nageswarswain[/MENTION] - What's up, guys? I am trying to do clean install with proper ROM and your custom TWRP but I am still getting that goddamn ERROR : 7

RECOVERY.LOG @ PASTEBIN

If you have ERROR : 7 - make sure you aren't retarded as much as me and put SYSTEM PARTITION TO EXT4. Cheers :D
[Sony Xperia S, Acro S, Ion] nageswarswain:
Nice to see you after a long friend.Please say clearly...have you tried with both the recoveries?what is the outcome.
[Sony Xperia S, Acro S, Ion] noMercy1337:
Good to see you too! As i said, the problem is solved. I formatted /system partition to F2FS - that was the problem. After I switched back to EXT4, everything is working okay right now.

TL : DR - PROBLEM SOLVED :D

[MENTION=5709791]nageswarswain[/MENTION] Once again. It's solved! :D That's why i crossed the lines with text.

ROM IS WORKING OKAY.
[Sony Xperia S, Acro S, Ion] nageswarswain:
But I was on ext4 before hand...but you need the twrp said by millosr to flash the b05 and that twrp is showing sdcard not mounted error..you are on which twrp??can you back up your ROM??
[Sony Xperia S, Acro S, Ion] noMercy1337:
Well. I haven't thoroughly tested that ROM yet, but the battery drain is real deal (It's worse than 7.1.2). I have only one app installed atm and that is Messenger :D I understand that the battery state is not good (after all these years I had that 20% -> 1% thing too), but this is much worse.

Any idea?
[Sony Xperia S, Acro S, Ion] nageswarswain:
Happy new year friends.
[Sony Xperia S, Acro S, Ion] Darth Inferno:
Happy new year friends ! and made the force be with you ;)
[Sony Xperia S, Acro S, Ion] yuezhengbaizhi:
Happy New year! Wish for world peace!
[Sony Xperia S, Acro S, Ion] rasoooli:
Can i Use this rom On LT26ii_Xperia_ SL ???
[Sony Xperia S, Acro S, Ion] Darth Inferno:
Yes bro!
[Sony Xperia S, Acro S, Ion] Darth Inferno:
Hi friends, Well after of a lot of procedure i recovered the complete functionality of my battery, I just did a electric method, if we remember when the battery show 20% or 15% in some cases, the battery quickly show 1% and the cellphone turn off, well on my side when that happened and connected the battery charger, the battery showed the level it had before showing 1% the same thing happened when the cellphone went off by waiting a few minutes and turning it on again showed the level of charge again before 1%

this was what I did, when the cell phone was turn off after showing 1% when it reached 15% and in some cases 20% wait a few minutes and turn it on again wait until it goes off again and turn it on again until I really got to 1% when connecting the battery charger showed 1% fully charged to 100% returned to download it completely and returned it to 100% and voila resolved problem no longer jumps from 15% to 1% with a very good duration of charge

technically talking in some cases the rom does not recognize the battery stat so you have to calibrate it manually please do not use the apps to calibrate the battery these for some reason they worsen the problem in my case I lost 20% charge see the screenshot
[Sony Xperia S, Acro S, Ion] Maverick Jester:
Hello [MENTION=6754437]millosr[/MENTION]

Thank you for continuing this ROM. I have a few questions related to it:

Is this preconfigured with the Low-RAM Property Patcher for Android set to true, or would I need to manually enable it? If I do this, are there any downsides?

Would I be able to install the latest Magisk onto this ROM?

Do you ever plan on trying to build Pie Go Edition for this device? Or would this question be better posed to [MENTION=2233641]AdrianDC[/MENTION]?

Thanks again, your work as managed to keep my seven-year-old device relevant for my testing needs.
[Sony Xperia S, Acro S, Ion] mirhl:
1. Yes, oreo has been built with Go config since day one.

2. I fear we might be missing this patch.

3. Adrian is already super busy with the devices he own. When he'll get blue up to something, maybe the also time-lacking Milos might benefit.
[Sony Xperia S, Acro S, Ion] Maverick Jester:
Thanks for the feedback. Question #3 was more a question on what either dev wanted to eventually do, not necessarily a request to do it.

Regarding the patch, is this the one for kernel namespace mount requirement that may be missing? It appears to only affect MagiskHide, which thankfully is not something I need on this device.
[Sony Xperia S, Acro S, Ion] Maverick Jester:
Hello again,

Does anyone know why TWRP keeps saying it's unable to mount /sdcard? My understanding is that /sdcard should be merged into /data?

Also, does anyone have the default partition layout for this device?
[Sony Xperia S, Acro S, Ion] Darth Inferno:
Hi friends [MENTION=6754437]millosr[/MENTION] any news there? :confused:
[Sony Xperia S, Acro S, Ion] Vandal Valo:
I've compiled a 3.4.0 oreo kernel (zImage) with a HID patch (pelya android-keyboard-gadget) but now I'm having a hard time assembling a boot.img.

I've tried a few methods following guides I had found on the web but my boot.img wouldn't boot even with an unmodified kernel from [MENTION=6754437]millosr[/MENTION].

Does anybody have a working setup for assembling a boot.img for Nozomi (LT26i)? Something like this, but with the right addresses and cmdline:

./mkqcdtbootimg --kernel $(KERNEL_SRC_PATH)/arch/arm/boot/zImage --ramdisk ramdisk.cpio.gz --base 0x00000000 --ramdisk_offset 0x02000000 --tags_offset 0x01E00000 --pagesize 2048 --cmdline "androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y" --dt_dir $(KERNEL_SRC_PATH)/arch/arm/boot/ --dt_version 2 -o boot.img
[Sony Xperia S, Acro S, Ion] jgilalonso666:
I hope [MENTION=6754437]millosr[/MENTION] can help you.
[Sony Xperia S, Acro S, Ion] Vandal Valo:
I've found a solution and now I have a working boot.img with a custom kernel (I'm yet to test the added HID USB keyboard emulation).

The guide I followed. But there is a trick! The [Pack ELF] command for Xperia S from the guide didn't work for me.

It appeared that the address for ramdisk was either wrong or obsolete, so, after an extensive search I found the working address in [MENTION=6754437]millosr[/MENTION] Git repo (device_sony_nozomi/BoardConfig.mk)

BOARD_KERNEL_ADDR	:= 0x40208000
BOARD_RAMDISK_ADDR	:= 0x41500000
BOARD_RPM_ADDR	:= 0x20000

The working command for repacking a boot.img for Xperia S looks like:

python mkelf.py -o new_kernel.elf 0@0x40208000 1@0x41500000,ramdisk 2@0x20000,rpm

I think I'll have to write a new guide if my modifications are working. Can I post it here or it'll be better to create a new thread? (I'm sorry, I'm new here:silly:)

Thanks to devs who worked on the source code (it compiles like a charm):

[MENTION=6754437]millosr[/MENTION]

[MENTION=6043081]mickybart[/MENTION]
[Sony Xperia S, Acro S, Ion] jgilalonso666:
Hi [MENTION=9718985]Vandal Valo[/MENTION], If you want build a new ROM with your boot.img is better create a new thread.

Regards
[Sony Xperia S, Acro S, Ion] Savke555:
What about HDMI? Or will it ever work since it didnt work on MM and LP?
[Sony Xperia S, Acro S, Ion] Seemanthinis:
What are you taking about, it worked well for me while on MM. Didnt bother to check while on Nougat and oreo though.
[Sony Xperia S, Acro S, Ion] rasoooli:
Thanks for you're work and great rom
[Sony Xperia S, Acro S, Ion] adithya46:
When i flashed both rom and gapps together it stuck on bootloop.....waited for more than 45 minutes..when i do it seperately..the phone booted fine but it shows play service stopped working... i tried 8.1 arm both nano and pico gapps...but still play services error
[Sony Xperia S, Acro S, Ion] badcodelab:
hi folks,

at first thanks for your great work to everyone who extends life for these devices

i have xperia s successfully flashed to 8.1 rom, everything worked fine

unfortunately by negligence i've let my phone to discharge the battery to death

when i connect it to charger after a few seconds it starts boot normally but cannot complete it - can see jumping dots for a minute after that it dies and turns on red led

any suggestions? will it help if i extract the battery and try to charge it directly?
[Sony Xperia S, Acro S, Ion] samuel9psh:
Thanks a lot [MENTION=6754437]millosr[/MENTION]

Would you teach me how to disable auto boot when charger connected ? I want display the battery charging icon and system not startup.
[Sony Xperia S, Acro S, Ion] Kornspeicher:
when the device starts, spam the vol+ button to boot to recovery - and let it charge in recovery. Booting to recovery worked for me when i had the same issue.
[Sony Xperia S, Acro S, Ion] badcodelab:
Genius! Thank you so much! You saved my day!
[Sony Xperia S, Acro S, Ion] millosr:
nAOSP-8.1 b06 released

List of changes:

android-8.1.0_r62 (March 2019 security patches)

Setup Wizard re-enabled

I succeeded to fix force closes during Setup Wizard, so I have enabled it again.

When clean flashing nAOSP and OpenGapps micro first boot takes around 15-20 minutes, and setup wizard process takes 5-10 minutes.

I've tried to optimize battery usage but I haven't succeeded. For me when device is idle around 4% per hour is drained. After clean install without gapps around idle usage is 1%/h and after clean install with gapps and nothing else usage is around 2.5% per hour.

P.S. Sorry for not answering emails. I was busy lately, so I didn't followed xda forum. I'm glad others answered. Thanks.
[Sony Xperia S, Acro S, Ion] Maverick Jester:
[MENTION=6754437]millosr[/MENTION] have you been able to successfully install Magisk onto your device? Even using BootBridge doesn't work for me...
[Sony Xperia S, Acro S, Ion] millosr:
I haven't. Adrian's boot bridge doesn't work on Xperia S. I have compile it to work on Xperia S, but didn't succeed to install Magisk.

Anyway there is integrated superuser in the rom so I didn't want to spend to much time on Magisk.
[Sony Xperia S, Acro S, Ion] Maverick Jester:
Thanks for the feedback. It's unfortunate, as there are a few modules I'd like to install (such as GMS Doze and Swift Installer), but I understand.
[Sony Xperia S, Acro S, Ion] h15.niazmand:
hi dear friends

after installing last release of acro s new rom that is created by mr millosr many times when the phone battery level reach to about 37% suddenly phone shutdown it self and i can not restart it by power button again , in b05 version (older than b06) this level was about 13% and now is more .

do you have this problem the same as me ?

would you have a test with your phone and inform me where is the problem , battery or new rom ?

thanks
[Sony Xperia S, Acro S, Ion] AreYouLoco?:
Dev: I also had the same battery issues and now it's completely dead and it's not charging any more. Too bad ;(

But I suspect that it might be due to using of a charger that supports fast charge and Android 8.1 is telling the charger to charge faster but the battery can not handle it. This is old phone and it simply doesn't support fast-charge so it should be somehow force disabled in the system to prevent battery failures (and charge slower). I am going to buy a new battery (since it's quite cheap) and charge it at max 2A and see how battery life is doing then.

And to the others: could you please check the amperage of your charger if it's above 2A and/or if it supports for e.g. Qualcomm Quick Charge?
[Sony Xperia S, Acro S, Ion] Kyuunex:
Hi, great work!

Here are some issues I have noticed:

-Videos fail to play when attempting to open them from the gallery app. They open fine through the Files app

-If I use FM radio, then unplug headphones, wait for it say to plug them again, then plug them and attempt to play, the radio app crashes, and it will pop up and say "bluetooth has stopped". attempting to open FM radio app after that will make it crash. If I do it few times, the FM radio works fine again. (maybe the modem crashes, and then boots up again, idk)

This is on hikari.
[Sony Xperia S, Acro S, Ion] millosr:
For me battery is working fine, see screenshot. I can get 2 days on standby. Your battery is probably worn out. You can try to calibrate your battery.

I will look at video playing issue.

FM radio and bluetooth are on the same chip, so they share the same HAL and that's why you get "Bluetooth has stopped" messages.

For FM radio headphones have to be plugged in order to work fine, so plugging them out while radio is working is not recommended ;).

This bluetooth crash is a bug, but it's not easy to fix, I tried it before and didn't succeed.

Do you have bluetooth turned on or off while this is happening?
[Sony Xperia S, Acro S, Ion] Kyuunex:
off
[Sony Xperia S, Acro S, Ion] K9100ii:
Anyone else got issues with flac audio file playback, where audio skips or doesn’t play at all on certain music players? MP3 files work fine.
[Sony Xperia S, Acro S, Ion] Kyuunex:
btw, one more problem on hikari

answering a call is next to impossible. it implies that i have to swipe up to answer or down to ignore. while swiping does do the animation, it does not actually answer the call. does not matter how fast i swipe up or how far. maybe my sensor has seen better days. i don't know.

anyone else had this issue?

only way i am able to consistently answer a call is to plug in the headset and use the headset button
[Sony Xperia S, Acro S, Ion] K9100ii:
No issues here with answering calls

Answering calls worked fine for me.
[Sony Xperia S, Acro S, Ion] bahramij:
Hi Dear [MENTION=6754437]millosr[/MENTION]

I install the last release of acro s new rom b06 it work very well but Videos & Music fail to play when attempting to open them from the gallery or music app when that files are in SD card and They open fine through the Files app. while not problem from internal storage.

Thanks for the answer
[Sony Xperia S, Acro S, Ion] moe18:
Hi, im coming from 7.1 build i think is beta 1 or 2. And after flashing 8.1b06 i hot bootloop tried clean flashing wihout gapps and still hot bootloop. Andy idea or recoemndations?

Edit: manage to solve issue by flashing 8.1b02 first then b06.

Thanks for keeping xperia s alive
[Sony Xperia S, Acro S, Ion] millosr:
I broke FLAC playback in b06. I will fix it in the next build.

I didn't have issues with answering calls. Is your touch screen fully functional? You may try to install Google Phone apk.

I don't have Acro S, and S doesn't have SD slot, so I can't test this. I tried with OTG, but gallery and music apps don't show files from USB.

Can you, please, send logcat logs?

I didn't have bootloop issues, but I will test it again.
[Sony Xperia S, Acro S, Ion] bahramij:
I meant micro SD.

This happens when I format micro SDs as external storage and put music and video files on it. Themusic and gallery app detect them but can not play.
[Sony Xperia S, Acro S, Ion] K9100ii:
Thanks, I’ll wait for a new build.

There is no such thing as a Micro SD slot in either the Xperia S or Arco S. All we have is USB-OTG.
[Sony Xperia S, Acro S, Ion] bahramij:
Please see this picture
[Sony Xperia S, Acro S, Ion] K9100ii:
Hmm, looks like it does have one. Have you tried another gallery and music app?

By the way, I also have issues with the Gallery app, but different ones. After tapping on one video or image, when I go back to the gallery, every thumbnail for every video and photo goes to a solid white thumbnail. This is on the internal emulated storage.
[Sony Xperia S, Acro S, Ion] bahramij:
Yes, I used the Xperia Album V8.4.A.0.12 and Music Player V9.3.10.A.0.7 They can not play, but the MX Player can play.
[Sony Xperia S, Acro S, Ion] ashrafonlinenow:
Yes ,i have this issues on my acro s, some files like PDF and music can't open from SD card:confused:

i just move my files to internal storage for now :eek:
[Sony Xperia S, Acro S, Ion] mirhl:
Ssoo... I was wondering, how much is your android-msm-sony-fuji-3.4-oreo branch different from AdrianDC's lineage-16.0 one?

Aside maybe of never having abandoned the OG 3.4.

It would be cool to have a singular common supraplatform.
[Sony Xperia S, Acro S, Ion] millosr:
They differ a lot (7143 + 30490 different commits):

$ git merge-base millosr/android-msm-sony-fuji-3.4-oreo blue/lineage-16.0

23016defd7db701a01dc49f972ad6b1bae9651c2

$ git log --pretty=oneline 23016defd7db701a01dc49f972ad6b1bae9651c2..millosr/android-msm-sony-fuji-3.4-oreo | wc -l

7143

$ git log --pretty=oneline 23016defd7db701a01dc49f972ad6b1bae9651c2..blue/lineage-16.0 | wc -l

30490

It would be possible to use blue/lineage-16.0 as base and add nozomi/hikari related commits, change vendor and device trees to support that.

That would be to much work and I don't have time to do that. If someone else wants to try, I could help.

(blue = https://github.com/AdrianDC/android_kernel_sony_msm8x60 )

Cheers :)
[Sony Xperia S, Acro S, Ion] millosr:
nAOSP-8.1 b07 released

List of changes:

android-8.1.0_r63 (April 2019 security patches)

fixed flac playback

Flac playback was broken in b06 when I tried to fix Force Closes in Setup Wizard. I've improved the fix so both things work now. BTW, this also fixes other occasional Google Play Services FCs.

I've tried clean install and it works fine. It takes 4 minutes to boot without gapps, and 8 minutes with OpenGapps micro. Another 8-10 minutes is needed to go through setup wizard.

I have my partition formatted as ext4 because I had occasional errors with f2fs.
[Sony Xperia S, Acro S, Ion] bahramij:
thank you very much.

Just a question I have to change my partition to ext4 or f2fs can work without error.
[Sony Xperia S, Acro S, Ion] millosr:
You can continue to use f2fs. Those errors were very rare, and non critical. They couldn't cause loss of data. I was just having some difficulties with the backup/restore in twrp.

If everything works fine for you, there is no need to change partition type.
[Sony Xperia S, Acro S, Ion] bahramij:
i dirty install b07 and everything works fine.
[Sony Xperia S, Acro S, Ion] h15.niazmand:
hi dear millosr

special thank for you to make this new build for us ,

i want to confirm these test by our friend to show me, it is about my phone or all have these small bugs .

please take these test :

1- use your phone to reach the level of battery to about 15% then check that when the phone goes to lower level of battery then phone will shutdown itself suddenly or work till 1% .

2- try to use radio and search station four or five times , in my phone radio will crash and show blue tooth error .

3- some times blue tooth function crashed and show me error massage specially when i turn the radio on or off two times

4- after you shot down and restart the phone (for clear cash) if some one call to you (exactly call to you) your radio sound after that is with noise and glitch (when the screen is off) after display off time , only way to solve is restarting the phone and another problem is that you can not answer the input call by swiping the green button easily and should try 2 or 3 times , ( is there any way to calibrate the touch screen ) or solve this bug ?

thanks
[Sony Xperia S, Acro S, Ion] K9100ii:
Hi, this new build works perfectly, and flac playback works properly now. Thanks.
[Sony Xperia S, Acro S, Ion] Airgio:
This rom Is AWESOME, but what about the camera in this rom? Which Is the best to use?
[Sony Xperia S, Acro S, Ion] K9100ii:
Just today, I also had issues with backup/restore in TWRP on F2FS. Switching to EXT4 fixes the issues.
[Sony Xperia S, Acro S, Ion] jurkoman:
F2FS olny on cache partition

Hello, if you format EXT4 cache partition to F2FS, no issues appear.

Cache partition will be faster and more efficient than EXT4.
[Sony Xperia S, Acro S, Ion] K9100ii:
Yes, I have kept the cache partition formatted to F2FS, and it still does help vs having it formatted to EXT4. I really would like the data partition to work with F2FS properly without any errors though. Also, F2FS issues have been here for a while on the nAOSProm kernels, it seems.
[Sony Xperia S, Acro S, Ion] flyingbee:
Wechat app can not sign in , it will go back to sign in page after click login button.
[Sony Xperia S, Acro S, Ion] millosr:
nAOSP-8.1 b08 released

List of changes:

android-8.1.0_r65 (June 2019 security patches)

fixed Bluetooth/FM Radio crashes

With android 8.1 bluetooth stack, bluetooth stops responding to HCI commands in one moment which causes crash after 2 seconds - on hci command timeout.

I've tried to debug that to find differences between data send to/receved from bluetooth in nougat and oreo and I couldn't find anything.

I've also tried to use some bt related projects from nAOSP-7 and some from nAOSP-8, but unsuccesfully.

At the end I reverted everything bluetooth related to nAOSP-7.1.2 state, threw out bluetooth hidl and vts tests and that worked :).

I than reapplied bluetooth devices battery percentage commits, so I succed to keep that functionality.

Now everything seems to work fine for me. Both bluetooth and FM Radio don't crash any more. I was able to listen FM Radio on bluetooth headset. That is a little bit tricky - you need to plug in wired earphones, start FM radio, and than to connect BT earphones.

Cheers :)
[Sony Xperia S, Acro S, Ion] Darth Inferno:
Excellent, downloading :good:
[Sony Xperia S, Acro S, Ion] Airgio:
Hi thanks for the update, but with this rom i get error 7 in twrp and i can't install the rom, how can i solve?
[Sony Xperia S, Acro S, Ion] millosr:
Have you installed the latest twrp and merged partitions?

Can you send twrp screenshot?
[Sony Xperia S, Acro S, Ion] Angel Hyerald:
I had the same problem: (error 7: This package is for "nozomi" devices; this is a "" ), to solve just unzip rom, go to META-INF/com/google/android/ , open updater-script with notepad, change from: getprop("ro.product.device") == "nozomi" to getprop("ro.product.device") == "" , zip all again. and happy flash. :good:

Thanks millosr, excelent rom

PD: Why this happens and how to return the ID?
[Sony Xperia S, Acro S, Ion] millosr:
Probably becase of older twrp version. With the latest twrp that shouldn't happen.