yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] vinay:
Open

sound/soc/msm/qdsp6v2/q6asm.c

Edit with text editer

And find

#include <sforce.h>

(muse be in 41th line)

And replace it with

#include "sforce.h"
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Awesome! thanks! it went pass that error this time, but a new one came! :eek: This time with sforce.c and well, I followed what you did, find the line and edit #include <sforce.h> to #include "sforce.h". Thanks so much, hopefully this time the compilation will complete:fingers-crossed::fingers-crossed:. I'll report back. Once again, thanks soooo much :victory:

EDIT: It went smoothly this time! It totally went pass those errors!! :victory: Thanks so much!

EDIT: Success!:highfive::victory::victory::victory::victory:
[Sony Xperia M4 Aqua] dani020110:
Hmm, I've never gotten that error

And I've successfully compiled a twrp recovery from omnirom sources

Please try it and report what do you get (obviously unlocked bootloader):

fastboot flash recovery recovery.img

https://mega.nz/#!QtxgXAjD!O7PWrg-xgJCqYcUj4zYxE3CraJwwunuGN_wQQew6tVo

md5sum: 26aa50d8ad697cb3f17a2f954343b882
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Okay, sorry but I'm totally lost now. What am I supposed to do with the Image? :eek: How do I get a boot.img? Sorry
[Sony Xperia M4 Aqua] dani020110:
You have missed this part:
[Sony Xperia M4 Aqua] diyar95:
It's better to work as a group not each developer build his rom Tony and same other developers has already created kernel and Bootable rom, i suggest to all of you to work on one project :)
[Sony Xperia M4 Aqua] dani020110:
I'm working with his sources; because yes is the only way actually to get a rom booting

So I'm working on omnirom, because I think cm13 is pretty buggy compared to aosp, but now I'm getting a lot of issues with the compilation itself, but I think anyone is welcomed if it wants to work with me; my sources are on my github ;)

And also I'm working in resurrection remix but it is my second priority :p
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I'm so sorry to ask so much question, but I just realised there's a step 8. I do not quite understand where am I suppose to get a ramdisk.img - do I get it from a boot.img? If so I think I know how to get a boot.img (from a FTF file I assume? and then the Flashtool nitty gritty thingy). Just need a confirmation. Thanks for the help so far again [MENTION=6548273]dani020110[/MENTION] :)and all the best for the compilation of the ROM you're working on!
[Sony Xperia M4 Aqua] dani020110:
No problem mate, just answer whatever you want and I'll do my best to help you, because if we are open to share our knowledge, then we will progress :victory:

You don't need actually a ramdisk.img, just a ramdisk.cpio.gz that I think it exists, to assemble the boot.img

See this:

/mkqcdtbootimg --kernel $(KERNEL_SRC_PATH)/arch/arm/boot/zImage --ramdisk ramdisk.cpio.gz ...

I used to have all those files when I built the kernel successfully, but then I did make clean and all files were removed :laugh: :silly:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Hello, thanks for the response and the help again! But wait I don't have the ramdisk.cpio.gz? :silly::eek: I searched for ramdisk just now in the file manager and it came up with ramdisk.img and ramdisk.txt (suddenly I just found out I had a ramdisk.img) Next problem is that it keeps saying .mkqcdtbootimg is a file directory. I don't get it..

KERNEL_SRC_PATH is the path of my kernel which I compile the Image right? (Also I didn't get a zImage, only an Image file and an Image.gz file.. Did I compiled correctly?! :eek: Or is Image for 64bit devices only?) I can't unpack the ramdisk.img as well using

gzip -d - cpio -idm

It just keep saying

I'm so sorry for all this noobish-ness :crying:
[Sony Xperia M4 Aqua] dani020110:
Yes, it is the path of your kernel source

Could you tell me the location of the ramdisk.img?

I tried to compile and It didn't give me any file related with ramdisk:(
[Sony Xperia M4 Aqua] AndyPhoenix9879:
It's in the kernel directory itself :silly: I'll try recompiling again to see if I get the ramdisk again. I'm using the .2.99 kernel copyleft sources

EDIT: Recompiled and didn't got ramdisk.img - At this point, I have no idea how I got that ramdisk.img lol. But I still can't find that ramdisk.cpio.gz

EDIT: Wait do I just get the ramdisk.cpio.gz from the boot.img of a FTF file (.2.99 FTF)? I'm fairly confused. Also very confused with what we're supposed to do with that mkqcdtbootimg - the command won't work! " : Is a file directory" is what it keeps output-ing
[Sony Xperia M4 Aqua] CarDGee:
Another easy way of compiling a kernel is using cm sources and just do "mka bootimage" this will give a boot.img as well.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Sorry for late post. I'm quite confused on how you can use CM sources to compile a kernel, isn't the sources supposed device specific? I'm just confused sorry - and thanks for the response :good:
[Sony Xperia M4 Aqua] CarDGee:
Cm sources have a tool that automatize kernel compiling, of course you will need to add our device tree to it. https://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
[Sony Xperia M4 Aqua] RohitBopnna:
The same can be done with Sony's aosp repo as well.

The only problem being Sony have moved the build from the old uncompressed kernel to the new compressed kernel, which is not supported by our present bootloader on M4.

All you have to do is edit KernelConfig.mk file from BUILD_KERNEL := false to BUILD_KERNEL := true and build with make (make -j(x)). This file is in device/sony/common-kernel folder where you have the pre-built kernel aslo.

Again its at your own risk there are lot of fixes needed in the kernel files too
[Sony Xperia M4 Aqua] AndyPhoenix9879:
:eek: :good:

But what's the traditional method of making a boot.img when building your own kernel? I think I'll stick with the simplest method possible for now, then slowly catch up with all this savvy things. Just finished my exams so I guess I have some spare times..? Anyway thanks for the information :good: (although it's still too big for me to swallow :eek::silly: )

EDIT: Is it possible to just... fastboot flash the Image file that was created? Nvm. Weird thing is many of the boot.img (kernel.elf) files for this device I tried to play around with to get the ramdisk and Image file all failed with errors or just gives me no results :( I'm lost to what to do next
[Sony Xperia M4 Aqua] vyrussu:
now that source code for 5.1.1 are relesed, still nobody is making a good rom for our device?
[Sony Xperia M4 Aqua] nrokos:
Why don't you try to make one yourself?
[Sony Xperia M4 Aqua] vyrussu:
because i really dont know anything about development...
[Sony Xperia M4 Aqua] Deathmake:
Where 5.1.1 sources? Link?

Sent from E2303
[Sony Xperia M4 Aqua] vyrussu:
My mistake, on sony developerworld are released but for 5.0...for our last update.
[Sony Xperia M4 Aqua] Hnk1:
[MENTION=5084153]CarDGee[/MENTION] [MENTION=4787591]vyrussu[/MENTION] [MENTION=7138936]nrokos[/MENTION] [MENTION=6452765]Deathmake[/MENTION]
[MENTION=5689354]AndyPhoenix9879[/MENTION][MENTION=6548273]dani020110[/MENTION] [MENTION=6088270]diyar95[/MENTION]
[MENTION=6907849]alby_var[/MENTION]

Sorry to tell you this but unfortunately, Sony M4 Aqua has been a dead phone in many aspects from the beginning. It was flop from Sony to be honest. Firstly it was the internal memory issue and later no updates. To make it worse, it came with a locked bootloader and it took a long time before we could find a way to root the device. The phone was not updated at all to be fair and there is no chance to get MM on this device either. I hope I am wrong but I have to be as blunt as I can be.

The best bet you can do is find a developer who is willing to work on your device. I know you must be thinking, wow that is impossible. But to make a developer interested in this device, you will need to send him a FREE MOBILE to his address or the money to get this phone. This could be achieved by collecting donations and find how much donations can be collected and maybe make a bounty. It has been a long time since anything happened on this phone so the best bet would be that. Also make sure you find a developer who has some experience with CM. Because if you have a full working device tree which is a must for official CM, only then you can unlock doors to all kind of development. And within few months you will see development roms flooded.

You need a fully working device tree and then everything would work on its own.

A word of advice, make a new thread and unite together to find a developer. Make sure you put up donations on that page as well how much one can pay and people do not need to lie if they can not. It is better to not donate than put a fake donation.

Lastly, do not piss developers by everyone spamming their inbox. Rather quote a developer on that thread and then ask for his help and say we have decided we will give a free phone to the person who is willing to work on this device and mention everything on this thread what has been achieved and what has not been achieved in terms of development. Make it purely up to the point.

First page can have all this roughly.

What you want the developer to do : Make a fully working CM and a device tree

What has been achieved by people : root, bootloader , recovery and give links

How you are considering to attract the developer ? By donating a phone or money

People who have confirmed to donate and the amount till yet that will be donated. If everyone pays 5 to 10 dollars you only need 15 to 25 people as current prices are hovering around 200 dollars (which is still very expensive as other latest devices price is around 180 to 200)

Good Luck!

I have been a loyal Sony consumer but after this phone I have moved on to LG and never regretted it.
[Sony Xperia M4 Aqua] Waancho:
You got my 10 bucks lets open this page!
[Sony Xperia M4 Aqua] dani020110:
LOL the only Sony phones that have been already upgraded to mm are the flagship ones

If Sony said that it will upgrade your phone so why don't you just wait a while??

Also Sony is helping us little by little: the kernel has just been uploaded and now we have an official way to unlock the bootloader so please don't complain saying that Sony isn't helping us at all or it is a dead phone

You don't need an official cyanogenmod to get the development flooded...

You just need TIME: to develop and wait...

If you don't see anything in this development forums that doesn't mean that nobody is working on it...

My pc is too slow that the compiling times takes around 9 hours lol and also I don't have much time for this, I have to study a lot (You can see that developers also have a life)

There were a lot of developers that wanted to work here but then they surrendered because they wanted the things easy and that isn't the case here

You soon will have a custom kernel that hopefully fixes some issues that our device has

Also here on xda you can find a lot of ways to tweak your phone

And I'm pretty happy with my phone...

I'm really sorry for the 8gb users but you have to learn that before you buy a cellphone you have to see the issues and reviews that the users already have...

I hate and I'm really annoyed about this complaints.
[Sony Xperia M4 Aqua] CarDGee:
Yeah i agree with dani on this one, i mean everyone is so eager on the mm update and then when it comes, everyone will move on to complaint about n update... What we need is the sources so we can build custom roms add features etc.... I think the device tree is fairly complete but the kernel is still messed up. It usually takes me 3 hours to compile cm or aosp on my pc but the problem is that this is my main phone and i already had it replaced because of the blue screen issue which makes me think that this phone is very fragile or weak if you must. So i usually do a test build every month or when i see a major change on sonyxperiadev. But i believe that as soon as we get working sources and kernel then we will have all sorts of roms.
[Sony Xperia M4 Aqua] elchhome:
trying to build MM

Hi folks,

did anyone try to build marshmallow for tulip recently?

I've set up a build environment with ubuntu 14.04lts and followed the steps in http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/

Following "build-aosp-marshmallow-6-0" the build process runs without problems for eagle (M2) but tulip (M4) fails for some camera related things.

Trying "build-aosp-marshmallow-experimental" for M4 also fails. The experimental vendor addons in SW_binaries_for_Xperia_AOSP_M_v01b_exp.zip doesn't seem to include the eagle (M2) any more.

Any thoughts?
[Sony Xperia M4 Aqua] RohitBopnna:
build-aosp-marshmallow-experimental is working with the new kernel 3.18, and i believe primarily targeted at Android N.
[Sony Xperia M4 Aqua] elchhome:
Do I need to change something in the build process to get that working?

I thought using the right vendor files and prepare the repository like described at the sony aosp pages the build should at least work.

I know that there are still some problems with the boot loader...

Maybe I need to learn more about the android build process.
[Sony Xperia M4 Aqua] PiSpecialist:
Compling successfully or not doesn't matter until we have a supported bootloader, first we need the updated bootloader.
[Sony Xperia M4 Aqua] RohitBopnna:
what do you have in you sony.xml file, only m2 amd m4 or everything.

attach it here maybe
[Sony Xperia M4 Aqua] arvinquilao:
Have you tried reverting commit 75be507? https://github.com/sonyxperiadev/device-sony-kanuti/commit/75be50761465babfbc540c6a0a775b0090fb02f9

Looks like display HAL is needed in that path.
[Sony Xperia M4 Aqua] elchhome:
I have everything in the sony.xml file as shown on the sony howto page

I'm new to handling projects with repo/git.

Could you please give me a short description what syntax I have to use to revert that commit?
[Sony Xperia M4 Aqua] arvinquilao:
Execute these commands, make sure you are in your source directory:

$ cd device/sony/kanuti
$ git revert 75be507

Commit 75be507 discarded the display HAL folder, what you just did is to revert that commit so the "display" folder becomes available again.

Check the kanuti directory if a folder named "display" is created. You can then start a new build.
[Sony Xperia M4 Aqua] elchhome:
Thx, arvinquilao.

Just building...
[Sony Xperia M4 Aqua] EHSAN™:
Hello Developers...

Please Dev New Roms And Mods (Don't have Bog) For our Smartphone. We Tired From Stock Rom :(

Cheers :fingers-crossed:
[Sony Xperia M4 Aqua] elchhome:
After reverting commit 75be507 the build went through successfully!

~/M4_m_exp/out/target/product/tulip$ ls
android-info.txt clean_steps.mk gen obj_arm recovery symbols
boot.img data installed-files.txt previous_build_config.mk recovery.id system
cache dex_bootjars kernel ramdisk.img recovery.img system.img
cache.img fake_packages obj ramdisk-recovery.img root userdata.img
[Sony Xperia M4 Aqua] vyrussu:
Will you post the rom here, so that people can test it?
[Sony Xperia M4 Aqua] elchhome:
It doesn't make sense to download that build, because if you'd read the whole thread you knew that the current bootloader doesn't load the compressed kernel.

I just wanted to prove that my build environment works for tulip and I'll wait for a new bootloader to appear with the upcoming official Marshmallow release.
[Sony Xperia M4 Aqua] vyrussu:
When you flash a rom, you also flash the bootloader?
[Sony Xperia M4 Aqua] jtg01:
Anyone noticed that our phone is now supportet by Flashtool Emma? http://developer.sonymobile.com/services/flash-tool/supported_phones/ . So i tryed it, but no luck. It say "unknown model" . Hope we get the new bootloader soon.
[Sony Xperia M4 Aqua] RohitBopnna:
Is your bootloader unlocked, i believe for emma, you need to have your unlocked boot loader.
[Sony Xperia M4 Aqua] AforAnonymous:
So, has anyone considered porting the Z series rootkernel tool from here: http://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

Based on the fact that Sony uses a unified device image build architecture for Marshmallow, I believe this should be portable without much effort.
[Sony Xperia M4 Aqua] boylush:
As far i'm aware, there seems to be someone else helping to bringup, but if you want it fast, i guess we have to start and do whatever we can... I would appreciate if someone can donate me some time hahaha... Good luck with whatever u are building, just try to use 'make otapackage' if you guys want to make zips flashable by TWRP instead of using flashtool to flash the images... this only works for custom ROMs, not AOSP ROMs like OmniROM
[Sony Xperia M4 Aqua] dani020110:
It's nice to see you again boylush!!

Good luck to you as well!

Well, now we have my fully functional recovery; and I'm looking towards a custom kernel, but for any reason I can't even get to the bootanimation lol

And it seems that the bootloaders need to be unlocked by the Sony's official method
[Sony Xperia M4 Aqua] boylush:
Oh and when building, ensure the phone is already flashed to the latest MM ROM due to the boot delivery method where it was fixed in the latest update with a new bootloader... Also i think try to bringup directly CM13 cos i'm really not sure any version before would even boot at all... Wishing u guys the best of luck!
[Sony Xperia M4 Aqua] boylush:
Meanwhile for people who want to help develop or test out ROMs, please join the telegram group:

https://telegram.me/joinchat/AY34mwkjn2WyHNAND7WXPg
[Sony Xperia M4 Aqua] diyar95:
Anyone working on CM rom for now?
[Sony Xperia M4 Aqua] anubhabr50:
Hey, will cyanogenmod 14.1 roll out for xperia m4 aqua dual....

---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------

Any developers here, please somebody develop a cyanogenmod 14.1 for xperia m4aqua dual please
[Sony Xperia M4 Aqua] Waancho:
Cyanogenmod is dedd....
[Sony Xperia M4 Aqua] anubhabr50:
So there is no chance that xperia m4 aqua is getting a CM14.1???
[Sony Xperia M4 Aqua] h4x0rm1k3:
I experienced a similar problem today and have fixed it. Have you tried installing Flashtool? After installing that run the following command in an admin elevated CMD prompt - bcdedit /set testsigning on , then restart your PC. Once restarted go back into the Flashtool folder, then Drivers and install the driver pack, on the 2nd window/page I think in the installer make sure you at least have the 1st 2 options ticked in their boxes as they're the main ones for fastboot. Finally you should be able to run Flashtool and then press vol down + put your USB lead in and it should take you to flashmode. Quickly in Flashtool click the bolt of lightning and then in the next window select flashmode select your M4 Aqua firmware and tick the relevant boxes in the Sin & Misc TA section and finally click flash and you should then start flashing your mobile. If by any chance your M4 drops out of Flashmode just get everything ready in the Firmware selection window and then connect your M4 in Flashmode again and it should work.
[Sony Xperia M4 Aqua] Dark_Wolf98:
I can not help like this, my university does not allow it and I am very new, I can help them as a tester, I have the E2306
[Sony Xperia M4 Aqua] nailyk:
Good idea. Just got one and have a few time to get it working before returning it to his owner.

Do you know if any work on stock based kernel exist ?

Do you have links please ?

(P.S.: gonna work on AOSP based rom).

Thanks in advance
[Sony Xperia M4 Aqua] zputnyq:
Sorry to come in,

I'm not a dev just like to share what I've found.

About the kernel you were looking for, you can try these kernels

Nautilus

Sky melon

Destiny
[Sony Xperia M4 Aqua] nailyk:
Do you have links please?

All my actuals attemps result in some disasters :p
[Sony Xperia M4 Aqua] zputnyq:
Those kernels are for MM

Here are the links

https://xdaforums.com/m4-aqua/development/kernel-nautilus-kernel-26-3-1-33-t3665368

https://xdaforums.com/m4-aqua/development/kernel-sky-melon-t3532944

https://xdaforums.com/m4-aqua/development/kernel-foykernel-t3536004
[Sony Xperia M4 Aqua] cncyanide:
Hi [MENTION=6907849]alby_var[/MENTION], i have kinda same problem with my M4 aqua, it only can boot in fastboot and pc can recognize it, when i put it on flashboot mode light change into green but Pc don't recognize phone( SOMC flash drive or any other driver don't show up on device manager). It is stuck in sony logo. Is there any chance to save it or its done with it.
[T-Mobile LG G4] eremeya:
After updating to 6.0 through LG Bridge my phone no longer syncs with gmail correctly. Sometimes it will sync but most of the time I have to manually sync gmail.

Does anyone else have this problem or have any suggestions on how to fix it?
[T-Mobile LG G4] wataytay69:
I've been having the same issue on H81110n recently. I was actually considering an update to 6.0 and full unroot to see if it would remedy the issue. Must be some other issue. Started late last week. Sometimes it will push gmail notifications but I often must manually sync to receive emails.

I may just get the S7 if it has an ext SD card slot upon release next month.
[T-Mobile LG G4] eremeya:
That's about when it started for me too. Maybe google is having server issues
[T-Mobile LG G4] cajunflavoredbob:
Backup your data, and factory reset to see if that fixes it. If it doesn't seem like a common issue that a lot of people are having, then it is highly likely that there's something on your device that is causing the problem.
[Galaxy Tab 3 8.0 Android Development] gr8nole:
Welcome to kerNoleOC, an overclocked kernel for T31x devices!!

This kernel should work for all Lineage14.1-based roms.

THIS WILL NOT WORK FOR STOCK TOUCHWIZ-BASED ROMS (may release one later)

kerNoleOC is based on the same kernel we use for Lineage with only the required changes to implement 1.8ghz OC and Undervolting.

There are two one version for each device:

kerNoleOC-1.8 - defaults to 1.8ghz on startup (approximate 15-18% boost in Antutu benchmark)

[*]kerNoleOC-1.6 - defaults to 1.6ghz on startup

NOTE: Use your favorite cpu control app to apply the OC/UV settings that work best for your device.

Not every device will perform well at 1.8ghz. If you have issues, choose a lower setting or return to the kernel provided with your rom.

DOWNLOADS

https://www.androidfilehost.com/?w=files&flid=49113

INSTALLATION

Download the .img file of your choice and flash using TWRP or Flashify.

DISCLAIMER: If you are not familiar with the effects that running an overclocked kernel can have on your device, then you probably should not flash this kernel. I take no responsibility for anything you choose to do to your device.

Many of the features (prior to CM13) for this kernel are credited to [MENTION=4021423]ketut.kumajaya[/MENTION] and [MENTION=4996446]tohenk[/MENTION].

Source
[Galaxy Tab 3 8.0 Android Development] AharonBLevi:
I'm very new with custom kernels, so in this particular kernel what are the benefits in battery life and performance on the tablet? Sorry if it isn't a proper question. Thanks

Enviado desde mi SM-T311 mediante Tapatalk
[Galaxy Tab 3 8.0 Android Development] gr8nole:
Increased cpu speed can provide faster performance (battery life may be a little less).

In my Antutu benchmark tests, I saw an increased score of about 18%.

Overclocked kernels aren't typically used if you are looking for the best possible battery life, but this kernel also provides undervoltage control. By undervolting, you can gain battery life, but you have to be careful with the settings.
[Galaxy Tab 3 8.0 Android Development] AharonBLevi:
Thank you.

Enviado desde mi SM-T311 mediante Tapatalk
[Galaxy Tab 3 8.0 Android Development] Pally01:
Hey Gr8nole (and others who may know); what is a recommended app for overclocking? I'd like to try the 1.8 version but have never o/c'd a tablet.
[Galaxy Tab 3 8.0 Android Development] gr8nole:
I usually use TricksterMod kernel settings or Kernel Adiutor (yes, that is how it is spelled).

I believe TricksterMod requires Busybox to be installed separately though.
[Galaxy Tab 3 8.0 Android Development] Pally01:
Great. Thanks. I'm gonna put away this old S1 Captivate I'm playing with and try some overclocking on my tablet :)