yashsingh1/xdaforums huggingface dataset:
[G3 General] :
Да, должна. Я на 10N сижу с OPEN_CIS от 10L, все работает - русская звонилка, 4г, глюков нет. Только пришлось lteconfigs удалить из /system/app, а так все ок.

Last three messages in English:

YaDr:

Well, i guess that you do have to modify /cust/ or misc to fix this. Seems that i was misinformed.

Install 10 L/M/N and use method from the first post. I tested this one myself, and it works.

rxulan:

Can i download open_cis from g3 topic (He probably meant 4pda one), will it work with any 10 firmware?

Sorry for non-English communication for everyone

YaDr:

Yes, it should. I am using 10N with OPEN_CIS from 10L, everything works perfectly - including Russian dialer and 4G. The only issue being that i had to delete lteconfigs from /system/app to get 4g to work.
[G3 General] shaooo:
Hi everybody

I tried to apply this method but I don't have any folder name "OPEN_EU"...After a full wipe (with internal storage erasing) I just have OPEN_HKG" folder...

Is anyone can send me his OPEN_EU folder?
[G3 General] hashcheck:
Your running 10n ;) its only got HK in CUST. I have tried running different region on 10n and apps keep ctashing
[G3 General] shaarky:
What if cust folder is empty and changing values in build.prop does nothing ? Did I miss something ? Thank you.
[G3 General] :
What's your firmware? It seems that your firmware is somehow broken.
[G3 General] shaooo:
Yes, I'm on 10n too...
[G3 General] shaarky:
That's odd, because it's the same on many different FW : CloudyG3 1.1, AndroidNow HD 2.2 - I guess for all of them it's stock V10L
[G3 General] :
They probably didn't include /cust/. It's a folder on 10M and below, and a separate partition on 10N.
[G3 General] shaarky:
Thanks, I'm currently on 10N as well, I was able to parse partition as per OP instructions, but I'm missing the cust_path_mapping.cfg file to modify string "1","FFF,FFF,FFFFFFFF,FFFFFFFF,11" ... can someone store it here please ?

Reason why I would like to try changing the region, it seems that rSAP protocol do not work on GLOBAL versions of ROMs, while it seems to be working on EUR roms.

On GLOBAL I get always only A2DP protocol, not rSAP, whatever I do.

**update** Where I can find this settings in case of 10L version, if I decompress KDZ to DZ and then to particular BIN files ?
[G3 General] :
There are two cust files that you can extract. Extract bigger one from .dz and use ext2explore on it.
[G3 General] shaarky:
Thank you, that worked, it's file cust_6193152.bin (128MB size)...unfortunately the file cust_path_mapping.cfg is empty (10L firmware).

Nevermind, will try to migrate settings from OPEN_EU/cust.prop to the build.prop to see if anything will change.
[G3 General] rxulan:
Disassembled D855-10H cust folder and found that it has several region settings, including CIS.

Weird that it doesn't set it as default on flashing.
[G3 General] :
Thy this one.
[G3 General] :
Why should it?
[G3 General] rxulan:
YaDr

I take that "Method 2: via editing "misc" partition" would be mostly correct way to change the region, isn't it?
[G3 General] :
Yeah, it's the clearest way possible. It also persists after flashes and rom changes.
[G3 General] rxulan:
Nice. Also, do you know if it's possible to find misc partition dump within .dz? There're no parts like misc.bin in there, so it should be inside some system etc. bin.

And thanksa lot for your help :)
[G3 General] :
It's not there. Like efs, it is unique to your phone. So i advise you to be extra careful with it, since it's nearly irreplaceable.
[G3 General] rxulan:
I know this is stupid, but I've grabbed misc.bin with cmd.exe - adb and now just can't find it on local PC.
[G3 General] :
You grabbed it using dd if=<path to misc> of=/sdcard/misc.bin? If so, look for it on phone's internal memory.
[G3 General] rxulan:
YaDr

Thanks a bunch, now I'm having 10n-CIS-XX :cowboy:
[G3 General] rxulan:
Just curious if the opposite way should work if you grab misc.bin, notice the region code and then fix cust_path_mapping.cfg in a way the code of your region mapped to the one in misc partition (and even delete all the rest regions from the map file). I'm not going to test it, just in theory.
[G3 General] :
Yes, this works. I didn't mention this method in first post, since it's a little bit harder than the default one - it requires knowing which region folder your phone currently uses.

You also can replace content of current region folder with the content of needed one - that works too :)
[G3 General] saud__19:
Just a silly question. I already have 2 LG G3 one with AME firmware which is for middle east having no problems with choosing 4g, while the other is Eur firmware. what if i make a full backup of my AME and restore it on the Eur one? i mean all the partitions even the EFS one. do you think my software will be AME instead of Eur.
[G3 General] :
If you restore efs on a different phone, the "phone" part - calls and mobile data - will stop working. AFAIK, remaking efs from scratch is quite hard, so i recommend not to try it.

And no, your software won't be AME. Unless you copy your misc partition too... Which is also unique to every phone.

You can change the region via guide in first post. It can't possibly brick your phone, the worst thing that may happen is bootloop, which is easily fixable by .kdz or twrp backup.
[G3 General] saud__19:
I know that but I don't want to root cause am planning to sell the EUR one here in Saudi Arabia. That's why am trying to get AME.
[G3 General] :
Disclaimer: this is dishonest to customer. I discourage you from doing it without notifying the buyer that you changed region.

You can root it, use second method (in lowest spoiler), and then reflash stock rom with cse flash. Root and all of it's traces will disappear. The only thing is, OTA updates will still be for EUR region, but who cares?..
[G3 General] saud__19:
Surely I will tell the customer by the way he is my elder brother. But I want to be easier for him to get AME updates without flashing a new Rom and then change the region.

Thanks bro for ur quick respond .
[G3 General] rxulan:
YaDr

I've probably found a seamless way to modify misc.bin without having to edit with hex editor. The only thing is that you want to use Unix-based OS to apply commands (personally, I've used Ubuntu), as adb shell seems to be missing the printf command.

So, you can just do

printf '\x31\x32' | dd of=misc.bin bs=1 seek=40991 count=2 conv=notrunc

Which actually writes count=2 bytes of \x31\x32 (which is 12 here - the CIS region code) into the of=misc.bin file by bs=1 bytes at the time at the seek=40991 offset (decimal) using conv=notrunc (don't truncate the output after the edit, which dd actually does by default, but just to be sure).

As a bottom line, the whole region changing procedure could look like the following (the first line is just to create a backup file, too lazy to search for copy command although this is rather easy):

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.bin

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc_edited.bin

// copy the misc_edited.bin file to the local unix PC from sdcard

printf '\x31\x32' | dd of=misc_edited.bin bs=1 seek=40991 count=2 conv=notrunc

// copy the misc_edited.bin file back to sdcard

dd if=/sdcard/misc_edited.bin of=/dev/block/platform/msm_sdcc.1/by-name/misc

reboot

Would it work do you think? I've tested writing those bytes to the file and it looks ok.

EDIT:

With adb, I was able to write to the file with the 'echo' command instaed of 'printf', so it looked like this:

echo '\x31\x32' | dd of=/sdcard/misc.bin bs=1 seek=40991 count=2 conv=notrunc

I guess 'echo' is fine as we don't need any output formatting here and 'printf' is merely redundant. So the entire procedure can be performed only using adb shell cli:

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.bin

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc_edited.bin

echo '\x31\x32' | dd of=/sdcard/misc_edited.bin bs=1 seek=40991 count=2 conv=notrunc

dd if=/sdcard/misc_edited.bin of=/dev/block/platform/msm_sdcc.1/by-name/misc

reboot
[G3 General] :
Thanks, it's certainly better than hex editing. For linux-based OS, ofc.

Thing is, most users use Windows as their OS. Guiding them through installing and setting up Cygwin is not a good idea...

But the second way - which can be used in local shell - is far better.

I believe the procedure can be simplified to this:

dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.bin
echo -n '\x31\x32' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc
reboot

Tested it with 55 region. Phone switched to TWN, things work fine.

Added an '-n' to echo to prevent newline from appearing. Also, i do not think that there is a need of grabbing file and then changing it, since changes can be done directly to a partition.
[G3 General] rxulan:
Well, I guess it doesn't need Cygwin for Windows users as commands can be performed under the adb for Windows command line interface.

---------- Post added at 03:47 PM ---------- Previous post was at 03:41 PM ----------

So, this way seems to be relatively safe and can be published for use :)

Thanks for testing and improving things YaDr.
[G3 General] rxulan:
So, is the first command here unneeded and the procedure can be done only using

echo -n '\x31\x32' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc
reboot

(just to make sure)?
[G3 General] :
Yes, if you already have a backup, you can use only those 2.

You can even make it a one-liner:

echo -n '\x31\x32' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc && reboot
[G3 General] blo_od:
will this be the solution for my G3?

I have a problem with my LG G3 D855 32GB

I bought one LG G3 in Switzerland, and brought it to Portugal. I bought the unlocked version, or I thought that was the unlocked version.

When I arrive to Portugal, he accepted the Sim card, but to not register, if I change the sim card it register using Roaming.

It is possible to lock the phone to the country?

Can you please Help me? I have the L version Firmware!

How do I unlock the G3 for the sim lock, or country lock??

Thank You

David Gonçalves
[G3 General] :
Unfortunately, my method have nothing to do with simlocking.

Currently, unlock possible only via bought code.
[G3 General] blo_od:
I already bought a unlock code, but when I try to access to the menu to put the code, he do not how I already saw on youtube for exemple, it is blocked, and it is not possible to put the code!

What can I do?

Thank you,

David
[G3 General] :
What exact message do you see? Is it affiliated with region?
[G3 General] blo_od:
Permanent blocked

the message is "permanent blocked" and does not give any option to do anything!

Any Help?
[G3 General] :
Not my field of knowledge. Try Q&A subforum or contact LG.
[G3 General] saud__19:
YaDr just a silly question. Do you think LG Pc suite updates the device based on imei or the suffix? I mean if we can change the suffix to the target region will we get the target region update? Thx in advance.
[G3 General] :
IMEI. You will always get updates for your IMEI's region.

Btw the copy of IMEI used in pc suite is stored in misc too, and i don't think that changing it will break anything.
[G3 General] RAY0609:
When I change the region from EUR to HKG, there is a problem that the phone app seems like dont support to dial the call via volte, and the contact name cant show , only numbers, how can i fix it?:confused:
[G3 General] :
best

Best way is to flash 10n. There are special HKG-tailored roms out there like 10i-hkg and 10n. - they contain all neccesary apk's and frameworks.
[G3 General] RAY0609:
but if i really flash the rom again, will it come back to eur? because i want to change the region to hkg, i want to use the volte function, thanks!
[G3 General] :
Depends on the method you used. If you edited misc - phone will still be hkg after flashing, if you edited /cust/, it will revert back.
[G3 General] RAY0609:
okok, after flash the rom, it become to v10n-GLOBAL-xx, how can i change it to v10n-HKG-xx? thanks a lot!
[G3 General] :
1) Launch adb shell or terminal emulator.

2) Enter following commands:

su
dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.bin
echo -n '\x35\x34' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc
reboot

3) ...

4) Profit!
[G3 General] mustang2012:
I used to be on V10i-SEA-XX rooted until upgraded to lollipop ANDROID HD V20a and now it is V20a-GLOBAL-COM. Is this normal??
[G3 General] :
Yes, since android HD does not contain SEA region. GLOBAL-COM is used when firmware doesn't contain needed region.
[G3 General] mustang2012:
Thanks, the weird thing is, I backed up the original buildprop when my phone was V10i-SEA-XX in ext. Sd card but now even original buildprop says GLOBAL-COM.... I am sure it stated V10i-SEA-XX before. Very strange...
[G3 General] :
build.prop doesn't matter. These settings are taken from cust.prop inside needed folder.
[G3 General] RAY0609:
sorry for too many questions, may i know how to launch the adb shell?:crying:
[G3 General] :
Just install "terminal emulator" app from play store and use it instead.
[G3 General] RAY0609:
ok, thanks so much!:good::good:
[G3 General] carloss2013:
you can edit the nt code through hidden menu 3845#*855# then settings then version info ;)
[G3 General] :
And when you try to save it, i says "Failed". Believe me, i tried.

Check the attachment.
[G3 General] carloss2013:
oh there was me thinking i was clever lol :o
[G3 General] carloss2013:
any1 no why i get no code come up?? i did get stuck in twrp after trying an ota had to write a command with terminal to fota and misc think it typed it wrong once :( have i messed something up?? will whats in the op sort it? thanks phone is working fine just that message. i have tried a cse flash im on knvirus v11 which is Spanish im uk
[G3 General] :
Because you did "dd if=/dev/zero of=/dev/block/platform/msm<tab>1/by-name/misc", so you zeroed out everything in misc?

It's a phone-unique partition, no amount of flashing firmware will bring it back.
[G3 General] carloss2013:
does it matter?
[G3 General] :
Not really. From what we know, it contains:

- Your bluetooth and wifi MAC's. Your phone should assign random MAC's at each boot, so bluetooth pairings and mac auth will be broken (Correct me if i am wrong about address allocation with empty misc)

- A copy of your IMEI, which is used for update checking. So pc suite and inbuilt ota updater won't be able to check for updates anymore.

- Your NTCODE, meaning your phone won't know which region it belongs to and will fallback to "GLOBAL-COM".

- Probably some other things i don't know about.
[G3 General] carloss2013:
yh thanks for info :good: my phone has been fine bt pairing and wifi work perfectly, the phone does find updates just that message which doesnt show on stock firmware?? is there a way to get rid of the message

the misc partition is showing as 16mb the csd,cid,manf. id oem id serial num all there just fw rev and hw rev on misc and fota are 0x0?

---------- Post added at 05:00 PM ---------- Previous post was at 04:39 PM ----------

View attachment 3075238

this is how the nt code looks that show anything?

sorry for new post not sure how to attach new photo while editing post
[G3 General] :
You need to go into "full editing" and manage attachments there. Btw, xda says that it can't find your attachment :(

Pls reupload it.
[G3 General] :
Was your phone carrier-branded? Orange, Vodafone, etc?
[G3 General] carloss2013:
yes three or hutchinson
[G3 General] :
Guess you can try to get NTCODE which corresponds to three, should help.
[G3 General] carloss2013:
ok what's the easiest way to do this i got the code 234 20

im on three uk i have tried the hex editor the line 0000A000 there is nothing there can i put it in? there is alot of other lines for other things does that mean my misc is ok?
[G3 General] carloss2013:
this is part of the misc thats good right?
[G3 General] :
Guess it got auto populated or smthing.

I need an example of three's NTCODE from a working misc to tell you where to put it :) Try to ask in the forum.
[G3 General] carloss2013:
you have been very helpful i will come bck when i get an example thankyou:good:
[G3 General] :
Dunno, i don't know what's written there and how to interpret these bytes. It doesn't make sense in ascii, that's for sure.
[G3 General] carloss2013:
lol so which format is readable im new to this
[G3 General] DigiBlade12:
Region Suffix

YaDr Hi,

I need to set my phone to ISRAEL (ISR) region, because i dont have Hebrew language, 4G or RTL.

Can you please give me the region suffix for Israel. or explain how can i find the ISR region suffix? I want to edit my misc.

as i understand all i need to do is to type: "echo -n '\x31\x32' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc && reboot" under ADB Shell (Windows PC) + phone must be rooted. in this code where are the parts that i need to change to get Israel Region? or maybe i didnt understand it? :(

Thank You :)
[G3 General] :
You need to change echo -n '\x31\x32' to echo -n '\x37\x35'

Explanation: ISR region code is 75. "\x37" and "\x35" are "7" and "5" in ASCII hex.

Also make sure that you have OPEN_ISR folder in cust. If you don't, i can zip needed files and send them to you.
[G3 General] DigiBlade12:
First, thank you for your reply i really appreciate it.

I think that i need the OPEN_ISR (it shows as OPEN_IL) cust folder. so if you can zip and send it it will be great :)

But allow me to explain just to make sure im right.

i have 3 units of G3. (SEA\EMA\EUR) and i need to change all of them to ISR.

the G3's are on Lolipop (20e/20f/20h) with no root. so as i understand this are the steps:

1. Downgrade a device from 20E/F/H to 10L (so it can be rooted) and root.

2. use the code, but with echo -n '\x37\x35

3. what do i do now with OPEN_ISR cust? on the EUR version i have it (OPEN_IL) but on SEA i dont.

With the EUR model i'm keep getting "permission denied" after entering the code.

(ive tried to upload photos but im a new user so i cant - ull have to copy the link.)

[IMG="Denied Access"]i59.tinypic.com/25rl6yu.png[/IMG]

[IMG="My OPEN_IL Folder on EUR model"]i58.tinypic.com/2v3lvfq.jpg[/IMG]

and again thank you for your help :)
[G3 General] :
1) Downgrade to any KK firmware.

2) Enter "su" and confirm root access before using commands. Change region.

3) Install 20H on all phones. It contains OPEN_IL.

voila, 3 stock phones with ISR region.
[G3 General] DigiBlade12:
Thanks.

I did verify root with Root Checker.

when you say Enter "su" you mean Type "su" at the "ADB SHELL" then ENTER and then try the code?

or can i just add "su" before the "echo -n..."

Thanks again for your help :)
[G3 General] gee2012:
Yes you need it to enable `adb shell`.
[G3 General] DigiBlade12:
Thank you guys :)

Thank you so much! ur amazing !!!
[G3 General] DigiBlade:
Hi,

One quick question.

now that we have a root for Lollipop (no need to downgrade to 442), when i enter the command after root:

"echo -n '\x37\x35' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc && reboot"

im getting an error: "dd: conv option disabled"

when i enter the command without the "conv=notrunc" its working.

"echo -n '\x37\x35' | dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 && reboot"

Can you help?

Thank you :)
[G3 General] :
Install Busybox and use /system/xbin/dd. Native 5.0 dd is compiled without conv option.
[G3 General] DigiBlade:
Dear YaDr,

I'm sorry but that's Chinese :)

i would appreciate if you can explain the step "use /system/xbin/dd. Native 5.0 dd is compiled"

how do i do that?

do i need to install BusyBox and then use this syntax:

echo -n '\x37\x35' | /system/xbin/dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 && reboot

and again, the code is working 100% without the "conv=notrunc".

Thank you, again. :)
[G3 General] :
You can either use /system/xbin/dd or omit the notrunc. It -should- work both ways...
[G3 General] DigiBlade:
(omit?)

so which line after BusyBox installed? (I think its already installed when user apply the new lollipop root)

1. echo -n '\x37\x35' | /system/xbin/dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 && reboot

2. echo -n '\x37\x35' | /system/xbin/dd of=/dev/block/platform/msm_sdcc.1/by-name/misc bs=1 seek=40991 count=2 conv=notrunc && reboot

Thank you :)
[G3 General] :
Second line.
[G3 General] DigiBlade:
U'r the man! :)

Thank you, i really appreciate it!!!
[G3 General] alistairluckman:
Okay, I've managed to get my device back to the AUS region, but how can I stop the "Software version not for user" message? I thought that would fix it..... v20h-AUS-XX.
[G3 General] :
Make an entry in /cust/cust_path_mapping.cfg pointing your region number to any folder. Message will be gone.
[G3 General] alistairluckman:
Sorry, I don't understand... What line do I need to change, or create? Is is possible to give me an example?
[G3 General] :
FFFFF,11=/cust/OPEN_EU

replace 11 with AUS region code. And make sure that open_eu is actually present in /cust.
[G3 General] u1988:
[MENTION=4791767]YaDr[/MENTION]

Hi, After reading many posts I have a few Q:

1.How and what I need to backup before using your guide (Like in here for ISR...)

By the way this codes are helping many people in ISR to get OTA form ISR even the device are form ERU,SEA... originally.

(that what I know from my friends on the web...)

2.If I didn't backup how can I get back the orignal CUST with the first Contry/region when I bought the device

(By IMEI SEA,ERU...that the Software version shown at the beginning)

Do you have a list of region codes (How do you calculate the regions codes for ehce one?)

Can you please upload a list of region codes?

http://xdaforums.com/lg-g3/general/how-to-change-region-t2904951/post58646559

3.After doing that codes even I flash any KDZ/TOT it will stay the Region that I chose?

Thank you for a great guide. :good:
[G3 General] :
1) Backup your misc: dd if=/dev/block/platform/msm_sdcc.1/by-name/misc of=/sdcard/misc.bin

2) Download firmware by imei.

3) Yes. If kdz/tot does not support that region, it will default to global_com.

I don't have a list of codes, i don't know how to get it. I got these codes by looking into /cust/
[G3 General] Sun Shower:
Why I can't find this cust folder on my D858HK lollipop system

我從使用 Tapatalk 的 LG-D858HK 發送
[G3 General] :
It's market-specific model. Regions are included in d855 and it's subvariants.
[G3 General] pincher_95:
does this method works on G4

i have G4 that i want to change it region , can same method be applied
[G3 General] :
Root it and check if it has /cust/ folder. If it does, send me it's content, i'll see what i can do.
[G3 General] niveusjack:
Hi,

Did someone check if its possible to change the region of LG G4 H815 the same way?

I'll be getting mine next week and I would really like to change the region.

If you still havent received the content of the folder I'll send it to you when I'll get the device next week.
[G3 General] :
I received none. Please send it.
[G3 General] niveusjack:
Ok I got the G4 and successfully rooted it.

I see the cust folder via ES FILE EXPLORER but I cant copy it.

How can I copy it to my PC?
[G3 General] :
Can you open it and see it's contents? If so, try different file manager (X-Plore, for example). If not - check rights and owner on that folder.
[G3 General] niveusjack:
Hi,

I sent you a link to the folder via private message.

Please let me know if its possible to change the region using the same command?

Thanks