"/persist/sensors" accidently deleted - need a copy from another phone - Xiaomi Mi A3 Questions & Answers

Hi friends,
I need help please, I deleted the contents of /persist/sensors
in a desparate attempt to resolve an accelometer/gyro y-axis being off by ~7°.
This was a fatal mistake as persist.img from stock fastboot ROM does
not contain most of the contents and my full twrp backup has /vendor and multiple EFS but not /persist.
Please save my phone.
I am on the first April PE ROM but I doubt it matters for this issue.

y0nigt said:
Hi friends,
I need help please, I deleted the contents of /persist/sensors
in a desparate attempt to resolve an accelometer/gyro y-axis being off by ~7°.
This was a fatal mistake as persist.img from stock fastboot ROM does
not contain most of the contents and my full twrp backup has /vendor and multiple EFS but not /persist.
Please save my phone.
I am on the first April PE ROM but I doubt it matters for this issue.
Click to expand...
Click to collapse
Try latest AtomOS from official download page

Rajendran Rasa said:
Try latest AtomOS from official download page
Click to expand...
Click to collapse
Thanks for the reply, ROMs do not include persist.img and fastboot ROMs only have this partial structure inside persist.img/sensors
Code:
Directory of sensors
<DIR> registry
0 sensors_settings
Directory of sensors\registry
<DIR> registry
592 sns_reg_config
11 sns_reg_version
Directory of sensors\registry\registry
0 sensors_registry
Total Files Listed: 4 File(s) 603 bytes
while the original folder had more than 100 files in there.
If I understand correctly this partition is written in the factory
per phone and includes IMEI, Wifi/BT MAC addresses and stuff.
I just need the /persist/sensors from a working global MIA3 phone please.

A nice person sent me the files in private, I attached them in case anybody else needs it too. I still have the issue with a sensor a bit off by a few degrees but at least my sensors are back!

Flash miui 11 with twrp and then u get all sensors

y0nigt said:
A nice person sent me the files in private, I attached them in case anybody else needs it too. I still have the issue with a sensor a bit off by a few degrees but at least my sensors are back!
Click to expand...
Click to collapse
is this file calibrated? how do i flash this file?

How to flash this file?
y0nigt said:
A nice person sent me the files in private, I attached them in case anybody else needs it too. I still have the issue with a sensor a bit off by a few degrees but at least my sensors are back!
Click to expand...
Click to collapse
Guys I just got back on 9 stock rom and lost proximity and gyroscope sensors (even some more). Could anyone please guide me as to how I can proceed? What steps should I take to get them back? I have tried installing 10 n then 9 again, back n forth...doesn't help.
I have tried installing MIUI 11 and then install stock rom but same outcome. Is there anyway I can flash this file and get the sensors back? Please help..

apparently no one knows the complete solution to this persistent partition problem
I have same issu MI9 T pro

Btw, I have a similar offset problem with the GPS, it's off by about 10°
If you ever find a fix, lemme know!

Catlish said:
Btw, I have a similar offset problem with the GPS, it's off by about 10°
If you ever find a fix, lemme know!
Click to expand...
Click to collapse
Good lock

Related

Moto E Wi-Fi Won't Turn On!

Moto E Wi-Fi Won't Turn On after update CM 13.0 official nightly on today with latest open gapps. My Mac address automatically change with 02:00:00:00:00:00
What can i do? Help me
ansariziya said:
Moto E Wi-Fi Won't Turn On after update CM 13.0 official nightly on today with latest open gapps. My Mac address automatically change with 02:00:00:00:00:00
What can i do? Help me
Click to expand...
Click to collapse
Same here. It also corrupted my 32GB mem card, though I didn't select the external as internal option...... :crying: Now crying over my dead mem card!
ansariziya said:
Moto E Wi-Fi Won't Turn On after update CM 13.0 official nightly on today with latest open gapps. My Mac address automatically change with 02:00:00:00:00:00
What can i do? Help me
Click to expand...
Click to collapse
So after lots of flashing of different roms on my Moto E 1st gen
(XT1022) I ended up unable to turn WIFI on in any rom, including
stock!
Thing is, after days of breaking my head with this, I figured out I was
missing the WCNSS_qcom_wlan_factory_nv.bin file from the /Persist
folder.
How did that file go missing and why it was not restored when
restoring to stock or flashing roms? Dam good question, I don't have
an answer to that yet, BUT, I have a fix.
Simply download the attached .rar, unzip it, and manually put the
WCNSS_qcom_wlan_factory_nv.bin file in your /Persist folder using
any root explorer / file manager on your device and reboot!
Such a simple little thing gave me so much trouble, hope this will help
future users who might face the same problem, as I already saw
around that other people are also having the same issue.
Happy surfing on your now working WIFI!:fingers-crossed:
Download Link
dl-1.va.us.xda-developers.com/3/1/2/3/7/7/6/WCNSS_qcom_wlan_factory_nv.rar?key=7MqiX7xPQucqnzDa6IO7Yw&ts=1459273984
Thank you for reply but Download link not work. Can you send me e-mail this file me on [email protected]
Thanks in advance
================
Deepak5310 said:
So after lots of flashing of different roms on my Moto E 1st gen
(XT1022) I ended up unable to turn WIFI on in any rom, including
stock!
Thing is, after days of breaking my head with this, I figured out I was
missing the WCNSS_qcom_wlan_factory_nv.bin file from the /Persist
folder.
How did that file go missing and why it was not restored when
restoring to stock or flashing roms? Dam good question, I don't have
an answer to that yet, BUT, I have a fix.
Simply download the attached .rar, unzip it, and manually put the
WCNSS_qcom_wlan_factory_nv.bin file in your /Persist folder using
any root explorer / file manager on your device and reboot!
Such a simple little thing gave me so much trouble, hope this will help
future users who might face the same problem, as I already saw
around that other people are also having the same issue.
Happy surfing on your now working WIFI!:fingers-crossed:
Download Link
dl-1.va.us.xda-developers.com/3/1/2/3/7/7/6/WCNSS_qcom_wlan_factory_nv.rar?key=7MqiX7xPQucqnzDa6IO7Yw&ts=1459273984
Click to expand...
Click to collapse
PoseidonKing said:
Same here. It also corrupted my 32GB mem card, though I didn't select the external as internal option...... :crying: Now crying over my dead mem card!
Click to expand...
Click to collapse
Did you tried plugging to a pc and repartition it?
-z3r0- said:
Did you tried plugging to a pc and repartition it?
Click to expand...
Click to collapse
No, I didn't. Explain please.....
Did, you flashed a custom kernel on the Rom ?
Try, not to flash the kernel and Reflash the Rom after wiping all the data,system etc.
It might be helpful.
PoseidonKing said:
No, I didn't. Explain please.....
Click to expand...
Click to collapse
Plug ur mem card into a card reader and.
Try this:
1. Open cmd (run as administrator)
2. Type DISKPART, a new window will open.
3. Type list disk/drive ( i dnt remember, but it's either of them )
4. Select end 32gigs partition by:
Code:
select drive 1
(Whichever drive shows size of 32 gigs)
5. Type CLEAN
6. then again
Code:
select drive 1
(Whichever drive shows size of 32 gigs)
And type,
Code:
create partition primary
And then,
Code:
select partition 1
7.Type
format fs=fat32
It'll take some time.. But yea, will surely work and save your tears..
Do let me know..
Hit the thinks botton if it helped..
Or Use Mini Tool Partition Wizard
I flashed the Unofficial CM13 on my Moto E 2015 using TWRP and since then my wifi is gone. I am also facing same issue wherein the wifi would immediately turn off after turning it on. I tried the solution mentioned about putting that file in the /persist folder (I downloaded the file from another thread since the link in this thread is broken) but using ES Explorer, it is not allowing me to copy and keeps saying "Copy Failed". I am not sure how to change permissions using ESexplorer.
What can I do to fix this ?
PoseidonKing said:
No, I didn't. Explain please.....
Click to expand...
Click to collapse
So, did it work?
Link not working, kindly share the file to [email protected]
Deepak5310 said:
So after lots of flashing of different roms on my Moto E 1st gen
(XT1022) I ended up unable to turn WIFI on in any rom, including
stock!
Thing is, after days of breaking my head with this, I figured out I was
missing the WCNSS_qcom_wlan_factory_nv.bin file from the /Persist
folder.
How did that file go missing and why it was not restored when
restoring to stock or flashing roms? Dam good question, I don't have
an answer to that yet, BUT, I have a fix.
Simply download the attached .rar, unzip it, and manually put the
WCNSS_qcom_wlan_factory_nv.bin file in your /Persist folder using
any root explorer / file manager on your device and reboot!
Such a simple little thing gave me so much trouble, hope this will help
future users who might face the same problem, as I already saw
around that other people are also having the same issue.
Happy surfing on your now working WIFI!:fingers-crossed:
Download Link
dl-1.va.us.xda-developers.com/3/1/2/3/7/7/6/WCNSS_qcom_wlan_factory_nv.rar?key=7MqiX7xPQucqnzDa6IO7Yw&ts=1459273984
Click to expand...
Click to collapse
Please share me the file - [email protected]
http://forums.androidcentral.com/go...-wifi-won-t-turn-mac-address-unavailable.html
The solution by Huong Cao seems to work for me.
Sorry if i interpreted some things wrongly

editing a rom zip before flashing it

hey guys hope u are doing fine , so lately there being this way to hide the system folder of a rom zip so u can't access the system/app or syste/priv-app so i really need to edit a rom like RN or lineageOS before flashing it , is there a way u can show me please ?
The /system folder is inside system.imgin the zip
Use 7zip to extract just that, mount the IMG with some kind of special program (windows doesn't recognise ext4 partitions) edit it, then put the IMG back in the same zip.
BTW, I came across a good tutorial on what you are trying to do some time ago. I don't remember if it was here, on XDA. Have you tried googling it?
Vagelis1608 said:
The /system folder is inside system.imgin the zip
Use 7zip to extract just that, mount the IMG with some kind of special program (windows doesn't recognise ext4 partitions) edit it, then put the IMG back in the same zip.
BTW, I came across a good tutorial on what you are trying to do some time ago. I don't remember if it was here, on XDA. Have you tried googling it?
Click to expand...
Click to collapse
yeah thnx i tried googlin but all i found was obsolete like posted in 2012 back then the editin was simple and the system file wasn't hidden , and what kind of special programs i can use to mount the image ? m already usin 7zip
berraffarouk15 said:
yeah thnx i tried googlin but all i found was obsolete like posted in 2012 back then the editin was simple and the system file wasn't hidden , and what kind of special programs i can use to mount the image ? m already usin 7zip
Click to expand...
Click to collapse
i guess i found it this is it
https://forum.xda-developers.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117
berraffarouk15 said:
i guess i found it this is it
https://forum.xda-developers.com/android/help/extract-dat-marshmallow-lollipop-easily-t3334117
Click to expand...
Click to collapse
That is not the one I had found, but it should work.
Try it. Let me know.
Vagelis1608 said:
That is not the one I had found, but it should work.
Try it. Let me know.
Click to expand...
Click to collapse
hey , works fine for marshmallow and lollipop but unfortunately doesn't work for nougat 7.1.2 ,he said he tested it for 7.1.1 but no luck here , so what i'm tryin to do is delete the aosp keyboard cause when i try to install the gapps and install the gboard the package got mixed and when ever i try access the options in gboard it got force close (i tried manually uninstalling the aosp and clean all it data and remaining folders but o luck all ways the same problem it says the package conflicts and even if i success to manually install it it force close when ever i want to personalize the keyboard like shotin down the auto correction or ,,,, so any help here ?
berraffarouk15 said:
hey , works fine for marshmallow and lollipop but unfortunately doesn't work for nougat 7.1.2 ,he said he tested it for 7.1.1 but no luck here , so what i'm tryin to do is delete the aosp keyboard cause when i try to install the gapps and install the gboard the package got mixed and when ever i try access the options in gboard it got force close (i tried manually uninstalling the aosp and clean all it data and remaining folders but o luck all ways the same problem it says the package conflicts and even if i success to manually install it it force close when ever i want to personalize the keyboard like shotin down the auto correction or ,,,, so any help here ?
Click to expand...
Click to collapse
Flash the ROM, mount /system and use recovery's built-in file manager to delete whatever you want.
Vagelis1608 said:
Flash the ROM, mount /system and use recovery's built-in file manager to delete whatever you want.
Click to expand...
Click to collapse
yeah i know i got tired of that methode so i wanted something more efficent
berraffarouk15 said:
yeah i know i got tired of that methode so i wanted something more efficent
Click to expand...
Click to collapse
Well, the way I see it, it's more work to modify the IMG than to use the recovery's file manager.
Also, an idea I had while typing the above, you can write a small script to automate the process. You can the run that script from the recovery's built-in shell.
I can help you with this.

DEV PLZ HELP M OUT OF OPTIONS MODEM/BASEBAND/IMEI FIX AOSP togari

hi all
Near perfect build from marshmellow Aosp ended up in IMEI , BASEband unkown and NO SIM issue , xperia z ultra 6833
every thing is prefectly working CAM , wifi , gapss , rooting etc. battery is amazing and its very very fast as minimal install
i am out of options now so put to you guys to help me out i have tried almost every zip file posted ( around 10+ ) for modem fix but nothing fixes it .....!!
can any one please post a working modem fix / base band fix
CLUE
while being totally frustrated i dirty flashed few of those modem fix files and suddenly it fixes the issues and every thing started to work perfectly , thanksfully i backed up the system and boot image via twrp .. and now able to use it but cannot make a flashable zip out of it.
IDEA
can i some how convert the ext4.win partitions ( backupfiles ) into IMG files and then pack then via script into flashable zip for recovery ?? OR is there any thing from TWRP or any other recovery via i can extract IMG files of system and boot so that i can be used as base rom ?
OPTIONS I TRIED STEPS OF FAILURE
1, tried all modem .zip files ( FAILED )
2, extracted the backedup ext4.win system file via cygwin and extracted the /etc/firmware/ files and recomplied via updator script in my source folder of /system/etc/firmware files ( FAILED )
3, tried pulling the system.img via DD command successfully done , but while trying to flash it via fastboot got an error cannot load system.img i suspect due to very large size of it i.e .2 GB + i dont knwo why ? ( FAILED )
4, i tried /etc/firmware folder form a working rom and swaped with my source and recompiled via updator script ( FAILED )
try flashing stock rom with flashtool http://www.flashtool.net/downloads.php
edit: not sure what your problem is?
You dirty flashed some file that made the imei go bad? But it solved the problem?
I'm not getting it?
SUPERUSER said:
try flashing stock rom with flashtool http://www.flashtool.net/downloads.php
edit: not sure what your problem is?
You dirty flashed some file that made the imei go bad? But it solved the problem?
I'm not getting it?
Click to expand...
Click to collapse
@SUPERUSER
Follows are the steps i performed to give better idea about situation .
1, STEP 1 , i did : flashed the system and boot img files from aosp source build after which the IMEI wiped off.
2,Step 2, i search and flashed many modem.zip from xda posts but non of them worked. and IMEI issue still persists ( i tried one by one each file ) with clean flash .
3, Step 3, i tried two modem.zip dirty flash , and suddenly it worked after restart but i forgot which files i used
4, luckily before i wiped current combination i took the backups of system and boot img files
5, Problem , i need a proper modem file which can remove this issue happened in step 1 and 2 .
6 , Current solution or work around i did is , i Pulled the system and boot images from working rom and made them flashable zip .via script .. its working fine but its not a proper solution because in future if i want to edit the source then same issue will occur as i understand the issue lies with source i believe ..
I hope i made it clear as much as possible and hopefully get some help ...
pintspin said:
hi all
Near perfect build from marshmellow Aosp ended up in IMEI , BASEband unkown and NO SIM issue , xperia z ultra 6833
every thing is prefectly working CAM , wifi , gapss , rooting etc. battery is amazing and its very very fast as minimal install
i am out of options now so put to you guys to help me out i have tried almost every zip file posted ( around 10+ ) for modem fix but nothing fixes it .....!!
can any one please post a working modem fix / base band fix
CLUE
while being totally frustrated i dirty flashed few of those modem fix files and suddenly it fixes the issues and every thing started to work perfectly , thanksfully i backed up the system and boot image via twrp .. and now able to use it but cannot make a flashable zip out of it.
IDEA
can i some how convert the ext4.win partitions ( backupfiles ) into IMG files and then pack then via script into flashable zip for recovery ?? OR is there any thing from TWRP or any other recovery via i can extract IMG files of system and boot so that i can be used as base rom ?
OPTIONS I TRIED STEPS OF FAILURE
1, tried all modem .zip files ( FAILED )
2, extracted the backedup ext4.win system file via cygwin and extracted the /etc/firmware/ files and recomplied via updator script in my source folder of /system/etc/firmware files ( FAILED )
3, tried pulling the system.img via DD command successfully done , but while trying to flash it via fastboot got an error cannot load system.img i suspect due to very large size of it i.e .2 GB + i dont knwo why ? ( FAILED )
4, i tried /etc/firmware folder form a working rom and swaped with my source and recompiled via updator script ( FAILED )
Click to expand...
Click to collapse
Can you share the modem files you used to get it working?
You write you got it working and made a backup in twrp.
Can you mount the partition and pull the files?
I need:
mba.b00
modem.b01
modem.mdt
They are located in system/etc/firmware.
SUPERUSER said:
Can you share the modem files you used to get it working?
You write you got it working and made a backup in twrp.
Can you mount the partition and pull the files?
I need:
mba.b00
modem.b01
modem.mdt
They are located in system/etc/firmware.
Click to expand...
Click to collapse
thanks SU for your response , actually i just fixed it last night , i will upload the zip that worked actually for reference of others
the Rom is ready and i will upload it hopfully tonight IA.
thanks for your help
pintspin said:
thanks SU for your response , actually i just fixed it last night , i will upload the zip that worked actually for reference of others
the Rom is ready and i will upload it hopfully tonight IA.
thanks for your help
Click to expand...
Click to collapse
Hi, i have the same problem, installed NANZ Stock AOSP MarshMallow (Pure minimal ) (https://forum.xda-developers.com/xperia-z-ultra/development/marshmallow-stock-aosp-rom-t3625443) but i don't get the radio working. Hopefully you can help me?
Hi there I have responded to your question in original nanz aosp thread plz check
Thanks :good: will do

Android Oreo updates and rollback guide

This will be basically the copy of this thread:
https://forum.xda-developers.com/p10-plus/development/downgrade-p10-plus-oreo-to-nougat-t3724382
But it seems to me that I am not the only one who didn't find it first, so I post it here
I am not responsible if you brick your device, or just damage it!
And all credit goes to @mankindtw and @NoMercyWWE
Always make a backup of your important data, and if you rollback, you need to make a factory reset!
I only tested it with L09, but should work with L29 as well
First of all, you need a P10
2. It only works with oreo firmwares
3. Download the three zip files that are required for update, these are:
update.zip
update_data_public.zip
update_all_hw.zip
Click to expand...
Click to collapse
3/b. You can download them with Firmware Finder, or just search on xda. If you want to make a rollback to Nougat, you need rollback firmwares!
3/c. update_data_public and update_all_hw comes with a slightly different name, but rename both files to these names, otherwise the update will fail!
4. Download HWOTA8 from this topic
5. Put the three update files in HWOTA8 dir
5/b. If you want to rollback, but your files in the repack folder, and run repack.bat
6. Create a new folder on your EXTERNAL sd, named HWOTA8
7. Put your three files in it, plus copy MHA_RECOVERY8_NoCheck.img, and hwota8_update.zip
8. Now install P10 Plus twrp_oreo.img, if you havent't yet:
fastboot flash recovery_ramdisk twrp_oreo.img
Click to expand...
Click to collapse
credit to @OldDroid
9. Reboot into recovery, install hwota8_update.zip it replaces your recovery with the Mate 9 one, reboots and updates
10. Done! If you downgraded, or just encounter any problems, go back in recovery, and make a factory reset!
Can I do this without an sdcard?
dmmercado23 said:
Can I do this without an sdcard?
Click to expand...
Click to collapse
I think it is possible, but you need to rewrite hwota8_update.zip, since the links there are pointing to the external sd. But I dont know what you need to write there instead
Not sure if I did this right but now my phone shows---> Build number System 8.0.0.046(02ZP)
I had showing before---> Build number System 8.0.0.046(01BN)
I don't seem to have it right still
I also have somethong like System 8.0.0.046(02BQ) but .321(C10) installed. And there were some visible updates from the C900log Oreo, eg auto shazam disappeared from the status bar.
It's frustrating lol...my old Nexus 5 was so easy compared to this device...I know I updated with something cuz I also see January 1st security patch and other little differences...everything seems to work ok but still got no themes though...how do we get it right?
Droiduser67 said:
It's frustrating lol...my old Nexus 5 was so easy compared to this device...I know I updated with something cuz I also see January 1st security patch and other little differences...everything seems to work ok but still got no themes though...how do we get it right?
Click to expand...
Click to collapse
Here he says that you need to install su, and rename three directories, but for me themes are working even without this. As soon as I try it, these steps will be added to the tutorial though.
EDIT: I followed the steps and renamed the directories, but there was no change anywhere.
Yes just tried it myself too and no change...still no themes...had an extra folder in there on mine named "optus"...not sure but the twrp and rooting work awesome but wasn't able to make a nandroid backup to my external storage...it failed
Good day,
with what firmware (please complete naimeninie) you rolled back and what was installed by this method?
---------- Post added at 12:54 AM ---------- Previous post was at 12:51 AM ----------
dmmercado23 said:
Can I do this without an sdcard?
Click to expand...
Click to collapse
Without a SD card it is impossible, with firmware via TWRP, internal memory can be reset and then the firmware will not go to the end. Therefore, the programs are located on the SD.
urn said:
Good day,
with what firmware (please complete naimeninie) you rolled back and what was installed by this method?
Click to expand...
Click to collapse
If this question is for me, I did not test the rollback (I am fine with Oreo), but I would use C432B180. You can check the description of an update in FF to see if it's a rollback one.
Here's the solution : https://youtu.be/WYSVq1TE2kI
OREO
Can anyone help me android oreo on my Huawei P10
to install?
- OS = Ubuntu 17.10
- Huawei P10 (VTR-L09)
- Bootloader unlocked
- Device rooted
Nakedchef said:
Can anyone help me android oreo on my Huawei P10
to install?
- OS = Ubuntu 17.10
- Huawei P10 (VTR-L09)
- Bootloader unlocked
- Device rooted
Click to expand...
Click to collapse
Hey, there are many ways of doing it i would recommend https://forum.xda-developers.com/showthread.php?t=3691013
[GUIDE] Huawei P10 Debrand/Rebrand/Update for Nougat&Oreo it works great. Go for the hwota rebrand way, it work like charm for me.
Sent from my [device_name] using XDA-Developers Legacy app
Perfect! I applied the update as described in the OP, then did a factory reset and relocked the bootloader (which did another factory reset). Now, at least I can't tell anymore that the phone has been unlocked and rooted...
Hello, I have a problem in the rocovery that I flash wota8_update.zip I have E: unknown command [errno]
Updater process ended with ERROR: 9
Error installing zip file '/external_sd/HWOTA8/update.zip
dukenuken said:
Hello, I have a problem in the rocovery that I flash wota8_update.zip I have E: unknown command [errno]
Updater process ended with ERROR: 9
Error installing zip file '/external_sd/HWOTA8/update.zip
Click to expand...
Click to collapse
Which TWRP are you using?

No more wifi nor bluetooth back on stock ROM - redmi go

Hello xda community,
Thanks for being here with so much to teach to everybody, and so useful guides and help !
I have got an old Xiaomi Redmi go (tiare) and flashed newer 10.2.25 global ROM through legacy recovery, and it worked well.
Then i tried Lineage OS unofficial versions, flashed through LOS recovery. There was another tool to flash called «retrofit dynamic partitions converter». The LOS ROM are OK, but quite slow. I wanted to go back to stock ROM.
I flashed again legacy recovery (though fastboot) then stock ROM through this legacy recovery. Unfortunately i ended with :
- a «succeeded» flash however a unusual «[t]» as final flashing status
- no wifi and no bluetooth. No MAC adress is to be seen in «device info». The other apps and features seem to work well.
- logical partition metadata has invalid geometry magic signature, when i try to check for partitions and table (with adb shell and fsck.2fs command).
+ if a flash again LOS ROM, wifi and bluetooth are working (and i can see the MACs adresses)
I am not sure if the 3 first points above are linked. I would like to get wifi and bluetooth working again. What should I try or check ?
Thanks for your help !
Hey, I also had the same problem. You need to flash persist.img
1. install any custom recovery
2. copy persist.img from stock rom to root of the internal storage
3. reboot to recovery
4. install adb on computer
5. run this command
adb shell simg2img /sdcard/persist.img /sdcard/persistProper.img
adb shell dd of=/dev/block/bootdevice/by-name/persist if=/sdcard/persistProper.img
if if is of, is of then if...
Thanks @fluentmoheshwar , I will try that !
And I will try not to confuse if and of as much as @CXZa
Rsstkln said:
And I will try not to confuse if and of as much as @CXZa
Click to expand...
Click to collapse
dd of=/dev/block/bootdevice/by-name/persist if=/sdcard/persist.img
Thanks ! if=input file, of=output file, that should be OK !
May I ask something more ? I would like to know whether I have to use simg2img command to get a proper «.img» file before the «dd» command, in the case I take the persist.img file from a stock ROM.
Rsstkln said:
Thanks ! if=input file, of=output file, that should be OK !
May I ask something more ? I would like to know whether I have to use simg2img command to get a proper «.img» file before the «dd» command, in the case I take the persist.img file from a stock ROM.
Click to expand...
Click to collapse
Yep.
Rsstkln said:
Thanks ! if=input file, of=output file, that should be OK !
May I ask something more ? I would like to know whether I have to use simg2img command to get a proper «.img» file before the «dd» command, in the case I take the persist.img file from a stock ROM.
Click to expand...
Click to collapse
oh I messed up! you need to use simg2img

Categories

Resources