I made this custom ROM project based from Sony Xperia AOSP project. Despite Sony will never release a Pie update for Xperia XZs, Sony still provides some stuffs for building Pie ROMS. However, installing this ROM will never get any kind of benefits similar to its official ROM counterparts. This custom ROM was built with Windows Subsystem For Linux for its very first version. Later version will be built on actual Ubuntu OS later on.
Installing this custom required a device with an unlocked bootloader and here, you will need to perform these guides carefully before doing so. Please note that unlocking the device will voiding the warranty (well who cares? It's a 2-year-old device) and also its DRM key which used for HD content, camera image optimization, 4K recording, etc.
[Official Sony guide on unlocking bootloader]
Download links:
G8231 (version 0.5) - [Google Link]
G8232 (version 0.5) - [Google Link]
TWRP - [Official TWRP Link]
OpenGapps - [Official Link]
Magisk - [Google Link]
Instructions:
STEP 1: Flashing ROM Images:
fastboot erase userdata
fastboot erase cache
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v8_tone.img
fastboot flash recovery twrp-3.3.0-0-kagura.img
STEP 2: Installing Google apps (Magisk required):
1. Disconnect the USB cable from the device.
2. Enter TWRP recovery by pressing Power button + volume down untill Sony logo appeared first instead of warning bootlodader unlocked message.
3. Go to Install and select opengapps zip from memory card or USB OTG and install.
4. Also install Magisk zip as well. You will use this to enable Google apps functionality on custom rom and also root functionalities as well.
5. Reboot the device.
Changelogs:
(version 0.5)
- Fixing warning message appeared every time device switched on. Added latest software binaries from Sony.
(version 0.4)
- Fixing building issues, speeding up device booting.
(version 0.3).
- Adding G8232 ROM variant
( version 0.02):
- Fixing building issues
Bugs:
- [G8231] Device going reboot after shutdown button is pressed. You will need to press power button + volume up until feel the vibration 3 times.
- [G8231] Device reboots when performing file transfer from PC to device's sd card.
- [BOTH ROM] Warning message appears when booting into the device (fixed when installing latest version of software binaries)
- [BOTH ROM] Powering Off while charging will reboot the device but in abnormal state, launcher stops working.
- [BOTH ROM] Pixel Launcher from gapps stops working. Stick it to its default launcher and install other 3rd party launcher.
WARNING!: DO IT AT YOUR OWN RISK. BACKUP ALL OF YOUR DATA FIRST BEFORE DOING SO. YOU WILL NOT BE ENTERTAINED IF YOU ASKED SILLY QUESTIONS WHICH PEOPLE KNOWING THAT YOU DID NOT READ THE INSTRUCTIONS!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sounds good...
Did this rom fit on G8232 ?
akheljava said:
Did this rom fit on G8232 ?
Click to expand...
Click to collapse
Not really as this ROM would only fit on G8231 model. You can try if you wish.
Attempted to build a second one on Xubuntu 18.04 and although no issues like stalling while compiling but turns out my device can't boot after that.
Surprisingly, developing custom rom on Windows Subsystem on Linux only requires 2-3GB of source code while developing it on Ubuntu could slapped it with 30GB of source code!
Volte supported? For Indian users.. What about dual sim still working? Xperia XZs Dual
XtremE16 said:
Volte supported? For Indian users.. What about dual sim still working? Xperia XZs Dual
Click to expand...
Click to collapse
VolLTE support? Not tested because not available on my mobile carrier and this rom only suitable for single sim model. Installing this rom on dual sim model might bricking your device but if you want to try it out by becoming a fearless tester, go on.
I can't just blindly build a custom rom on a device which I don't have and then ended up having a bad reputation because people think I published a broken ROM. I had been made a second build of custom ROM on Xubuntu 18.04 and ended up producing a very broken ROM that can't boot at all, stuck at Sony logo for a very long time.
Okay...rebuilding it again inside WSL with some functions below:
export WITH_DEXPREOPT=false
export DISABLE_DEXPREOPT=true
Enabling these might help to overcome building process from stalling when it comes to dexpreopt the library file.
Also, I'm found the line like this : build/soong/scripts/toc.sh: fork: Invalid argument which happens when setting make -j8 and opening chrome browser in same time with 9-10 tabs, thus the compiler with crash. Turning off cpu-intensive activities including antivirus real-time scanner might help or perhaps just tune it lower at least 2-4 cores.
EDIT: Uh oh...HDD is now full!!! Gotta clear up some spaces and have to disable ccache...
amirzaim said:
I made this custom ROM project based from Sony Xperia AOSP project. Despite Sony will never release a Pie update for Xperia XZs, Sony still provides some stuffs for building Pie ROMS. However, installing this ROM will never get any kind of benefits similar to its official ROM counterparts. This custom ROM was built with Windows Subsystem For Linux for its very first version. Later version will be built on actual Ubuntu OS later on.
Please note that you cannot install any kind of Google apps on this ROM. Please backup all of your data first before doing so. After installing this ROM, please install 3rd party app store like APKPure, Amazon App Store etc in order to download apps. This ROM only suitable for Xperia XZs G8231 model.
Download links:
v0.01 - [Google Link]
Instructions:
fastboot erase userdata
fastboot erase cache
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_v7_tone.img
WARNING!: DO IT AT YOUR OWN RISK. YOU WILL NOT BE ENTERTAINED IF YOU'RE ASKING HERE ON HOW TO UNLOCK BOOTLOADER!
Click to expand...
Click to collapse
Could someone help me in the fastboot part? My computer is not recognizing my device in fastboot mode (and i have all the drivers installed)
Guhl0rd64 said:
Could someone help me in the fastboot part? My computer is not recognizing my device in fastboot mode (and i have all the drivers installed)
Click to expand...
Click to collapse
Did you install xperia drivers provided via sony flashtool package?
UPDATE: Second build is success...just need a time to test it before uploading it...
Later on I will publish on how to build Pie AOSP custom ROM for Xperia devices...
Please anyone upload Sony Xperia XZs 41.3.a.2.192 firmware india... Or Global firmware Sony Xperia XZs dual
XtremE16 said:
Please anyone upload Sony Xperia XZs 41.3.a.2.192 firmware india... Or Global firmware Sony Xperia XZs dual
Click to expand...
Click to collapse
You are going off-topic here. Please go to this site for downloading its flash file here: http://www.flashtool.net/downloads.php
Hi all...
The updated second ROM build is now live. You can try it out but only for device model G8231 for now.
amirzaim said:
Hi all...
The updated second ROM build is now live. You can try it out but only for device model G8231 for now.
Click to expand...
Click to collapse
Thank you for your support.. I'm waiting for Xperia XZs Dual
amirzaim said:
Did you install xperia drivers provided via sony flashtool package?
Click to expand...
Click to collapse
Yes, I installed, all xperia drivers are installed, even the flash mode!!
Guhl0rd64 said:
Yes, I installed, all xperia drivers are installed, even the flash mode!!
Click to expand...
Click to collapse
Installed but not detected? You might need to enable the "Test mode" on Windows 10 if you're using it and perform special boot by disabling the driver digital signature enforcing. Then, reinstall the xperia driver.
ROM UPDATE: Added G8232 ROM variant...
Because I don't have a device of particular model, I need some ROM testers here to check whether the ROM is now able to boot or else.
XtremE16 said:
Thank you for your support.. I'm waiting for Xperia XZs Dual
Click to expand...
Click to collapse
Okay...I'm update the ROM by adding the G8232 variant here. You can try to test it because I don't have that device.
Bug found on G8231 ROM - Restart happens when phone is shut down. This shouldn't happening when the process isn't stalled!...
Right now, you will need to press power button + volume up in a same time until you will feel 3x vibration and then release it.
amirzaim said:
Installed but not detected? You might need to enable the "Test mode" on Windows 10 if you're using it and perform special boot by disabling the driver digital signature enforcing. Then, reinstall the xperia driver.
Click to expand...
Click to collapse
I was able to resolve it, the drivers were installed on the wrong partition, I had to uninstall all of them so that I could install again.
And I was able to install the ROM, it was a great job
---------- Post added at 06:51 PM ---------- Previous post was at 06:49 PM ----------
Just a question, why does initialization take so long?
Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features
- Pure AOSP (Stock Android, just like on the Nexus devices)
- No bloatware
- No extra features, just as clean as possible
Review Video
What's Working
- Display
- Wi-Fi
- Vibration
- Camera Button (Due to some reason the camera app isn't there :\ )
- Adaptive Brightness
- And more...
What Isn't Working
- Notification Light
- Sound
- Camera
- External SD
- Sim
- Rotation
- Bluetooth
- Maybe more...
Downloads
DOWNLOAD HERE
How To Install It
1. Be sure that the bootloader is unlocked!
2. Download the zip from the downloads
3. Download the Google SDK (fastboot, adb and etc)
4. Extract the zip in the same folder as the fastboot.exe (for example like this, C:/SDK/fastboot.exe | C:/SDK/system.img and etc)
5. Hold shift and right click somewhere in the folder (in an empty space)
6. Click open command prompt here...
7. Put the device in fastboot
8. Type "fastboot flash boot boot.img" and hit enter
9. Type "fastboot flash system system.img" and hit enter
10. Type "fastboot flash userdata userdata.img" and hit enter
11. Type "fastboot reboot" and hit enter
12. Enjoy it
Thanks To
Google - For Android
@jeffreyvh - That's me
Sony - For the source of the kernel and for the device
XDA:DevDB Information
AOSP 5.1.1 - E2303, ROM for the Sony Xperia M4 Aqua
Contributors
jeffreyvh
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Unlocked bootloader
Based On: AOSP
Version Information
Status: Testing
Created 2015-09-04
Last Updated 2015-09-16
Reserved
I hope all works.
Later you can also create a Version for the E2333 (M4 Aqua Dual)?
HeliosXenon said:
I hope all works.
Later you can also create a Version for the E2333 (M4 Aqua Dual)?
Click to expand...
Click to collapse
As i already said, requests are welcome... But i can not guarantee that it will work as expected since i dont have the device.
Sent from my E2303 using XDA Forums
Sorry if this question is absurd, but will this kind of ROM come with Overclock? Your webpage suggests something on 'More overclock' so I guess the ROM may come with it. Just curious, sorry >.<
AndyPhoenix9879 said:
Sorry if this question is absurd, but will this kind of ROM come with Overclock? Your webpage suggests something on 'More overclock' so I guess the ROM may come with it. Just curious, sorry >.<
Click to expand...
Click to collapse
As I wrote in the OP, no features will be added. But you can vote the poll of this thread
STATUS of the compilation :
Kernel can't be compiled
I will make a daily status post from now on
Wish me success
Why kernel cannot be compiled?
alby_var said:
Why kernel cannot be compiled?
Click to expand...
Click to collapse
It says,
"No rule to make 'out/target/product/tulip/boot.img' needed by 'out/target/product/tulip/boot.img' "
I build the kernel appart but I mis the needed .dtb file, anyone who can tell me how I can make it?
If not, I will try it myself
Sent from my E2303 using XDA Free mobile app
I not know how to compile..... can you give me the complete name of the .dtb file?
alby_var said:
I not know how to compile..... can you give me the complete name of the .dtb file?
Click to expand...
Click to collapse
Already fixed it, the dtb was in the 32bit out folder. That was not where I expected it to be, but anyways now I can continue with the rom
Sent from my E2303 using XDA Free mobile app
Perfect!!
I need help
The black display is a kernel issue, I have not much experience in kernels.
Anyone, please help me!!!
jeffreyvh said:
Already fixed it, the dtb was in the 32bit out folder. That was not where I expected it to be, but anyways now I can continue with the rom
Sent from my E2303 using XDA Free mobile app
Click to expand...
Click to collapse
Can you upload the dtb, please? I want to try to compile twrp one last time, and the dtb was my problem
Sent from my Xperia M4 Aqua
husam666 said:
Can you upload the dtb, please? I want to try to compile twrp one last time, and the dtb was my problem
Click to expand...
Click to collapse
I extracted the dtbs from the ftf and they are available in my github repo together with the decompiled dts:
https://github.com/zw3n/android_device_sony_tulip/tree/cm-12.1_preComp
zw3n said:
I extracted the dtbs from the ftf and they are available in my github repo together with the decompiled dts:
https://github.com/zw3n/android_device_sony_tulip/tree/cm-12.1_preComp
Click to expand...
Click to collapse
Thanks, I managed to compile successfully, but couldn't boot the image stuck in fastboot mode and when flashing it, got stuck on the sony logo :/
@husam666 Mine passes the Sony logo, but after that... Screen is black but vibration, usb mass storage, adb, and maybe more is still working. Looks like sony isnt yet done with our kernel, is here anyone with kernel experiences? I really need some help, I am good in device tree's but not in kernels... Btw, my device tree completely works! I compiled with success, i tried booting with stock kernel: resulted on Sony boot logo loop... My own kernel: resulted in black screen after sony logo, but as I can see using adb: it boots successful, vibration also works. When i click the power button for 2 secs.
So the screen is the only bug i know so far.
Anyone, please contact me if u think that u can help with the kernel
Kind regards,
Jeffrey
If you have a log, I can try to find something
S7relok said:
If you have a log, I can try to find something
Click to expand...
Click to collapse
As I thought, Sony isn't yet done with our kernel.
I got confirmation on github :
https://github.com/sonyxperiadev/kernel/commit/e06bc517f65d4bb9adfbd18f030f252dd7a27d99
Logcat.log
jeffreyvh said:
@husam666 Mine passes the Sony logo, but after that... Screen is black but vibration, usb mass storage, adb, and maybe more is still working. Looks like sony isnt yet done with our kernel, is here anyone with kernel experiences? I really need some help, I am good in device tree's but not in kernels... Btw, my device tree completely works! I compiled with success, i tried booting with stock kernel: resulted on Sony boot logo loop... My own kernel: resulted in black screen after sony logo, but as I can see using adb: it boots successful, vibration also works. When i click the power button for 2 secs.
So the screen is the only bug i know so far.
Anyone, please contact me if u think that u can help with the kernel
Kind regards,
Jeffrey
Click to expand...
Click to collapse
If it boots that's really good news, I don't know anything about kernels, sorry. Anyway twrp has an adb command line interface, which means we don't need the screen in order to flash zips, atm I'm only interested in flashing supersu in order to root the phone.
So can you upload the kernel, please zImage and DTBs?
Thank you for your work
Sent from my Xperia M4 Aqua
Does your recovery work with stock rom? Can you give me the .img file?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features
- Pure AOSP (Stock Android, just like on the Nexus devices)
- No bloatware
- No extra features, just as clean as possible
What's Working
- Wi-Fi
- Boot
- Screen
- Vibration
What Isn't Working
- Everything else
Downloads
DOWNLOAD HERE
How To Install It
1. Be sure that the bootloader is unlocked and that you are on official firmware : 26.1.A.1.128 (Here is the ftf)!
2. Download the 3 files from the 6.0 release (e.g. "6.0-#1") the files you need are ( boot.img , system.img , userdata.img )
3. Download the Google SDK (fastboot, adb and etc)
4. Extract the zip in the same folder as the fastboot.exe (for example like this, C:/SDK/fastboot.exe | C:/SDK/system.img and etc)
5. Hold shift and right click somewhere in the folder (in an empty space)
6. Click open command prompt here...
7. Put the device in fastboot
8. Type "fastboot flash boot boot.img" and hit enter
9. Type "fastboot flash system system.img" and hit enter
10. Type "fastboot flash userdata userdata.img" and hit enter
11. Type "fastboot reboot" and hit enter
12. Enjoy it
If something went wrong...
Here is how to recover your phone
Thanks To
Google - For Android
@jeffreyvh - That's me
Sony - For the source of the kernel and for the device
XDA:DevDB Information
AOSP 6.0 - E2303, ROM for the Sony Xperia M4 Aqua
Contributors
jeffreyvh
Source Code: http://github.com/AOSPERIA
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Unlocked Bootloader, 26.1.A.1.128
Based On: AOSP
Version Information
Status: Testing
Created 2015-12-15
Last Updated 2015-12-16
Really really thanks for the rom.
Will OTG work on this rom?
Thanks for your hard work as well.
Finally! Thank you for your hard work!!
I hope will be fixed some major things...!
newsony said:
Really really thanks for the rom.
Will OTG work on this rom?
Thanks for your hard work as well.
Click to expand...
Click to collapse
OTG will work
alby_var said:
Finally! Thank you for your hard work!!
I hope will be fixed some major things...!
Click to expand...
Click to collapse
I am working very hard, it's hard to make AOSP when Sony didn't release their vendor blobs
jeffreyvh said:
OTG will work
I am working very hard, it's hard to make AOSP when Sony didn't release their vendor blobs
Click to expand...
Click to collapse
So have you tried it , otg ?
Thanks for the great work.
I will flash and check it out tommorrow.
Thanks for releasing the rom . Would this rom possibly work on other firmwares and variants, and is adb force enabled? I'll test the rom when I get home in 3 hours
ardentis said:
Thanks for releasing the rom . Would this rom possibly work on other firmwares and variants, and is adb force enabled? I'll test the rom when I get home in 3 hours
Click to expand...
Click to collapse
It already boots, so force adb isn't needed anymore. And yes, I think it should work on other variants as well.
report it
Btw, flashing it on an other model isn't really tricky, if it doesn't work you can just unbrick
jeffreyvh said:
It already boots, so force adb isn't needed anymore. And yes, I think it should work on other variants as well.
report it
Btw, flashing it on an other model isn't really tricky, if it doesn't work you can just unbrick
Click to expand...
Click to collapse
Flashing is not the problem, but force enabling adb would be nice if there are problems with setup or touch
Good work as always! I will try it soon
Okay here's my report.
1) WiFi appears to work fine
2) Sound does not work
3) Camera does not work and neither does the camera button
4) Rotation does not work
5) Browser fails to download anything so I cant install apps
6) There is no file manager
7) Everything looks fine so far
Good work! But another thing is that I didnt realize that installing this rom would wipe my data. That would have been nice to know
Now when I go to TWRP to flash a new zip or restore a backup, it says there is no OS installed.
It seems that this isnt an issue anymore but it was weird.
Nope nevermind. Everytime it tries to boot up, I see the same boot screen as I saw with your rom. This is just getting weirder and weirder...
I figured it out Im totally fine. Sorry if I scared anyone during this adventure.
Screenshots
I've added a screenshot now
jeffreyvh said:
Features
- Pure AOSP (Stock Android, just like on the Nexus devices)
- No bloatware
- No extra features, just as clean as possible
What's Working
- Wi-Fi
- Boot
- Screen
- Vibration
What Isn't Working
- Everything else
Downloads
DOWNLOAD HERE
How To Install It
1. Be sure that the bootloader is unlocked and that you are on official firmware : 26.1.A.1.128 (Here is the ftf)!
2. Download the 3 files from the 6.0 release (e.g. "6.0-#1") the files you need are ( boot.img , system.img , userdata.img )
3. Download the Google SDK (fastboot, adb and etc)
4. Extract the zip in the same folder as the fastboot.exe (for example like this, C:/SDK/fastboot.exe | C:/SDK/system.img and etc)
5. Hold shift and right click somewhere in the folder (in an empty space)
6. Click open command prompt here...
7. Put the device in fastboot
8. Type "fastboot flash boot boot.img" and hit enter
9. Type "fastboot flash system system.img" and hit enter
10. Type "fastboot flash userdata userdata.img" and hit enter
11. Type "fastboot reboot" and hit enter
12. Enjoy it
Thanks To
Google - For Android
@jeffreyvh - That's me
Sony - For the source of the kernel and for the device
XDA:DevDB Information
AOSP 6.0 - E2303, ROM for the Sony Xperia M4 Aqua
Contributors
jeffreyvh
Source Code: http://github.com/AOSPERIA
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Unlocked Bootloader, 26.1.A.1.128
Based On: AOSP
Version Information
Status: Testing
Created 2015-12-15
Last Updated 2015-12-16
Click to expand...
Click to collapse
I like that someone is work on a Rom. Not many for this device.
boho555 said:
I like that someone is work on a Rom. Not many for this device.
Click to expand...
Click to collapse
i tried on E2363 (26.1.B.2.129), it boots and then boot loops, it get to Android is starting, optimizing 1 of 64 and boot loops.
is it possible to create a 16Gb userdata.img (i think its 12213813248 bytes), just a request.
RohitBopnna said:
i tried on E2363 (26.1.B.2.129), it boots and then boot loops, it get to Android is starting, optimizing 1 of 64 and boot loops.
is it possible to create a 16Gb userdata.img (i think its 12213813248 bytes), just a request.
Click to expand...
Click to collapse
Hmm, probably the rom won't work on your model.
I can make a 16GB userdata, yeah.
But first let me fix the most bugs (Random reboots, Ril, Bluetooth)
After that I fixed those I will surely make a 16GB userdata.img
A new build should be up in max. 3 hours.
I don't know if I fixed stuff, but I tried it
I will update the op(First post) once my tester tested it.
ardentis said:
Okay here's my report.
1) WiFi appears to work fine
2) Sound does not work
3) Camera does not work and neither does the camera button
4) Rotation does not work
5) Browser fails to download anything so I cant install apps
6) There is no file manager
7) Everything looks fine so far
Good work! But another thing is that I didnt realize that installing this rom would wipe my data. That would have been nice to know
Now when I go to TWRP to flash a new zip or restore a backup, it says there is no OS installed.
It seems that this isnt an issue anymore but it was weird.
Nope nevermind. Everytime it tries to boot up, I see the same boot screen as I saw with your rom. This is just getting weirder and weirder...
I figured it out Im totally fine. Sorry if I scared anyone during this adventure.
Click to expand...
Click to collapse
The problem with the browser is caused by the permissions of Android 6.0
New build
The new build takes quite long, much longer then the previous ones.
But I am afraid that it's up within some hours (Max. 8, I think maybe next hour)
Anyone who wants to help testing,
Message me on Telegram : +31642056201
Message me on Hangouts : [email protected]
or Pm me (I don't like pm because you are not talking the way you do on the others)
Thanks for your support
work on e2333 dual???
Martia.Qa said:
work on e2333 dual???
Click to expand...
Click to collapse
Try it by yourself, it isn't too difficult to unbrick it
jeffreyvh said:
Hmm, probably the rom won't work on your model.
I can make a 16GB userdata, yeah.
But first let me fix the most bugs (Random reboots, Ril, Bluetoot
Click to expand...
Click to collapse
A 16gb userdata.img would be good for the 16gb devices. I'm not exactly sure but I think that the 8gb userdata.img limited my storage but unfortunately I can't fix it in TWRP. Diskinfo lists 16gb but Storage settings list only 8gb. Also do you mind if I text you over SMS and what timezone are you in?
ardentis said:
A 16gb userdata.img would be good for the 16gb devices. I'm not exactly sure but I think that the 8gb userdata.img limited my storage but unfortunately I can't fix it in TWRP. Diskinfo lists 16gb but Storage settings list only 8gb. Also do you mind if I text you over SMS and what timezone are you in?
Click to expand...
Click to collapse
I need to pay for sms, so I'd rather like to use whatsapp or telegram.
Ps, what theme are you using. I'm loving it
Thank to rrvuhpg's awesome root and recovery that allow us to install custom roms on Xperia XA. Hence, i have made a MM ROM which is fully deodexed and ultra slim, hope you will enjoy.
Based on F3115_Customized AU_1302-4361_33.2.A.4.70_R4A, and for F3115 devices only.
You have to unlock your bootloader and flash this rom.
Features:
- Full deodexed & Ultra slim
- Disabled signature verification (Not sure)
- Added AudioRecorder
- Modified Xperia Home
- Modified OEM partition (I moved all google stuff and some other apps here so there is only 20mb left for this partition)
- Updated some apps (e.g: Music, Video, Album, etc.)
Simplified List:
- Video
- AnonymousData
- FaceLock
- Google Apps (except Play Store)
- Input Methods (except English)
- Live Wallpapers
- SonyEntrance
- Some widgets & plugins
- Smallapps (except Touchblock)
- Sony UpdateCenter
- SynHub
- Useless Camera plugins
- Tasks, etc.
Installation:
1. Unlock bootloader and flash boot and recovery by following rrvuhpg's post.
2. Boot into recovery mode
3. Wipe Data, Cache and Dalvik Cache & flash this ROM
4. Flash other packages (e.g.: supersu, drm, xposed) if you want
Download:
- ROM: F3115_MM_33.2.A.4.70_ULTRASLIM.zip
(MD5: 71aef0aa3aa5cbffa8ed31a8a557bb39)
Further Step (Optional):
Because the rom occupies around 1.1 GB in system partition, you can shrink your system partition (to 1.5GB or 2GB, for example) and expand your userdata partition. I did it and i am sure you can heve a try. Here is the tutorial i followed.
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks:
@IgorEisberg for the XperiFirm
@rrvuhpg for the root and recovery
All single sim?? I have F3113
Arturo10211 said:
All single sim?? I have F3113
Click to expand...
Click to collapse
yeah, cause i am using F3115.
Anyone can port it to f3111?
Please make this for F3111 version
This rom can be installed on a f3113
Can it be installed on the F3111 variant?
os not installed after flashing boot.img and recovery.img
since i flash that two .img , the twrp recovery is working fine . i think the boot.img is the problem . i downloaded the exact file for f3115 . i have access now to twrp , can i flash this rom tru twrp to fix this problem ?
ps: when i flash boot.img i have unlimited bootloop
I cant unlock My bootloader. I think IT didnt get the perfekt driver. In device Manager is the yellow triangle.. Someone any ideas?
colonia_1948 said:
I cant unlock My bootloader. I think IT didnt get the perfekt driver. In device Manager is the yellow triangle.. Someone any ideas?
Click to expand...
Click to collapse
Use Linux... You need to put it into fastboot by holding up and power until it vibrates. The screen will then turn white, plug it into your computer (possibly do this first) and type "fastboot devices" to check if it's connected. Then, after you've been on Sony's website to find your unlock code, they'll give you further instructions. "fastboot -i 0x0fce oem unlock [unlock code]" The -i is their vendor code. What's the issue?
good day ,
just wanna confrm :
is there any known issue ?
will ths work in any country ? im from philippines. SE Asia.
thanks a lot. i wanna try
UPDATE:
i actually try it.
i wipe data cache and dalvic
then install. boot about 15mins then stop (hang)
then i force reboot. hangs again.
tried to reinstall 3 more times with no luck.
note:
i didnt do partition cos its too complicated for me. lol
patch for
Sony Xperia XA F3111
R3yN said:
good day ,
just wanna confrm :
is there any known issue ?
will ths work in any country ? im from philippines. SE Asia.
thanks a lot. i wanna try
UPDATE:
i actually try it.
i wipe data cache and dalvic
then install. boot about 15mins then stop (hang)
then i force reboot. hangs again.
tried to reinstall 3 more times with no luck.
note:
i didnt do partition cos its too complicated for me. lol
Click to expand...
Click to collapse
just install then rom followed by su then boot and wait like 30mins
on f3111 It will work ? Or maybe you could do the same for f3111 ?
R3yN said:
good day ,
just wanna confrm :
is there any known issue ?
will ths work in any country ? im from philippines. SE Asia.
thanks a lot. i wanna try
UPDATE:
i actually try it.
i wipe data cache and dalvic
then install. boot about 15mins then stop (hang)
then i force reboot. hangs again.
tried to reinstall 3 more times with no luck.
note:
i didnt do partition cos its too complicated for me. lol
Click to expand...
Click to collapse
I am using an AU device and I can confirm it 100% works. If you are a using an single sim device, i think it should be fine, otherwise pls try to reflash the kernel (only kernel, and you have to download a rom first) with the flashboot, and then flash a right cracked boot.img.
And for dual sim devices, try to reflash kernel with flashboot and then flash the cracked boot.img for dual sim devices.
Does this support F3215? Just taking chances. Thanks
Wonderful ROM! I installed it on my Sony Xperia XA F3111 without any problems. I have root,greenify,xposed and a good lite rom ofc having fun. The battery usage is very good! I use either Viper4Android for sound and it's amazing. New "system UI" updates will be perfect if you continue! Just a big thanks from Me!!
Edit: Flashlight doesn't work when I open it from system UI, From camera is working fine! Cheers!!
bkpaokfc said:
Wonderful ROM! I installed it on my Sony Xperia XA F3111 without any problems. I have root,greenify,xposed and a good lite rom ofc having fun. The battery usage is very good! I use either Viper4Android for sound and it's amazing. New "system UI" updates will be perfect if you continue! Just a big thanks from Me!!
Edit: Flashlight doesn't work when I open it from system UI, From camera is working fine! Cheers!!
Click to expand...
Click to collapse
Any screen shots of this running on f3111?
Here you go
https://prntscr.com/fbae99
https://prntscr.com/fbae1s
I have F3111 even it says it's f3115
bkpaokfc said:
Here you go
https://prntscr.com/fbae99
https://prntscr.com/fbae1s
I have F3111 even it says it's f3115
Click to expand...
Click to collapse
I asked for a screen shot of f3111 and not f3115
Unofficial TWRP 3.1.1-0 Recovery for Xperia M4 Aqua for unlocked bootloaders
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A custom recovery is used for installing custom software on your device. This custom software can include smaller modifications like rooting your device or even replacing the firmware of the device with a completely custom “ROM”
Some features:
Built with the AOSP 3.10 kernel
The latest twrp version
fiops i/o scheduler: don't know if this makes an actual improvement, but I just wanted to add it
Fixed the clock
Really fast and cooler
Notes, current issues:
When entering the recovery, the screen will be black, then flicker but after that it will work flawlessly. This is a mdss bug, but I don't know how to fix this
There is no support for encryption, as I don't use it, and I think neither do you
Though I added 'support' for f2fs, it didn't work the time I tried to format my cache, if you want to test it, use the SkyMelon kernel
Any other issues:
You tell me
How to install:
method 1:
flash it using adb fastboot:
install adb and Xperia m4 Aqua drivers
download the recovery.img and put it in adb folder
1- turn off the phone
2- press volume up and connect the usb cable
3- open cmd and type fastboot flash recovery recovery.img
method 2:
Use Flashify from the Play Store to flash it.
method 3:
flash it using older twrp (that support flashing img files)
Screenshots:
Download link:
Google Drive folder
Special thanks to:
@CodeZero for the initial twrp tree
@Mark.05 for making this thread
GitHub users:
bartcubbins, erikcas, pablomh
XDA:DevDB Information
TWRP recovery for the Xperia M4 Aqua, Tool/Utility for the Sony Xperia M4 Aqua
Contributors
dani020110
Source Code: https://github.com/dani020110/twrp_device_sony_tulip
Version Information
Status: Stable
Created 2017-07-15
Last Updated 2017-07-14
Reserved
Reserved
Not working on My M4 Aqua (E2312). I can flash recovery via fastboot. But when I enter recovery by volume down + power, it is not reach recovery and go to system.
not working in my e2333 , when i enter recovery , it is going to system
99poison said:
Not working on My M4 Aqua (E2312). I can flash recovery via fastboot. But when I enter recovery by volume down + power, it is not reach recovery and go to system.
Click to expand...
Click to collapse
fadyzico said:
not working in my e2333 , when i enter recovery , it is going to system
Click to expand...
Click to collapse
I think I know why your variants don't want to boot, it's because the Image.gz-dtb thingy
I'll try to use the uncompressed one
99poison said:
Not working on My M4 Aqua (E2312). I can flash recovery via fastboot. But when I enter recovery by volume down + power, it is not reach recovery and go to system.
Click to expand...
Click to collapse
fadyzico said:
not working in my e2333 , when i enter recovery , it is going to system
Click to expand...
Click to collapse
I uploaded a fixed one in here or in the google drive link in the op, you have to extract it with 7zip or a similar program
the initial release works perfectly on my e2333
When I enter recovery the touch is not functioning at all
DavidMKD said:
When I enter recovery the touch is not functioning at all
Click to expand...
Click to collapse
Really weird lol
Please tell me your variant and try to grab a dmesg
Doesnt work for my E2303 device. İ cant access recovery mode. Whenever i try phone open normally.
Note: Sorry for my bad english.
Please, what is current status of this recovery, is it safe to flash it?
Aqua E2303, MM modded, SkyMelon
ivy.lally said:
Please, what is current status of this recovery, is it safe to flash it?
Aqua E2303, MM modded, SkyMelon
Click to expand...
Click to collapse
Its Working For Me, You Can Test it...
demirdagli said:
Doesnt work for my E2303 device. İ cant access recovery mode. Whenever i try phone open normally.
Note: Sorry for my bad english.
Click to expand...
Click to collapse
The following works:
http://www.recovery-mode.com/android/sony-xperia-m4-aqua-e2303.html
?
zacharias.maladroit said:
The following works:
http://www.recovery-mode.com/android/sony-xperia-m4-aqua-e2303.html
?
Click to expand...
Click to collapse
On powered off phone:
Volume Up + USB cable enters fastboot
Volume Down + USB cable enters flashmode
Volume Down+Power Button enters recovery
If you ask if the phone has default recovery, it doesn't
Thank you to the author of the project
TWRP Recovery in this version on m4 Aqua E2303 works as it should.
Dear friend or you can help the developers who are working on
This project> https://forum.xda-developers.com/m4...ia-m4-aqua-ss-ds-t3558111/page40#post73418908
I am Yours Author of this TWRP greetings very warmly
From the heart box I send the energy of harmony and well-being
whitewolf1608
works well on E2306. Good work!!
Good Work
Hey,
I'm having some problems with this. I've tried to boot into the bootloader using adb and the button sequence and that doesn't look to be working.
I've tried to flash it using the latest flashify but the file explorer just crashes when trying to select a file.
I've also tried to flash it using TWRP 2.8 but that after rebooting back into recovery it remains on 2.8
I've been trying to do this on a bootloader unlocked and rooted e2303 running stock 5.0, any idea as to what other methods I can try?
Edit: Fixed, took some doing!
Hi, do you know if some twrp 3.1.1 exists for M4 aqua locked bootloader? E2303
I have this device root-ed + twrp2.8 installed but I want to put twrp 3.1.x
I would need some kind of pack as in this thread https://forum.xda-developers.com/m4...-twrp-touch-recovery-bl-locked-t3257430/page1
This kind of file package with install.bat
M4Aqua-lockedTWRP-0.1-installer
https://goo.gl/4iN07G
Tx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A Mobile Version of the Ubuntu Operating System
Ubuntu Touch is made and maintained by the UBports Community. A group of volunteers and passionate people across the world. With Ubuntu Touch we offer a truly unique mobile experience - an alternative to the current most popular operating systems on the market. We believe that everyone is free to use, study, share and improve all software created by the foundation without restrictions. Whenever possible, everything is distributed under free and open source licenses endorsed by the Free Software Foundation, the Open Source Initiative.
For more information check out the UBports website.
Known issues:
Recording video doesn't work
Changing volume in-call doesn't work
Contribute:
As not everything is working fully yet helping hands are welcome!
Follow the project management issue over at the Halium GitHub page:
https://github.com/Halium/projectmanagement/issues/98
Instructions (tested on Ubuntu 18.04):
First make sure to wipe /system & /data from within TWRP. The partitions must be ext4.
Make sure to upgrade your device to the latest stock Android 8.0 before continuing: https://developer.sony.com/develop/open-devices/get-started/flash-tool/
Download and install the UBports installer: https://github.com/ubports/ubports-installer/releases
OEM unlock your device: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
Boot your device into fastboot mode by shutting it down and keeping the Volume Up button pressed while plugging in a USB cable between your phone and PC. The LED should be on and blue.
Flash the OEM binaries from: https://developer.sony.com/file/download/software-binaries-for-aosp-nougat-android-7-1-kernel-4-4-loire/ using:
Code:
fastboot flash oem SW_binaries_for_Xperia_AOSP_N_MR1_5.7_r1_v08_loire.img
Run the UBports installer and follow the on-screen instructions
Reserved for future use
wtf bro i never expected to see ubuntu touch on any device again great news and good work! keep it up!
Too bad my device broke......gotta fix fast lol
I've updated download links and the instructions to enable call functionality. Testers welcome!
Ready for tests! Just need to install Ubuntu with current manual
Have I need to flash stock rom with android 7 or just flash binaries on stock android 8?
New tests to be done, we've recently gotten video decoding to work and I enabled basic camera support.
OP has been updated with the link to the newest images.
Feel free to post issues here if you are not feeling well with GitHub.
Regarding stock ROM or not:
Any system image should work, you can even wipe system as it's not used.
As long as the ODM partition is flashed everything should be good.
I'm trying this for the 2nd time and both times I can't get any audio in calls. I ran the commands in the first post. Any tips on what else to try? I'd really like to try this, test some more and help out, but it's the only phone I've got right now.
samijam said:
I'm trying this for the 2nd time and both times I can't get any audio in calls. I ran the commands in the first post. Any tips on what else to try? I'd really like to try this, test some more and help out, but it's the only phone I've got right now.
Click to expand...
Click to collapse
Did you run the commands through ssh or via the Terminal app? Mind doing a "select all" and copy-paste the output to some paste service?
EDIT: Also, did you reboot after issuing the commands?
Thanks for the work on this.
I need a little bit more explanation on how to install this. I gave it a try, but I end up in getting a white boot screen with the sony logo. Installing SailfishOS with the flash.sh script works perfectly.
Questions:
- When do you need to use twrp? When running adb?
- Running the halium install script only works when booted into twrp. Is this correct?
- Do you need to manually boot into fastboot mode (volume up, blue led)?
- The sailfish installation uses oem for android 6, here 7 is used. Can this make the difference?
Thanks for any support.
beidl said:
Did you run the commands through ssh or via the Terminal app? Mind doing a "select all" and copy-paste the output to some paste service?
EDIT: Also, did you reboot after issuing the commands?
Click to expand...
Click to collapse
Sorry for the late reply. I got it to work now. My problem was using an outdated system.img and boot.img. (oops, sorry, my bad!) I had downloaded the newer versions, but had them in the wrong directory. Once I deleted the old and installed the correct versions, I was able to get audio in calls and had the basic camera functionality.
---------- Post added at 16:43 ---------- Previous post was at 16:37 ----------
matiz098 said:
Thanks for the work on this.
I need a little bit more explanation on how to install this. I gave it a try, but I end up in getting a white boot screen with the sony logo. Installing SailfishOS with the flash.sh script works perfectly.
Questions:
- When do you need to use twrp? When running adb?
- Running the halium install script only works when booted into twrp. Is this correct?
- Do you need to manually boot into fastboot mode (volume up, blue led)?
- The sailfish installation uses oem for android 6, here 7 is used. Can this make the difference?
Thanks for any support.
Click to expand...
Click to collapse
boot into fastboot and flash the oem:
fastboot flash oem SW_binaries_for_Xperia_AOSP_N_MR1_5.7_r1_v08_loire.img
then boot into twrp recovery and wipe /system and /data
while in twrp, run the halium-install.sh script (because the computer needs to connect to phone in adb mode, which twrp provides)
following from there, as you see in the first post, you will run "adb reboot bootloader" (but I think I did have to do it manually) which should put you back into fastboot mode where you'll "fastboot flash boot halium-boot.img"
then you should be able to reboot into ubuntu. The first boot takes a little longer.
Are there any screenshots available?
Fajormein said:
Are there any screenshots available?
Click to expand...
Click to collapse
No but you can find some videos on YouTube, just search for "Ubuntu Touch 2019".
The videos might feature different phones but it's the same on the Xperia X.
Is there any way to install it using a windows pc?
Fardin Rehman said:
Is there any way to install it using a windows pc?
Click to expand...
Click to collapse
Not currently.
please make a porting for kugo (x compact) sir
rizky_zulfikar said:
please make a porting for kugo (x compact) sir
Click to expand...
Click to collapse
Someone else is working on that already, but this port is only for the Xperia X (F5121).
In other news:
Installation instructions have been updated, the Xperia X port is now available from the UBports community channel!
Can you make port for XA 2 (H3113)
As I get the question very often: To support the F5122 variant of the Xperia X (or other devices in general) for Ubuntu Touch I need donations to buy the device.
Use the "Donate To Me" button on XDA or head over to https://fredl.me/donate/ for info on how to do so.
In other news: The Xperia X F5121 has gained support for the official UBports installer. You can now flash the device using a fancy GUI.
I hit 2 problems. For some reason neither Emma nor flashtool wants to flash stock rom correctly. Tried to flash ubuntu through stock 8.0 custom rom, phone reboots and black screen. Also there is was an error with something that the file couldn't be sent to the phone
Click to expand...
Click to collapse
Ok, so I did install the stock rom through EMMA fine. I did enable the usb debugging, installed twrp, wiped system & data, made sure they are EXT4. Rebooted to fastboot, installed SW binaries. Opened UBports Installer & proceeded with instructions. I got this error
Code:
Error: systemimage: Error: Error: {"error":{"killed":false,"code":1,"signal":null,"cmd":"C:\\Users\\domin\\AppData\\Local\\Temp\\1Uo4H80AYPnCivmpnC8M9LLWxLb\\resources\\app.asar.unpacked\\platform-tools\\win\\adb -P 5037 shell mount -a"},"stdout":"","stderr":"mount: mounting /dev/block/bootdevice/by-name/userdata on /data failed: Invalid argument"}
Any solutions, did I miss something? I gonna retry without the twrp step, as I am pretty sure the partition format will be EXT4