yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
I'm not really sure what all the fuss with the total bashing on Sony is:

(well, that's at least my impression)

Just had the chance to flash the previously built AOSP ROM

(android-6.0.1_r10 - now it's at android-6.0.1_r17 following http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/)

and most of it appears to be working:

What works:

- SDcard is being recognized

- Radio/RIL (phone function)

- phone calling

- data connection (HSDPA)

- camera works (albeit the pictures are terrible in lowlight situations - or in general (?))

- selfie camera works (looks okay-ish)

- sound

- WIFI (and WIFI direct)

- position sensor (auto-rotate)

- bluetooth (pairs with other phones, can't test data transfers)

- MTP (via jtmpfs tested)

- adb install foo.apk

Untested:

- 3D (benchmarks)

- gapps

- NFC (driver loads ?)

- MHL, OTG

- other sensors (acceleration, pressure, etc.)

- GPS

- XPosed

- portable and internal storage is available out of the box

- SDCard performance, etc.

Stats:

- Battery drain (idle, doze ?) 1% per hour

What doesn't work (yet ?):

- SDcard access - formatting doesn't seem to affect it (or the card is broken)

- FM Radio (what is the opensource driver ?)

- Camera (firmware and/or driver issue IMX sensors not powering up)

- adb push (might be PEBKAC or haven't found out yet where to push to)

- with the 6.0.1_r17 release dhcp appears to have issues on WIFI (?)

it always only says

the same behavior appeared also with stock ROM with too heavily modified kernel, btw

("Samsung unsupported"/corrupted exfat filesystem; little bit disappointed that formatting doesn't work or there's a driver problem)

Drivers missing ?

- FM Radio (via Spirit FM ? it's a qualcomm chip, right ? Z3 / Z3c works with CM and Spirit2)

Glitches:

- yeah: during bootup the lower part of the screen flickers

So given there's effort to incorporate this into the CyanogenMod, AOKP, OmniOS or other AOSP based ROMs,

there should be some independence from Sony for us.

It doesn't have to be perfectly right from the start and can be done, like e.g. on the Galaxy S,

using separate kernel source - then step-by-step merging upstream,

[MENTION=359497]jerpelea[/MENTION] and the other devs did a great job in separating out the drivers in different branches so it's easier to see clearly what needs to be merged

The main points right now annoying me royally, are:

- FM Radio lacking (Spirit FM once the driver is available ?) [MENTION=359497]jerpelea[/MENTION] any info ?

- Camera quality (all the magic is in the proprietary stuff ?! - we need workin drivers !)

- SDCard [might need some help from Sony developers, [MENTION=359497]jerpelea[/MENTION] or kholk and others involved ]

- ...

Benefits ?

- sure ! - full (?) independence and possibility to tweak the heck out of the kernel and ROM :D

edit:

just checked the log - there appear to be issue with the camera:

PEBKAC ? :silly:

there are newer binary blobs already,

so let's see if it works better with them ...
[Xperia Z5 Android Development] zacharias.maladroit:
something's wrong - the sensor doesn't work

so that's the reason the camera is still showing pretty bad picture quality

Concerning the microSDCard:

is the driver failing or the card failing ?

hm ...

so some part of the sound calibration fails ...

permissions problem ?

nope - the modem works fine ...

v4 might finally work though (a few more days + update, then AOSP is my daily driver :D )

edit:

[MENTION=359497]jerpelea[/MENTION] The firmware for the camera needs fix up and/or replacement

Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
Using the firmware from Lollipop (stock rom) appears to have helped:

still too much "fail":

and

errors:

that might be the card failing (hopefully NOT - it's new)

so there's still driver errors on the camera :confused:
[Xperia Z5 Android Development] alex009988:
Hi. I've tried to cook the rom in my time. But without success, I thought it was because I'm not a developer. Then tried rom by free xperia.

Has anyone of you cooked it successfully, and try this with Gapps? When I tried it, it worked so unstable that I lost any interest to the aosp for long.

Maybe you ask some advice jerpelia or fxp team?
[Xperia Z5 Android Development] uripiruli:
Maybe the drivers of the cámara could be replace with drivers caf like the qualcom drivers for snap dragon camara.

Enviado desde mi E6653 mediante Tapatalk
[Xperia Z5 Android Development] zacharias.maladroit:
It's a little tricky right now since the built recovery from AOSP doesn't work at all and there's no recovery script built into the initramfs of the AOSP kernel,

so flashing of e.g. the AndroPlus Kernel in between all of this is needed,

I'm curious how it'll work out

choosing the following gapps: http://xdaforums.com/slimroms/general/gapps-official-slim-gapps-trds-slimkat-t2792842

don't forget that we're using arm64 (the first one I tried errored out during flash :o )

also the ROM is pretty bare minimum and doesn't even ship a file manager :eek:

Music Player and the Sound output is however superb - there's not the fullness of the sound like with DSEE-HX (upscaling or whatever technique is used)

but in default the sound output is crystal clear - I love it

no static, random noise during playback - at all,

I have that static noise with the Note 3 and the Z5, and only with DSEE-HX it's gone,

but if it works with all apps - even better (for those who don't like or want to use Sony's apps) :D

Yeah, maybe some form of combination,

but that would be in the long run,

at the moment I'd like to know why the driver fails - at all,

firmware now is there and it's still failing

(or are the venus firmware blobs for some other hardware part :confused: )

edit:

Lol

edit2:

scroll down the notification area -> settings -> apps ->

give permissions to

Google Play Service

Google Play

Google Services Framework (-> show system; needed ?)

Disable Google Play Service, Re-enable it,

then set up the account

Some preliminary results (it clearly shows that the cpuquiet hotplug framework is quite conservative):
[Xperia Z5 Android Development] zacharias.maladroit:
The cameras a properly initialized (otherwise they wouldn't work, d'oh !),

but something's really off with the data and driver,

some apps only process the upper right of the focus,

others show a very blurred out-of-focus image without any sharpness and resolution.

There might have been some recent kernel-changes that make things kind of incompatible with the Samsung EVO+ 128GB microSD (and other class10 and/or high-capacity cards),

a 64gb Samsung EVO card appears to work fine (also class 10).

At least a FM radio driver would be great - and a sort of guarantee that it'll work with CyanogenMod,

I've specifically bought the phone for this and similar other reasons:

https://plus.google.com/+CyanogenMod/posts/hfX9jRUi7CL FM Support for CM 9, 10.0 and 10.1

http://www.android-user.de/sony-hilft-cyanogenmod-bei-der-integration-von-fm-radio/ Sony hilft CyanogenMod bei der Integration von FM-Radio

https://www.youtube.com/watch?v=cjbByUmfZ5A FM Radio works on Sony XPERIA phones with unofficial Android 4.1.2 CyanogenMod
[Xperia Z5 Android Development] zacharias.maladroit:
What a mess !

Wrong toolchain and some driver issues ?

Man, I just want to have a booting custom kernel already ! :mad:
[Xperia Z5 Android Development] zacharias.maladroit:
Finally a great working kernel,

now it's usable as a daily driver :D

Let's see how the idle battery drain now turns out ... (made some adjustments)

Anyone interested in testing it out ?

The recovery script doesn't seem to work properly with AOSP - it's always directly boots into TWRP :eek:

also the notification LED mostly is using red for everything,

so TWRP can be flashed,

but booting into it needs

Features lacking right now:

- FM radio

- Camera (back camera)

Features working:

- Selfie camera (so you can still take selfies :D )

- Wifi, Bluetooth (?), RIL (GSM, UMTS, LTE (?))), data

- microSD (some don't work, but that's the same with stock ROM + kernel) <-- lying, each time copying to microSD via MTP it's being copied to internal storage !

Copying from within Android (Internal to microSD) works though

Features in evaluation:

- all others (right now testing features for daily usage) ...
[Xperia Z5 Android Development] spaha-bih:
please give us some screenshots :)
[Xperia Z5 Android Development] zacharias.maladroit:
need to figure out a way how to do it,

pressing power button -> shutting down :o

anyway, I'm off to sleep
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
Try to press vol down and power button at the same time.?
[Xperia Z5 Android Development] Alex1911:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Hi, i would be willing to test you AOSP Build, this sony-stock-crap drives me nuts.

Best Regard's

Alex1911
[Xperia Z5 Android Development] Alex1911:
double tap volume up for screenshot

Best Regard's

Alex1911
[Xperia Z5 Android Development] nilezon:
[MENTION=3037651]zacharias.maladroit[/MENTION]

I'd love to test it. If you publish the source I might be able to fix some bugs as well. Great work!
[Xperia Z5 Android Development] erikcas:
if anyone is interested in building a flashable zip for Z5, use this manifest

offcoure, feel free to strip devices you donot need, use the kernel of your choice etcetera

Apply this patch to device/sony/sumire

then just:

. build/envsetup.sh && lunch aosp_e6653-userbug
mka bacon

have tons of coffee and enjoy flashing afterwards.

note:

you will need a working recovery to flash (working TWRP is available)

the generated image will NOT contain a working recovery
[Xperia Z5 Android Development] Alex1911:
[MENTION=3037651]zacharias.maladroit[/MENTION]

Hi, i tried your latest AOSP buil, i does not work optimal but work's.

It's very slow and laggy but much better as the Sony-Stock firmware.

I also experienced some permission problems but often they went away after a restart.

There are also artifacts at the bottom of the screen.

1. which toolchain do you have used for you AOSP build ?

and did you use buildflags like "-ofast" and/or "-O3" etc. ?

2. did you included the latest binaries for marshmallow ?

Best Regard's

Alex1911
[Xperia Z5 Android Development] zacharias.maladroit:
lol -

before

2-4x times battery drain (observed vs. measured),

now

0% change in 7 hours - that's what we're talking about ! :D

will have to backwards-analyze where this stems from,

did changes ...

[MENTION=985241]erikcas[/MENTION]

How many devs are working on SonyAosp ?
[Xperia Z5 Android Development] Alex1911:
very nice progress :D

Best Regard's

Alex1911
[Xperia Z5 Android Development] zacharias.maladroit:
[MENTION=5392000]Alex1911[/MENTION] thanks for testing it

That's somewhat of a known issue with AOSP (?) - well, I've at least seen in earlier on other devices also,

the system is pretty bare - so using more polished AOSP-based ROMs might fix this.

Try locking the screen first, then unlocking - the sluggishness should go away.

This only needs to be done after the boot (well, after booting or rebooting)

Rest assured I'm working on it - seeing what governor and hotplug framework works best - this plays a HUGE role

shortly before sleep I flashed back to the earliest kernel I had built (troubleshooting) and it was using the fully patched up cpuquiet framework,

the default is laggy and can't keep up with HD/HQ videos, but switching cpuquiet's governor improves things considerably

it's smooth and the phone always keeps pretty cool (35-40°C of the CPU at 20-22°C room temperature).

1) I'm using UBERTC https://bitbucket.org/UBERTC/aarch64-linux-android-4.9-kernel , like suggested by [MENTION=5169444]AndroPlus[/MENTION] those custom built toolchains always have worked better,

no - haven't added optimization flags yet since that adds an additional bias or errors during early set-up and troubleshooting,

will do soon once the basics of the kernel (and system) work reliably

2) yes, they're included - current version is v3 http://developer.sonymobile.com/downloads/tool/software-binaries-for-aosp-m-android-6-0/

---------- Post added at 02:38 PM ---------- Previous post was at 02:28 PM ----------

Okay, according to

https://www.reddit.com/r/Android/comments/3oz7eu/guidelines_for_marshmallow_users_formatting/

and from the other information sources I read,

the microSD appears to function somewhat as an extension to the Internal Storage (it's formatted as Portable Storage),

at least when using it via MTP and copying files from the PC to it,

this indicates that something must be broken with AOSP :confused:

This doesn't happen when files are being copied from the Internal Storage to the microSD
[Xperia Z5 Android Development] erikcas:
SonyAosp is a mirror of sonyxperiadev used by me and David (Alviteri) to build and prepare pull requests to sonyxperiadev.

How many devs are working on that? Well I think about 20 to 25 doing more or less work, from all customrom flavours (check commithistory of various repos there you will find some commonly known devs)

Verstuurd vanaf mijn Xperia Z5 met Tapatalk
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
Can I test it on a Z5 dual(E6683)?

I'd like to test it

Sony stock 6.0 is really buggy, i. e. Camera sometimes doesn't works...
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for your fast answer :)

I've noticed some connections between sonyxperiadev and SonyAosp before but wasn't sure how closely those two are related,

thanks to all for keeping those repos in sync !

---------- Post added at 04:11 PM ---------- Previous post was at 04:09 PM ----------

Thanks for your interest,

The system is pretty bare and the kernel needs modifications,

so - no, not directly

needs to be built specifically for your device, I think

I'll take a look ...
[Xperia Z5 Android Development] erikcas:
Haha I have a raspberry + cronjob for all the intensive sync work [emoji56]

For dsds on Z5. I would like to take the challenge [emoji3] can you contact me on pm? (If any progress offcourse will report here)

Verstuurd vanaf mijn Xperia Z5 met Tapatalk
[Xperia Z5 Android Development] Dockyy:
Nice work guys, keep going !! I wait a stable release to test it :)

Actually i have ROMAura 2.0 + androplus v20 kernel and its work perfect except some (idle) battery draining, but i want hotplug/cpuquiet back on androplus kernel :(
[Xperia Z5 Android Development] zacharias.maladroit:
Gotta love those RPi <3

got the gist of the dsds/dual sim/msim thingy:

support appears to be there natively since lollipop (no idea how that changed with marshmallow),

so it's a matter of enabling some switches, adding a ril-wrapper (?) and perhaps some minor changes in the ROM (still needed ?),

that should be all + kernel compiled for the device (what changes are there in the source ?)

Will post the links to the websites I visited later, so you can build your own idea if my impression is right :)

---------- Post added at 05:27 PM ---------- Previous post was at 05:21 PM ----------

that idle drain is currently under investigation and shouldn't be there - it's ridiculous that this device has to drain 1%+ per hour or more just by doing NOTHING,

I remember that it was the same with the Galaxy S at the beginning with CyanogenMod only that the drain wasn't there with stock - lol :cool:

I have some ideas what it could be (some of those have been reported by others also),

and what changes are necessary to get the drain away on e.g. ROMAuro + AndroPlus and much better idle battery consumption

but there's again the limitation of the proprietary drivers which might hinder to get this to work ... :mad:
[Xperia Z5 Android Development] zacharias.maladroit:
lol - disable Google Play Services,

observed battery drain,

re-enabled it again - RPC error.

Shutdown

Booting up: bootanimation, a few apps are being optimized, failing,

bootanimation, a few more apps are being optimized, failing, ...

Just as I wanted to backup the system again :D

Okay then,

this probably means I should take the opportunity and see whether I can add the battery improvements to the stock ROMs and kernels, too ;)

---------- Post added at 10:12 PM ---------- Previous post was at 09:48 PM ----------

something isn't working with that:

make that in both cases

print (r)

after that it works.

Still failing though:

make that:

print ("*** Error opening "%s.sha1"; can't verify %s") % (fn, key)

and it also passes
[Xperia Z5 Android Development] zacharias.maladroit:
Unfortunately it didn't complete:

ough - forgot that I had to make this modification before

modify

art/build/Android.common_build.mk

like so:

previous:

after:

source:

http://review.cyanogenmod.org/#/c/120824/2/build/Android.common_build.mk
[Xperia Z5 Android Development] erikcas:
no patches should be needed. Build running here on these plain sources
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
Actually I'd like to know which git repo(s) are you looking into.

I looked around the SonyDev and the sony mobile's repo, but I cannot find anything about z5 dual....
[Xperia Z5 Android Development] erikcas:
well, for eagle dsds I donot use a separated repo either. I just use the existing devicerepo and added a ss / ds detection script, and needed a small addition on kernel (that is now in te sonyxperiadev/kernel repo)

Can you send me a dmesg from a fully working rom?
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
post deleted
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
dual sim model(E6683) dmesg

I get access to my friends' computer today :)

Hope those stuff will help your development

If you have some further requests I'd like to help :D

btw I am now running on http://xdaforums.com/xperia-z5/development/kernel-zachs-kernel-playground-z5-wip-t3340725 this kernel seems great.
[Xperia Z5 Android Development] langeveld024:
Here's another dmesg.log, in case u need it.

Running andro-kernel v21 on .163 fw.
[Xperia Z5 Android Development] zacharias.maladroit:
I don't argue against that it will work on certain distributions - for me it didn't (running Gentoo ~amd64 unstable/testing here) :D
[Xperia Z5 Android Development] _LLJY:
does androplus kernel or your kernel work for aosp? and how do i get the fingerprint scanner to work?
[Xperia Z5 Android Development] :
[MENTION=3037651]zacharias.maladroit[/MENTION] Is the camera as bad as in the screenshots in post 51?
[Xperia Z5 Android Development] zacharias.maladroit:
I can't confirm or disagree right now - since I don't know how the pictures look with the current state,

but referring to the ROM I build back then: yes - I was kind of horrible :D

well, it of course can't stay that way - there are more and more devs attracted to the Z5C (it's a great device and competitor to the new iPhone),

AOSP/CM is superior to Sony's stock which drains like if this was normal (0.5-1.5% per hour in Airplane Mode doing nothing - even with doze ! and dozens wakelocks blocked + My Xperia removed,

which in the past with the Z3 was a guarantee to get great battery life ).

I've had enough of the Stock Firmware, so I'm preparing a new AOSP build and see how well it#ll run
[Xperia Z5 Android Development] :
Awesome. I would love to try an AOSP build. Shame about exFAT but FAT32 doesn't introduce any limitations in my usage. Do you know when you'll be building next?
[Xperia Z5 Android Development] zacharias.maladroit:
right now ;)
[Xperia Z5 Android Development] :
Awesome. Can't wait to try the new build! :)
[Xperia Z5 Android Development] zacharias.maladroit:
partially answered in the other thread,

fingerprint scanner afaik isn't working on AOSP (no files for it ?),

CM likely has support partially for it - but not sure if it works there right now
[Xperia Z5 Android Development] bioan:
Completely stock. No greenify and other useless stuff.
[Xperia Z5 Android Development] :
[MENTION=1806655]bioan[/MENTION], nobody cares about your battery life. Especially when you paste in screenshots which take up twice the size of a laptop screen. This isn't post your battery stats thread. This is AOSP development thread.
[Xperia Z5 Android Development] zacharias.maladroit:
I know, right ? :D

Not sure why Sony can't realize this with their Stock ROM - something's definitely broken in their software,

AOSP devs ( [MENTION=489838]kholk[/MENTION] , [MENTION=359497]jerpelea[/MENTION] , ...) rule ! :cowboy:

Unfortunately support for the external microSD appears to have been removed or at least altered so that on the current build (6.0.1_r22) there's no access to it,

it hasn't appeared so far: no message of corrupted data on microSD, no message about any external SD :confused:

You also can't format it or do anything to it in storage - only internal storage is displayed :eek:

I'd already be happy if I could format my large microSD as internal storage and use that :)

Doesn't look like a kernel thing - no commits mention any changes related to SD cards or MMC :confused:

Perhaps it still works with using an older kernel ?

Using the older AOSP build shouldn't be too bad (also security patchlevel March) since I'd prefer access to my microSD even if only to use it as internal storage and get rid of one "sticking point",

in the longrun however I'd know what changed to undo and/or fix it ...

The camera is still off:

preview: color of keyboard lights: blue

photo taken: color keyboard: red (okay) + out of alignment

Currently uploading the newly compiled system ...

---------- Post added at 10:29 PM ---------- Previous post was at 09:56 PM ----------

File Hosting courtesy of Android File Host

Link:

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

6.0.1_r17

Checksums:

available

: once it's fully uploaded

or on Google Drive (bandwidth limited): https://drive.google.com/folderview?id=0BykGGWB96CBQMWk3a1VQenFWck0&usp=sharing

6.0.1_r22

Checksums:

available

: right now

Custom Kernel:

available

: later ...

or on Google Drive (bandwidth limited): https://drive.google.com/folderview?id=0BykGGWB96CBQMWk3a1VQenFWck0&usp=sharing

edit:

access to microSD seemingly is also gone with 6.0.1_r20 build,

so some changes between r17 and r20 must be causing this :confused:

Anyone know of good gitweb view of the changes to the central AOSP Android repository ?

The view at https://android.googlesource.com/platform/manifest isn't really helpful :(

edit2:

tested 6.0.1_r17 now - and the microSD card also is NOT being recognized (Samsung EVO+ 128GB)

ugh - enough for now,

this is annoying :mad:

edit3:

might be that AOSP doesn't like 128 GB microSD cards (who would have thought with that crappy FAT32 filesystem ?)

anyway - that's enough of annoyance towards my threshold,

6.0.1_r17 and 6.0.1_r22 are uploaded now

Enjoy ! :)
[Xperia Z5 Android Development] JerryLaiHMmmmmm:
I'm wondering if the kernel had added the dual sim detection script.... If so I'd love to try it out.

Anyway, good work!