yashsingh1/xdaforums huggingface dataset:
[Mi 3 Original Android Development] romanpatel:
Thanks a lot.. For your hard work..

Egarly waiting to try ASAP..
[Mi 3 Original Android Development] thinhx2:
Bro can try disable tap to wake on sailfish?
[Mi 3 Original Android Development] saidinesh5:
http://reviewjolla.blogspot.in/2015/09/customizing-sailfish-os-mce-tools-by.html tells you more about the functions of MCE, and how to configure the default behaviors. Sailfish prolly has to provide a settings option/an app to easily do this imho.
[Mi 3 Original Android Development] thinhx2:
turn of d2w will sloved this problem?
[Mi 3 Original Android Development] ar4er:
From porting guide:

13.11 Watchdog

A standard linux kernel watchdog core driver support is expected. The device node should be in /dev/watchdog. It should be configured with following kernel options:

CONFIG_WATCHDOG=y

CONFIG_WATCHDOG_CORE=y

CONFIG_WATCHDOG_NOWAYOUT=y

• NOTE 1: Please note that watchdog driver should disable itself during suspend.

• NOTE 2: Normally the watchdog period is programmed automatically, but if your driver does not

support programming the period, the default kicking period is 20 seconds.

In current config:

# CONFIG_WATCHDOG is not set

CONFIG_WATCHDOG_NOWAYOUT=y

And no /dev/watchdog device
[Mi 3 Original Android Development] ar4er:
Hm, seems adsprpc spam is sensor related

---------- Post added at 11:20 PM ---------- Previous post was at 10:41 PM ----------

And i don't find where hvdcp service started. It needed for quick charge. Maybe this is why charger_monitor and quickcharger spamming in logcat.

---------- Post added at 11:29 PM ---------- Previous post was at 11:20 PM ----------

Ok, find it.

service hvdcp /system/bin/hvdcp

class core

user root

disabled

on property:persist.usb.hvdcp.detect=true

start hvdcp

on property:persist.usb.hvdcp.detect=false

stop hvdcp

service charger_monitor /system/bin/charger_monitor

user system

group system

disabled
[Mi 3 Original Android Development] saidinesh5:
Good catch. I think i just used a script to blindly add the needed kernel_configs .. So didn't check it there. Added these to the new build
[Mi 3 Original Android Development] saidinesh5:
Adsprpc fails to be initialize during those odd boots when even udev fails to initialize. (/dev/adsprpc-smd fails somehow)

hvdcp on the other hand seems to be the one spamming the logcat with the netlink socket read failed:

# strace -p 745
Process 745 attached
ppoll([{fd=9, events=POLLIN}], 1, NULL, NULL, 0
) = 1 ([{fd=9, revents=POLLIN}])
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000001}, msg_iov(1)=[{"change@/devices/qpnp-charger-f05"..., 2050}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=0, uid=0, gid=0}}, msg_flags=0}, 0) = 978
ppoll([{fd=9, events=POLLIN}], 1, NULL, NULL, 0) = 1 ([{fd=9, revents=POLLIN}])
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000001}, msg_iov(1)=[{"change@/devices/qpnp-bms-f056560"..., 2050}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=0, uid=0, gid=0}}, msg_flags=0}, 0) = 469
ppoll([{fd=9, events=POLLIN}], 1, NULL, NULL, 0) = 1 ([{fd=9, revents=POLLIN}])
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=432, groups=00000002}, msg_iov(1)=[{"libudev\0\376\355\312\376(\0\0\0(\0\0\0\262\3\0\0\261\254\274\312\0\0\0\0"..., 2050}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=1907, uid=0, gid=0}}, msg_flags=0}, 0) = 986
clock_gettime(CLOCK_REALTIME, {1475147248, 716855720}) = 0
writev(3, [{"\0", 1}, {"\351\2", 2}, {"\360\365\354W\250Y\272*", 8}, {"\6", 1}, {"quickcharge\0", 12}, {"netlink socket read failed -1\n\0", 31}], 6) = 55
ppoll([{fd=9, events=POLLIN}], 1, NULL, NULL, 0) = 1 ([{fd=9, revents=POLLIN}])
recvmsg(9, {msg_name(12)={sa_family=AF_NETLINK, pid=-4149, groups=00000002}, msg_iov(1)=[{"libudev\0\376\355\312\376(\0\0\0(\0\0\0\275\1\0\0\261\254\274\312\0\0\0\0"..., 2050}], msg_controllen=24, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS{pid=1908, uid=0, gid=0}}, msg_flags=0}, 0) = 485
clock_gettime(CLOCK_REALTIME, {1475147248, 736786689}) = 0
writev(3, [{"\0", 1}, {"\351\2", 2}, {"\360\365\354W\1y\352+", 8}, {"\6", 1}, {"quickcharge\0", 12}, {"netlink socket read failed -1\n\0", 31}], 6) = 55
ppoll([{fd=9, events=POLLIN}], 1, NULL, NULL, 0
[Mi 3 Original Android Development] charirma:
I hope the development of Sailfish OS on Xiaomi MI4 continue until all the bugs and problems can be fixed, i was so excited to try this OS, one of the True Multitasking OS beside Symbian,Meego and BB10.. Thank you and god bless you developer.. :good:
[Mi 3 Original Android Development] romanpatel:
Any update brother!? Today is 1st oct.. Hope all bugs hv bn removed.. Thanks..
[Mi 3 Original Android Development] Rawwr:
calm the f down ! he didn't said that he will solve it by oct 1st or anything. Porting an OS isn't easy as porting a ROM. you need to have patience !
[Mi 3 Original Android Development] romanpatel:
brother.. m nt forcing him to give us new build ASAP... jst eager to try new build.. dnt take this in tht manner..

So u calm the F down!! i am just trying to motivate him.. as i like his work... thats it...
[Mi 3 Original Android Development] Rawwr:
lel

motivate him ? your words talk the crap :3

so please shut up
[Mi 3 Original Android Development] ar4er:
Seems bug with start droid-hal-init before system partition is mounted is kernel related. I try other kernel source from vassihath and boot now good, but now i have some bug with powermangment. After screen off i have sod.
[Mi 3 Original Android Development] saidinesh5:
Yup. That's one of the main reasons this is happening. With the next release (2.0.4), they've updated systemd.. so maybe this issue is resolved by then. This weekend, I'm writing a script to manually (re)mount the partitions before starting droid-hal-init.

I've tried vashishath's kernel too. For me, the issue still seems to be there even with it. So reverted to the original cm kernel for alpha0.
[Mi 3 Original Android Development] valdi6014:
Thank's a lot for your work! Wait for updates:)
[Mi 3 Original Android Development] Tomi_Ohl:
Thanks for this awesome ROM! I've tried it like two weeks ago, and I was really sad I had to leave it. Since then I'm checking trello.com every day for news. :D Also, I saw that you wrote 2.0.4 will have new browser engine. I've searched about it on Google and some people say it really improved things even on Jolla... That's good to hear as browser was the weakest point of sfos (thats not device related).

[MENTION=7587193]saidinesh5[/MENTION], don't know how do you want to solve the recognition of files saved on Android, but couldn't it be (at least a partial) solution to mount storage/emulated/0 on boot as an external sd card?

EDIT: e.g it would be enough to run a script on boot like in answer 16.
[Mi 3 Original Android Development] thinhx2:
yeah

*bug dont turn on screen: i thing is kernel dont change brightlight after press power button. this bug is same android for lumia 520. i search commits to fix this bug but for android. bro want see?
[Mi 3 Original Android Development] Tomi_Ohl:
Sailfish OS 2.0.4 out :highfive:

Hope it helps the dev to fix some issues :fingers-crossed:
[Mi 3 Original Android Development] ar4er:
Yeah! Finally i find sod reason

https://paste.kde.org/pu2oyajnh
[Mi 3 Original Android Development] ar4er:
And this dt2w problem. Need proper realization.

And about power management, mpdecision service not running and this reason why all cpu core stay online and we have bad battery life. To fix this we have two way - fix android init files to run mpdecision service or create separated systemd service to run mpdecision.
[Mi 3 Original Android Development] ar4er:
I fix most big problem for me. New kernel:

1. patch i2c-qup driver. Fix sod, long/failed reboot/poweroff process. And seems failed boot too :D

2. Backport latest pm changes from latest cm source.

3. Add msm-hotplug drivers instead mpdecision.

4. Updated prima wlan drivers.

5. Reduce kernel size by removing some debuging.

Really not have time to make install zip. So install it manually, flash new-image.img from fastboot or twrp and copy 3.4.0-cyanogenmod folder in /data/.stowaways/sailfishos/lib/modules/

Some tip if your network settings no saved. Run in terminal:

devel-su
chown -R radio:radio /var/lib/ofono
[Mi 3 Original Android Development] thinhx2:
Stuck in sleep mode is fixed?
[Mi 3 Original Android Development] ar4er:
I think yes. I tested all day and no one SOD.
[Mi 3 Original Android Development] thinhx2:
Thank you so much ? ??????. And in normal mode,cpu run 2x or 4x?

Bye android
[Mi 3 Original Android Development] ar4er:
You mean number of boosted core? It is 4. Min core online - 1. Number of boosted core - 2
[Mi 3 Original Android Development] thinhx2:
When use rom web,call,camera,...
[Mi 3 Original Android Development] ar4er:
Used 4 cores. Possible change this via sys fs.
[Mi 3 Original Android Development] thinhx2:
How to change from 4 cores to 2 cores?
[Mi 3 Original Android Development] ar4er:
In terminal

echo 2 > /sys/module/msm_hotplug/max_cpus_online
[Mi 3 Original Android Development] thinhx2:
Thank you so much
[Mi 3 Original Android Development] thinhx2:
worked. thank you
[Mi 3 Original Android Development] ar4er:
In sailfish os instead sudo/su for root need use devel-su command
[Mi 3 Original Android Development] thinhx2:
thank [MENTION=7587193]saidinesh5[/MENTION] for rom and i hope you can port ubuntu touch for mi3 [MENTION=2009146]ar4er[/MENTION] for fix stuck sleep mode and help me turn off 2 cores

now my phone run last build of sailfish is no bug so far.

good luck. keep your work
[Mi 3 Original Android Development] Rocketval:
Could you do a mini video review on youtube? :)
[Mi 3 Original Android Development] thinhx2:
I had create video on you tube
[Mi 3 Original Android Development] romanpatel:
Brother selfish os is working properly in your mi3/4??

I trued once n it went to SOD all d time!! Can u help me??
[Mi 3 Original Android Development] mms047:
Can you give me the link? But what about android apps like facebook, whatsapp and messenger? chrome and uc brwoser. Are these apps available in jolla store?
[Mi 3 Original Android Development] thinhx2:
you can search on youtube

no :( use with browser of sailfish os

---------- Post added at 10:53 AM ---------- Previous post was at 10:52 AM ----------

running smooth on mi3

what?
[Mi 3 Original Android Development] Tomi_Ohl:
Last night I dreamt that you released a new update for Sailfish on Mi3... I've started downloading it immediately :D

Anyways, just a heads up that someone is still waiting. And as I see, you're also working as per github activities... Hope you'll release a ready build once :)
[Mi 3 Original Android Development] mixmoto:
Hi! I tried this OS and has really surprised me. however, issues with the restart and with the fact that they can not install applications .. thanks for your work and I hope you make progress!
[Mi 3 Original Android Development] Tomi_Ohl:
Restarts (and some other things) were already fixed, you just have to flash this kernel: http://xdaforums.com/showpost.php?p=69376744&postcount=82

The devs are preparing an update, but it seems like it takes a bit longer... Let's wait, it'll be awesome :)
[Mi 3 Original Android Development] Ramabi77:
Wow this look awesome, the UI is refreshing
[Mi 3 Original Android Development] saidinesh5:
Fixed a lot of reboot issues. (Some are still left) and Enabled Jolla Store in the 2.0.5.6 release, which is finally out. Happy Holidays!
[Mi 3 Original Android Development] saidinesh5:
The latest release should add symlinks to Android related paths in /home/nemo . You can use any file manager app to browse them. This feature needs a little polishing in the future though.
[Mi 3 Original Android Development] saidinesh5:
Thanks! From now on, the updates don't have to wait for big releases like this. They will be delivered via. OTA too.
[Mi 3 Original Android Development] zheshifandian:
can't spell Chinese
[Mi 3 Original Android Development] Tomi_Ohl:
Thanks for the update, this seems to fix most of the issues which were affecting everyday usage :) Maybe the next version can also be called beta1 :D

I can't try it now though, because I'm on holidays... But can't wait for January, when I get home and I'll flash it.

Till then, Happy Holidays to Sailfish porters! :)
[Mi 3 Original Android Development] thinhx2:
Yeah,l like you
[Mi 3 Original Android Development] saidinesh5:
I hope so. Fixing the kernel panics means I'd be very happy to call it a beta version then.

Happy Holidays! :)
[Mi 3 Original Android Development] s4tch:
many thanks to the developers for their effort! however, i've tried to install the fresh update via twrp on my mi3, and i always got an error 7, with any twrp version. i tried to re-download the file, install different twrp's, mount or unmount partitions, all in vain. but this helped: http://xdaforums.com/showthread.php?t=2522762 sailfish is booting as i type.
[Mi 3 Original Android Development] saidinesh5:
Hmm... that's odd. Could you boot into recovery and do a

getprop ro.product.device

and share it here?
[Mi 3 Original Android Development] abhisek de:
how do i get required cm 12.1?? i am not getting it anywhere.
[Mi 3 Original Android Development] saidinesh5:
The link to my Android File Host repo: https://www.androidfilehost.com/?a=show&w=files&flid=116252
[Mi 3 Original Android Development] abhisek de:
You know right..it shows only 108B size of that rom.
[Mi 3 Original Android Development] saidinesh5:
Thanks. Probably androidfilehost had an issue importing that file.

Uploaded the new version to: https://www.androidfilehost.com/?fid=529152257862691291 .
[Mi 3 Original Android Development] abhisek de:
thanks a lot man ...got the rom ...tell me one thing can we use this as a daily driver ???and twrp recovery will be there or not after flashing this os?????

---------- Post added at 06:55 PM ---------- Previous post was at 06:46 PM ----------

Will this OS further be updated or the developement on this OS has stopped????
[Mi 3 Original Android Development] saidinesh5:
I and Ar4er are already using this as our daily driver. Whenever I need to use some Android app(like Whatsapp), I boot into my CM12.1 system using it's boot.img.

Your TWRP recovery, the rest of the system AND data stays the same as before. This installation only creates a new folder: /data/.stowaways/sailfishos and overwrites your CM 12.1 boot.img with hybris-boot.img .

Right now, https://trello.com/b/rV0H5txC/sailfish-os-on-cancro shows you the list of tasks we are working on. And I will have to merge more stability and performance fixes from Ar4er into kernel ( https://github.com/Ar4erR07/android_kernel_xiaomi_cancro/commits/hybris-12.1 ). I do plan on bringing android app support to this OS via. SFdroid for the next release.
[Mi 3 Original Android Development] s4tch:
here you go. it looks ok.
[Mi 3 Original Android Development] saidinesh5:
Hmm.. that's odd. The only difference i see is that my TWRP is quite old.

Will have to look into this. Added to my TODO list
[Mi 3 Original Android Development] abhisek de:
thanks .......it will be very useful ...pls do it asap..thank u :good:
[Mi 3 Original Android Development] tjahjo.djoko:
you should first try to install the latest MIUI via fastboot. maybe your mi3 in old dual partition system and make sure that with DI.4.0 baseband
[Mi 3 Original Android Development] abhisek de:
I changed my os to android bt then some files which i had in that os still remains in android...where is it located?? Can you please help???
[Mi 3 Original Android Development] s4tch:
i used the latest miui8 before flashing cm+sailfish. i was a miui6 beta tester, my phone had the new partition system since it was implemented.
[Mi 3 Original Android Development] saidinesh5:
all data of sailfish os is in /data/.stowaways/sailfishos

and the boot.img if flashed
[Mi 3 Original Android Development] abhisek de:
ohh thanks a lot ..gotcha :good:
[Mi 3 Original Android Development] magullo:
With both cm and sfos how much free space is there?

Thanks.
[Mi 3 Original Android Development] saidinesh5:
#du -sch /data/.stowaways/sailfishos
1.1G /data/.stowaways/sailfishos
1.1G total

Out of which my personal data(emails, settings etc., a couple of games + apps) is about 200MB

In my data partition of 10.7GB, I have about 2GB free. ~1.1GB goes for Sailfish OS, The rest goes for my Android apps + data + music
[Mi 3 Original Android Development] magullo:
Thank you. Not too much then.

I was thinking about a Mi4 as a substitute for my J1, since I sold Intex Aquafish. But 1.1 GB would be a tiny amount of space.
[Mi 3 Original Android Development] iamsubhranil:
Here's the process of booting to SailfishOS as a secondary ROM in MultiROM.

Obviously, the name of CM zip will be different, but everything else is just the same.

https://xdaforums.com/redmi-2/how-to/guide-how-to-boot-sailfish-os-secondary-t3434696
[Mi 3 Original Android Development] isgursoy:
What about mi5? Currently mi4 and oneplus x are two best hardware for sfos right?

I can not find oneplus x around.
[Mi 3 Original Android Development] saidinesh5:
Someone else recently started a port for Xiaomi Mi5. Not sure how long before that port comes to life though.

Mi4/Mi3, OnePlus X, Nexus 5, Fairphone 2 are a few Snapdragon 800/801 based devices which have a Sailfish port: https://wiki.merproject.org/wiki/Adaptations/libhybris

Oneplus X port: https://xdaforums.com/oneplus-x/development/rom-sailfish-os-t3322567
[Mi 3 Original Android Development] Tomi_Ohl:
I've just installed the OS yesterday. Now I see why you added that last sentence, the files arent shown in stock gallery/media app. Nevermind, I'll use file manager till then. There's one thing which could easily be adjusted though: you could link /sdcard/DCIM too to home/nemo/Pictures, cause all the camera photos are stored there.

As others might have reported, the battery drain is bit more. I beleive one of the reasons is double tap to wake, I'll try to disable it with mce tools and see.

This is not in issue with the port, but Jolla store has really only a few apps... Openrepos seems to have twice as much.
[Mi 3 Original Android Development] saidinesh5:
Yep. I wanted to try looking for a way to simply tell tracker to scan the new paths too before simply bind mounting the Android paths onto sfos ones.

Usually the double tap to wake is disabled if the proximity sensor is covered (eg. When in Pocket/during a phone call etc...). So whenever i want my phone to disable the dt2w, i simply flip the phone and let it stay like that. So i haven't seen any battery issues yet. I did notice an increased screen on time in SFOS though. (Let's see how well it stands once we get sfdroid heh). Also the mi4's touch driver supports some low power gesture wake mode, but i had to disable support for that, because it was getting hard to test/fix that feature without an Mi4. So I'll look into that once we have sfdroid up and running.

The is an app called battery monitor, which lets you track the battery performance btw. Nothing as fancy as we're used to in android, but it could be a good start. Could you compare the numbers with Android using that?
[Mi 3 Original Android Development] Tomi_Ohl:
Didn't know that "trick" to disable dt2w, thanks. It's not present in any android roms/kernels for cancro. Will see the numbers tomorrow. Screen on time was fine, but standby drain was a bit more. Although, I forgot to mention it, that Sailorgram beta was running the whole time, so that might be the culprit.

I can't find that "Battery monitor", do you mean System monitor? I've just installed it.
[Mi 3 Original Android Development] Tomi_Ohl:
Results with system monitor

The overnight (6h) drain was 4% now, so for some reasons less, than before.

The monitor app showed this in the morning: [overnight graphs]

Then I clicked on the CPU graph to see details, and seems like mainly system processes were using it: [CPU detailed]

Then the final graphs, when battery reached 9%: [final graphs]

As you can see, there's a drop at the end, that time I rebooted (via the reboot option enabled in developer tools), and the phone started bootlooping. Long pressing the power button helped, but the battery has dropped by about 10-15%.

Note: between the first and the third graph, I was in an area with bad wifi signal, where I always get less sot, that's ok.
[Mi 3 Original Android Development] saidinesh5:
Ah interesting. The app was called Battery log, but System monitor is good too. The 4% over 6h sounds similar to mine. From what I have heard, the browser is a really big resource hog.

I should really make time to sit down and merge some of the newer patches from Ar4er. They are supposed to reduce the bootloops.

Rebooting the phone does seem to take a toll on the battery for me, in both CM and Sailfish though.

Thanks!
[Mi 3 Original Android Development] isgursoy:
Hi, thanks for your time.

There are;

mi 4 2 gb ram,

mi 4 3 gb ram,

mi 4c,

mi 4s,

mi 4i,

mi 4 lte

is this port compatible with all of them?
[Mi 3 Original Android Development] saidinesh5:
Firstly, I honestly don't know. I personally test this rom on my Mi3 16GB variant. And Nokius tests it on his Mi4 3GB variant. That being said,

As per this page: http://en.miui.com/thread-252582-1-1.html ,

Mi 4i, Mi 4c, Mi 4s are not cancro. Hence they probably won't work.
[Mi 3 Original Android Development] isgursoy:
What about android apps? Currently is it possible to run android apps on the device?

+How can I contribute development?
[Mi 3 Original Android Development] isgursoy:
I am using that port for 24 hours.

Issues;

-3G and LTE don't work.

-Sometimes, home screen is frozen while waking up. Needs reboot.

-Keypad vibration is very low, almost none.

-Sometimes, store is crashing while installing/uninstalling apps by Jolla.

-Missing contacts while syncing CardDAV account.

Anyway, still it is very useful for me. I appreciate your work, thank you very much.

A question; Who is sending OTA updates? Can I apply your following fixes/updates for that port without data loss?
[Mi 3 Original Android Development] saidinesh5:
I am working on bringing Android app support to the device via. SFDroid. However, this month suddenly got *very* busy for me. Hence it will take some more time.

Here is my current TODO list: https://trello.com/b/rV0H5txC/sailfish-os-on-cancro

Feel free to add tasks to it/pick up tasks from it and work on them. In case you need help with anything related, someone or the other(including me) is always available on #sailfishos-porters channel on Freenode/Sailfish os for cancro group on Telegram.
[Mi 3 Original Android Development] isgursoy:
so; Who is sending OTA updates? Can I apply your following fixes/updates for that port without data loss?