yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] shoey63:
Yeah, wrong thread if you want kernel.sin to kernel.elf, but RIGHT thread if you want kernel.sin to AOSP boot image. And tobias's rootkernel tool can handle either[emoji6]
[Sony Cross-Device General] osm0sis:
This is the kernel_dump thread though, not AIK or rootkernel, so this IS the right thread if you want only .sin to .elf. ;)

[MENTION=4120742]munjeni[/MENTION], the i386 binary from your attachment worked on my girlfriend's MacBook Pro (x86_64) on which I've been testing, but the "x86" o64-clang binary you include only gives "Killed: 9" when run. Any ideas?

Edit: Nevermind.. downloaded and unzipped again directly on the MacBook and it worked. Must have gotten corrupted in a network copy at some point! Thanks for your work! I'll have it in AIK-Linux v3.1 soon. :):highfive:
[Sony Cross-Device General] aquaboy11:
Thanks for creating this useful tool. Flashtool complained about not supporting sin version 4, other tools are outdated, but yours works flawlessly!
[Sony Cross-Device General] wellaflex:
Any tips to open pkg for sony android tv bro?

Cheers
[Sony Cross-Device General] soulless_div:
question(maybe wrong thread but anyways) - how to make boot img from kernel elf or sin file? and will it be possible to flash it using fastboot? i mean something like fastboot flash boot boot.img. thanks in advance
[Sony Cross-Device General] osm0sis:
If you have a newer Sony device that allows AOSP boot.img files to be flashed to it with an unlocked bootloader, then my Android Image Kitchen (which includes [MENTION=4120742]munjeni[/MENTION]'s excellent kernel_dump for the SIN processing,) can do this for you. You can find the link in my signature or search XDA/Google. :good:
[Sony Cross-Device General] munjeni:
New version is out!

- 12.06.2018 -> sin version 5 support
[Sony Cross-Device General] osm0sis:
Ooh, got an example SINv5 boot.img file I could play around with?
[Sony Cross-Device General] munjeni:
I had modem.sin which I have deleted after testing, use xperifirm and download latest fw for xa2 if you need
[Sony Cross-Device General] munjeni:
New version is out!

- 13.06.2018 -> self implemented custom sparse format (no more need libsparse) because had problem with out of memory extracting large sin files

Edit: [MENTION=4544860]osm0sis[/MENTION] here is sample sin file -> https://xdaforums.com/showpost.php?p=76772138&postcount=81
[Sony Cross-Device General] munjeni:
New version is out!

- 17.06.2018 -> fully implemented sin v5, removed mips and mips64 big endian builds (because my tool not support that)

I'm sorry I have removed mips 32 bit (big endian) and mips 64 bit (big endian) binaries since my tool don't support that and I not going to code something like that, thats lot of work, sorry! The rest of binaries will fully work now.
[Sony Cross-Device General] munjeni:
New version is out, done some small corrections for format detection, but also this time I have decided to share source code for this tool, https://github.com/munjeni/anyxperia_dumper , enjoy!
[Sony Cross-Device General] osm0sis:
Why can't it support mips/64 anymore? Thanks for the source! (Thought I recognized my unpackbootimg changes in there ;)). If there's some technical reason it can't work with mips I'll poke around and see if I can help! :)
[Sony Cross-Device General] munjeni:
You must add code which will detect big endian - litle endian, and convert all things to big endian mode if you need it working on big endian (e.g. all things which coming from bytes read). Don't know how nobody found it not working allready, it newer worked on big endian, I found it yesterday when I tried mips binary on my router big endian. To be honest I never had need any thing for big endian, all my machines is litle endian so I never paid atention to big endian. E.g. when you fread part of the data to an struct where struct contain e.g. unsigned long int, that int must be converted to big endian mode or it will give wrong value and return error, so generaly all things in kernel dump must be modified, I realy have no time and need for that, if you need it fill free and add support
[Sony Cross-Device General] osm0sis:
Ah, Android only ever supported mipsel anyway, so no need for big endian worries. :)
[Sony Cross-Device General] munjeni:
If you need it I have added support for big endian -> https://github.com/munjeni/anyxperia_dumper/commit/ae071ab92523bed26661cc565a71d0530d4cd285 but you will need to do the same to unpackbootimg.c if you need it fully big endian compatible, hope this help :)
[Sony Cross-Device General] osm0sis:
Thanks! Really not necessary though, Android was only ever mipsel and mips64el (so only little endian), and even that support has been removed from the latest NDK - the last mips Android device was running Lollipop 5.1. All I was interested in were mipsel+mips64el builds for AIK-mobile which would probably compile fine as-was. :good:

Edit [MENTION=4120742]munjeni[/MENTION] would you be able to still provide mipsel + mips64el (ie. little endian) builds? I still can't build kernel_dump on my current setup due to the NDK lacking LFO.
[Sony Cross-Device General] munjeni:
[MENTION=4544860]osm0sis[/MENTION] simple download and compile buildroot https://buildroot.org/download.html and do:

make menuconfig

under platform setup it to e.g. mips litle endian and build with make, at the end you get right toolchain which you can use to build our tool. If you need to build for another platform, simple repeat step with buildroot, that it :)
[Sony Cross-Device General] osm0sis:
Looked into it a bit further, checked out an XA2 dump and it seems like even with SINv5 radios in the firmware there is still a SINv4 boot.img so I probably just won't update kernel_dump to save myself some time messing with buildroot. Android MIPS is deprecated anyway and there hasn't been a device since Android 5.1 so shrug.
[Sony Cross-Device General] vo thai nguyen:
Hi, Let me ask how to unpack all firmware data sony xa2
[Sony Cross-Device General] munjeni:
New version is out! Yesterday I have found that I am unable to extract system.sin from G8441_Customized CE1_1310-7123_47.2.A.10.107_R1C , its probably sony done some tricky things to prevent extraction so I have found what is the isue, fixed it and tool is fully working now. I'm removed OSX support because I realy have no free time to mess with his cross compiler, getting error:

osxcross: warning: cannot find clang intrinsic headers; please report this issue to the OSXCross project

Osx compiler worked last time when I used it, but now its not working, I have no idea why and I realy have no free time to mess with his cross compilers, if you need osx binary simple compile by self.
[Sony Cross-Device General] munjeni:
New version is out! I'm sorry yesterday one had missed one thing, new version is definitelly working!
[Sony Cross-Device General] munjeni:
New version is out, some updates, included osx binaries.
[Sony Cross-Device General] munjeni:
New version is out!
[Sony Cross-Device General] bigrammy:
Thanks for another awesome tool. :good:

Works perfect dumping the Sony XA (Mediatek MT6755) boot.sin and system.sin using Linux :highfive:
[Sony Cross-Device General] lgoxvxe:
Thanks, it works perfectly for me.
[Sony Cross-Device General] BENETNATH:
hi,

i need boot.img for a xz2c for magisk manager

I got the ftf, i extracted boot.sin and I've done a ".\sony_dump.exe out boot.sin"

I have now a boot.crt and boot.000

do you confirm that i can rename boot.000 to boot.img and use it in magisk manager directly ?

thanks
[Sony Cross-Device General] bob1791:
I used magisk manager to path the boot.img taken directly from the device, but it didn't work and a boot loop is occurred when I flashed the pathed boot. So now, i looked for a way to extract boot.img from the firmware itself and using this tool I don't know what I have to do... Did you root your devices successfully ?
[Sony Cross-Device General] lgoxvxe:
Have you done "fastboot --disable-verity --disable-verification flash vbmeta stock_vbmeta.img" ?
[Sony Cross-Device General] bob1791:
Nope... What is vbmeta? And how can I get/fetch it?
[Sony Cross-Device General] lgoxvxe:
Use unsin to unpack vbmeta-xxx.sin in the stock firmware and fastboot flash vbmeta.img with the command above, this should only be required for xz2 and later devices.
[Sony Cross-Device General] munjeni:
In most case its .img file format, but to be sure open them with an hex editor and look for first few bytes so if you see string BOOT... than yes rename it to .img, or in case it looks like ELF... string simply rename it to .elf, ... easy :)
[Sony Cross-Device General] munjeni:
No need unsin, simple and eficient with "[TOOL][Windows,Linux,Android,Apple] Unpack any Sony firmware file"
[Sony Cross-Device General] TestingTheTest:
In what sin file would things like aboot, sbl1,, tz etc be? I also have tried to do it "directly" let's say and it says unable to open:

.\sony_dump.exe out /dev/block/platform/msm_sdcc.1/by-name/boot
[Sony Cross-Device General] munjeni:
You'll have to make a little effort! : ) I can't know because I don't even know which phone you have, to begin with, find out what phone you have, then search on google for the path to the boot partition, because the path you mentioned is from the xperia z1c and is certainly not the same as on newer phones.

might be wrong path:

/dev/block/platform/msm_sdcc.1/by-name/boot

Consider using Open Ai, it might help you further!
[Sony Cross-Device General] TestingTheTest:
I do have a xperia z3 compact tablet, if i list "/dev/block/platform/msm_sdcc.1/by-name" I see boot, aboot, TA, tz, sbl1, system etc. I could just extract them using "dd", but Im interested it extracting them from the tft itself, do you have any idea where those reside in the tft rom file?
[Sony Cross-Device General] munjeni:
Take a look into boot delivery folder of the fw
[Sony Cross-Device General] sob@ka:
Dear munjeni, I can’t follow your instructions, please translate sin to img

kernel.sin

drive.google.com
[OnePlus 2 General] ashu01:
Hi Guys, There are multiple Telegram Groups that are created for our device and it would be great to expand these groups more.

Here are the groups that are most popular and join them with the below invite links.

OP2 General Discussion group

......

OP2 Nougat Roms

.......

Op2 MIUI

.......

Walls and Setups

......

Please leave a comment after joining as it will bump up the thread ;)

MODERATOR NOTICE: LINKS REMOVED

Please reference this notice:

Telegram Chat Channels - Going Forward

MOD EDIT: LINK REMOVED
[OnePlus 2 General] raj007avi:
Link not found...
[OnePlus 2 General] ashu01:
All links are working fine.

If you are facing issue share your telegram username i will add you manually.
[OnePlus 2 General] ashu01:
One more Channel

MOD EDIT: LINK REMOVED

Please comment if you guys are joining so that it remains on first page.

do not make this thread lost in dust.
[OnePlus 2 General] anupritaisno1:
I'm banned from all of them
[OnePlus 2 General] sandeep7:
Thanks for sharing
[OnePlus 2 General] rushilandrews:
Great work, lol [emoji16] [emoji16]
[OnePlus 2 General] ashu01:
and you will always be
[OnePlus 2 General] XavNotFound:
and you will always be
[OnePlus 2 General] sandeep7:
Yeah we won't allow spammers, so... Deal with it madam/sir/whatever
[OnePlus 2 General] akashrajum7:
Thanks.

Awesome groups ??
[OnePlus 2 General] mymutatedmind:
Bump
[Android Software/Hacking General [Developers Only]] brhorst:
Motivated by the aptX codecs for CM14.1 bluetooth stack found by dh.harald (https://xdaforums.com/oneplus-3/themes/mod-aptx-codec-t3521228) I present:

APTX (HD) support for CyanogenMod 13 based ROMs - V1.2

I ported the aptx codec offloading support from the latest Qualcomm bluetooth stack over to the bluetooth stack from CM 13. After a full week of porting and bugfixing I managed to get it to work on my Galaxy S5 running CM13!

Please go ahead and test this on other devices (or other Marshmallow based ROMs, if the bluetooth stack's API is equal to the API from CM13, it should work).

If it does not work for you, dirty flash your ROM again, the modification should be overwritten.

Requirements

ARMv7 device (sorry, no ARM64 or x86 support!)

CM13.0 ROM (for 14.X see dh.harald's thread)

aptX capable headset/speaker

Download

aptXforCM13_v1.2.zip (AFH)

aptXforCM13_v1.2.zip (Github)

Installation

1. Install zip from recovery

2. Add the following to the /system/build.prop file

persist.bt.a2dp_offload_cap=sbc-aptx-aptxhd

Search your log for the line I bt_btif_media: btif_a2dp_encoder_init Selected Codec aptX to see if it works.

Confirmed devices

Samsung Galaxy S5 (klte) on CM 13.0 (SD801)

OnePlus 3 on CM 13.0 (SD820)

OnePlus 3 on BJRR (SD820)

Galaxy S6 Edge+ on CM13 (Exynos 7420)

LG G2 D802 on CM13 (SD800)

Version history

V1.2 - This release incorporates two security fixes for bionic and bt library (CVE-2017-0422, CVE-2017-0602)

V1.1 - Improved A2DP buffer sizes, fixing audio glitches and reduces CPU usage

V1.0 - Initial release

Build from source code

If you want to integrate this mod to your own build/ROM, use the following repositories:

https://github.com/mh0rst/android_bionic for bionic (In repo mainfest.xml: <project path="bionic" name="mh0rst/android_bionic" groups="pdk" />)

https://github.com/mh0rst/android_system_bt (In repo mainfest.xml: <project path="system/bt" name="mh0rst/android_system_bt" groups="pdk" revision="cm-13.0-with-aptx" />)
[Android Software/Hacking General [Developers Only]] ElDonTheo:
Impossible to download, ads everywhere, but no file...
[Android Software/Hacking General [Developers Only]] brhorst:
Sorry for that, I didn't realize these sites had so many ads. Will upload to github and AFH this evening, make a suggestion if you want the file somewhere else.
[Android Software/Hacking General [Developers Only]] meiser:
Works fine here on a OnePlus3 with CM 13.0 nightly 20161107 (latest available version). I tested with a VTIN bluetooth 4.0 in-ear headphones.

Thanks a lot for this!!!
[Android Software/Hacking General [Developers Only]] lekronop:
Works also fine on Sultan's CM13 for OP3.

Thank you very much for porting this to Marshmallow!
[Android Software/Hacking General [Developers Only]] lockdlock:
I need for xiaomi mi5.
[Android Software/Hacking General [Developers Only]] brhorst:
I don't know what bluetooth stack is used by the mi5, at least for their official ROM. Because they are using the Snapdragon 820 processor it might be the standard fluoride stack, which may work. Just try to flash this mod, if it doesn't work, re-flash your original ROM.

I know the mi5 has unofficial cm13/14.1 support, you could try to flash one of those and then try my mod (for cm13) or dh.haralds mod (for cm14.1)
[Android Software/Hacking General [Developers Only]] ElDonTheo:
Download is great now, thanks :)

But I couldn't make it work, it breaks the Bluetooth, which cannot be enabled :/

Galaxy Tab Pro 8.4 - RR unoffical
[Android Software/Hacking General [Developers Only]] MrAnswer:
Same thing as mentioned above, it breaks the Bluetooth functionality.

Flashed it with and without dalvic / cache cleaning on htc one mini 2 with cm13

Does it need specific modifications to get it run?

Off topic: I read something on the forum - Snapdragon LLVM Compiler is just for the system not for compiling apps, right?
[Android Software/Hacking General [Developers Only]] brhorst:
Are you usung RR 5.8.0 or 5.7.4? Can you post a complete logcat of trying to enable bluetooth?

I looked at the logcat you provided and the source of the ROM, but the creator didn't release the manifest used to build the ROM, therefore I can't check for differences between the bluetooth stacks. I don't want to raise hopes, it is very hard for me to solve bugs in combination with devices I don't own and without meaningful logcat or (obvious differences in) the source code.

The only specific modification my mod needs is a small modification to libc (symbols needed by aptx library, which was originally compiled for Nougat), and this is already included in my mod. It is likely that your ROMs modify libc or has a different bluetooth stack than CM13.

The snapdragon compiler AFAIK was introduced with the nougat repositories, and can be used for both system and app compiling (at least the native parts of the apps). I don't use it ATM, because I still compile for Marshmallow based CM13.
[Android Software/Hacking General [Developers Only]] Elkhardioui:
Dear [MENTION=6238190]brhorst[/MENTION]

I have a SM-G928F and [MENTION=6185853]Rainbow_Dash[/MENTION] CM13 ported rom ,

before using your codec :

music streaming Bluetooth work but lot of noise

Call with bluetooth work but lot of noise

after used your aptx codec :

music streaming Bluetooth work weel !!!!

Call with bluetooth work but lot of noise

my question is , can I manage to use the libs for "call throught bluetooth"?

Br
[Android Software/Hacking General [Developers Only]] brhorst:
Hi,

unfortunately, the playback of audio and call handling is separated in the bluetooth standard (Audio => A2DP, Calling => HFP) and stack and cannot be mixed or exchanged in an easy way.

This makes perfect sense, because the requirements for both use cases are totally different: Audio should have best quality, latency is not an issue, whereas during a call, low latency is very important, which is gained as a trade off from audio quality.

I didn't touch the HFP part of the stack, maybe backporting it from nougat or newest Qualcomm repositories can help. As I can't reproduce the problem (don't have a S6 Edge), this has to be done by a developer with such a device.

I'm sorry I can't help you otherwise than having a great music listening experience via bluetooth.
[Android Software/Hacking General [Developers Only]] Elkhardioui:
Dear sir,

Thank for your answer, I understand the situation, anyway good job and thank you for your amazing job
[Android Software/Hacking General [Developers Only]] L649288:
Would there be ARM64 support for this aptx codec CM13 ?
[Android Software/Hacking General [Developers Only]] lekronop:
It's working fine on OnePlus 3 which is ARM64
[Android Software/Hacking General [Developers Only]] L649288:
I installed it on Xiaomi Redmi 3 Pro, cm13 64bit, bluetooth stopped working at all. Restored system from backup.
[Android Software/Hacking General [Developers Only]] g40q90:
Confirmed working on LG G2 D802 CM13, thank you!

01-30 12:11:57.563 I/bt_btif_media(3161): btif_a2dp_encoder_init Selected Codec aptX
[Android Software/Hacking General [Developers Only]] brhorst:
Arm64 would be possible if we could find arm64 versions of the libaptXScheduler.so and libaptX-1.0.0-rel-AndroidXXXX.so files. You may find them in firmware images of ARM64 devices supporting Nougat and aptX.

Then it would only be a matter of compiling the bluetooth stack against arm64.

Given the backwards compatibility of ARMv8, it might work if the bluetooth stack is compiled for ARM64. I can make a test build for ARM64 when I have some spare time (probably around March), or you could try to use my repositories to fire up your own build.
[Android Software/Hacking General [Developers Only]] h4waii:
Firstly, thanks for working to backport this.

I also tested this on kenzo with a LineageOS 13 build from 2017-02-13 with Feb security patches. Unable to turn on BT. Can provide debug logs if needed.
[Android Software/Hacking General [Developers Only]] brhorst:
Yes, please provide a logcat when you try to turn on BT. I can look into it when I get some spare time (don't have any atm).
[Android Software/Hacking General [Developers Only]] Dead-neM:
Working on Nexus 6 / cm13 (last nightly) / with V4A (official)
[Android Software/Hacking General [Developers Only]] thecoolkid:
It doesn't work for me on OnePlus One Resurrection Remix Rom 5.7.4 (latest Marshmallow) ?
[Android Software/Hacking General [Developers Only]] dr.zook:
Working on Note 4 N910F running Resurrection Remix 5.7.4 latest MM!

And what a great improvement of sound, a million thanks for this!
[Android Software/Hacking General [Developers Only]] edgd1er:
Aptx is now available on my LG D802 with CM13 latest stable. Thanks for your Work. [emoji4]
[Android Software/Hacking General [Developers Only]] easy_mac:
No luck with resurrection remix 5.7.4 on nexus 6p. Maybe I need to repair my headphones? (Samsung level U pro)
[Android Software/Hacking General [Developers Only]] claenn:
Confirmed Nexus5

Confirmed working on LG Nexus 5 hammerhead.

ResurrectionRemix-M-v5.7.3-20160807-hammerhead, kernel franco #104, V4A.

many thanks.
[Android Software/Hacking General [Developers Only]] luciferlul:
I have the same problem. :crying:

Can I uninstalled the package.

I have tried delete the files in the system directory. But the phone can not boot. So I have to reflash it. But can not open Bluetooth.
[Android Software/Hacking General [Developers Only]] multiwirth:
A Samsung Galaxy S3 mini refuses to boot with this mod.

APTX works with other zips in nougat but since it´s pretty slow and video decoder broken, i tried cm13 which runs much better on this.

Now i´m looking for getting aptx to work but no luck so far.

I tried almost everything i could find but it seems like it doesn´t load the aptx encoder when connecting to my headphones (it would speak to me saying aptx or aptx hd was enabled)

Want to make this a small form factor media player with hifi audio of course.
[Networking] Gazoo22:
I have recently signed up with Mail2web and love how it works, but there are limitations. as far as I can see you can only have 1 email address per account and the synced info is limited to mail, contacts, tasks and calender.

I am wondering if anyone would know of any software that is GPL/free that I can use to set an exchange type server on a laptop that can do the same functions plus some. Sort of a small office setup where I can have 2 or 3 emails and have the users share a calender, contacts, data files for applications like shopping lists.

Thanks
[Networking] silverjack:
What else would you like to remotely sync? Also you do realize that hosting your own exchange server you will need to leave the machine running 99% of the time, not exactly well suited for a laptop. As far as an open source gpl implementation of exchange check out this site, http://www.open-xchange.com/
[Networking] Gazoo22:
I forgot to mention what I wanted to sync, a few pda/cellphones and a few desktops. I like the small size and lower power consumption of a laptop, maybe a mini pc would be better at the task, I am not sure.

thanks for the reply I will check out the link next.
[Networking] silverjack:
I guess it really depends on what you wanna do. If you want to deal with setting up a mail server try the open exchange if you have the money get the MS version. This would be a great way to go for medium sized business but if there are only a few accounts to manage a hosted service such as mail2eb is much more viable and there down time is next to never. With there business plans you can manage multiple email accounts and share there calendars with a variety of devices and email clients.
[Networking] Gazoo22:
I looked at open-xchange and it looks pretty good, I have never tried to set up an email server but I am will to pick up a $100 laptop and try setting it up. It looks like the cost of Mail2web business account is $15 per user/per month, sounds like it would be worthwhile setting up my own server, and learning something rather then tying myself to $30 a month for me and my wife. I can definitely see an advantage for a business to sync up there data and sharing files with mobile devices. I am willing to learn

Thanks for the info
[Networking] silverjack:
I still think that a laptop would not be good as an email server. Your 100bucks would be better spent buying desktop off of craigslist. but thats my 2cents.

Lets us know your success!!
[Networking] JamesAub:
I just looked at open xchange, geez how much!? Buy MS Small Business Server 2003, its bloody cheaper!

http://www.microsoft.com/windowsserver2003/sbs/howtobuy/pricing.mspx
[Nexus 6 Q&A, Help & Troubleshooting] Yasharkhan:
So all my music is online on Google play music but GPM is draining too much of battery, is there any other player to play the music that is stored online on my account in Google Play Music?