yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] Thieuke:
I'm two days in PN ROM, which I find really great. It's light so it's fast, and that's what I (we?) need. The device is not getting younger you know.

I've one thing though that could be better:

I'm travelling every day from one country to another, living in Belgium and working in the Netherlands. Every time I cross the border the device looses network due to crossing the border. But then it takes a lot of time before I can use data (over network 4G LTE). Even after reboot it still takes a while before I can start using data. Even de-activating and activate data agan doesn't speed this process up.

I possible I can contribute into mending this, but I don't know how to log activities the device does. I'm going to look into this.
[Xperia Z2 Android Development] Thieuke:
After I wrote my problem I tried several things, and one of them was changing from LTE to 3G and back. Shortly after that the data did work, but I tried a couple of things so I didn't know what was the trigger exactly, but now I know, and can confirm that this workaround indeed works!
[Xperia Z2 Android Development] fezzawinkle:
I am using on 18/2 with the defluence app.

After a lengthy period during a call, the microphone seems to cut out and I can barely be heard by the other person. Has happened a number of times after being put on hold in a call centre queue.
[Xperia Z2 Android Development] akshay2shah:
[ROM] [7.1.1] [UB] [AOSP] [PURE NEXUS] [CARBON] Xperia Z2 [D6503, D6502, D6543]

Your solution is in post #3499

Reading thread always best practice in xda !
[Xperia Z2 Android Development] djgigi94:
Anyone?
[Xperia Z2 Android Development] mimo.aridi:
Man redownload full gapps again. Choose arm 7.1 and full. I flashed lateat pn yesterday and gapps normally. Be sure to use twrp 3.0.0 not 3.0.2.
[Xperia Z2 Android Development] djgigi94:
I Try it around a 20 times. Nothing same results. The gapps gave problems only on z2. In other devices all ok. But only gapps gave this problem. Other things no. I don't understand how it's the problem. To others everything is ok
[Xperia Z2 Android Development] twistedddx:
Take your pick:

-You downloaded the wrong file

-you downloaded corrupt file

-you are installing the wrong file

-you did not clear your /system(although opengapps can install over opengapps),

-You are using wrong recovery

-you are doing something wrong.
[Xperia Z2 Android Development] LongLuu:
error message ?
[Xperia Z2 Android Development] iXaidyiu:
Read his earlier posts, "Corrupted file".
[Xperia Z2 Android Development] djgigi94:
No error message. Random reboot in installation of gapps, in random moments. Only with gapps.

Gapps works on other phones, so i don't understand. Are arm 7.1... I don't check the problem because with other things, no problem. Times ago i use recovery 3.0.20 to install gapps after i install rom with this recovery of the thread. And it works. Now not work this method and same problems with this gapps. I download it a lot of times. I put on Phone memory,sd card. Same problem.

---------- Post added at 10:33 AM ---------- Previous post was at 10:22 AM ----------

- I download latest pure nexus, and latest open gapps in more types (pico,nano,Micro,stock ecc.), arm, 7.1.

-I redownload a lot of times gapps. And i download it for a another Phone (galaxy note 2). In other Phone works.

- I follow the instruction of the thread and it always works. In a other z2 i Try the same method and it works. On my z2 anymore.

-I clear always system.

-I use the recovery of this thread (before to install gapps i should use the official becausa with this i have this problem and it works. Now same with official). I Try to redownload it but same.

-Tell me what. I follow the instruction of the thread perfectly. And in other z2 works. In my anymore (before it works). The problem is only in installation of gapps. For other things, roms, mods ecc. No.
[Xperia Z2 Android Development] mimo.aridi:
Seems odd. Man go to fastboot mode and plug ur phone to pc.

Type fastboot devices to check if ur device is recognized

then type fastboot erase recovery

Then type fastboot flash recovery and drag the twrp 3.0.0 provided in OP to flash it
[Xperia Z2 Android Development] klengjaua:
Iam on exitenz marshmellow and elite kernel v3

And i wanna to change to this rom so can anyone guide me what to do..should I just flash over or install a new firmware..also is carbon and pure nexus different ..and cani install custom kernel on it
[Xperia Z2 Android Development] -Andi-:
Extract boot.img from ROM.zip and flash via Fastboot. Flash twrp 3.0.0.0 from OP. Boot twrp and perform a full wipe. Flash ROM and Full Arm 7.1 Gapps. Boot and feel Lucky [emoji6]

Gesendet von meinem D6503 mit Tapatalk
[Xperia Z2 Android Development] J.M.Siyath:
1. Unlock bootloader

2. extract "boot.img" from "pure nexus.zip" file which is you going to flash.

2.1. flash twrp 2.8.7 via fastboot mode by using flashtool or any other ways.

3. copy ( twrp 3.0 .img + boot.img) to phone.

4. goto recovery and click install then find the place where twrp and boot are.

5. click the "Install Image" button in right bottom of the UI.

6. select boot.img and tick boot then install and back.

7. select twrp 3.0 and tick recovery then install and restart.

8. goto recovery again then format Data, type "yes" sweep.... then back to install

9. connect phone (with recovery) copy pure nexus.zip + gapps micro.zip to the phone.

10. now install pure nexus + gapps micro. (you can flash super su also)

Restart.......Enjoy!!!:fingers-crossed:

In my experience, this is the best way to flash Pure Nexus/Carbon....... without any issues.

sorry for bad english:o
[Xperia Z2 Android Development] fezzawinkle:
Hi,

I tried this but my phone would not boot. On pure nexus 18/2.
[Xperia Z2 Android Development] iXaidyiu:
Make sure you did gave build.prop 644 or -rw-r--r-- permission.

Anyway, "make sure" seems to be too late now, in TWRP, fires up File Manager and navigate to /system/build.prop, then click on the "chmod 755" button. It should be solved now.
[Xperia Z2 Android Development] robby.pgn:
No Audio in last Carbon...

Please Fix it if you can
[Xperia Z2 Android Development] rcstar6696:
Next nightly should fix it it was due the caf bringup from carbon and they missed the sony patches
[Xperia Z2 Android Development] fezzawinkle:
Actually, I checked this and it wasn't the problem.

At boot the phone just hangs on a blank screen following the Sony logo.

Only thing I can do is reflash system.

Has anyone confirmed that this fix actually works?
[Xperia Z2 Android Development] twistedddx:
Did you edit the file in Linux or Windows? You may have changed the line return format if you saved in Windows.
[Xperia Z2 Android Development] ashyamsundar:
I am using jio and gonna flash PN 7.1.1

It's support VoLTE?
[Xperia Z2 Android Development] iXaidyiu:
Nope.
[Xperia Z2 Android Development] Eyenseo:
[MENTION=7333858]akshay2shah[/MENTION] Any news on the incall volume being not adjustable and way too loud?
[Xperia Z2 Android Development] rcstar6696:
It is adjustable but too loud at all need to look Into it
[Xperia Z2 Android Development] YamyYugi:
still give me error to try install.. i put the boot.img via fastboot and recovery too..

i wipe same you say on first topic..

give me this:

*************

pure nexus

*************

mount: failed to mount /dev/block/bootdevice/by-name/system at /system: no such file or directory

unmount of /system failed; no such volume

flashing system..

mount: failed to mount /dev/block/bootdevice/by-name/system at /system: no such file or directory

unmount of /system failed; no such volume

flashing kernel...

script succeeded: result was [1.000000]

Updating partition details...

...done
[Xperia Z2 Android Development] iXaidyiu:
Fix your ext4 /system partition in TWRP, if still failed, reflash only SYSTEM bundle of .291 fw using flashtool.
[Xperia Z2 Android Development] akshay2shah:
Post from [MENTION=3816568]Myself5[/MENTION] carbon rom

Good news. I just fixed the sound and it will be fixed on the upcoming weeklies.

The fix was very stupid, but took me a while to find.

During our CAF merges, the Audio hal got moved from hardware/qcom/audio to hardware/qcom/audio/default. However, the Sony devices on AOSP have a very own way to handle the qcom HAL things, which includes hardcoding the path to the audio hal in the device/sony/common/Android.mk.

I adjusted the Paths now, audio is fixed.

https://github.com/CarbonROM/androi...mmit/15a95354fc5edafcdfc9d8e403889095afb09707

As you see, I also added the location oss hal, which fixed GPS. So both, audio and GPS will be fixed on the next Weeklies.

I also discovered that the Led overlays were not fully added, so you will be able to adjust all LED colors (both battery and Notifications) on the upcoming Weeklies too :)

Regards,
[Xperia Z2 Android Development] YamyYugi:
who i flash system on flashtool? if the rom is on zip file?
[Xperia Z2 Android Development] iXaidyiu:
If the fw is downloaded from XperiFirm it is in .FTF format.
[Xperia Z2 Android Development] YamyYugi:
oh yes, i try that but still give me the same error. i dont know what i can do more :S i put boot.img and recovery via fastboot and i already try that flash system from flashtools and nothing work :S thanks anway i think i will give up :S
[Xperia Z2 Android Development] tom.smith:
In my eyes the pure nexus version 18.02. is faulty... Installation of pure nexus 14.02. worked but even using version 18.02. as an update wasn't possible. The system partition was deleted after trying installation of v18. 02...

For me using Carbon worked... Carbon is creating a new system partition during installation. But use the last weekly version! The 'unofficial 22.02.' has sound problem.
[Xperia Z2 Android Development] ashyamsundar:
Current Rom: Stock 4.4.2 ROM with TWRP v2..8.7

Try to Flash PN 18/02 build

Fastboot flash boot boot.img (succeed extract from PN 10/02)

Fastboot flash recovery twrp.img (Succeed v3.0)

restart to recovery

stuck at sony logo (blink orange led and went off)
[Xperia Z2 Android Development] iXaidyiu:
Never nake flash an AOSP on top of old version of stock, your bootloader has to be updated before flashing.

Flash .291 using flashtool then retry flashing this ROM.

//I am quite sure this has been told in OP.
[Xperia Z2 Android Development] ashyamsundar:
Can i flash MX ROm ? or Flash Stock .291
[Xperia Z2 Android Development] iXaidyiu:
STOCK rom .FTF on XperiFirm, zero customization!
[Xperia Z2 Android Development] vandiaz_sairavinz:
flashable zip ?

I not have pc ?
[Xperia Z2 Android Development] iXaidyiu:
The ROMs offered by OP is flashable.
[Xperia Z2 Android Development] vandiaz_sairavinz:
How flashing rom... Slir
[Xperia Z2 Android Development] mimo.aridi:
Hey this happens with twrp 3.0.2

Use the twrp 3.0.0 provided in OP

---------- Post added at 05:37 AM ---------- Previous post was at 05:35 AM ----------

Instruction are on page 1

---------- Post added at 05:38 AM ---------- Previous post was at 05:37 AM ----------

I flashed Pn 18.02 over carbon 22.0 and it works. i find that Pn is more stable.

---------- Post added at 05:39 AM ---------- Previous post was at 05:38 AM ----------

Great news. Don't forget the Bluetooth issue too.
[Xperia Z2 Android Development] vandiaz_sairavinz:
Im like PURE NEXUS ROM

Is file rom ALL need to download folder? ?
[Xperia Z2 Android Development] iXaidyiu:
Only one needed to download, the latest one.

//Com'on, READ OP!!
[Xperia Z2 Android Development] akshay2shah:
Guys please read OP. Instructions are quite clear.

Use search tool.

Dont spam thread.

Follow forum rules.

https://xdaforums.com/announcement.php?f=2924

It's definitely not a whatsapp to help like a chat (what should i type in fasboot, how to flash, how pure nexus).

If u have any doubts ask via PM.

It would hard for people to find answer from 1000 of usless comments even by using search tool.

Its not personal comment to anyone.

Please do co-operation.

Thank you !
[Xperia Z2 Android Development] iXaidyiu:
I want more OP like you:cool:
[Xperia Z2 Android Development] ashyamsundar:
Bootloader Unlocked : Yes

Flashed Stock Firmware : 23.5.A.1.291

Open Command Promot

Adb reboot fastboot

fastboot flash boot boot.img

fastboot flash recovery twrp.img

fastboot reboot

NO Booting Screening (Stuck in SONY LOGO)

Tried PN boot.img and carbon boot.img

redownload TWRP 3.0
[Xperia Z2 Android Development] iXaidyiu:
1. Let it normally boot for once after flashing stock ROM.

2. Use v3.0.0-0 or v3.0.0-2 of TWRP.

3. If still failed, use an advanced kernel (eg EliteKernel) as the loader for the ROM.
[Xperia Z2 Android Development] fezzawinkle:
Gmail not dowloading attachments

Might be just me, but I am pretty sure that since I have been on PureNexus, (and perhaps before that on AOSP Nougat), I have been unable to download attachments in Gmail.

The download just hangs on 0%. I have tried everything including clearing data, reinstalling Gmail and reinstalling the whole of GApps.

Can you let me know whether you are able to download attachments in gmail (so that I can work out if this is just my phone) ?

thx
[Xperia Z2 Android Development] Austin.gonzo:
Try to download the attachment using Gmail from browser and not the Gmail app, report back if it worked
[Xperia Z2 Android Development] YamyYugi:
i use the twrp on 1topic... i already try pass all to fat and next ex4 again and nothing... try just put system and nothing... i dont know what do more...
[Xperia Z2 Android Development] tom.smith:
<br />

</font>[quote name="tom.smith" post=71205465]In my eyes the pure nexus version 18.02. is faulty... Installation of pure nexus 14.02. worked but even using version 18.02. as an update wasn't possible. The system partition was deleted after trying installation of v18. 02...<br />

<br />

For me using Carbon worked... Carbon is creating a new system partition during installation. But use the last weekly version! The 'unofficial 22.02.' has sound problem.[/QUOTE]<br />

I flashed Pn 18.02 over carbon 22.0 and it works. i find that Pn is more stable.<font color="Silver"><br />

<br />

Not working for me and my Z2...

Installed Carbon 22.02. = OK

Installation of PN 18.02. not possible! Waited some 20 minutes just 'installing system..'

After reboot system partition is 0MB!

Something of installation process changed from PN 16.02. to 18.02. that has made this version faulty...
[Xperia Z2 Android Development] vandiaz_sairavinz:
help flashing rom nougat

im lineage

flash boot.img

flash twrp-3.0.0.0.img fastboot mode

reboot revovery volume down lcd pink stok logo sony...

flash adb not work... error: cannot open 'twrp :rolleyes:
[Xperia Z2 Android Development] subhanjavadov:
Is there xposed framework compatible for this ROM?
[Xperia Z2 Android Development] iXaidyiu:
Official xposed for Nougat 7.0 and 7.1 still not released yet.
[Xperia Z2 Android Development] fezzawinkle:
Yes, its fine to download using gmail from the browser. What is your thought?
[Xperia Z2 Android Development] iXaidyiu:
Clear data and cache for Gmail app.
[Xperia Z2 Android Development] fezzawinkle:
Yes, I have done that previously and just did it again - no change.
[Xperia Z2 Android Development] iXaidyiu:
Reinstall it with cache and davik cache wiped in TWRP.
[Xperia Z2 Android Development] fezzawinkle:
Gapps micro 7.1 20170227 reflashed from TWRP after cache and dalvik wiped - no change.
[Xperia Z2 Android Development] iXaidyiu:
Disable any sorts of battery savers concerning Gmail app as well as Google Play Service then retry, see if it works >.<"".
[Xperia Z2 Android Development] fezzawinkle:
The only thing I have is nougat optimisation.

I have specifically excluded Gmail.

Optimisation for Google Play Services is greyed out and not available, so I assume this means it is not optimised.

Anyway, still no change.
[Xperia Z2 Android Development] iXaidyiu:
Provide logs then. Logcat when you attempt to download an attachment using Gmail app then send it up here.

//A sudden thought, have you tried downloading others attachment of various file format? Still unable?
[Xperia Z2 Android Development] Austin.gonzo:
If it couldn't download from browser too then it'd be a issue with the downloader of the Rom but since the rom's downloader works then, it's a problem with ur Gmail app, update it or remove it and download it from Google store or apkmirror.
[Xperia Z2 Android Development] mimo.aridi:
Gmail app not related to rom. Its from the app itskef or the gapps zip file. Try uninstalling and intsalling from google play. Also check if storage permission is enabled in gmail app settings.
[Xperia Z2 Android Development] fezzawinkle:
unfortunately, I've previously tried deleting and downloading from Google Play Store and it didn't make any difference.
[Xperia Z2 Android Development] iXaidyiu:
Try another version of Gmail app downloaded from APKMirror.
[Xperia Z2 Android Development] iXaidyiu:
Ahh yes, permission, forgot this thing could be a reason.
[MENTION=2332847]fezzawinkle[/MENTION]
[Xperia Z2 Android Development] fezzawinkle:
yes, I've tried that and the storage permission is enabled.

---------- Post added at 01:35 AM ---------- Previous post was at 01:12 AM ----------

Tried this. No change.

The problem seems to be because the DownloadManager lookup for the attachment fails?

02-28 01:24:39.396 4403 18254 D DownloadManager: [35208] Starting

02-28 01:24:39.425 4403 18254 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false

02-28 01:24:39.429 4403 18254 W DownloadManager: [35208] Stop requested with status HTTP_DATA_ERROR: Unable to resolve host "android.clients.google.com": No address associated with hostname

02-28 01:24:39.430 4403 18254 D DownloadManager: [35208] Finished with status WAITING_TO_RETRY
[Xperia Z2 Android Development] djgigi94:
Same :( And my device is checked
[Xperia Z2 Android Development] fezzawinkle:
Thanks for all of your help in trying to isolate this issue. It appears to be an android bug that has previously been reported: https://code.google.com/p/android/i...tars Reporter Opened&groupby=&sort=&id=210305

Not sure why only I am experiencing it on this ROM however.
[Xperia Z2 Android Development] reknew:
https://xdaforums.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893/page77

im wondering if this could be used to improve cam :p
[Xperia Z2 Android Development] iXaidyiu:
You are not the first one who post this PoC here but unfortunately this method wont (at least not at this moment) work.
[Xperia Z2 Android Development] base.injector:
Thank you all very much. glad to hear that echo is fixed :D

but im confused. which one to download ? Pure nexus or carbon ? are carbon echo fixed too ?... and the more stable one is ( .... ? )
[Xperia Z2 Android Development] akshay2shah:
Today rcstar will upload new Pure nexus build. It contains all fix.

So wait for today and stay tuned in thread.
[Xperia Z2 Android Development] base.injector:
Awesome

أرسلت من D6503 بإستخدام تاباتلك
[Xperia Z2 Android Development] DiogoSilva48:
I have pure nexus installed. Can I update without the wipes and everything will be fixed ?
[Xperia Z2 Android Development] akshay2shah:
I do clean install everytime.

U can do dirty flash. Should work.

Most bugs known have fixed.

Of course (expect camera!) Same as before.
[Xperia Z2 Android Development] DiogoSilva48:
Can you tell me if this build will fix the bug when turning off wi-fi the data don't turn on ??
[Xperia Z2 Android Development] rcstar6696:
here it works currently testing new build
[Xperia Z2 Android Development] mimo.aridi:
There is thing on WiFi status bar it doesn't show the signal bar strength it always shows no bars and the strength is full.
[Xperia Z2 Android Development] Austin.gonzo:
Is there going to be a changelog provided for the new build?
[Xperia Z2 Android Development] mimo.aridi:
Can u provide us link rn. I can test too. Ty.
[Xperia Z2 Android Development] akshay2shah:
It's working in latest test build.

There is no such bug !
[Xperia Z2 Android Development] DiogoSilva48:
Is being uploaded?
[Xperia Z2 Android Development] xMasterbaitx:
Hello XDA developers,and users.

CarbonROM is built Android 5.1 or built Android 7.1.1? I use pure Nexus ROM,and meybe install CarbonROM,and test features.
[Xperia Z2 Android Development] mimo.aridi:
The carbon roms version is 5.1 which is android 7.1.1. Cheers.
[Xperia Z2 Android Development] ipernet:
Thanks [MENTION=5621191]rcstar6696[/MENTION] and [MENTION=7333858]akshay2shah[/MENTION] for supporting the Xperia Z2 with Nougat 7.1, appreciated and working really good.

I was curious about how to build the kernel/boot image from your source tree from scratch so I posted a recipe below after a few readings. It made me realize that Sony is quite good with their Open Devices resources. :good:

://github.com/ipernet/aosp-xperia-z2-builder

Note: Maybe you should sign your work with a PGP key!

:good:
[Xperia Z2 Android Development] plagu:
http://review.cyanogenmod.org/#/c/98081/

I believe this is the correct fix.
[Xperia Z2 Android Development] rcstar6696:
This already included in aosp
[Xperia Z2 Android Development] Haldi4803:
that's nice.

http://www.howtogeek.com/231078/use...customize-your-quick-settings-and-status-bar/
[Xperia Z2 Android Development] plagu:
Some instability also, at least chrome seems to crash randomly.
[Xperia Z2 Android Development] rcstar6696:
Very nice and it works in our phones too

No problems here
[Xperia Z2 Android Development] rcstar6696:
Christmas Build :D

Christmas build V16

Changelog (for V16 and V15)

Update modem blobs to 23.4.A.1.264

Some improvments for Ta partition

Fix some sepolicy problems

New panel driver
[Xperia Z2 Android Development] TONYTONYAU:
have you try using stock 5.1 kernel on this rom?:D

if it work it mean it's also for LBL:highfive:
[Xperia Z2 Android Development] plagu:
Is the echoing during calls fixed?, currently this is unusable for me. Because phone is for calling :D

All other issues i can handle but not this.
[Xperia Z2 Android Development] chesterr:
I know that you're not gonna reply to this but is exFat there yet?

Love to try out MM(Don't care about Camera working or not, Just need the sdcard to be accessed) :D
[Xperia Z2 Android Development] RyTekk:
Is it OK for a dirty flash? (bugs free, old bug fixed, changes can be applied...) If I have to do a clean flash after a new update, I need more than 1 hour to set up my phone, that's uncomfortable.
[Xperia Z2 Android Development] Haldi4803:
AOSP ROMs never work with stock kernel.

Same goes for ExFat not included in AOSP :( not sure if we need full kernel support or if a module could do the trick.

About the OTA update for recovery.

Not sure if it's because I have supersu and Xposed. But I always get a Bootloop :( I need to factory reset and wipe all userdata every time.
[Xperia Z2 Android Development] TONYTONYAU:
But some xperia device like xperia sp and z can boot aosp/cm/omni with stock kernel

How is it work?:fingers-crossed:
[Xperia Z2 Android Development] Envious_Data:
But in the boot partition is the stock kernel

These roms have a special kernel in the system partition that allows it to boot aosp or cm after loading the stock kernel

( i may be wrong )

This ISNT EASY to achieve and may be not possible on Z2 at all.
[Xperia Z2 Android Development] itsnie:
Anyone have try this ?

And [MENTION=3056043]Haldi4803[/MENTION] can you confirm if that can enable the bootloader recovery ?
[Xperia Z2 Android Development] Haldi4803:
No, it might, or it might not. and we're offtopic.
[Xperia Z2 Android Development] Kimo2014:
Does this update compatible with Z2 D6503 ?
[Xperia Z2 Android Development] rcstar6696:
Yes but you need unlocked bootloader and custom recovery
[Xperia Z2 Android Development] Mikey94:
Hi guys,

nice rom.

- D2TW working

- Music Playback working (bluetooth too)

- Mobile Data working

- Wifi working

- Calling is working fine, no problems here

Some problems i have:

- Apps like Facebook and Whatsapp are laggy after some time

- No Chance to customize the statusbar (i found the system UI Tuner, but i want the % next to the battery, not inside :(( )

- No root