yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] munjeni:
Probably we can port things to separate library (e.g. libcutilz which is part of cm for rhine) instead of hacking android source code
[Xperia Z1 Original Android Development] tomascus:
Which is the point of a shim library like I mentioned......... [MENTION=4120742]munjeni[/MENTION], here is an example of a implementation https://github.com/invisiblek/android_device_lge_vk810/commits/cm-13.0/libshims
[Xperia Z1 Original Android Development] munjeni:
Excatly what I need, great! :)
[Xperia Z1 Original Android Development] munjeni:
Progress with nougat + stock kernel 3.4 + stock blobs from 14.6.A.1.236 -> http://pastebin.com/8SrXCrAA

Some errors about relocation in some libs hmm, it can be solved?
[Xperia Z1 Original Android Development] monnett:
Yeah we hope everything solved :D
[Xperia Z1 Original Android Development] munjeni:
Now stock camera hal is loaded sucesfully http://pastebin.com/r1dtJwTL

Some libs is missing and I can't find them in stock rom. Maybe that missing libs is in data partition somehow? Problem might be libs with "some relocations" which probably can't be solved :(
[Xperia Z1 Original Android Development] munjeni:
If somebody need to play with it here is lib which you need to compile

You must hexedit every stock lib which need missing implementation by changing string libcutils.so to libcutilz.so, I have done that way without needs for ld preloading :)
[Xperia Z1 Original Android Development] tomascus:
...libs in data partition? Doubt it.

Regarding the missing libs, are you referring to errors like this: "mm-camera-img: frameproc_comp_load:828] Error opening frameproc library libmmcamera_llvd.so"?

That's a normal missing dependency, even on stock for some reason.

About the text relocation thing, the only way I know how to solve that is to just recompile the library. However, since we can't do that, it should be fine just to ignore it since it's merely a warning not an error.
[Xperia Z1 Original Android Development] munjeni:
01-01 15:26:25.669 449 449 E mm-camera-intf: mm_camera_open: opened, break out while loop
01-01 15:26:25.669 449 449 E mm-camera-intf: mm_camera_open: cannot open control fd of '/dev/video1' (Invalid argument)
01-01 15:26:25.669 449 449 E mm-camera-intf: camera_open: mm_camera_open err = -1
01-01 15:26:25.669 449 449 E QCamera2HWI: camera_open failed.

Whats problem with this? Other than that I didn't see anything about camera wrapper (camera.qcom.so), seems its not load?
[Xperia Z1 Original Android Development] tomascus:
Interesting, have you checked ramdisk/selinux stuff to see if you included all camera permissions and everything else?
[Xperia Z1 Original Android Development] munjeni:
Selinux is in permissive mode! Not checked ramdisk, only added few lines related to camera_sony 0 and camera_sony 1. Maybe camera apk cuse this? Or missing something in camera service...
[Xperia Z1 Original Android Development] tomascus:
Yeah I found that I had to add missing entries to file_contexts, and service_contexts.

Also, make sure you don't have those camera entries in build.prop that are meant for the open source camera.
[Xperia Z1 Original Android Development] munjeni:
Maybe this cause?

01-01 15:26:21.680 469 469 E mm-camera-sensor: module_sensor_init_eeprom:4164 Exit subdev_id[SUB_MODULE_EEPROM] == -1
01-01 15:26:21.680 469 469 E mm-camera-sensor: module_sensor_init_eeprom:4164 Exit subdev_id[SUB_MODULE_EEPROM] == -1

I will look into stock build.prop
[Xperia Z1 Original Android Development] tomascus:
You might have these which need to be removed:

persist.camera.HAL3.enabled=0
persist.camera.gyro.disable=1
persist.camera.feature.cac=0
persist.camera.ois.disable=0
[Xperia Z1 Original Android Development] munjeni:
Do you have idea why camera wrapper is not load?
[Xperia Z1 Original Android Development] tomascus:
No idea, probably a linking issue if you made a mistake in a Android.mk file somewhere?
[Xperia Z1 Original Android Development] munjeni:
I just put camera wrapper source code into rhine dir, done mm and copied lib to the vendor/lib/hw, than symlinked it to system/lib/hw with name camera.vendor.qcom.so and also with another name camera.qcom.so, android loads stock camera.msm8974.so instead of camera wrapper :( Didn't analysed how it working on CM
[Xperia Z1 Original Android Development] tomascus:
in device.mk, you have camera.qcom under PRODUCT_PACKAGES += \ field?

Example:

# Camera
PRODUCT_PACKAGES += \
camera.msm8974 \
libmmcamera_interface \
libmmjpeg_interface \
libmm-qcamera \
libqomx_core \
camera.qcom
[Xperia Z1 Original Android Development] munjeni:
I have analysed system dump of the cm12, I can see no camera.msm8974.so , probably I need to remove it and it will load wrapper instead?
[Xperia Z1 Original Android Development] tomascus:
From cm12.1:

camera.vendor.qcom.so in system/lib/hw (The camera HAL module)

camera.qcom.so in system/vendor/lib/hw (The camera wrapper)

Have you tried my suggestion regarding PRODUCT_PACKAGES?
[Xperia Z1 Original Android Development] munjeni:
Strange thing which I not understand https://github.com/CyanogenMod/android_device_sony_rhine-common/blob/cm-12.0/proprietary-files.txt look into line 53 and let me know something:

Why camera.qcom.so in vendor/lib/hq have diferent size than camera.vendor.qcom.so in lib/hw ?

I not understand what mean that line 53:

lib/hw/camera.qcom.so:lib/hw/camera.vendor.qcom.so

Is that line extract camera.qcom.so from prebuilt rom and coppy it to the vendor/lib/hw? And it copy that lib to lib/hw or it just symlink it? Which lib of these two gets overwriten by camera wrapper build?
[Xperia Z1 Original Android Development] tomascus:
Sigh I already said it..

One is the CAMERA HAL the other is CAMERA WRAPPER, two different things.

camera.vendor.qcom.so in system/lib/hw (The camera HAL module)

camera.qcom.so in system/vendor/lib/hw (The camera wrapper)

The camera wrapper is camera.qcom.so and it goes in vendor/lib/hw

The camera HAL (prebuilt blob) is camera.vendor.qcom.so and it goes in lib/hw, if it doesn't load, just rename it to camera.msm8974.so or whatever it wants
[Xperia Z1 Original Android Development] munjeni:
Not tried. I think now that camera.msm8974 is not used on cm, camera wrapper is used insted. Thats a reason why I can't get camera working. Strange thing our stock camera hal camera.msm8974 is load on aosp nougat :eek:

Edit:

Is stock camera.msm8974.so wrapper to camera.qcom.so?? Probably yes since in hw folder there is booth libs?

Edit:

Cleaner question... do sony also wraps camera.qcom?
[Xperia Z1 Original Android Development] tomascus:
Can you go on freenode please? it's easier to talk:

https://webchat.freenode.net/

channel: xperia-dev

---------- Post added at 12:50 AM ---------- Previous post was at 12:45 AM ----------

camera.vendor.qcom.so in system/lib/hw (The camera HAL module)

camera.qcom.so in system/vendor/lib/hw(The camera wrapper)

I've said it so many times I'm gonna cryy :crying:

camera.qcom.so is the one you built from camera folder in device tree!!

camera.qcom.vendor.so is one from prebuilt blobs!
[Xperia Z1 Original Android Development] munjeni:
sorry not refreshed page :)
[Xperia Z1 Original Android Development] tomascus:
Ehh Interesting. Well i'm taking a break from this til the end of November to study so I wish you the best of luck lol.
[Xperia Z1 Original Android Development] muzadull:
01-01 08:33:30.586 485 1357 E CameraService: getCameraPriorityFromProcState: Received invalid process state -1 from A

ctivityManagerService!

Did you replace libcameraservice.so?
[Xperia Z1 Original Android Development] munjeni:
No. I think thats not possible
[Xperia Z1 Original Android Development] SuperLamic:
I've opened a new thread for camera/rom development

http://xdaforums.com/crossdevice-dev/sony/discussion-development-custom-rom-t3479108

so you don't need to spam this thread with "unrelated" things (not that I complain you guys are working [MENTION=4120742]munjeni[/MENTION] [MENTION=4675360]tomascus[/MENTION] )
[Xperia Z1 Original Android Development] Syed kamran:
sony xperia z1 supports volte 4G after upgrading to 7.0 Nougat

After upgrading sony xperia z1 from loolipop to nougat does it supports volte 4G

Mail me if it supports

Syedkamran153@gmail.com
[Xperia Z1 Original Android Development] Dell Schulz:
Camera working?
[Xperia Z1 Original Android Development] gauravbhakuni90:
C6903/2 ??

You can check the thread op posted above.
[Xperia Z1 Original Android Development] jos_031:
I hope deep sleep and charging issues will be solved soon....to make it daily ROM.. How is the stability.???
[Xperia Z1 Original Android Development] misterlouis76:
Hi, I've been using this ROM for a week and I've not had to reboot it the hard way, and I experienced no crashes or "soft reboots". So it seems quite stable. :)
[Xperia Z1 Original Android Development] sedres13:
Soo much reboots

reset every time the screen locks any fix for it?:confused:
[Xperia Z1 Original Android Development] SuperLamic:
hello all,

I've built a new build today (some users were complaining that the latest build is old). Unfortunately I don't have my phone to test (I test every release that it boots and to check for bugs).

So this one is UNTESTED, it may not boot or there may be new bugs.

Please test and report: not booting, I'll try new build today
[Xperia Z1 Original Android Development] whoosename:
Hi, did a clean flash, only the rom nothing else. Rebooted but stuck at Sony logo.

Regards

whoosename
[Xperia Z1 Original Android Development] gauravbhakuni90:
C6902 user??
[Xperia Z1 Original Android Development] whoosename:
No it's a C6903

---------- Post added at 08:25 AM ---------- Previous post was at 08:08 AM ----------

Hi [MENTION=4311238]SuperLamic[/MENTION] and all,

I don't know what happend, but after hours stucking at Sony logo the device shut off itself. When I boot again, after Sony logo a bootscreen appears. Then it vibrates and then shut off.

I hope this information is helpful

whoosename
[Xperia Z1 Original Android Development] gauravbhakuni90:
You need to charge your device in the switch off state do not try to open it.
[Xperia Z1 Original Android Development] whoosename:
Loading! Will report later.
[Xperia Z1 Original Android Development] drakonizer:
[MENTION=4311238]SuperLamic[/MENTION] Your build boots fine. Most of the trivial features are working (except for the known camera and charging). There is no camera app in the build, which is totally fine. GApps work, so does GSM, Wifi and everything else that worked before. Feel free to post it as an update.

As a side note to people who can't get it to boot: This ROM is an alpha, and most people can't use it as a daily driver. If you aren't experienced enough to know how to make it boot or how to google and solve your issue on your own, you probably shouldn't be using this in the first place.

Thanks!
[Xperia Z1 Original Android Development] SuperLamic:
okay, thanks for reply. Just a question: is deep sleep working?

anyway, I'm not going to update OP now as I'm now building android 7.1 that was recently released and alviteri has updated SonyAosp repo.
[Xperia Z1 Original Android Development] degeka:
7.1

When to wait for release of Android 7.1?
[Xperia Z1 Original Android Development] monnett:
:victory: smell good , can't wait for 7.1 :good:

---------- Post added at 02:53 PM ---------- Previous post was at 02:51 PM ----------

Dont ask for eta my friend ! Haha
[Xperia Z1 Original Android Development] Keyvannn:
Hi

Can u port this rom for z ultra?please

Thanks

Sorry for my bad english
[Xperia Z1 Original Android Development] SuperLamic:
well, I'm not doing anything that hard to understand... install linux find some tutorials how to compile a rom and use same sources (sonyaosp).

z ultra is I think togari...

My pc for building is kinda old (I5 650, 12 gb, 1Tb wd black). And my internet upload is too low (20down/2up). So build takes ~4 hours and upload more than 1 hour.
[Xperia Z1 Original Android Development] SuperLamic:
OK, so here is download to android 7.1 build: https://mega.nz/#!8dtwkLwa!l8Z8uY4X_bGlp-WbhYyR6zM6_ZTZpflisl_cgXTM3IY

Please test and report. If you're not sure if it's your fault, don't report.
[Xperia Z1 Original Android Development] Hartsig2000:
Good Work!

Děkuji, Ondřej, as far as I can see, everything’s working fine!
[Xperia Z1 Original Android Development] gauravbhakuni90:
The latest build boots just fine .....and wow the first boot animation ............and if you long press icons a menu like 3d touch appears ....

Edit- The device is not taking charge be it in switch on or switch off stage.........
[Xperia Z1 Original Android Development] tomascus:
No logcat? No dmesg? Nothing to help solve issue?
[Xperia Z1 Original Android Development] monnett:
Hallo dude !Did u test camera ?? :D
[Xperia Z1 Original Android Development] santeria27:
Cam not working
[Xperia Z1 Original Android Development] lm/\/trix:
Downloading!!!
[Xperia Z1 Original Android Development] MIcHiJK:
Installed 7.1 on my c6903, no charging issues etc. but when i turn off my devices i cant start it by holding power button. :c

I cant start my phone, I cant connect it with fastboot to pc. I can do nothing. AND I CANT INSTALL STOCK FTF WITH FLASHTOOL IT DOENST CONNECTS! :c PLS HELP

I think my phone is dead, i can do nothing. My battery was full.
[Xperia Z1 Original Android Development] drakonizer:
This is a lesser known issue with all N ROMs. Power off doesn't actually power off your phone...its sort of a non responsive sleep. You need to hold POW+VOL Up for about 9-11 seconds to force shut it down and then turn on your phone normally.
[Xperia Z1 Original Android Development] MIcHiJK:
Pew! Thank u!
[Xperia Z1 Original Android Development] MasterPeaceMetalChurch:
How install?????????????
[Xperia Z1 Original Android Development] ahmedzetm:
what about camera

and plz make new screenshot
[Xperia Z1 Original Android Development] monnett:
:crying::crying: so sad .. [MENTION=4311238]SuperLamic[/MENTION] downloading latest 7.1 but getting corupt . :( and when try to install getting stuck when flashing
[Xperia Z1 Original Android Development] MIcHiJK:
On 7.1 the System is a little bit laggy
[Xperia Z1 Original Android Development] SuperLamic:
Nothing wrong there on my side.
[Xperia Z1 Original Android Development] gauravbhakuni90:
Battery bug issue is there just like mm sometimes it shows it is charging but isn't. After disconnecting the charger it still shows charging.

Also if I install something in system let's say V4A and it succefully installs the driver says to reboot and after reboot when you open the app it still says to install drivers. And in es file Explorer I mounted path and system as r/w but after reboot if I see whether the system is r/w or not and it still says system and path as ro.

Looks like rebooting resets anything done to path or system.
[Xperia Z1 Original Android Development] SuperLamic:
yes, charging bug is still there. I'm not really sure if v4a works with android 7.1 and system gets mounted as ro by boot. If you don't remount it after boot, it stays as ro.
[Xperia Z1 Original Android Development] gauravbhakuni90:
Yes I know that dear. It gets mounted as ro

Can't we set to rw as default so it stays like that after reboot ??

Thanks
[Xperia Z1 Original Android Development] SuperLamic:
You can change it in fstab https://github.com/SonyAosp/device_sony_rhine/blob/n/rootdir/fstab.rhine . It would be dangerous, so I won't change it for everyone in the rom.
[Xperia Z1 Original Android Development] lm/\/trix:
Hey Guys, for some users that cant use Mega or somehow get corrupted file after downloading, Ive uploaded this ROM on a new Hosting Server that you can download it for free.

Here is the Link:

http://www.expoart.co/Files/aosp_c6903-ota-eng.sup0161021.zip
[Xperia Z1 Original Android Development] gauravbhakuni90:
Do I have to add these lines in fstab before rebooting??
[Xperia Z1 Original Android Development] SuperLamic:
no, this is source for fstab. You have the same file in the root of filesystem. You change that ro on line that mounts system to rw.
[Xperia Z1 Original Android Development] gauravbhakuni90:
Only the system line. Yes??
[Xperia Z1 Original Android Development] SuperLamic:
It depends on what do you want to do. https://github.com/SonyAosp/device_sony_rhine/blob/n/rootdir/fstab.rhine#L5
[Xperia Z1 Original Android Development] lm/\/trix:
Downloaded ROM and the only thing that i can say is : "IT IS PERFECT!!!"

BTW, I want to know that in display setting what is the dpi value in small mode? cause it has an awesome display resolution.
[Xperia Z1 Original Android Development] aleksandar9999a:
I tried your rom. The phone is charging, but the animation is damaged. You Tube work good. Equalizer not work. All sensor works. The situation with camera is same. The screen is dividen into three. I have logcat but I open and other things. Another thing I noticed is that after the second restart of the phone, the camera does not start. For network, I must use Afwall. The last issue that I noticed is that connected with 3d graphics when booting Antutu. Garden test stopped just showed the first frame, then continue melody, passed the test and continue with other tests. For two hours my battery usage fell by 16-17%. Wi-fi starts fast. If I think something else will write it later.

I used Google Translate.
[Xperia Z1 Original Android Development] MPro Desire:
Problem with data network

Hi,

I have a problem with data network. I did à manual config of apn and nothing. i verify adress of apn and its right

But nothing.

Thnx
[Xperia Z1 Original Android Development] Gharjohn:
Can for locked bootloader??
[Xperia Z1 Original Android Development] lm/\/trix:
Only Unlocked Bootloader
[Xperia Z1 Original Android Development] P_S_P:
Can i directly flash it on c6902 or i have to compile for my own ? I tried this with twrp recovery but ended up getting bootloop on sony logo . For now i've flashed ftf file and phone is working properly.can someone tell me what i could have missed ? :confused:

can anyone explain the method to install this rom ?

wipe cache/dalvik cache and then installed the rom the again wiped cache/dalvik cache.

on 2nd try wipe cache/dalvik cache,data,system ..flashed rom and again wiped cache and dalvik cache..

On both ways stuck at sony logo..bootloop..and a purple light on notification light !
[Xperia Z1 Original Android Development] AkAsh999:
This ROM is for c6903 brother ! For c6902 you might have to flash some modem files. Check all the replies in this thread. Someone had posted about it. :)
[Xperia Z1 Original Android Development] monnett:
Battery seems good . But i not see deepsleep
[Xperia Z1 Original Android Development] monnett:
Battery still not charging :rolleyes:
[Xperia Z1 Original Android Development] Animeshkr.:
Still battery charging issue..
[Xperia Z1 Original Android Development] SuperLamic:
and does it charge from pc or the issue is on both - computer and charger. Because my phone charges from pc and I use magnetic charger and no issues there.
[Xperia Z1 Original Android Development] zecow@stexsy.com:
the issue is on both via usb.In OP you said usb charging is slow but it doesnt even recognise charger plugged in.
[Xperia Z1 Original Android Development] ahmedzetm:
---------- Post added at 10:27 PM ---------- Previous post was at 10:15 PM ----------

[/COLOR]http://uploaded.net/file/9o3ai6wg/from/ikvebh

whats this
[Xperia Z1 Original Android Development] drakonizer:
What? Did you try out the build? Can you share a screenshot?
[Xperia Z1 Original Android Development] monnett:
That fxp build
[Xperia Z1 Original Android Development] optimumpro:
Thanks for yet another one of your "great" contributions. I hope you have compiled that build yourself and it contains a working 3.4 kernel. Am I right or am I right? :laugh: Also, please share with us those changes you have authored to make 3.4 kernel compatible with Nougat. Thanks again...
[Xperia Z1 Original Android Development] SuperLamic:
Rom updated, people who had problems with charging, please try out the new build.
[Xperia Z1 Original Android Development] santeria27:
moin moin

my mobile data not working!?!? has anyone an idea!!! c6903 honami! and twrp 3.0.00

first inastall biuld 02.09 working mobile data!

now working nothing! :(

what am I doing wrong?

please help°

---------- Post added at 08:58 PM ---------- Previous post was at 08:52 PM ----------

i think update was fail K.A

please update instructions! :)
[Xperia Z1 Original Android Development] R0B3RTF1SH3R:
this is awesome, thanks for the rom
[Xperia Z1 Original Android Development] monnett:
awesome sir. :good::laugh:
[Xperia Z1 Original Android Development] mica@polyfaust.com:
Can you please switch to 'user' build instead of eng.Also it would be nice if u compile rom without gapps ,those who want gapps can flash them :)
[Xperia Z1 Original Android Development] monnett:
On latest build Still with same issue :( battery not charging
[Xperia Z1 Original Android Development] MIcHiJK:
What's with daily use? I will use this rom but is just camera not working and these sensors wo turns of display? And what u mean not charging? Plug in and nothing happens?
[Xperia Z1 Original Android Development] SuperLamic:
Hmm, what would bring us switching to user build? Less logs? I don't think that's worth it. (and some selinux rules are bound to userdebug, so I'm kinda afraid that it would bring us more denials than we have now)

About gapps - alviteri added open gapps to his build and I don't see any reason why to remove it. Most people use gapps and you can always use fxp builds.

Can you explain me a little more when it starts doing that? Because I have no problems with charging. Does the usb port work (when connected to pc)?

Uhm, I don't think I understand what do you mean? And I won't post any instructions there, because it's early built rom and people who are inexperienced with android roms shouldn't use it.

By the way - the latest patch messed something so my phone is showing that it's charging even after unplugging (but in settings there is discharging? But icon in notification bars says the opposite). I'll upload next build probably tomorrow.
[Xperia Z1 Original Android Development] santeria27:
Thx for info!

My big problem is mobile data dont show 3G/LTE etc.. My mobile provider shows on

Wlan works fine thats all :(

I hope you can help me
[Xperia Z1 Original Android Development] drakonizer:
Charging has improved a lot since MM and early Nougat. Charging is consistently recognized despite multiple unplugging and replugging sessions, without a reboot (this wasn't the case before).

And I can second [MENTION=4311238]SuperLamic[/MENTION] 's observation that the charging icon sticks despite unplugging the charger. Now if we can somehow get AC charging working....

The only other issue I noticed is, USB detection is bugged. It's always a hit and miss for me when I plug in the device to the PC. Anyone else with the same issue?

Also, with the latest build, RIL seems buggy. Any network other than 2G drops more than occasionally, which doesn't happen in my build (sonyxperiadev not SonyAosp). Manual scans show my home network repeatedly a BUNCH of times (8-9), as opposed to the usual (around 2).

It's also nearly impossible to get logs for the charging issue, as the phone behaves as it should when it's connected to USB.
[Xperia Z1 Original Android Development] SuperLamic:
I don't have any problems with lte, but maybe the latest build is bugged. Wait for next one..

So the issue appears randomly? I saw some work on mhl recently, I hope it may got better? If not I'll disable mhl and otg in kernel to see...
[Xperia Z1 Original Android Development] P_S_P:
I've read the thread.i copied modem files and mba files but can't find the directory where to paste ! :(

this is log when i tried to flash rom.hope someone can help:confused:
[Xperia Z1 Original Android Development] gauravbhakuni90:
Search for C6902 modem files .... and then flash it via recovery
[Xperia Z1 Original Android Development] P_S_P:
Sorry again for noob question . I should flash modem files first or rom first ? technically modem files already are in stock so I've to flash it after flashing rom , am i right bro :confused: ?