yashsingh1/xdaforums huggingface dataset:
[OnePlus X Android Development] jobe-m:
I could test buttonjackd already with the kernel from aplha3 release and can verify that the media button (BTN_0) can control the media player play/pause function, accepting an incoming and terminating an ongoing call.

For the volume buttons I need to get the new kernel now on my device.
[MENTION=1082346]kimmoli[/MENTION] What is the easiest way of getting the kernel on the device? Do I need to flash the hybris-boot.img with TWRP or can I copy the .img file in /boot (and additionally run a script or so)?
[OnePlus X Android Development] kimmoli:
Yes, actually i lately changed the buttonjackd to react both, KEY_MEDIA and BTN_0.

I prefer flashing it with TWRP, it is easy and fast operation (Install -> Change to Images -> find your file -> Flash to boot partition -> Reboot). Do you have it built?

---------- Post added at 12:18 PM ---------- Previous post was at 12:16 PM ----------

I have some traces about this. Volume in alpha-2 was good (even too loud), but something changed in alpha-3. Just need to find out what.

EDIT: Found reason. Now need to find out why and how these packages differ...

alpha-2 uses pulseaudio-modules-droid-8.0.47-10.5.1.jolla.armv7hl

alpha-3 uses pulseaudio-modules-droid-8.0.47-10.2.1.jolla.armv7hl

Binary files alpha2/usr/lib/pulse-6.0/modules/libdroid-util.so and alpha3/usr/lib/pulse-6.0/modules/libdroid-util.so differ

Binary files alpha2/usr/lib/pulse-6.0/modules/module-policy-enforcement.so and alpha3/usr/lib/pulse-6.0/modules/module-policy-enforcement.so differ

Replacing these two files from alpha-2, and video recording volume is again loud
[OnePlus X Android Development] jobe-m:
No, not yet. I have a build environment and would need to pull the latest kernel changes. But if you have the possibility to share the image. That would be also fine and would save me time ;)
[OnePlus X Android Development] jobe-m:
Your modified kernel produces other IDs then I saw in kernel sources when pressing

(+) button

/dev/input/event6: 4074.964 - 0x01/EV_KEY - 0x103/BTN_3 - 1
/dev/input/event6: 4074.964 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0
/dev/input/event6: 4074.964 - 0x01/EV_KEY - 0x103/BTN_3 - 0
/dev/input/event6: 4074.964 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0

and (-) Button

/dev/input/event6: 4075.720 - 0x01/EV_KEY - 0x107/BTN_7 - 1
/dev/input/event6: 4075.720 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0
/dev/input/event6: 4075.720 - 0x01/EV_KEY - 0x107/BTN_7 - 0
/dev/input/event6: 4073.070 - 0x00/EV_SYN - 0x000/SYN_REPORT - 0

on the cable remote.

I have adapted that button IDs in buttonjackd and after that change controlling the volume with a short press and skipping next/previous track with a long press works in media player. :)
[OnePlus X Android Development] kimmoli:
öh, ok.

So my change was for wrong buttons, kinda.

SND_JACK_BTN_1 was mapped to KEY_VOLUMEDOWN (_2 to UP) so i changed those to BTN_1 and _2.

but also

SND_JACK_BTN_3 was mapped to KEY_VOLUMEUP (_7 to DOWN) which i deleted from remappings,

so SND_JACK_BTN_3 is mapped now to BTN_3 (and _7 to _7) so, yes, maybe it used those two then.

I made relevant changes to buttonjackd, 0.0.7 cooking

https://github.com/kimmoli/buttonjackd/commit/99a1b7abe849851031f92baae5f4781a1e80c4f0
[OnePlus X Android Development] jobe-m:
I added your changes in my local build of buttonjackd and they are working as expected with my cable remote. :)

Thank you very much, Kimmo. I guess this state can be released with the next onyx SW update.
[OnePlus X Android Development] Dr.Electronic:
Thank you . Good working.
[OnePlus X Android Development] cvp:
thanks kimmoli , works good! :)

I am install the Maps-App, it works, but the app cant find the GPS possition. GPS is of course on. Any idea to fix it?

EDIT: it works well! it needs a cold fix... i am go to outside and wait a few minits/seconds. gpsinfo and jollas maps app works!
[OnePlus X Android Development] CertifiedBlyndGuy:
Is there like an arm version of firefox or something? Webcat is slow. And is it possible to update to 2.0.2.x? Thanks for the great work
[OnePlus X Android Development] kimmoli:
try webpirate. i use stock sailfish-browser.

and no, 2.0.2.x is not out.

you can update OTA to 2.0.1.11
[OnePlus X Android Development] cvp:
[MENTION=1082346]kimmoli[/MENTION] i have a strange problem. after i saw that the text auto correction is missing i start to reflash all stuff... after i reflash all (CM+SF2.0.0.10) i cant install anymore the sailfish maps app. i get a message "Problem to Install" and a second message something like that some direction on the phone has wrong configuration "dhd" or so.
[OnePlus X Android Development] kimmoli:
sailfish maps and text autocorrection are both closed bits, and not available on ported devices. officially. so all that you do is on your own risk. I usually reboot after first boot to sailfish, then ssu lr and check my repos, then pkcon refresh, then install stuff. no problems so far.
[OnePlus X Android Development] Kermit13:
hm....what do we have to install to get the autocorrection working ?...whatś the name on the jolla ?

Thanks
[OnePlus X Android Development] jobe-m:
Try devel-su pkcon install jolla-xt9
[OnePlus X Android Development] Kermit13:
muchas grazias...tonight..

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

another question regarding wifi tethering, at home I was testing it and was working out of the box.

At home I have only 2g and 3g connection, now Iḿ staying in india and having only vodafon 4g...since than I can't

enable wifi tethering....can see it but no reaction when touching it.

Is it related to the provider connection ?
[OnePlus X Android Development] cvp:
nice! thank you! now i get more and more happy with the new device :D
[OnePlus X Android Development] Kermit13:
for me too....like a dream..;)
[OnePlus X Android Development] IchBinNoob:
Hey, I read that it would be possible to use SFDroid on our phone if we have cm11 as base of Sailfish. Because we don't have cm11 for our phone somebody has to port/build it. I'm a newbie so I think that I don't can do that. Can somebody of you do that? That would be great because I, and many more SF users on that phone, want Android support.

Sorry for my Bad english :)
[OnePlus X Android Development] cvp:
this was often asking in die thread. the sfos devs for opx dont do that. but maybe some of other devs can help usw.

some talking about: http://talk.maemo.org/showthread.php?p=1505965#post1505965
[OnePlus X Android Development] jobe-m:
[MENTION=348460]cvp[/MENTION] you catched me ;)

sfdroid for Oneplus X is WIP as I just started to port the work of krnlyng (original developer of sfdroid) to CM12.1. But I don't want to give any promise that it will work out. I currently cannot oversee which obstacles are on the road and if I will be able to master them...
[OnePlus X Android Development] Dr.Electronic:
Can we control this television programs to adding phone infrared device.

https://openrepos.net/content/coderus/lg-webos-tv-remote

http://www.ebay.de/itm/Infrared-Rem...679366?hash=item567c8b1dc6:g:zxEAAOSwFMZWshLk
[OnePlus X Android Development] kimmoli:
nope. That needs Android app "zaza?". Unless someone reverse-engineers that...

That webos-remote applications uses wifi.
[OnePlus X Android Development] lfc222222:
Are USSD codes supposed to work in 2.0.0.10 build? The response I get does not show any information other than "Service Message" or something similar but no actual information on minutes/data left in plan.
[OnePlus X Android Development] cvp:
[MENTION=1082346]kimmoli[/MENTION], one bug in 2.0.1.11. if i want start the camera with the circle on display, it needs to unlock the home screen. With 2.0.0.10 it unlocks automatic.
[OnePlus X Android Development] kimmoli:
Will check. thanks

EDIT: Works for me
[OnePlus X Android Development] cvp:
That's weird. I have reinstalled now at least 5 times. There are no problems with 2.0.0.10. As soon as I get the 2.0.1.11 on it, the Smartphone will not automatically unlock. The camera app is open in the background and only grows when you manually unlock the lock screen. The function in the caller list (^) works, however, normal. It unlocks the display by itself.

Can this test someone else? (not only kimmoli :))
[OnePlus X Android Development] Kermit13:
for me itś working too, also the caller list and switch on the flashlight...

Regarding the wifi tethering ... I got it, have to allow data roaming than I can enable wifi tethering..., when enabled

I can disable data roaming...
[OnePlus X Android Development] jobe-m:
Drawing circle to start camera app works for me, when the camera app is not started in background. When the camera app is open in background then when drawing the circle I only get the lock screen.

(^) for call lock works. Wether the app is open in background or not doesn't matter.
[OnePlus X Android Development] lfc222222:
Can anyone confirm? Does it work in 2.0.1.11?
[OnePlus X Android Development] kimmoli:
Update gesture-daemon 0.0.11 from e.g. https://build.merproject.org//package/show/home:kimmoli/gesture-daemon

and cast-a-spell

mcetool --set-touchscreen-gesture-actions=6,unblank,tkunlock,dbus6

It now uses the dbus-call for selfie showFrontViewfinder (call i used was wrong, but camera started with any call), and restores your original camera mode, so if your camera was set to rear-video, it should be in that mode instead of selfie.

Now it works also if camera is already running.

EDIT: showFrontViewfinder method seems not to touch capture mode, just changed to front camera. 0.0.11 now does not touch capture mode.
[OnePlus X Android Development] kimmoli:
If someone is interested in this kind of stuff; https://twitter.com/LiKimmo/status/737000720147329024/photo/1
[OnePlus X Android Development] cvp:
cool thanks for all.

today i try to connect with my pioneer car radio (BT). Its connected but i cant call with it because no Audio to hear. With Jolla Phone no Problems.
[OnePlus X Android Development] Dr.Electronic:
Hi. my radio is broken. press the scan button. stop to radio station frequency but does not make any music sounds. I dont understand. I can hear the button click.

Last changed files
[OnePlus X Android Development] kimmoli:
There is something strange, under investigation.

Can you hear your own voice from headphones?

You can try to restart pulseaudio:,

systemctl --user restart pulseaudio

sometimes needs 2-3 times
[OnePlus X Android Development] Dr.Electronic:
No . I cant hear my voice from headphones. But headphone is working. Calling , music sound, video sound

I did. Not working. Re install pirate fm . Rds is working but not sound.
[OnePlus X Android Development] Dr.Electronic:
Oneplus discount. Oneplus X 199$
[OnePlus X Android Development] JeffHoogland:
Just picked up a OnePlus X - hoping to play with Sailfish on it at some point - but need multirom or SFDroid working before I do so. Multirom seems to be stuck currently where they are at - any progress towards SFDroid? Is there a work in progress somewhere I can possibly try to contribute too?
[OnePlus X Android Development] haree:
hi

i love the sailfish and waiting for this to become a daily user or is it can i get mobile signal and use it on regular basis
[OnePlus X Android Development] Kermit13:
for me it is a daily user for over 5 weeks now, don't have trouble with it.. :o
[OnePlus X Android Development] kunal335:
Android apps

Are you able to install android apps???

If yes please share the steps or link
[OnePlus X Android Development] mrcaaattt:
No.

Only with hacks like sfdroid will ported sailfishos run android, which is currently not available and unlikely until someone actually takes up the job to do so.
[OnePlus X Android Development] kunal335:
Thank you for clarification
[OnePlus X Android Development] elvarr:
Give us hope that continuation of port will be.

Thanks, for your work, kimmoli !
[OnePlus X Android Development] kimmoli:
Yes. I have been busy with other things, and had no time to package this.

So i make no ETA promises now, but alpha4 slowly baking..
[OnePlus X Android Development] Kermit13:
today I found the first bigger problem. Connected the phone via bluetooth to a parrot ck3100 car kit..pairing went smooth, address book syncronizing is working...I can initiate a call or someone can call me and itś ringing, but when I pick up the call the parrot stops and only the phone is working.

Seems like there is a problem with the bluetooth.

I tested it with the original jolla and everything is working like expected.

Any idea ?
[OnePlus X Android Development] Danvik87:
[MENTION=7461812]Kermit13[/MENTION] Install bleh from warehouse. Worked for me. ( I'm using a Pioneer DEH-X8700BT bluetooth car stereo )
[OnePlus X Android Development] Kermit13:
[MENTION=5655015]Danvik87[/MENTION], hm...unfortunately no success... :(
[OnePlus X Android Development] Danvik87:
[MENTION=7461812]Kermit13[/MENTION] Sorry to hear that... :(
[OnePlus X Android Development] cvp:
[MENTION=1082346]kimmoli[/MENTION] can we upgrade to 2.0.2.43? or is it not working like on jolla phone 1 / Tablet ?
[OnePlus X Android Development] kimmoli:
Why not? Just do it. No warranty anyway. i will provide support only for 2.0.1.11.
[OnePlus X Android Development] cvp:
[/COLOR]

ok thanks :)

i try now and will report how it ends :P

Edit: Okay it boots normally. no Problems. and my old problem is gone: make a circle to open the camera with auto screen unlock. I dont know why, but with 2.0.0.10 it haves works, after upgrade to 2.0.1.11 than not and after upgrade to 2.0.2.43(.45 too) it works again :)

.... now only dual Sim support is missing :)
[OnePlus X Android Development] IchBinNoob:
Is whatsup or mitäkuuluu working for you?
[OnePlus X Android Development] cvp:
cant confirm that because i dont use it anymore. I know that Coderus dont work on Mitäkuuluu.... project is also close for ever. Whatsup works for me 3 month ago only if i chat with 1 person. In Groupe Chat i have many problems. i dont receive many text message from different group users. This is why i change to SailorGram (Telegram).

EDIT: maybe wait until SFDroid is supported CM12.1, than you can use original WA-App from Playstore
[OnePlus X Android Development] IchBinNoob:
Yeah, thanks :)
[OnePlus X Android Development] Danvik87:
Speaking of SFDroid, any updates on that?
[OnePlus X Android Development] the_Victorian:
I could be wrong but as far as I know no one has been able to get it to work on anything above cm11, but a couple people are working on it I think
[OnePlus X Android Development] IchBinNoob:
So it would be possible if someone would Port cm11?
[OnePlus X Android Development] Danvik87:
[MENTION=7229830]IchBinNoob[/MENTION] Yes! But i dont know which is easier, making SFDroid working on CM12 and above or porting CM11 to the OPX?
[OnePlus X Android Development] IchBinNoob:
I think it would be easier to port cm11, but I don't know much about SFDroid
[OnePlus X Android Development] elvarr:
When i call, i hear, and me too. When i switch to the speaker, i hear, and me - no. Perhaps, a problem in Call Recorder (from dpurgin)?

Yes, the problem in the Call Recorder. Sorry, guys.
[OnePlus X Android Development] taaeem:
So guys its time for an update!

We're now moving into Beta status!

So here is the first Beta. Please follow the installation instructions in OP.

For OTA please follow the instruction here

Changelog is here in third post.
[OnePlus X Android Development] cvp:
wow, thats very cool :) thank you!

downgrading from 2.0.2.45 to 2.0.1.11, upgrade to Beta1 and again to 2.0.2.45 is working :)
[OnePlus X Android Development] Kermit13:
hey thanks :) let´s see what surprises we get...update went smooth...
[OnePlus X Android Development] kimmoli:
Just to avoid spam, list of known issues in beta-1

Jolla account/store not working

FM Radio audio missing (sometimes works)

Dualsim not supported

4G not shown in settings (in 2.0.1.11 at least)

Voicecall volume is stuck at max

Bluetooth is disabled after reboot

No android support

I'm still at 2.0.1.11, so can't really help if you have updated to unreleased 2.0.2.x sailfish...
[OnePlus X Android Development] mgfm99:
smooth upgrade to 2.0.2.45

I was already on 2.0.2.45, I followed the instructions for OTA and downgraded to 2.0.1.11 and everything went entirely smoothly. I then immediately upgraded back to 2.0.2.45 and have installed everything back as it was. So far no problems.

Not sure what issue Kimmoli was highlighting about 4G in settings - on 2.0.2.45 (forgot to check on 2.0.1.11) Prefer4G is listed as an option in mobile network.

Incidentally, I was v careful to disable all openrepos and Kimmoli's repo before downgrading/upgrading to 2.0.1.11/beta1 and also when upgrading back to 2.0.2.45. The first time I upgraded to 2.0.2.45 I managed to hose entirely my networking, including mobile, through not disabling them - I suspect it was a conflict over one of the voice call patches. Thankfully, I had a recent backup to return to.
[OnePlus X Android Development] kaulian:
Thanks

Just a little post to say THANKs to every user who contribute to this port.

Have OnplusX with Sailfish since a few day and that simply awesome.

Thanks to kimmoli to the support on twitter.

One little bug for me I can not received MMS if my data connection is enable, I need to disable it to download MMS.
[OnePlus X Android Development] Dr.Electronic:
You calls a person. Person is busy. After 5 seconds the person calls you. This time you're busy or phone waiting.. I try to person call , mobile phone can't make next call between 10-30 second. Cover menu show me "call end" I'm alow to make next call.

This is very annoying. (10-30 second). But jolla phone is make next call 3 second. Who has this problem
[OnePlus X Android Development] liya123:
Once we have ROM OS Version: 5.1.x Lollipop, whether not you can to drive the and Android applications in a more simple way?
[OnePlus X Android Development] kaulian:
Same problem for me, but I have the same problem with my Jolla Phone too, that seems a feature :)

---------- Post added at 02:02 AM ---------- Previous post was at 01:58 AM ----------

After some day, I have a question about agps

GPS is very long to have the focus on OPX with sailfish

Does Agps works, with this release ?

If i install here rpms (geoclue and other lib..) from my Jolla Phone, that is always very slow.. Do I need to remove other geoclue package ?

Thanks
[OnePlus X Android Development] jmpa07:
Hi there:

Are you able to install google apps or register a jolla account with 2.0.2.45 ??? Or you are just using that OS version without a jolla account?

Thank you for your help,
[OnePlus X Android Development] mgfm99:
Neither of the issues you ask about are connected to the version number of SailfishOS.

a.) the availability of Gapps relates to Alien Dalvik - this is a proprietary piece of software provided by Jolla for its own devices. It works only with *their* kernels on *their* devices. The open source alternative is SFDroid. So far this works on the Nexus 5 port with the CM 11.1 base. OnePlus X has a CM 12.1 base. AFAIK someone has started work on the port for the OnePlus X, but it will be a big job and won't arrive soon. Your best bet would be to use multirom, and simply boot back into some form of Android when you need a google app. Unfortunately multirom is not yet working for OnePlus X, and it is v uncertain when it will;

b.) The inability to register your Jolla account is due to Jolla's own protocols - they will not allow you to register the IMEI of a non-authorized device (I believe Fairphones are allowed to register at the moment). Jolla may remove this restriction in the future. You can create a new Jolla account, if you have enough different email addresses, to get the store to work - though it then shows little more than the basic Jolla apps.
[OnePlus X Android Development] jmpa07:
Hi again,

Yep it make sense, thanks for your help ;)
[OnePlus X Android Development] kimmoli:
Statistics:

* Alpha-3.zip downloaded 299 times during July 2016

* Beta-1.zip downloaded 76 times so far.

I have no statistics for alpha-3 -> beta-1 OTA updates (höh)
[OnePlus X Android Development] cvp:
why? i do the update from alpha3 to beta1
[OnePlus X Android Development] taaeem:
Because that doesn't use the image server, only Jolla servers and we don't know how and if they track such things
[OnePlus X Android Development] bnwg:
"SailfishOS 2.0 Nexus 5 CM12.1 Alpha1 | Sfdroid Pre-Alpha/Early Preview" from link below

Not sure it would be helpful to make the development faster

https://talk.maemo.org/showthread.php?p=1509185
[OnePlus X Android Development] cvp:
Dual-Sim@2.0.2.45

i know the support is only for 2.0.1.11 but maybe is the problem easy to fix.

I edit the file:

/etc/ofono/ril_subscription.conf

and put two lines into:

[ril_1]

socket=/dev/socket/rild2

after a restart the phone ask me only for Sim Pin 1. Sim Settings are visible under events view (Activate/Deactivate Sim card 1 or 2). I can activate Sim 2 (unter Settings => Mobile Network) , but i get the message "No Sim-Card insert in 1%". Phone dont ask me about the Pin for Sim 2. Same if i want activate the Card over Settings => Pin-Code. One time the phone ask me for the PIN, but i doesnt work, i type my pin but the Button to confirm is not working.

any idea ?
[OnePlus X Android Development] taaeem:
Try to use

[ril_1]
socket=/dev/socket/rild2

Instead of ril_2
[OnePlus X Android Development] cvp:
sorry my mistake, i try with ril_1 not ril_2, i change my old post.
[OnePlus X Android Development] karan5chaos:
After firing the command "devel-su pkcon refresh" I got a error mid process saying something about repos not configured properly and something about failed to get repo list. Any idea regarding this ?

Also it Seems like there's battery drain issue. It drains like 1 percent for every minute the phone's screen is on (even on the lowest brightness and no process running ) . is their any specific reason for battery drain ?

Thanks :)
[OnePlus X Android Development] kimmoli:
You have installed an app via browser/transfers ui?

Most propably you just need to disable adaptation0 and store.

e.g.

ssu lr
# check which enabled repos point to path with "store" in it, and disable them
ssu dr adaptation0
ssu dr store
devel-su pkcon refresh

Shouldn't be that fast even with screen on. Can you check with top that is there something eating cpu time?
[OnePlus X Android Development] mgfm99:
strange behaviour with bluetooth 2.0.2.45

OK - I know that this version isn't supported. But I thought I should mention strange behaviour I had with bluetooth on this version of SailfishOS. Basically turning bluetooth on would crash the networking - no bluetooth devices would be shown under bluetooth, and wireless connectivity would have to be reestablished.

I ran pkcon refresh and update and bluetooth started working normally again. Though I also had to reapply the icon fix afterwards.
[OnePlus X Android Development] cvp:
the .45 have some problems. Try with 2.0.3.11 maybe it works better. Mediaplayer is working again with this version.
[OnePlus X Android Development] mgfm99:
Well, just after posting I noticed 2.0.3.11 and updated to that. I now have exactly the same problem with bluetooth as before. What is worse, though, is that there are no newer packages to update to to undo the problem, so for the moment I just have no bluetooth functionality!

You are right that Mediaplayer is working again. Unfortunately, though, it continues to fail to use any tags in flac files (the only music I have stored on the SDCard) so it remains utterly useless. Thankfully I have QuasarMX.

---------- Post added at 02:10 PM ---------- Previous post was at 01:57 PM ----------

OK - simply reinstalling bluez and then rebooting seems to do the trick ...
[OnePlus X Android Development] karan5chaos:
that did the trick. thanks ! :D

also one silly question.. i get "dep-resolution-failed" in warehouse when i try to install ceratin apps.

Apparently pkcon refresh command solves such issues but this time it won't .

Under extra details it says sailfish version should be >= 1.19 and so on.

Thanks :)
[OnePlus X Android Development] kimmoli:
Those are usually explained in the corresponding app comment sections, as you most propably are not alone. Or if not, ask there?