yashsingh1/xdaforums huggingface dataset:
[Moto Z Guides, News, & Discussion] benzinerwin:
The official TWRP 3.1.0-0.

I do MOUNT, check FSG.

Then, I go to the terminal and mess around, e.g. "echo blah >readme.txt".

/edit: my fsg patition gets always mounted as r/w. I previously erased it and flashed fsg.mbn via fastboot.. Maybe that had an influence.
[Moto Z Guides, News, & Discussion] xequtor:
deleted
[Moto Z Guides, News, & Discussion] ottmi:
That's odd, mine gets only mounted ro and I can't even re-mount/mount manually as r/w. In fact, the whole sdc "disk" (where fsg is located on as sdc4) is marked read-only.

Could you please post the output of the following commands on TWRP?

ls -l /dev/block/platform/soc/624000.ufshc/by-name
cat /sys/block/sd?/ro
[Moto Z Guides, News, & Discussion] topcaser:
Did you see any influence in battery life using both slots? In principal two antennas are now in work....
[Moto Z Guides, News, & Discussion] ottmi:
Hmm, for my phone it reads [0, 1, 1, 0], i.e. sdb and sdc are read-only. I don't get it. Clearly, it can be mounted r/w as the stock recovery updates the fsg partition. But how?

Yes, I've tried but it just mounts ro anyway..
[Moto Z Guides, News, & Discussion] sniperess:
Does IMEI: 0 connect to North American networks? Can I connect to two 3G/LTE networks at the same time?
[Moto Z Guides, News, & Discussion] InChi:
Same here. Trying to backup all partitions of my fresh Moto Z in TWRP, but /fsg /oem and /dsp have message "Failed to mount /fsg (Read-only file system)" in official TWRP 3.1.0-0 and not able to backup. Backup to PC via adb with "adb backup --twrp" is also not working for me. Could it be related to only booting to TWRP with "fastboot boot twrp.img" and not flashing? I would like to backup as most as possible before flashing anything.
[Moto Z Guides, News, & Discussion] ottmi:
Can't tell about connectivity in North America, but the phone can connect to 2G/3G on one SIM and 2G/3G/4G on the other. So one 3G and one 4G network is possible, but not two 4G.

Good thinking :good:

I've just flashed TWRP to the recovery partition and now all partitions are r/w :D

You don't have to mount the partitions r/w to do a backup, read-only is sufficient for that. In fact, you don't want to mount /system as r/w as this will break the verity-check. For the same reason a nandroid backup of /system will be useless if you wan't to go back to stock. I think the best strategy would be to do raw-images of all partitions in /dev/block/bootdevice/by-name to an sdcard with dd.
[Moto Z Guides, News, & Discussion] b0mmel:
Question:

I have an old and damaged android mobile phone with an valid IMEI number. Is it possbile to use this IMEI number for the second SIM card slot?

Why I am asking: CURRENTLY the network operator accept registation to the grid without IMEI (or IMEI=0), but it could be possible that this will be change by law because of "security" reasons...
[Moto Z Guides, News, & Discussion] benzinerwin:
I need to figure out the parameter names etc for the second sim slot because they are all missing in the singlesim setup.

To do that, I'd need help from someone with a factory-made dualsim MOTO-Z (i.e. no mods necessary & two working IMEIs):

I can provide an update.zip file. Put that on a usb drive, go into TWRP recovery (you may temporarily run TWRP via fastboot, leaving the original recovery in place). Then "install" the provided zip. It dumps 512kB of flash contents to the USB drive.

Full disclosure: that file contains your IMEI adresses, as well as your phones serial number. I'm not interested in the actual values but only in their naming, format etc. You may use a hex-editor and try to carefully sanitize the file prior to sending it to me.

/Update:

instead of an update.zip, I can provide a fastboot/adb script that extracts the necessary data, also without making any changes to your phones flash memory.

Please take a look at my post over here: https://xdaforums.com/showpost.php?p=72130004&postcount=51

Forget it, lost interest.
[Moto Z Guides, News, & Discussion] InChi:
For me it's not possible to mount it in TWRP. Which version did you use? Even if in Mount menu it does not let me select fsg, oem and dsp.

recovery.log:

Failed to mount '/fsg' (Read-only file system)

I:Actual block device: '/dev/block/sdc4', current file system: 'ext4'

Failed to mount '/oem' (Read-only file system)

I:Actual block device: '/dev/block/sdc9', current file system: 'ext4'

Failed to mount '/dsp' (Read-only file system)

I:Actual block device: '/dev/block/sdc1', current file system: 'ext4'

I:Unable to mount '/external_sd'

I:Actual block device: '', current file system: 'auto'

I:Unable to mount '/usb-otg'

I:Actual block device: '', current file system: 'auto'

...done

...

I:Calculating backup details...

* Total number of partitions to back up: 3

* Total size of all data: 4MB

* Available space: 23430MB

[BACKUP STARTED]

* Backup Folder: /data/media/0/TWRP/BACKUPS/.../2016-08-31--03-06-36

Invalid encryption mode file /data/unencrypted/mode

Failed to mount '/fsg' (Read-only file system)

I:Actual block device: '/dev/block/sdc4', current file system: 'ext4'

Backup Failed. Cleaning Backup Folder.

Update: It worked after flashing TWRP and not only booting TWRP.
[Moto Z Guides, News, & Discussion] nachtfalke7711:
rare steps to DualSim

The rare steps on the way to Dual SIM: (Do it at your own Risk)

- Unlock Bootloader

theandroidsoul.com/unlock-bootloader-of-moto-z-and-moto-z-force-guide/

- Flash TWRP

twrp.me/devices/motorolamotoz2016.html

Reboot to recovery after flashing the twrp image. Then reboot your device from recovery. If you reboot your phone from fastboot aftwr flashing twrp, it gets overwritten by stock recovery.

-NANDROID Backup

-LineageOS u. GAPPS (ARM64)

-Root

cyanogenmods.org/forums/topic/how-to-root-lineage-os-13-14-1-marshmallow-nougat-rom/

-follow post #1

-Hardware mod:

modify Sim tray (Hybrid) or loosen SIM from plastic and glue it to the memory stick
[Moto Z Guides, News, & Discussion] b0mmel:
... therefore the only way to receive dual-sim functionality is to replace the factory ROM by LineageOS and root the device? :(

Is it still possbile to use the moto mods after replacing the factory ROM?
[Moto Z Guides, News, & Discussion] benzinerwin:
No, it works with stock-rom as well.

(It's not even necessary to flash a different recovery... However, I still need to gather some info from people with a factory-made dual-sim phone to maybe address the second imei = 0 thing).
[Moto Z Guides, News, & Discussion] topcaser:
And how do we obtain root without flashing twrp? Most descriptions go this way

Gesendet von meinem XT1650 mit Tapatalk
[Moto Z Guides, News, & Discussion] benzinerwin:
Well, it also works without touching the fsg partition, but I still have to check if that works for stock images as well...
[Moto Z Guides, News, & Discussion] b0mmel:
Got it - I start a request in a poll regarding IMEI count on the box - maybe somebody will helps us here. :)
[Moto Z Guides, News, & Discussion] ottmi:
I don't think that it would work for stock images. The baseband is loaded by rmt_storage. Looking at the strings in this binary, it reads the following properties:

ro.hw.device
ro.fsg-id
ro.carrier
ro.hw.radio
persist.radio.multisim.config

And from these values it obviously builds the filename of the baseband to be loaded:

/fsg/%s_%s.img.gz
/fsg/0.img.gz
/fsg/%s_%s_%s_%s.img.gz
/fsg/%s_%s_%s.img.gz

In my case, the corresponding property values are as follows and it loads sheridan_row.img.gz as baseband.

[ro.hw.device]: [sheridan]
[ro.boot.fsg-id]: []
[ro.carrier]: [reteu]
[ro.hw.radio]: [ROW]
[persist.radio.multisim.config]: [dsds]

I'm assuming that persist.radio.multisim.config has not been set yet when rmt_storage starts as it starts quite early in the init process..
[Moto Z Guides, News, & Discussion] topcaser:
Is there a way to get the second SIM running without unlock the bootloader? Probably not, isn't it?
[Moto Z Guides, News, & Discussion] Fukato1987:
Hello,

i don't know if my device is working due to the sd card -sim card glue.

my old dual sim phone need the sim card on the other side, so at home i have to rotate it and glue it again.

but if i set up the following command(at work):

fastboot erase modemst1
fastboot erase modemst2
fastboot erase cache
fastboot reboot

i will get some strange output(please notice "has-slot:modemst1: not found"):

fastboot erase modemst1
(bootloader) has-slot:modemst1: not found
erasing 'modemst1'...
OKAY [ 0.178s]
finished. total time: 0.178s

fastboot erase modemst2
(bootloader) has-slot:modemst2: not found
erasing 'modemst2'...
OKAY [ 0.184s]
finished. total time: 0.184s

fastboot reboot
rebooting...

finished. total time: -0.000s

i will get this messages are their normal?

---------- Post added at 08:43 PM ---------- Previous post was at 08:42 PM ----------

no you have to modify configs in "/system" partition
[Moto Z Guides, News, & Discussion] nachtfalke7711:
First IMEI 0

I made a mistake and my first Imei is 0. Flashing NANDROID Backup is not possible because TWRP says its write protected. Any ideas?
[Moto Z Guides, News, & Discussion] benzinerwin:
What mistake, what did you do exactly? Did you flash erase everything meanwhile (DON'T!)? What kind of nandorid-backup did you do, what partitions does it include ... ect?

Is TWRP flashed as recovery or did you just soft-booted it via fastload?
[Moto Z Guides, News, & Discussion] nachtfalke7711:
The Second SIM suddenly wasn´t recognized anymore. I tried to redo the steps from post #1: Deleting and Renaming the 4 files (griffin and the sheridan) and do the fastboot steps:

fastboot erase modemst1

fastboot erase modemst2

fastboot erase cache

fastboot reboot

in bootloader menu.

I haven´t erased anything (hope so). I only copied the complete "fsg" folder back from SD to /system and tried the steps again. I also tried to install different roms (incl. wipe cache/data). SIM 1 IMEI is "unbekannt" = unknown and no baseband is available.

Meanwhile there was also no SIM-Card Menu in the settings. This was solved by toggling the app "MultiSIM-toggle"
[Moto Z Guides, News, & Discussion] benzinerwin:
Ok, you need to restore the fsg & persist partitions. Do not copy file by file because this can easily go wrong. Best do it via fastboot. Then erase modemst1, modemst2, cache. Do you have a valid fsg.img?
[Moto Z Guides, News, & Discussion] nachtfalke7711:
OK, i have copied the fsg with ES File Explorer before all changes to the sd card & to the pc. But i have no "persist" partition.
[Moto Z Guides, News, & Discussion] benzinerwin:
Start your phone into recovery mode (TWRP) and have the PC connected.

From the PC commandline:

adb shell "dd if=/dev/block/sda3 of=/tmp/sda3.bin"
adb pull /tmp/sda3.bin

Kepp that file, it's an image of (what's left of) your persist-partition.

You can send that file to me and I can try to reconstruct a working partition image. (It's just an offer.)

Meanwhile, there may be an alternative (more like a work-around): do you have a backup of both partitions modemst1 and modemst2? Though, I guess not... :(
[Moto Z Guides, News, & Discussion] Vcek:
Im just curious about how the 2nd SIM registers with IMEI 0, doesn't the Carrier block the sim?
[Moto Z Guides, News, & Discussion] benzinerwin:
it depends on the carrier. As long as there are no legal obligations regarding the handling of IMEIs, they usually ignore them (invalid / dupes). The providers are basically interested in a valid IMSI (subscriber serial number, provided by the sim card) in order to generate revenue. Only if they suspect fraud, they might lock you out.
[Moto Z Guides, News, & Discussion] grafvonvolta:
Missing switch

both sim cards are working fine... but I can't switch them off separately. The switches are missing.

Does someone else have this issue and maybe a fix?
[Moto Z Guides, News, & Discussion] apocalypse_bg:
When is the delivery? I'm thinking of doing the same instead of modifying the original tray, before attempting the software side of things :)
[Moto Z Guides, News, & Discussion] aoleg:
Typically, about a month.
[Moto Z Guides, News, & Discussion] InChi:
Bought one from ebay Germany (delivered from China): http://www.ebay.de/itm/172391547845

Delivery took about two weeks. Fits and looks like original one. I have not done the software changes yet to enable Dual Sim, so using it still only with one Sim and SD.
[Moto Z Guides, News, & Discussion] apocalypse_bg:
I've ordered​last week from the same vendor .. so I'll wait a little bit more to see which way will the solution develop, I have weak hope to be doable without voiding the warranty
[Moto Z Guides, News, & Discussion] Nash123:
Got that one too. Took only several days until it arrived.

2 SIM cards fit and function well (without the need to cut something), but with the Micro-SD below the second sim it is too big to fit. I guess I have to "optimize" the second sim somehow to get the sim-tray inside the phone.

Thx to all who contributed to make the Moto Z even more awesome.

Edit: What is really missing in lineage 14.1 is a button to turn off sims individually. Really annoying not being able to do this. I guess I revert back to single sim usage.
[Moto Z Guides, News, & Discussion] topcaser:
Google for sim card mod or look in the other thread dealing with two-way sims

Gesendet von meinem Fire Phone mit Tapatalk
[Moto Z Guides, News, & Discussion] winkebruse:
i also did in twrp setprop persist.radio.multisim.config dsds, it turned out that i do have dual sim option. how ever, no matter what i do, the 2nd sim wont be detected. (orientation and so on are correct)

do i need to do extra steps?

---------- Post added at 05:55 PM ---------- Previous post was at 05:31 PM ----------

omg, guys, i didn't do the follwing steps

fastboot erase modemst1

fastboot erase modemst2

fastboot erase cache

fastboot reboot

now works perfectly!!!

Thanks guys.
[Moto Z Guides, News, & Discussion] let13513:
Help

My fat finger deleted griffin_dsds_2.img.gz and griffin_2.img.gz. Unfortunatelly the backup file is corrupt...:(

Can anybody help me?
[Moto Z Guides, News, & Discussion] winkebruse:
Here u go.

Mine is European version xt1650-03 single simhttp://cloud.tapatalk.com/s/5927781417361/griffin.zip

通过我的 XT1650-03 上的 Tapatalk发言
[Moto Z Guides, News, & Discussion] let13513:
Great! Thank you!
[Moto Z Guides, News, & Discussion] dolons:
Hi the, im a beginner in this Area.

I have a Moto Z with Baseband: M8996_1239.53.01.126R but no SRS or SRD after the number. Is that normal?

I use the linage Os and the last build vom 23.05.2017

But im a bit confused for the instructions.

I use multisim toggle app. If the app restarts directly it doesn´t work.But if i stop the reboot and reboot manual a warmstart it works and dual Sim is in the settings.

But the Sim in the first slot works not longer.

so now i dont unterstand the instructions. They tell diffret way. If i boot to twrp File manager, the Fsg Ordner is empty. - With Ez- Filexplorer i see the FSG Ordner an the Files but so many.

But i dont understand the part with griffin an sheridan files.

I also have griffin_dsds_2.img.gz and griffin_dsds_3.img.gz files.

Maybe someone can help me? with PM an in german/ deutsch???

THx
[Moto Z Guides, News, & Discussion] winkebruse:
Was ich gemacht habe ist nur twrp setprop persist.radio.multisim.config dsds. Und dann obengenannten erase Befehle. Hab ich auch ne deutsche Version single Sim und lineage OS.

通过我的 XT1650-03 上的 Tapatalk发言
[Moto Z Guides, News, & Discussion] laco2000:
Winkebruse, kann ich dir mal eine Email schicken?

Gruß, Laszlo
[Moto Z Guides, News, & Discussion] winkebruse:
Jop, kein Problem

Gesendet von meinem XT1650-03 mit Tapatalk
[Moto Z Guides, News, & Discussion] laco2000:
Deine Email Adresse?
[Moto Z Guides, News, & Discussion] winkebruse:
Habe ich dir ein Nachricht geschickt.

Gesendet von meinem XT1650-03 mit Tapatalk
[Moto Z Guides, News, & Discussion] laco2000:
Es geht darum: ich habe einen single-SIM Moto Z (XT165-03) von Saturn. Da ich über Internet dieses Thread gefunden habe, wollte ich mein Handy auch Dual-SIM-fähig machen. Nur, die Programmierung ist für mich wie Chinesisch, also wollte ich dich um eine Version der Installation bitten, die ich auch ein Leihe versteht.

Zwischenzeitlich habe ich mal hier (Slowakei) in einem Mobil-Laden nachgefragt, ob sie die Programmierung übernehmen würden und habe denen einige Links geschikt von euch. Nach 2 Tagen haben sie es abgelehnt:

1. Das IMEI-1 kann verloren gehen

2. Das IMEI-2 wird "0" und wird nicht funktionieren

3. Softwarefehler können auftreten

4. Zukünftige Updates kann ich vergessen

Was sagst du dazu?
[Moto Z Guides, News, & Discussion] winkebruse:
Wenn du so etwas macht, Garantie geht sowie so verloren. Bootloader muss unlocked werden. Es gibt Gefahr, dass IMEI 1 geht verloren. Es ist normal, dass IMEI 2 Null ist.

Gesendet von meinem XT1650-03 mit Tapatalk
[Moto Z Guides, News, & Discussion] laco2000:
Danke. Mit Garantieverlust habe ich keine Probleme, wenn das Ding läuft.

Sollte was schiefgehen, gibt es eine Möglichkeit zum Ursprungszustand zurückzukommen?

Läuft es denn bei dir problemlos?

Was ist mit den zukünftigen Android Updates?

Sorry für die vielen Fragen...

Gruß, Laco
[Moto Z Guides, News, & Discussion] dolons:
Ich bekomme immer nur eine Fehlermeldung beim Umbenennen der griffin_dsds file.

Ablauf:

1. Starten der App Total Commander -Y root abfrage --> ok erlauben

2. fsg Ordner öffen --> beide Files löschen --> ok

3. Umbennen --> Fehlermeldung. --> Was hab ich vergessen?

Im Recovery TWRP Manager werdem im FSG ordner keine Files angezeigt.

------------------

I always get only one error message when renaming the griffin_dsds file.

Procedure:

1. Start the application Total Commander -> root query -> ok

2. fsg folder open -> delete both griffin files -> ok

3. Rename -> Error message. -> What did I forget?

In the Recovery TWRP Manager, no files are displayed in the FSG folder.
[Moto Z Guides, News, & Discussion] Bebobwolf:
Did you get the correct dual-sim. if yes can you send link

Thanks
[Moto Z Guides, News, & Discussion] laco2000:
YES, the SIM-tray is perfect for dual-SIM configuration! I have used this link for purchase:

http://www.ebay.de/itm/SIM-Card-Slo...var=471454574564&_trksid=p2060353.m2749.l2649

Please give attaention to chose the right-slot!

I am not sure, whether they work as I am not experienced enough and a company refused to do it, considering the potential dangers...

Laco
[Moto Z Guides, News, & Discussion] aoleg:
No, I received a single-SIM tray from Aliexpress. Not recommended. Use the eBay link provided in the previous post; I ordered from there, too, and that one really is a dual-SIM tray.
[Moto Z Guides, News, & Discussion] dtolos:
Ascend P7-L00 2nd slot disappeared after factory reset [Solved]

setprop persist.radio.multisim.config dsds

That was magic my friend, thank you.

I have a Huawei Ascend P7 dual sim. For many problems in my rom I decided to do a factory reset through TWRP 3.0 with advanced reset and to delete all files. After that I flashed all img's again. Everything was very very fine, except that it didn't recognize 2nd sim slot. I done everything ( copy/paste to System files all possible apks from clean rom: settings.apk, dsd etc), but with no luck. And then you were here and I find you! Through TWRP and it's terminal, I just wrote this magic "line" and reboot. Everything is back again and perfect.

Thank you!
[Moto Z Guides, News, & Discussion] double-gee:
Can we stick to English in this thread please.
[Moto Z Guides, News, & Discussion] i_am_aji:
Can any pls send me a link of fsg for the Rogers version of the moto z 03 . I don't know what to do I can't seem to get network anymore on my phone . PS I'm currently in Nigeria
[Moto Z Guides, News, & Discussion] BADAMI:
does tgis methid works for moto z force 1650-02?
[Moto Z Guides, News, & Discussion] RadikGirf:
Hello everyone, who has the original file sda from the T mobile? My copy was not copied to TWRP. Please post
[Moto Z Guides, News, & Discussion] moemos:
Hello, does anyone have the original files for a (german) XT 1650-03? That would be amazing! I lost my /fsg backup and want to switch back to single SIM.
[Moto Z Guides, News, & Discussion] moemos:
Any 1 ? :/

I would really love to update to LOS 16 with working cellular.
[P3600 Software Upgrading] Giuliana:
good morning, as I do to restore original HSPL of the original P3600 ITA to bring him/it in assistance. Now I have olipro 1.20 Thanks

Buon giuorno, dovrei ripristinare la versione originale del HSPL del P3600 ITA perchè devo portarlo in assistenza. Dove lo trovo?

GRAZIE
[P3600 Software Upgrading] ww2250:
What you flashed is called HSPL, H for hard, while the original is just called SPL. You need SSPL, S for soft, to flash an original rom of your provider.
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] __ganeshanand:
I really think there should be a thread on XDA with tested methods to switch baseband as a lot of people face trouble with GPS etc on custom ROMs. Ideally we should be having a collection of TWRP flashable zips instead of having to install stock firmware via tools like Miflash and then doing everything from the beginning.

This zip from Davideavinavil is TWRP flashable and it works perfectly for me. It doesn't improve things drastically from stock Marshmallow Indian ZUI baseband but would be great for if your GPS is not working or something.
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] __ganeshanand:
To get the baseband from latest Indian ZUI Nougat Beta follow these instructions from zukfans by Magz Heaven. Tested on my own phone which previously had the above Davideavinavil zip flashed and is now on M8996FAAAANAZM-1.76387.1.92759.1. I wiped everything TWRP then flashed this in fastboot and then went back into recovery and flashed ROM + GApps. If you want to run this in Linux open the bat file as text and use the same fastboot commands with those files in your pwd.
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] edimonoarfa:
1. Will bootloader be locked again after flashing baseband?

2. Do I have to flash ROM after flashing baseband?

3. Does bluetooth connectivity depend on baseband?

Thx
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] 1qazwsx4:
I also would like to know this... Also does it matter if my phone was from China rather than India for the baseband? Someone please help with these answers :)

Any idea man?
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] Danoz88:
1. Yes its possible that your bootloader gets locked after flashing. If you do it wrong and doesnt check it after first reboot you can brick your device.

2. No you dont.

3. Someone said when you only flash the NON-HELOS.bin file you can get problems with bluetooth. If its right I dont know.
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] 1qazwsx4:
Thanks for your response. Only reason i asked about bluetooth is because only ONE custom rom works for me bluetooth wise. I'm unable to connect to my cars headunit with any rom except resurrection rom. Would flashing a modem help this? my modem is 9-00026-M8996FAAAANAZM-1.63821.1
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] Danoz88:
Flashing custom roms shouldnt change the baseband. Does connecting work on rr with this baseband? Do you have problems with other bluetooth devices except your car?
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] 1qazwsx4:
Sorry I probably didn't explain that the best. Flashing ROMs doesn't change my baseband but I'm wondering if changing my baseband will fix my Bluetooth problems. Yes RR works with my current baseband and my Bluetooth works with every device I've tried, on flashing to a different ROM none have worked sadly. I've tried to ask around if other people have issues but they all say their BT is working as it should haha :confused:
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] ramadurair:
I flashed this zip onto my z2 plus and the phone has stopped completely. Its not booting nor am i able to go to recovery.

It flashes ZUK message and then goes silent completely.

Have i bricked the phone? Can i recover it?

Thanks
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] Chadlinje:
Will this baseband work for the UK? Sorry if this a silly question
[Lenovo ZUK Z2 (Plus) Guides, News, & Discussion] Chadlinje:
same here. damit