yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 General] legendstarspro:
The battery volume prescribed in framework only to show/display information about battery, it does not affect charge & discharge.

Charge & discharge are controlled by boot.img &

I am finding the solution by unpacking boot.img.

I want to know if the boot.img (20180825) was compiled from source code or was ported from boot.img for z1 compact?
[Xperia Z1 General] raschad:
Boot.img was ported from xperia z1 compact. Unfortunately, I do not have knowledge in the field of build from source
[Xperia Z1 General] legendstarspro:
Can you describe how do you port boot.img step-by-step, as simple as possible.
[Xperia Z1 General] Bleagle15:
Can't answer calls

I found a simple fix on the internet if you can't answer calls just hold the phone app until it opens a small window tap app info go to phone app and select phone.
[Xperia Z1 General] raschad:
PORTING

Okay, now'll describe it down as I do:

I have on PC Windows 10 32bit

You need to download the following utilities:

Decompression.zip

Unpack+Repack+.DAT+&+.IMG.zip

AndImgTool.exe

Boot.img

unpack ROM and drag the boot.img on Andimg.exe

you'll see the folder boot_

since the phones Xperia z1 and Xperia z1 compact differ only in display and battery, we only need to change the display drivers - dtb.img (I used first the file from the carbon 6.0 ROM, then took this file from aicp 13.1 kernel from Remim7)

you also need to replace the bootlogo logo.rle - it can be taken from any kernel for the Xperia z1

at this point, you can build the kernel by moving the Boot_ folder to AndImg.exe, the file will appear new_boot.img, rename it to boot.img

System

unpack Decompression.zip to any folder you can on your desktop

in this folder you copy the files

file_contexts.bin

system.new.dat.br

system.patch.dat

system.transfer.list

hold the shift key in this folder and press the right mouse button, to open a command window

enter the command

[B][COLOR="Red"]brotli.exe --decompress --in system.new.dat.br --out system.new.dat[/COLOR][/B]

a new file appears system.new.dat

unpack Unpack+Repack+.DAT+&+.IMG.zip to the root of drive C

in the Input folder move all files from the folder with Brotli.img (decompression)

next turn on the program and choose unpack

back to pack the system.new.dat can not, therefore, those files that need to be changed, I add to the archive Patch.zip

that's all, nothing complicated, if the programs is already installed!

I tried to port the same from xperia z2/z3, but unfortunately the platform is different

Good luck everyone! Maybe someone can do an excellent ROM with all the features!
[Xperia Z1 General] 115ek:
Why don't you build from source? It's much easier. You just need to download a lot of source code and do some small tweaks in the device tree.

And your problem with battery drainage still persists? It's because Remim7 didn't update his kernel sources. We fixed the deepsleep for Z1c (which uses the same kernel).

The same thing also works on honami! Just saying... ;)
[Xperia Z1 General] legendstarspro:
I found why battery drain so quickly

First, if have rooted, you can go to the path /sys/class/power_supply/battery/uevent and open it as text.

Find the line POWER_SUPPLY_CHARGE_FULL_DESIGN, it has value 2420000.

2420000 is battery capacity in micro Ampere hour (µAh) = 2420mAh. It is a bit larger than 2300mAh, which is z1c battery capacity. And boot.img use this value for charging. That is why we can't charge battery full. It will show 100℅ when charge to 2300-2400mAh & stop charging. So that battery drains so quickly.

Although we edit this value & save, then reopen the file, it gets back to the original value.

After finding on Google, I know that this value is contained in "zImage", which is included in boot.img. And you haven't replaced zImage when porting.

I try using zImage & dtb.img from lineage os 15.1 by Renim7 (version 20180819). It takes more time to charge full & I can use the phone longer from full battery to empty.

After replace zImage, i go to /sys/class/power_supply/battery/uevent & open it, now the value for POWER_SUPPLY_CHARGE_FULL_DESIGN is 3140000 = 3140mAh, (a bit larger than 3000mAh).

You can try & feel the battery duration.

I recommend you to get zImage &dtb.img from latest version of lineage os 15.1 by Renim7 or Carbon rom by drakonizer
[Xperia Z1 General] raschad:
I would try to understand the knowledge about the assembly of the ROM and the kernel, but

I do not have enough memory and PC performance

I do not have free time, as I started studying at the university.

If someone has knowledge in this area and can compile the core, I will be glad.

I'll try replacing Zimage from other firmware, but it's a little later
[Xperia Z1 General] devilgloom:
Thank you

i use zimage from other rom and now battery so improve after that and capacity is correct.

Thanks again
[Xperia Z1 General] legendstarspro:
I don't think battery duration improves so much, it is only about 30% longer
[Xperia Z1 General] devilgloom:
Yes improve for me before that i play online game for 15 minutes and 32% decrease but now for 15 minutes just 11% decrease I don't know why but its true.
[Xperia Z1 General] BartekBatu:
Can you tell how change zimage or upload boot.img?
[Xperia Z1 General] legendstarspro:
If you don't know how to change zImage, you can try RZ Kernel. It will automatically replace zImage & dtb for you
[Xperia Z1 General] raschad:
View attachment boot.zip

Unpack and flash via fastboot

I did not completely update the ROM, since only the kernel is changed
[Xperia Z1 General] Bleagle15:
Didn't work it still says battery capacity 2300mAh only the name change works now it says xperia z1 not xperia z1 compact.

And can you please make a fix for the mobile data when turn it on its like rng, sometimes it connects and sometimes it doesn't
[Xperia Z1 General] raschad:
Update from 08.09.2018

- Fixed mobile internet

- Upstream update (AICP Gerrit Code Review)
[Xperia Z1 General] Bleagle15:
Ok it worked it fixed everything except the flashlight works like strobe light and battery capacity is 2300mAh

*UPDATE* The flashlight started working properly after a restart everything works fine now. Thank you for everything you have done.
[Xperia Z1 General] PAULINHOLIMA:
battery

When I enter the antutu the battery still appears with a value of 2300Ma
[Xperia Z1 General] raschad:
The battery level specified in the benchmark is only visual, all information about the capacity is in the kernel

if for you it has value, then flash the file via recovery

View attachment battery_level.zip
[Xperia Z1 General] nqhoai:
is this mean that i can now enable mobile data normally on c6902?
[Xperia Z1 General] remilia15:
Yes. Just tested on my C6902 and mobile data works flawlessly
[Xperia Z1 General] kwasior500:
C6903 mobile fixed on latest build too or it was fixed earlier?
[Xperia Z1 General] raschad:
yes, mobile internet fixed (2g, 3g)
[Xperia Z1 General] raschad:
SpiritCroc has started to release official weekly updates. I will try to release in time for Xperia Z1 (honami)

UPDATE ONLY VIA RECOVERY!!! (do not update via update center (AICP Extras))
[Xperia Z1 General] santeria27:
Thx for good News raschad and spiritCroc [emoji106]
[Xperia Z1 General] صصصصصص:
Zz
[Xperia Z1 General] Bleagle15:
The only thing left to fix for me is the adaptive display, it doesn't do anything it just makes the screen darker.
[Xperia Z1 General] moh.kotb:
Screen turn off at using call app

How can i fixed it

---------- Post added at 01:24 PM ---------- Previous post was at 01:03 PM ----------

I have same problem
[Xperia Z1 General] Suryasis:
5 GHz WiFi Not working

I have installed the AICP 13.1 11.09.2018 today and everything is working as expected. However, I am not able to connect to any 5 GHz WiFi Network. It is showing up in the list of available WiFi networks but while trying to connect, it failed every time and moved to SAVED. I am using C6902 model for this and I have flashed the Modem 3.0.zip file. Also, TWRP is updated to latest version as given in the first page. Anyone else having this issue?
[Xperia Z1 General] raschad:
Try Magisk Module WiFi bonding (Qualcomm)
[Xperia Z1 General] devilgloom:
I still have that problem but if you plug hands-free or headphones that problem is solved Temporary.
[Xperia Z1 General] gibbykshmr:
Try flashing RZ kernel to see if it solves that issue. Disable adaptive brightness after flashing it....link in OP
[Xperia Z1 General] raschad:
Today I compiled the kernel using Kernel source from GitHub

Unfortunately, the power of my PC is not enough to fully build the ROM, so I will use the ROM by SpiritCroc.
[Xperia Z1 General] raschad:
Lineage OS 15.1

I make ROM (port) LineageOS 15.1, using as a basis the ROM for Xperia Z1 compact. Thank's 115ek for the build and support

Download
[Xperia Z1 General] moh kotb:
thanks for replay

i am fixed it

i'm using this aicp rom [ROM][Unofficial][beta][8.1.0] AICP 13.1 for Sony Xperia Z1 (you can search)

after : using update AICP 13.1 11.09.2018( by recovery )

batch

magisk

---------- Post added at 11:34 AM ---------- Previous post was at 11:15 AM ----------

i can not download this update (AICP 13.1 18.09.2018)

need another url
[Xperia Z1 General] raschad:
Added link Google Drive on first Page
[Xperia Z1 General] moh kotb:
is this update(18.9.2018) must patched ??
[Xperia Z1 General] zackking:
The phone is charging slowly. I changed the charger the same result.

please, correct it.

we love you
[Xperia Z1 General] moh kotb:
i have same problem

but i solved it on my phone c6903

i have flashed this mod Quick Charge 2.0 (test) for Honami (https://xdaforums.com/xperia-z1/general/quick-charge-2-0-test-honami-t3845838)

this mod By raschad
[Xperia Z1 General] zackking:
Thank you for your interest.

I will mention my experience in the forum (Quick Charge 2.0 (test) for Honami):good:
[Xperia Z1 General] C.T.E:
Thank you for effort [MENTION=6812097]raschad[/MENTION]. What is the changelog 25.09 ?
[Xperia Z1 General] kiruba Developer:
[25.09.2018] whats new changes in this weekly updates??
[Xperia Z1 General] raschad:
Rom based on Weekly rom by SpiritCroc

+ Mod Quick Charge 2.0 (need test)
[Xperia Z1 General] JoeTZ:
The ROM is great and smooth installed in c6902. But one thing screen goes black like forever when placing a call, I even tried RZ kernel still not fixed.

I hope it will be fixed soon :)
[Xperia Z1 General] zackking:
Fast charging does not happen. The battery is over 3 hours but the phone is switched on
[Xperia Z1 General] sieger007:
cant unlock bootloader what are my ops

I am on a locked B/l t-mobile c6916 running Android 5.x . I was rooted but not sure with passage of time how I lost root. Right now using these semi adware programs Kingroot etc I can root but only till next reboot. I managed to install TWRP recovery ( I think it is he dual recovery installed - long ago ) . Now with TWRP installed can I still install this ROM and root with Magisk ? can I follow all these wonderful steps but with Locked b/l . AFAIK - its a t-mob b/l that the co. refuses to unlock. Is there some thread out there where a t-mob locked b/l was unlocked then I can happily do all these things
[Xperia Z1 General] raschad:
No, only unlocked bootloader! I'm sorry(
[Xperia Z1 General] kiruba Developer:
Hello Raschad i still facing proximity sensor bug while placing a Call screen goes black, i tried full wipe installation include internal memory. But it does not working ...

On Latest build [02.10.2018]

Thankyou
[Xperia Z1 General] raschad:
Unfortunately, I don't know how to solve this problem.
[Xperia Z1 General] Princerapopo4:
I think ur proximity sensor is broken bro...
[Xperia Z1 General] devilgloom:
It's not the only one who has this problem. Several people have the same problem. I have the same problem. You say mean all of us sensor broken?? ?
[Xperia Z1 General] kiruba Developer:
NO, Other Custom roms and stock roms are working fine with proximity sensor....
[Xperia Z1 General] zackking:
What is the changelog 09.10?
[Xperia Z1 General] Sgt.pepper.nsk:
Xperia Z1 BEST ROM = [ROM][Beta] AICP 13.1 OREO 8.1 for Honami

Thank you, man! And thanks to SpiritCroc!:highfive:

This ROM is BEST for C6903 EVER!:good:

Keep supporting our brick for time while it's possible!
[Xperia Z1 General] raschad:
AICP 14.0

AICP 14.0 alpha release
[Xperia Z1 General] zackking:
Nice ??
[Xperia Z1 General] DarkBlueEdg:
Everything working perfectly and smoth with twrp 3.0.2.0 and aroma gapps, sensor working also, thanks for your work! :good:
[Xperia Z1 General] reza-salehi:
When the screen is locked, the shutdown menu does not appear, and we have to exit the lock screen to turn off the phone
[Xperia Z1 General] raschad:
you may have disabled the display of the shutdown menu in Aicp extras or in privacy settings
[Xperia Z1 General] devilgloom:
Thank you raschad. Our phone not dead because of your great work
[Xperia Z1 General] moh kotb:
Aicp 13.1 09.10.2018

what about update (AICP 13.1 09.10.2018)
[Xperia Z1 General] raschad:
Changelog
[Xperia Z1 General] Suryasis:
I installed that but it still cannot connect to the 5 GHz band.
[Xperia Z1 General] bazongo:
Thanks bro for everything

We still have issue with charging within using the device

The led gose blinking and turned off and then not charging

I hope you fix it soon
[Xperia Z1 General] moh kotb:
how can i instll RZ kernel

i flashed it but nothing happend
[Xperia Z1 General] zackking:
How can we update the rom without deleting the data?
[Xperia Z1 General] raschad:
You can update ROM without wipe
[Xperia Z1 General] DarkBlueEdg:
Interesting or only for me problem with GPS :confused:
[Xperia Z1 General] DarkBlueEdg:
Everything working. :)
[Xperia Z1 General] ukasio:
Hi, Folks :)

I know that should read everything first, but have to reactivate my old Z1 and totally forgot how to manage new ROMs (used to play with some ROMs, but it was ages ago!!). Can anyone help me with flashing? Even on priv, it doesn't matter. I just don't understand the instruction of installing ROM and the more i'm trying to read and understand, the worse it goes...

Cheers!
[Xperia Z1 General] DarkBlueEdg:
1. In your device, open the dialer and enter *#*#SERVICE#*#* or *#*#7378423#*#* to access the service menu.

2. Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step.

3. Download from first page: AICP 13.1 16.10.2018, TWRP 3.2.3-0, Magisk-v17.1 , GAPPS ARM 8.1, and if you need XPERIA CAMERA + StereoMIC + Increase speaker volume.

If you wanna you can download from here https://mega.nz/#F!CS4nQaza!Ehv7ET3f2tpWyioo7WMz6w

4. Put In your phone internal memory or sdcard: AICP 13.1 16.10.2018.zip, Magisk-v17.1.zip, GAPPS ARM 8.1.zip, if you need XPERIA CAMERA + StereoMIC + Increase speaker volume.zip

5. Download adb-setup-1.4.3.exe and install, extract from AICP 13.1 16.10.2018.zip only boot.img and move to adb folder, and also TWRP 3.2.3-0.img

6. Plug your phone to pc, open cmd.exe

TYPE:

cd C:\adb

adb devices

adb reboot bootloader

fastboot flash boot boot.img

fastboot flash recovery twrp_3.2.3-0_honami_green.img

(change name in your twrp if you downloaded from first page: TWRP_3.2.2-0_Honami.img )

7. Unplug your phone and turn on push volume + you will enter in twrp, push Wipe > Advance Wipe > Mark ( Dalvik / Art Cache > System > Cache > Data > if you have backup and all files in your pc i recommend wipe everything even Internal Storage and Micro SD Card. After Wipe back to main menu push Reboot > Recovery > after reboot plug your usb cable to your phone and repeat 4. Put In your phone internal memory or sdcard: AICP 13.1 16.10.2018.zip, Magisk-v17.1.zip, GAPPS ARM 8.1.zip, if you need XPERIA CAMERA + StereoMIC + Increase speaker volume.zip

8. Go to Install > Select Storage > find your AICP 13.1 16.10.2018.zip, Magisk-v17.1.zip, GAPPS ARM 8.1.zip where you put in Internal Storage or Micro SD Card:

9. Select AICP 13.1 16.10.2018.zip > Swipe to confirm flash > back to main menu find Magisk-v17.1.zip and repeat same with GAPPS ARM 8.1.zip and if you need XPERIA CAMERA + StereoMIC + Increase speaker volume.zip

after that back to main menu Reboot > Recovery > after reboot, Wipe > Advance Wipe > Mark Dalvik / Art Cache > Cache > Reboot System. Enjoy new ROM.

Sorry for grama lazy to write. :)

Don't forget hit thanks button to Raschad :good:
[Xperia Z1 General] ukasio:
THANK YOU SO MUCH, I couldn't figure out adb and was trying everything else what remembered from last time (flashtool etc.), You saved me at least 5h of frustrations!

Z1 is working again, yet still will miss normal photos quality (without blur etc.); well, happens, just won't take any pictures :P

Thanks again!
[Xperia Z1 General] DarkBlueEdg:
Actually photo and video quality it's fine with this ROM.

https://mega.nz/#F!2agzlYYa!AExhkuj44Il1Hhy_dBtOeQ

:)
[Xperia Z1 General] slim_shary:
I am using now the 25/09 version

To update to the latest version, can i flash directly on TWRP the latest build? or do I need to erase data, format?

wanna update but didnt want to lose anything, or download all my apps again
[Xperia Z1 General] raschad:
You can flash ROM without wipe and gapps
[Xperia Z1 General] slim_shary:
Ok, so I flash the ROM and the Gapps again right, The same version of Gapps I was using? Just want to do it right the first time :D

Thank you!
[Xperia Z1 General] raschad:
23.10.2018 (update)

GPS now working (fixed to satellites) - thanks 115ek
[Xperia Z1 General] BartekBatu:
if i do update rom, i must flash kernel, magisk and gapps?
[Xperia Z1 General] raschad:
Update:

1. Flash ROM

2. Flash Kernel ( RZ kernel)

3. Flash Magisk (if after installing the ROM Magisk is not automatically installed)

if you do not do the cleaning, you do not need gapps flash
[Xperia Z1 General] helpplease123:
I'm trying to jump into the android scene again. I thought the Z1 only allowed up to 5.1 versions, how does this ROM managed to get 8.1? Or does it only look like 8.1?
[Xperia Z1 General] raschad:
This is a custom ROM. Sony has stopped supporting phone on Android 5.1

To install the ROM, you need to unlock the bootloader. (First, make a backup of the TA-section)
[Xperia Z1 General] helpplease123:
So this custom ROM effectively turns the phone to 8.01? I thought the phone had some architectural limitation that it cannot actually be modded post 5.1

---------- Post added at 04:25 PM ---------- Previous post was at 03:55 PM ----------

Oh welp, I have encountered a problem in ADB. Says cannot load boot img. Actually it wont load anything from anywhere.

Solved it. Now Im stuck in a bootloop and cannot run into recovery mode after flashing the twrp.

Alright, i think it worked, probably just the stupid volume button.
[Xperia Z1 General] raschad:
Here, read the article. (It is for Z1 compact, but also suitable for our phone)

Xperia guide
[Xperia Z1 General] helpplease123:
Found a bug. Says Poweramp detected problems with app native libraries libampffmpeg.so text relocations
[Xperia Z1 General] DarkBlueEdg:
All peps using poweramp at android os 8.1 have this bug. it,s not rom fault, only app.

You need install app.

Turn off notifications from Poweramp in system app settings.

Exclude Poweramp Notification Helper from Battery Optimization (otherwise service will killed after screen off)

Start app and check "Start service".

Enjoy!

https://github.com/maxmpz/powerampapi

https://forum.powerampapp.com/topic/11255-notification-bar-bug/
[Xperia Z1 General] helpplease123:
Alright, thats relieving. Quite bugged me cause I have searched for it earlier and it was reported to be a big resource hog (the text relocation thingy)
[Xperia Z1 General] Bleagle15:
There is a new bug i'm facing sometimes when i get a call and i answer i can't hear and they can't hear me the only fix i know is restarting the phone but i don't want to reset my phone all the time when i get a phone call.
[Xperia Z1 General] DarkBlueEdg:
Hmm that's really weirdo, how long I am using never happen to me, try install and remove this:

https://mega.nz/#F!uSpxWCrS!XxGkdiXORGM7_4xcj7_I5A

After installing and removing, don't forget wipe Art/Cache , Cache.

Enjoy! :good:
[Xperia Z1 General] parker46:
Keep rock brot..
[Xperia Z1 General] Bleagle15:
Where do I install those apps from?
[Xperia Z1 General] DarkBlueEdg:
OpenGapps Aroma.
[Xperia Z1 General] helpplease123:
Wouldnt MindtheGapps work better than OpenGapps in this rom?
[Xperia Z1 General] DarkBlueEdg:
There's not really any better or worse. MindTheGapps and OpenGapps Pico perform the functions it's same. MindTheGapps is a minimal Gapps package with no customization options, It provides everything required to make use of Google systems and no more. OpenGapps giving to you more customization option if you need that, depends from pack what you choose. :good:
[Xperia Z1 General] Matheus75:
The rom update 30.10.2018 is not boot up after install RZ-Kernel 3.0. but, boots up normally without RZ kernel i will back to version 23.10.2018 :highfive::)
[Xperia Z1 General] raschad:
Use this version

https://androidfilehost.com/?fid=11410932744536987440
[Xperia Z1 General] helpplease123:
can you post the changelog from 23 to 30?
[Xperia Z1 General] DarkBlueEdg:
http://dwnld.aicp-rom.com/device/amami/WEEKLY/aicp_amami_o-13.1-WEEKLY-20181030.zip.html
[Xperia Z1 General] akoru:
Hi there.

I've tested the ROM, and I'm not facing the proximity sensor problem during calls, but I got to say that I've not flashed the Xperia camera + stereo mic fix, so for those who are this problem, you may try the ROM again without flashing this mod, just in case it is breaking something... The ROM seems to work really well, with really good battery live, however, for some reasons, only WhatsApp app synchronize, the rest of the app tested, such as LINE, twitter, Skype and even Gmail does not synchronize at all, not even after whitelisting them in doze, and only does just when manually opening it...

Apart from this problem, the ROM is really good, thanks!
[Xperia Z1 General] DarkBlueEdg:
You doing something wrong, just install ROM>CameraMOD_V1>Gapps>Magisk. Everything working only for you problem, Don't make dirty flash. :good:
[Xperia Z1 General] akoru:
Oh, yeah, I completely forgot to say that I completely wipe everything previous to flashing the ROM, and then flashed ROM, RZ kernel, nano OpenGapps and Magisk... I only have problems with notifications, apart from this, everything is working wonderfully. Don't know why I'm not receiving notification even after whitelisting them
[Xperia Z1 General] Matheus75:
All right working now!! thanks for the help [MENTION=6812097]raschad[/MENTION], i love this rom!
[Xperia Z1 General] helpplease123:
Hmm.. No major changes I think I'll wait until the next big update. 10/23/18 works well and very stable for me.
[Xperia Z1 General] tellmewait:
Why camera not working on z1 C6902 ??? .plz help me!
[Xperia Z1 General] helpplease123:
There's a bug on my Z1 that makes it incorrectly display battery level. After being on sleep mode for so long it will still display 70% but in reality it is at 1% and will power off within the next 5 seconds. I don't know if this is accurate to others because I had my battery replaced.
[Xperia Z1 General] BartekBatu:
I have the same, but i replace my battery too :)
[Xperia Z1 General] Sgt.pepper.nsk:
Hi there!

Bug or uncompatibility? Power charge cant start on my C6903 with regular china's 2.1A 220V power supply.

Symptoms:

Led on and off rapidly. CPU has full load. Screen cant be off by button or timeout and lights on periodically.

When I connect cable to my PC, I see same behavior, but I can switch connection mode to "File transfer" and charging starts normmally with full normal access to files on the phone.

So, why regular charge cant start without changing usb-port mode to MTP?

N.B.: charging with native dock starts normally.
[Xperia Z1 General] DarkBlueEdg:
Try re/w system to stock and check or same issue you have. :)
[Xperia Z1 General] Sgt.pepper.nsk:
Thanks for reply! Already checked on stock firmware. Same behavior. Is there any method to switch usb-mode to "File transfer" permanently? I want to try it.

I think, may be USB-port broken, but file access works fine...