yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] jgonzalez34:
So a bit of background: I am building LineageOS 14.1 from source (for the Samsung Galaxy S2 AT&T i777, which runs on the Exynos4210 SoC) and I am integrating a PCF857x GPIO-expander driver into my Linux kernel (Version ~3.2 Linux). The driver itself (pcf857x.c, pcf857x.h) is already included in the kernel. So I just need to set it up to specify my specific GPIO expander (PCF8574). As this is built on an older version of the Linux kernel, I use a board file to setup this driver. Below is a piece of my code in the board file (../mach-exynos/mach-u1.c) where I define the gpio base for the expander.

static struct pcf857x_platform_data pcf857x_data[] = {

{

.gpio_base = 300,

},

};

When I eventually flash the LineageOS build onto my hardware, I see that the device is registered on the appropriate I2C bus at the correct address. However, I do not see any GPIOs being registered. The SoC GPIOs that are already present range from 0-287 (I see this via: cat /sys/kernel/debug/gpio). This is why I chose my gpio_base at 300 as I don't want to conflict with any physical GPIOs.

I think the issue is coming from the fact that GPIOs beyond 287 are not recognized by the kernel. When I try to export GPIO 300 via sysfs for example, nothing happens (echo 300 > /sys/class/gpio/export). In the kernel, there is a macro "ARCH_NR_GPIOS" that defines the total number of GPIOs (both built-in/SoC GPIOs and others, including those on GPIO expanders). I tried increasing this ARCH_NR_GPIOS several times, even to 1000 at one point. But I still cannot export anything beyond the original 0-287 GPIOs.

So right now, I'm just trying to export GPIOs (echo 300 > /sys/class/gpio/export) beyond the SoC GPIOs (0-287) I tried increasing ARCH_NR_GPIOS (indirectly via CONFIG_SAMSUNG_GPIO_EXTRA), but that hasn't worked for me. I also tried playing with ../drivers/gpio/gpio-exynos4.c but I haven't had any luck.

The source code I'm following is from fellow xda developer OnyxClover. You may view the source code at his github: OnyxClover-OSRC under the android_kernel_samsung_u1 repository.

Please advise. Thanks!
[G4 Q&A, Help & Troubleshooting] Vishnuisgod:
Im wondering if the camera from the Google Pixel could be installed in the G4. The physical camera, not the software, well the software too.....

I have seen that its possible to instal the kdz for the google camera w AI. I have seen the quality of photos the pixel can make, I have tried (ok Im trying) to install the G4 camera in my G3, but it requires some chassis mods).

I have read all I can about the cameras in the Pixel, and the G4. i think they are both made by sony.

they look the same (comparing pictures of products for sale on ebay)

could one just pop out the stock camera and install the other? Is there some kind of system check that is performed before boot?

why or why not?

cheers

alan
[G4 Q&A, Help & Troubleshooting] yobooh:
It could work if connection are the same but it's not so easy. Anyway after changing the camera you'll need also a Rom supporting it with correct "Drivers" or you'll have only a bunch of errors XD

Someone reached to do camera swap in really similar phones.
[G4 Q&A, Help & Troubleshooting] Vishnuisgod:
I do think the connectors are the same.

I know its a Sony, I have found the API's how do you disassemble them into the individual components?

cheers

Alan
[Samsung Galaxy S8+ Questions & Answers] arboy2:
I updated over a month ago my S8+ to Oreo and this weird bug started.

When I try to open most of the media on WhatsApp it says "Sorry, this media file doesn't exist on your internal storage".

When I restart I get some of the media back but not all of it.

I don't use an SD Card.

On the Gallery app some pictures shows up as a gray box with an exclamation mark, I'm not sure if it's WhatsApp only.

Has anyone experienced this bug? Has anyone been able to fix it?
[Samsung Galaxy S8+ Questions & Answers] muhamadasim:
I have encountered a similar issue since yesterday on video files. Some of the downloaded videos that had no issue started showing error (file doesn't exist) and then the file icons completely disappeared. Today I downloaded more videos that disappeared only a few minutes after download. Strangely the videos that disappeared yesterday came back. I have never encountered such an issue with galaxies before. Very very strange. Anybody with any advice?
[Samsung Galaxy S8+ Questions & Answers] arboy2:
Still hoping to get help with this guys, I've switched roms twice now (clean flashes) and it's still consistently happening
[LeEco Le 2 Questions & Answers] Stavkata:
Hello . Every time I try to install software 7 or 8 it gives me this error and does not allow me to install the software.By the instructions of all the software I have to be with the latest TWTP and so I have done - 3.2.1.0 .

Can anyone tell me where exactly I am wrong and what should I do to install for example one of these roms - aoscp , CARBON-CR-6.1 s2 , FireHound-4.4 s2 or PixelExperience_s2.

Whatever I try, I always get error 7 and can not install any rom
[LeEco Le 2 Questions & Answers] hubh98:
If your are using le s3 x522, you can run chinese twrp:

https://mega.nz/#!XhYznTzA!z-XfbrIaVrKWAC-OaW86NFj1EAvZs68GmSchedQ-vhI

credit to xterminater07,

follow:

https://xdaforums.com/le-2/development/le-s3-factory-image-5-8-020s-directly-t3527790
[Samsung Galaxy S7 Questions and Answers] nghtfallen:
So I got the g930f and I've tried superman, lineageos, ultimate nougat and even the galaxy project. No matter what I do when I go to take a picture my phone will freeze and crash/restart on every single rom, cant even find stock anymore. At my wits end with this.
[Samsung Galaxy S7 Questions and Answers] audit13:
Stock ROMs can be found at sammobile.com.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
EDIT

I HAVE DELETE THIS THREAD BECAUSE BY USING THIS METHOD PEOPLE MAY LOOSE THEIR IMEI if they don't have any efs backup ,

People apply this METHOD who has no IMEI Surely this method was only for those who already had efs backup ,

but now people thinks that it may bring IMEI,,which is not the proper way for restoring imei.

So to stop this misconception i am deleting all files and SUSPEND this thread

.

Moderator Edit:

Members wishing to try this are advised to take extreme caution. This Thread may explain: HERE
[Moto G5 Plus Guides, News, & Discussion] Arunxyz:
It worked like a charm!!!!!

THANKYOU VERY MUCH FRIEND...

it worked ....:laugh::good::good::D:D

my device is xt 1686 indian variant and i had hardbricked my mobile 6 months ago and unbricked using albus blankflash...

and since then using debloated roms or pixel experience rom...

after november patch.. i flashed flashable stock rom from twrp and i lost imei and volte...

i tried the solutions to recover 4g and imei and but couldnot get volte back since then...

now i am using twrp flashable january security patch and i dont have volte... i even dont have an option in my mobile networks to toggle enhanced 4g LTE mode...

now thanks to you .. your solution has worked like a charm ...

i downloaded your persist backup and placed it in my twrp backup folder and went in to twrp recovery and recovered my efs backup and next persist backup and restart system and voila my volte is back ....:good::good:
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
welcome brother,now backup your volte working efs so in future if anythings goes wrong then it will helpful.
[Moto G5 Plus Guides, News, & Discussion] Arunxyz:
YES BRO..

I will backup my EFS right now...

thanks a lot ...
[Moto G5 Plus Guides, News, & Discussion] muklshakya123:
bro can i try this method for g5s plus xt1804 as well ?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
MAY BE YES,YOU CAN,BUT TAKE BACKUP OF ALL PARTITION BEFORE TRY.

this persist backup is from moto g4 plus and it is working for moto g5 plus so may be it should work for g5s plus too.

but remember i am not responsible for anything if it goes wrong( but it better to take risk when nothing works :D )

my gut says,it should work,so if you want ,then give it a shot.
[Moto G5 Plus Guides, News, & Discussion] muklshakya123:
ok will try that in the evening
[Moto G5 Plus Guides, News, & Discussion] surensince93:
Which ROM have you tried? Its not working in DotOS. Please help!
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
You have to do this in stock rom
[Moto G5 Plus Guides, News, & Discussion] AdityaYT:
How to relock the bootloader after restoring??

:D:confused:
[Moto G5 Plus Guides, News, & Discussion] surensince93:
Link for the downloading and steps to be followed for stock ROM please?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Download any TWRP FLASHBLE ZIP STOCK ROM from forum,

#FLASH THAT STOCK ROM USING TWRP

#RESTORE YOUR OWN EFS BACKUP

#RESTORE PERSIST BACKUP

#REBOOT
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
This guide is only for volte;)
[Moto G5 Plus Guides, News, & Discussion] irfanalinawaz:
May I lock bootloader again after flashing this?
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
You will get your volte,but I don't know any other stuff,sorry brother.

Now enjoy the volte. :D
[Moto G5 Plus Guides, News, & Discussion] surensince93:
Link for stock ROM please? I couldn't find it!
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Try this ,

(This stock rom is from forum in TWRP FLASHBLE stock build)

Give credit to this man

https://mega.nz/#!SFIXlDoA!INcRIuH-WnaQjMlaJwmUgbZDcx-Lt8Uip-2rqxqse6A

Any FLASHBLE stock rom will work.
[Moto G5 Plus Guides, News, & Discussion] AdityaYT:
whats a persist backup,i cant see one after clicking on restore option??

:confused:
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Unzip that persist file,

Put that file in your efs backup folder ,

After boot in twrp and go to restore,

Then in restore restore your efs ,you will see persist will also there ,so restore that persist after restoring efs.

In other words ,

#Unzip persist

#Open your efs backup folder of twrp in file manager

#Paste persist file in efs backup folder

#now boot in to twrp

#restore that efs ,in efs you will see efs and persist both will be there,

#so first restore efs then persist

See my attachment (how to put that file in twrp)
[Moto G5 Plus Guides, News, & Discussion] pranjal24:
can someone please give a step by step guide of this method. I haven't tried anything like this so pls help me. I am on stock rom and bootloader locked. I really want to get my volte.
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
Hello , I am using Moto G5 Plus XT1686 indian variant.

i am using orio in my phone. but i want back to stock Rom.

I dont know which verion is suitable for me.

either POTTER_NPNS25.137-92-4 / POTTER_NPNS25.137-93-4

and also want link of the stock rom.

thnak you in advance
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
POTTER_NPNS25.137-92-4 is the Indian variant. If you are going back to stock, you had better be sure and save a copy of your EFS partition to an external source before reverting back. This is absolutely mandatory.
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
I want the link of stock rom 92-4 january secutiry patch.
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
Sorry, I don't spoonfeed information that is easily found 2 threads down this forum page.
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
That was 93-4 . I want 92-4stock
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
Can we relock our bootloader and still enjoy volte
[Moto G5 Plus Guides, News, & Discussion] irfanalinawaz:
Yes we can lock bootloader, I did and volte working perfectly on both sim slot.
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
Can we install ota update via default recovery which come with stock rom still volte will work.?
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
No it isn't. It's 92-4.
[Moto G5 Plus Guides, News, & Discussion] Vishalpatil0105:
I lost my imei wht i done is i didn't flash my original efs back which was taken in 2nd step. Then i flash pixel experience rom then i erase modemst1 and st2 and i try to flash again but not working although my 1st getting 4g network but imei 0 and network is working for only for tht perticular sim

---------- Post added 22nd April 2018 at 12:10 AM ---------- Previous post was 21st April 2018 at 11:35 PM ----------

I am not able to get imei but getting signal in only 1 sim this is all happening after doing volte fix via g4 plus efs.not getting imei how to get it.?
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
Then send me the link again. . i couldn't get it.. i again tried.
[Moto G5 Plus Guides, News, & Discussion] Wolfcity:
https://xdaforums.com/g5-plus/how-to/potternpns25-137-92-4-relocking-t3760954/post75829846
[Moto G5 Plus Guides, News, & Discussion] Zuk z1 K2L:
Thanks dude
[Moto G5 Plus Guides, News, & Discussion] ericguitt:
Has Anyone tested on Cedric? (XT1672)

I'm trying to back to stock but the volte don't work
[Moto G5 Plus Guides, News, & Discussion] NeoandGeo:
I used this method successfully, and I am using Oreo ROMs with 4g/voLTE working. The only issue I am having still is that I lose voLTE after about 10-12 hours, and I can only get it back after a restart where it eventually stops working again. A reboot always fixes it, but still annoying to have to keep tabs on if I have it working or not before making a call where I may need data.
[Moto G5 Plus Guides, News, & Discussion] rajeshdubey293:
thanks buddy..also worked on moto g5 cedric..
[Moto G5 Plus Guides, News, & Discussion] smartish123:
IMEI goes to 0 after OTA

Has anyone managed to solve the issue where your IMEI gets reset to 0 after an OTA update in stock? I have to install TWRP to restore my efs + persist backup to restore IMEI and VOLTE, but that essentially prevents you from installing the next OTA. I'm desperately trying to revert to stock so that I can take OTA's without losing IMEI and re-lock my bootloader. I'm using XT1687 US version. Any help would be much appreciated!
[Moto G5 Plus Guides, News, & Discussion] Manav08:
Can you pls link the forum for albus blankflash I've hardbricked my phone. I'm unable to use phone services, the error says "phone services not allowed".. pls help.
[Moto G5 Plus Guides, News, & Discussion] Arunxyz:
https://xdaforums.com/g5-plus/help/help-moto-g5-plus-hard-bricked-solved-t3662734
[Moto G5 Plus Guides, News, & Discussion] Manav08:
can you plz help me with the procedure?

---------- Post added at 06:56 AM ---------- Previous post was at 06:52 AM ----------

I wanted to flash stock rom but by mistake I flashed a wrong version of it. I later found the actual version of rom i needed and flashed it. Everything is working fine but I'm not getting network services. Is there a fix for this plz help.
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
No cell signal and IMEI after flashing OTA?

Tested ths Cammands From fastboot mode..

1. Flash any Latest CustomRom build to recover ur imei

2. Now fastboot modem and fsg to get 4g service back,

Use this Cammand :

fastboot flash fsg fsg.mbn

3.After recovered your IMEI, and if you are stuck with 3G/2G,

Try these command:

fastboot erase modemst1

fastboot erase modemst2

fastboot flash modem NON-HLOS.bin

fastboot erase cache

fastboot reboot

4 After This ;

http://telegra.ph/Volte-Fix-For-Moto-G5-Plus-04-05-2
[Moto G5 Plus Guides, News, & Discussion] Cupcake 1.5:
Flashing custom ROMs does not restore IMEI, those old instructions no longer work to recover IMEI.
[Moto G5 Plus Guides, News, & Discussion] cubermax:
I agree with you, and the most interesting is that I can not go into the diagnostic mode, and when in the bootloader select barcore shows IMEI
[Moto G5 Plus Guides, News, & Discussion] Jacex20:
Which stock rom version......

Please help me ......

Can you give me the download link of the stock Rom

---------- Post added at 05:54 PM ---------- Previous post was at 05:48 PM ----------

Can you give me the link of stock Rom.... please....

I have the indian unit....
[Moto G5 Plus Guides, News, & Discussion] jrs007:
In this video he had the same problem as you and was able to recover the imei.

https://www.youtube.com/watch?v=rmzyPIc2LG0

The video is in portuguese use the translation of the subtitles for better understanding

:good:
[Moto G5 Plus Guides, News, & Discussion] roydhritiman:
Hey man thanks a lot! Your method has worked. Backed up my pre volte EFS and restored it along with the Moto g4 persist file you provided. Everything works fine now.
[Moto G5 Plus Guides, News, & Discussion] Cupcake 1.5:
Don't use the Moto g4 persist, the OP should take it down, there is a proper Moto g5 plus one now. Also, this g4 persist some how borks the camera, whereby the flash makes your photos yellow, at least that is what happened to me and several others. How is your IMEI after this? I ask because I am unsure whether the oreo roms caused this IMEI loss or, this persist file. For me, it was the day I flashed vladious oroe and, the g4 persist.

If you read post nine in the thread I created about yellow photos you can get the g5 persist:

https://xdaforums.com/g5-plus/help/yellow-photos-t3776520
[Moto G5 Plus Guides, News, & Discussion] roydhritiman:
My IMEI is fine. It's not zero. Both Sims are fine. Volte is working. Even after reboots. Do you have the link to the Moto g5 plus persist file? And after I get the g5 plus persist file, how shall I proceed after that? Shall I take a backup of my current EFS and then restore it along with the g5 plus persist?

And yes, I did notice that the flash makes the photos have a yellow tint. Not a major problem since I don't use the flash but yeah.
[Moto G5 Plus Guides, News, & Discussion] Cupcake 1.5:
https://xdaforums.com/g5-plus/help/yellow-photos-t3776520

The link is in post 9

Make back up of efs in twrp (a working backup with signal/4g) then put the correct g5 plus persist in that folder. Now in twrp go to restore from that folder, and the option to restore persist will be seen. This will fix the flash.

So it does seem the IMEI problems are due to the 64bit development then, as the day I lost IMEI was as I said, flashing the persist and an oreo ROM.
[Moto G5 Plus Guides, News, & Discussion] roydhritiman:
Ah yeah it worked. Photos are not yellow. Thanks!
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
Solution

Any solution ?
[Moto G5 Plus Guides, News, & Discussion] Cupcake 1.5:
There are none that I know of, it's really a mater of waiting for a Dev to figure it out.
[Moto G5 Plus Guides, News, & Discussion] smartish123:
Just curious. Are the Motorola devs aware of this issue? And what is the likelihood that they will fix it?
[Moto G5 Plus Guides, News, & Discussion] dhruvanbhalara:
can i get my volte on xt1686 indian variant??
[Moto G5 Plus Guides, News, & Discussion] dhruvanbhalara:
Can i do on xt1686??
[Moto G5 Plus Guides, News, & Discussion] Cupcake 1.5:
They won't care at all. We unlock bootloader it is on us.
[Moto G5 Plus Guides, News, & Discussion] masnish kunwar:
it also works with moto g5s plus , thanks a lot man great effort.

:good::good::good:
[Moto G5 Plus Guides, News, & Discussion] sjjatin9568:
this won't work for custom roms?
[Moto G5 Plus Guides, News, & Discussion] Rutambh:
I dont think so....He posted the Full procedure in that he said Only use Stock Rom

I am having the same Problem in Custom Rom

if you wanna try, You have to take the Full backup and then try
[Moto G5 Plus Guides, News, & Discussion] Rutambh:
I Unzipped File and Place that files into the TWRP folder but Its not showing the Files in twrp
[Moto G5 Plus Guides, News, & Discussion] Rutambh:
Can you share your backed up efs with me
[Moto G5 Plus Guides, News, & Discussion] shonraju:
Can i try this for moto g5 plus (xt1687) model.

This is a US model phone. I have only one sim slot but volte doesnot supporting please help.
[Moto G5 Plus Guides, News, & Discussion] san1156:
Pls help me friends i have tried everything to recover my imei i.e flashed pixel experience rom,erased modems, flashed NON-HLOS but still i am not getting any network in pixel experience rom pls help me i am stuck.restored persist also but it does not work.:crying:
[Moto G5 Plus Guides, News, & Discussion] gumpysitruc@gmail.com:
EFS contains IMEI and should not be shared.
[Moto G5 Plus Guides, News, & Discussion] Dhan...:
Same here,, i'm waiting for Oreo update..

Tested ths Cammands From fastboot mode..

1. Flash any Latest CustomRom build to recover ur imei

2. Now fastboot modem and fsg to get 4g service back,

Use this Cammand :

fastboot flash fsg fsg.mbn

3.After recovered your IMEI, and if you are stuck with 3G/2G,

Try these command:

fastboot erase modemst1

fastboot erase modemst2

fastboot flash modem NON-HLOS.bin

fastboot erase cache

fastboot reboot

4 After This ;

http://telegra.ph/Volte-Fix-For-Moto-G5-Plus-04-05-2
[Moto G5 Plus Guides, News, & Discussion] san1156:
Tried everything but nothing works:crying:
[Moto G5 Plus Guides, News, & Discussion] Rutambh:
https://xdaforums.com/g5-plus/development/stock-rom-volte-t3798021

Follow this Thread
[Moto G5 Plus Guides, News, & Discussion] san1156:
Not working:crying::crying:
[Moto G5 Plus Guides, News, & Discussion] Rutambh:
You are on stock Rom or Custom!?
[Moto G5 Plus Guides, News, & Discussion] shonraju:
Can you please provide a video for doing this
[Moto G5 Plus Guides, News, & Discussion] san1156:
Guys i restored 4g signal but imei is still 0 and i cannot make calls what should i do now
[Moto G5 Plus Guides, News, & Discussion] immoniskhan:
i am on pixel experience right now

i want to go back to stock rom and get updates and right now everything is working including volte 4g and imei is also there

but i dont have the stock rom backup or efs backup from stock

so what should i do

please spoonfeed me
[Moto G5 Plus Guides, News, & Discussion] thedr34m13:
First off, backup your efs partition. Your best bet is to stay off complete stock, and use twrp flashable stock ROMs, because ota updates will wipe your modemst partitions. That way you can keep your phone up to date, while keeping your imei intact.
[Moto G5 Plus Guides, News, & Discussion] Nisargkhatri:
Help to a non-technical person fix this problem,

Hey Bro,

I am kinda non-technical person for ROMs, but I love to try new ROMs. I tried 2 or 3 ROMs but finally wanted to shift to Stock ROM. I had taken backup of my stock ROM by TWRP, but it kind of does not restore. I gave my phone to service centre and there also, they told me that they can't fix 4G VOLTE problem. I also cannot fix this problem. I would be very grateful if you help me fix this, I cannot understand your instructions, Also, I don't find any efs backup.

Please help me out:crying::crying::crying:
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
I suggest you to be on pixel experience rom until official Oreo comes out,

Because there is no way that you can jump from pixel experience to stock by just flashing the rom or any other method,so if you have IMEI and everything is working fine then my suggestions is to be on that rom ,it is beneficial for you.
[Moto G5 Plus Guides, News, & Discussion] akshu2697:
Just find a solution for IMEI and efs restore from g5 plus guide and after this to restore volte follow this guide
[Moto G5 Plus Guides, News, & Discussion] san1156:
Please help me anyone I'm not getting network in any oreo rom sometimes i get 4g network but i cannot call i have tried erase modemst commands and everything currently I'm on omnirom but cannot get any network i have tried all the roms but no luck please help me with this:crying: i haven't got imei in any rom
[Moto G5 Plus Guides, News, & Discussion] dhruvanbhalara:
Is it work on xt-1686 for getting volte back??
[Moto G5 Plus Guides, News, & Discussion] netkap:
Efs folder

Hey buddy I am having same problem

I did not backup my efs earlier so should I

Backup it now then add persist flash stock ROM and then restore

Or anything else

Hope you help me