yashsingh1/xdaforums huggingface dataset:
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JMandava:
Yes it's working for me!

The question you asked is very generic. Please provide additional details regarding carrier etc. So if people are using it, will be able to provide input.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Droidge:
Hey, I found a way to do exactly that. The long-press function is being recognised as a “voice assist” command, so you can get a button mapper like this (https://play.google.com/store/apps/details?id=flar2.homebutton), go to custom mappings, and while performing the fingerprint function press “OK”, and then select an action of your choice. Been using this for a couple days; it’s definitely not a flawless solution, but it’s better than nothing.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
Thanks!

I have been using this app, but did not try the custom mapping option.

I have assigned the fingerprint button, and assigned long-press to lock the screen. Even after doing that, long-press is still bringing to Google assistant. Do you have the Google app installed?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
UPDATE: Ive reinstalled and reinstalled, now im running LOS15 with Project fi working but not working as good as with stock. Its almost like its only seeing some of the towers nearby, before I would have almost full bars here at home and now i have half bars and I lose signal every minute or so. I'm also noticing that my wifi isnt as strongly connected, as it was with stock almost like tx power is low
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Droidge:
Have you tried setting the default assist app to “None” in the default apps section in Settings?

I did install the Google app and it gave me no issues at all while I executed my custom function.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
Yes I tried exactly that - setting the assist app to "none". When I do that, it just prompts me to enable it again.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Slayer5934:
Any ETA on when OTA will be fixed? My wife almost bricked her device by pushing update lol, luckily I stopped her and explained just in time
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] guibyn:
I got nothing.

I'll keep trying to make it work, if i somehow manage to do it i'll post an update here

Thank you for your help

For anyone interested, the last patch bricked my device so be careful

Edit: For some reason when i plugged the device for the 99th time it actually recognized the device on the computer and i was on QEDL, through that i managed to blankflash and then it came back to normal as if anything had happened, i'm really glad it all worked out, thanks everyone for helping me
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
modem

This is a Noob question but please humour me. What would happen if I flash Non-HLOS from a factory firmware over my LOS15 install? Would it possibly fix my Modem Issues? or would it corrupt something?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
I think you can flash the appropriate modem without any issue. To be clear, don't flash the Brazilian modem on an Indian phone. It might work, but do you want to be the one to test it?

Typically, to update the modem or firmware, we do flash the factory parts on top of LOS. Be sure to back up your data as well as the EFS partition. I've never needed the EFS, but better to have it now than after you mess up. Flash carefully. The X4 is a temperamental device.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] azazelcrey:
So How do I know if I have the appropriate modem? I used one from PAYTON_FI_OPW28.46-13_subsidy but it didnt seem to change anything. spotty service still. Im gonna keep trying.

---------- Post added at 02:00 AM ---------- Previous post was at 01:54 AM ----------

if this phone would brick it would have happened by now. I've flashed it about 100 times since I've got it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] assmist:
Hi,

Are anyone els having wifi issues after the 7/11 update?

Edit:

I've checked on this some more.

With dual band wifis i cant connect

With 2.4 GHz only wifis i can connect.

5 GHz cant even see the network.

So the issue is isolated to 5ghz. Something must have changed between the 30/10 and 7/11 release.

Best regards
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
This should be unbrickable if you can enter fastboot with unlocked bootloader.

Am I right?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] DangerxZone:
since the last update of this ROM, the cell phone gets very hot when it is charging and it is quickly downloaded, does anyone know why? any solution
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Samyantak:
This query is for Indians

Does reliance jio works
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JMandava:
Yes it does ?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
finally, I did it

booted into TWRP and connect to the computer

using adb shell

ls -al /dev/block/bootdevice/by-name

dd if=/dev/block/mmcblk0p10 of=/external_sd/TWRP/devcfg_b

etc.....
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ptn107:
Once you figure out the partitions it's fairly easy. I saved my list of the partitions from my x4 payton_fi 8.1 to make it easier when 9 comes out and I have to make firmware zips again.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] ptn107:
I do not have the -2 i have the xt1900-1 (usa).

instead of using 'dd' for the empty _b partitions like:

dd if=/dev/block/mmcblk0p56 of=/external_sd/TWRP/logo_a.img
dd if=/dev/block/mmcblk0p57 of=/external_sd/TWRP/logo_b.img

just do:

dd if=/dev/block/mmcblk0p56 of=/external_sd/TWRP/logo.img

and restore the image to your phone:

fastboot flash logo_a logo.img
fastboot flash logo_b logo.img
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
Thank you so much,

I learned many things during flashing Moto x4 which is seamless update system and treble supportable.

Now, I am looking for another GSI ROM.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] xdayman:
I'm on the 10/30 release and after I take a picture I am unable to see it in my gallery or send it via mms until I reset the phone. I noticed that if I take a photo using the option within the messenger then I am able to send it via mms without resetting, also randomly the phone app will crash. Is anyone else experiencing these issues?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Murtaza Kanchwala:
Twrp

how to go to twrp latest recovery from lineageos 15.1 recovery mode? I am stuck on 15.1 recovery whenever I want to go in twrp. I am new to this rom, but I successsfuly managed to flash 15.1 on my x4.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abrfilho:
Did you flash TWRP after rom flash? Because LOS overwrites the previous recovery, when you flash, you need to select LineageOS zip and add twrp zip to the queue.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
New build 20181112 is out now, check it now
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] assmist:
Do tou know if updating from is Ota working?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
I will try it later.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
Can't update via ota, the update stops.

Ps, twrped & rooted
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] HAJT669:
Stock or lineage?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
Sure for LineageOS
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
Great news, (maybe)

I hope this means using the fingerprint to lock the device
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] zerolam:
sorry, this should real "shutdown", not lock the screen.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mensch72:
some apps (including phone app) can't play audio via some output devices

Dear all,

since the last update (nightly from Nov. 15, before it was the nightly from Nov. 7) I have the following audio issues:

- stock phone app can't record or play voice sound, neither via rear speaker nor headphone plug NOR bluetooth, but can play incoming call notification and key press sound.

- stock music player (and most other apps) can't play sound on rear speaker or headphone plug, actually playback gets frozen, but CAN play music via bluetooth.

- BUT all system notifications seem to work.

I searched in all kinds of places for any audio-playback-related permissions and found nothing.

This is very annoying since the basic functionality of the phone (making calls) is now missing...

Any ideas?

Some more details on stock music player app behaviour:

- with headphones plugged in, app will not even allow me to select a song to play, i.e., will not show the wavelike "this song is the current song playing" symbol

- with no headphones plugged and no bluetooth connected, the app WILL allow me to select a song, pretends to start playing it, but either rests on the "0:00" seconds or progresses extremely slowly and irregularly to "0:01" and so on, but without actually playing any sound. it will go to pause automatically when a call comes in, the phone app plays the incoming call sound, but when taking it, neither end can hear the other. needless to say, i moved all volume sliders back and forth several times, went to flight mode and back, to do not disturb and back, and rebooted a dozen times, all to no avail. i also deactivated and later reactivated the problematic apps.

ALSO the fingerprint unlocking function has disappeared upon this update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] dgsiegel:
Moto Camera 2 (installed from Play Store) seems to be missing the HDR mode. Is there any way to enable it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] assmist:
Have anyone tested updating using ota recently?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] mensch72:
both audio and fingerprint problems disappeared with nightly from Nov. 16

Having now updated to the Nov. 16 nightly, both problems disappeared.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Divkix:
Before trying this out I have a few questions-

Is Wireless Sound System (Tempow) ?

Is dual camera accessable (individually) ?

Is Moto One Button Nav working ?

I have used CM as well as LOS on other devices and asking because tempow and camera are exclusive features of this phone.

Regards,

AgentDivanshu
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
CM has its own fingerprint navigation implementation which you can enable in Settings (Buttons).

Unlike Moto's implementation, there is no long-press to turn off screen functionality. Other than that, it is very much the same.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Divkix:
What about dual camera and wireless sound system?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] jhedfors:
Umm...

I clearly did not answer those questions as I don't know. I do not use wireless sound system. I have switched back to stock currently, so I can't confirm camera. I thought it included the same Moto camera though.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Divkix:
Ohk, thanks

I also wanted to ask if I need to reinstall Magisk after after every update or is there a script or any trick which could do it?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] assmist:
Ota updating from 17/11 to 18/11 are working :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Divkix:
[DELETED]

Already mentioned in installation guide.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Thallys Batista:
No for me... again have a brick, please don't update!!!!!:crying::crying::crying:

---------- Post added at 05:44 PM ---------- Previous post was at 05:17 PM ----------

Motorola logo apears and desapears when try to boot, and the screen Power off... the some thing happens when try to enter into recovery mode...
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] filipepferraz:
Here the update worked too between this two versions.

Can you provide any log? The phone hard bricked and needed to use blankflash to recover?

Here when hard bricked is others updates the phone screen dont turn on until run blankflash.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abrfilho:
Wireless sound system only on retail rom, non-Fi.

Yes, with Moto Camera, I don't know if there's any GCam Mod that works wide angle with LOS15.1, I didn't test.

Yes, there's Moto Gestures, only long press to lock the phone isn't implemented.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Divkix:
Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] assmist:
That sucks.. Which version where you comming from?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Thallys Batista:
I solved the problem, normal installation (TWRP+ROM+gapps...), but I losed all of my archives...data...

---------- Post added at 12:03 AM ---------- Previous post was at 12:00 AM ----------

Version 09/10, now I'm use the latest, after unbrick.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] AsuraDas:
I don't know how or why (not arguing) but I noticed that on the play store my device is "certified" and confirmed that I am able to set up and use Google pay. I am running LOS 15 November 18th. I am not rooted but running a custom ROM with an unlocked bootloader. I still get the ugly bootlogo saying my OS is currupted. It was a pleasant surprise
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
You will get the orange warning when the bootloader is unlocked. You might be able to mod the logo partition, but I have not personally tried it.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] AsuraDas:
Eh I dont care too much about that. I am just surprised I am able to use gpay with unlocked bl and customer rom
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lazy-o:
Well...didn't work. One more time had to wipe to stop all the crashes and now....setting...it....up....everything...again......... *SIGH*
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Samyantak:
I encountered a problem while flashing ROM in twrp.... It says" updater process ended with error 1 error installing zip file

Error applying update : 7(error code::kinstalldeviceopenerror)

As I wiped system before installation my os is deleted and phone boots only to twrp

Plus help
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] johnjingle:
That is really not too big of a problem. Only a soft brick. Try pushing another lineage ROM via ADB or using fastboot to re-flash stock and start over.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Are you talking about after you update the rom?

I found the process on updating wasn't clear but was mentioned earlier in thread.

- You have Re flash your gapps package in the correct a/b system slot after updating
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] MotoX4:
Lineage OS 15.1 should automatically update via settings. But you can technically manually update too (although not officially supported). I posted detailed instructions on how to install and update this ROM way back on page 42 (since we're on page 77 now, it likely is lost in the sands of time). You can find that post here https://xdaforums.com/showpost.php?p=77703386&postcount=472
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lazy-o:
Yes, updated from 20181030 nightly. I tried to reboot on the other slot to install gapps.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Is your internal data encrypted with a lock screen password/fingerprint?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] lazy-o:
Yes. I have to enter my password when I reboot into recovery
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] SyberHexen:
Next time try removing the passwords/lock b4 update

I don't use a lock and updating following

Update from A reboot into B and install gapps procedure. works for me.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chainzuck:
Hey Guys,

Sorry for questioning again. Im not a developer, but used lineage os on several phones since 4 years and alway succed with installing right away. Now my Moto x4 gives me some Problems. Can someone explain me the step thats explained in Post 2 at the beginning? Do i only need to flash the copy.zip or do i also need to flash stock firmware too?

I was coming from stock firmware (right out of the box). Lineage works but the GAPPS are shutting down instantly (google services).

Thanks!

Edit: OK GAPPS are working now. I installes twrp as opposed to the suggestion and flashed gapps with twrp. The lineage recovery does not work for me. The only thing thats missing is super su. Flashing the linkes file stops stating:

set_metadata: ERROR on lstat of "/system/etc/init/superuser.rc": too many symbolic links encountered

Updater process ended with error: 7

Any suggestions?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abrfilho:
Use Magisk instead.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Samyantak:
How to make the portrait mode work

Moto camera doesn't have it

The gcam I was using back in stock doesn't seem to work with portrait mode on
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abrfilho:
There's a lot of GCam mods, test others and keep the one that fits your necessity.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] chainzuck:
Thanks a lot! Everything is working fine now.

The last question i have is about updates. Is there a save way of doing updates? Is the updater working?

My reading about A/B Partition scheme tells me that you will always have to reflash twrp and magisk, since they are no longer in a seperate boot partition.

So my way would be to flash the update.zip and twrp.zip in queury. But when should i flash magisk? The installation guide says you always need to boot the ROM once before flashing magisk. Does this apply to updates, too?

Thanks
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] amirite:
I'm pretty sure you should flash magisk right along with Gapps the first time. I'm guessing the requirement to boot into the ROM once is just to make sure all of the proper data folders and folder trees are created, that kind of stuff. Your Magisk data will naturally be exactly where you left it. Though you should probably stick to the same Magisk version.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] filipepferraz:
The official ota update update from ROM is working and magisk, gapps are not lost when update. Here I'm using magisk 17.2 and after the update only the twrp is replaced by Lineage Recovery.

To keep twrp after the update there is a magisk module called TWRP A/B Retention Script that needs to be installed after the ota update finishes and before the reboot. Wait the ota update finish and when ask to reboot go to magisk and install this module, after the module installs reboot. You will have twrp, gapps and magisk.

To use this magisk module twrp already needs to be installed before apply the ota update.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] Gullom:
Hi guys I'm in a little bit of trouble right now. I tried to update via ota some time ago and got a brick. However I was able to unbrick via blankflash utility without losing any data. After I read that some of you guys were lucky with your ota updates I thought I could give it another shot. Now my phone's bricked again but it's behaving differently than last time. It doesn't boot into fastboot mode by itself but I have to hold volume down. Otherwise i just get a black screen and it shuts itself down after some time. Worse though is that i am not able to go to blankflash mode anymore via "fastboot oem blankflash" which was possible for me last time. All I get doing this is a remote failure saying "(bootloader) Command Restricted". My phone is a xt1900-7 and im using fastboot utilities on a windows machine. Anyone got an idea?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] d_mouse81:
Has anyone managed to get Dual Sim working on this? On the latest nightly (20181126) sim 1 is fine for me, but I'm not able to enable sim 2 at all or manually switch between sims.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] edhunterbg:
This bug (sim2) exist since official first version of lineageos 15.1 for moto x4.

I ve been asking the same question a couple of times, no reaponse from the dev about it. I am about to loose hope that it will be fixed.

And actually following the thread I dont see almost any response from the main develper about any of the issues reported by the users. I wonder why the branch is called "official" and has such bad quallity not suitable for daily use.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] gee one:
You might already be in downloader mode. See what lsusb shows you in a linux pc. You could probably just run the blankflash file to restore. It's a little trickier without the visual clues. I had to run it as root (linux) and hold the volume down and power buttons to get into blankflash mode. YMMV
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] smmankad:
For flashing, Process is the same as in the OP - Fi or not doesn't matter.

As for Android Auto - it works. I'm currently running it. No crashes or anything. Totally stable.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] pbjr92:
Just installed the update and the headphone still not working. The sound is coming through the speaker.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] JMandava:
XDA gives life to devices! Didn't expect this soon after all the problems, Thanks a ton guys :)
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] elementbreaker:
I have Project Fi and I just installed this today. Had a few calls and texts and it seems to work great so far :)

Can't wait for the onenav gestures, the devs have done a great job so far!
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] igna.98:
I installed Moto camera 2 through play store and wide angle mode isn't working, also portrait, spot color and cutout modes are unavailable. It seems second camera isn't detected.

Log attached
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] wonderfullyrich:
I'm pretty happy with the ROM so far. I'm enjoying how sleek Lineage is on 8.1.

I do seem to be having a problem with starting GApps google play activating. Using the instructions after walking through the linage wizard goes fine. I reboot it back into recovery, and install open_gapps-arm64-7.1-pico-20180613.zip, but Google Play Services keeps stopping after I open it again and the Play store just scrolls indefinitely.

Anyone know if this is a linage issue, or something specific to this ROM, or just an order issue?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] domdom2020:
I would advise you to do just that.

---Reboot in to recovery.

---Wip Data and internal stronge.

---Install Rom and Recovery.

---Reboot in to recovery. Not reboot in to system.

---Install Gapps

---Reboot in to System.

You do this with every Rom change.

Then everything will work out.

With updates, you do not need to delete the internal stronge and the data partition.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] abhi212b:
Hang on a minute! did you flash 7.1 Gapps? or is that a typo? :confused: you should download ARM-64 8.1 gapps again..

Also, Did you do a factory reset after flashing gapps?
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
please read the OP properly. step 8-10.

DO NOT boot into LOS if you want gapps. reboot to recovery after installing los + twrp zip and install gapps.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
you must have done something wrong. they are working. please flash again.
[Moto X4 ROMs, Kernels, Recoveries, & Other Develop] munchy_cool:
you DO NOT need to wipe internal storage.

fastboot -w maybe needed if you get into a bootloop after installing the update the correct way. but you DO NOT need to wipe internal storage.

if you are switching between roms then fastboot -w is needed. I personally have switched between 3 roms and multiple builds and never needed internal storage wipe from TWRP.