Related
Hello folks,
idk if anyone of you guys had a hard time with the same annoying 'feature' on ics roms which forces you to set a PIN/password/pattern lock when you try to install enterprise certificates into your credential storage.
As for myself I need some of these certs to log into the WLAN at my university (which is 802.1x protected). But I don't feel the need of locking my phone.
So I exploited this to go around setting a password for the secure lock screen.
-------------------------------------------------------------------------------
Prerequisites are a rooted phone, a root file browser or adb tools and apparently your certificates.
I tested this on AOKP build 38 and 39 on a rooted HTC Sensation XE and will check this on two other devices the upcoming week.
UPDATE: seems to work even easier, I made the changes inline since the previous workaround did not work in every case.
Step 1:
Download the certificates to your SD card and/or install directly via browser/email etc. Do as you are asked and set up a PIN/password/pattern lock. Remember it
Step 2:
now with your root file browser go to /data/misc/ and recursively copy the folders keychain and keystore to a save place.
These are the folders containing the certificate files.
(See [System settings > security > Trusted credentials] for installed certificates)
With adb tools you can for example do this:
Code:
adb shell
su
cp -R /data/misc/keychain /sdcard/certificates/
cp -R /data/misc/keystore /sdcard/certificates/
Step 3:
Go to [System settings > security] and click [Clear credentials] at the bottom of the menu. Now your previously installed certs are wiped and you are free to set the lock method to [none], [slide] or [face lock] again.
Step 4:
Finally fire up your root file browser again, set /system as read/write and copy the in Step 2 backed up directories back to /data/misc/. They are now installed as the before but since CertInstaller.apk does not get involved, noone forces you to lock your phone.
in adb shell:
Code:
cp -R /sdcard/certificates/* /data/misc/
Now you should be able to find your newly added certificates in the System list under [System Settings > Security > Trusted credentials] in the [User] tab and thus be able to log into your desired WLAN.
I hope this helps some people out there. When I get deeper into developing maybe I will find a 'cleaner' method for this.
have a good night,
.eXa
Thank you for sharing! I have been really looking for this kind of hack.
Sadly I can't use it as my certificate has a different structure: it seems to install 3 files in /data/misc/keystore/
The files are 1000_USRCERT_Polimi ; 1000_USRCERT_Polimi and .masterkey
I tried copying these files to the new directory and even changing the file extension but it did not work.
I don't know if this issue is rom or certificate related.. anyway I am using a stock rom on samsung galaxy s3.. perhaps samsung manages differently certificates..
Have you any clue on this? Thank you!
hey, thanks for the reply.
alright, I figured something new, maybe try the updated version of the tutorial and pls tell me if that works for you.
greetings
.eXa said:
hey, thanks for the reply.
alright, I figured something new, maybe try the updated version of the tutorial and pls tell me if that works for you.
greetings
Click to expand...
Click to collapse
You were fast! and I think you made it: I can now select the certificate in the wifi options dialog (so it's correctly installed).. but I can't test the access to the network until monday.. Anyway I am convinced that it made the trick and it was really simple, I must say.
Thank you so much , this will be useful to many people!
Your trick helped me only partially. It allowed me to install the certificates just fine. But as soon as I try to connect to any 802.1x protected Wi-Fi network, the phone bugs me again with setting the screen lock. So I need a workaround for accessing the key storage.
I tried it and sadly it does not work: it asks me a password to activate the credential storage.. only problem is that I never set a password for it so I can't insert it and use the certificate. Too bad but I think it depends on the certificate.. anyway thank you very much for the help provided!
so, back from vacation.
@grgur: in your setup it is the 802.1x wlan that forces you by corporate policy to lock your phone. i am still trying to figure this out, i will try and search the system where stored wlan access points are stored. update will come as i find a solution to this.
@grievous: which version of android are you on? try clearing your credential storage first, then set up the password and then add the certificates. after that proceed with my tutorial.
since i am in the middle of learning for my exams i have really no time to go on with my android studies... it seems like in the long haul someone has to "fix" the app that handles phone lock and device policies. i know who the bad boy is but i am lacking time right now, so hopefully i get this done by the end of august.
i'll keep you up to date with my progress.
greetings
Is there a one-click fix for this yet? Bloody annoying...
Working great on stock rooted JellyBean nexus 7. Muchos grazis!
As soon as i go back to university (politecnico di milano) i will use your suggestion! Has anyone already tried with polimi wifi network?
.eXa said:
@grievous: which version of android are you on? try clearing your credential storage first, then set up the password and then add the certificates. after that proceed with my tutorial.
Click to expand...
Click to collapse
pippodream said:
As soon as i go back to university (politecnico di milano) i will use your suggestion! Has anyone already tried with polimi wifi network?
Click to expand...
Click to collapse
I was using a samsung stock rom 4.0.4 and the tutorial worked but when trying to connect again it asked me for a credential pwd (that I never set). Now I'm on CM10 so there should be no problem. As soon as I get to Polimi I'll try
doesn't work for me (SGS2 AOKP JB)
Hi!
I've tried to apply this solution to my device (SGS2 AOKP JB), but after clearing the credentials and copying back the keystores/keychains the user credentials cannot be found (Trusted credentials > User is empty).
Could anyone please help me with this one?
Thank you in advance.
zsszabolcs said:
Hi!
I've tried to apply this solution to my device (SGS2 AOKP JB), but after clearing the credentials and copying back the keystores/keychains the user credentials cannot be found (Trusted credentials > User is empty).
Could anyone please help me with this one?
Thank you in advance.
Click to expand...
Click to collapse
I have the same problem. And unfortunately I didn't find solution for that.
Wysłane z Android 4.1.2 za pomocą Tapatalk 2
In fact i was really searching for this i will try this tomorrow !
Sadly exchange with client certificate refuses to work after trying this hack It says that it can't found the cert it needs..
I have found the permanent solution !!!
I hope this will solve everyone's problem here.
These are the steps I have done after installing Eduroam certificates from my university:
1. Obviously I have installed CA
2. I had to choose which lock screen style will I use (I only could have choose between pattern, PIN, and password), it doesn't matter which lock screen style you choose between those three.(FYI I have chosen pattern)
3. After that I have failed to swipe my lock pattern correctly 15 times
4. The "Unlock with your Google account / unlock with your PIN/password" screen appeared.
5. Choose the "Unlock with your Google account" and type in your username and password
6. After that the "Choose your lock style" screen appears. DO NOT CHOOSE ANY OF THEM, since swipe still can't be chosen
7. Just press back to exit this menu.
8. Lock your screen and unlock it ---> You have swipe unlock enabled along with the CA certificates !!!
bubr3g said:
I have found the permanent solution !!!
I hope this will solve everyone's problem here.
These are the steps I have done after installing Eduroam certificates from my university:
1. Obviously I have installed CA
2. I had to choose which lock screen style will I use (I only could have choose between pattern, PIN, and password), it doesn't matter which lock screen style you choose between those three.(FYI I have chosen pattern)
3. After that I have failed to swipe my lock pattern correctly 15 times
4. The "Unlock with your Google account / unlock with your PIN/password" screen appeared.
5. Choose the "Unlock with your Google account" and type in your username and password
6. After that the "Choose your lock style" screen appears. DO NOT CHOOSE ANY OF THEM, since swipe still can't be chosen
7. Just press back to exit this menu.
8. Lock your screen and unlock it ---> You have swipe unlock enabled along with the CA certificates !!!
Click to expand...
Click to collapse
It won't work for me. After 10 failures it says that I have to wait 30 seconds for another try. I have Samsung Galaxy SII with Omega v21 (based on Samsung-stock Android 4.2.1).
TrojanPL said:
I have the same problem. And unfortunately I didn't find solution for that.
Wysłane z Android 4.1.2 za pomocą Tapatalk 2
Click to expand...
Click to collapse
Same thing here. Although files are backup up, there is no certificate showing up on the list. It would be great if someone found a solution, this lock is driving me nuts.
Hi, this seems almost too easy, and it's more of a workaround than a solution, but it works:
Try to login to your network
Accept the request to set up the mandatory screen lock and set one up (any kind)
Connect to your network
Go into Android settings/Security and change the screen lock type to None
Your network credentials are now saved and there is no longer a screen lock.
astarothcy said:
Hi, this seems almost too easy, and it's more of a workaround than a solution, but it works:
Try to login to your network
Accept the request to set up the mandatory screen lock and set one up (any kind)
Connect to your network
Go into Android settings/Security and change the screen lock type to None
Your network credentials are now saved and there is no longer a screen lock.
Click to expand...
Click to collapse
The last time I tried this with my CyanogenMod install, removing a pattern/password/pin was not possible because of the certificates. Only after removing the certificates, the screen-lock-type could be changed to a non-pattern/pin/password type.
Hi,
The system version is 5.7.906.XT862.Verizon.en.US
It was unlocked, rooted and installed root explorer ready to modify to work with US GSM ( Lycamobile also)
Here is where I got info to follow
http://forum.xda-developers.com/showthread.php?t=1989359
However, I have some concerns need help
1- will the instruction and the first build.prop file in the above link will work with my phone?
2- Can I use the phone with both pageplus ( being flashed with TalkForGood) and T-Mobile ( Lycamobile later)? I saw the same question without answer here http://forum.xda-developers.com/showthread.php?t=1425519
3- Can I use the phone oversea as a global phone without a need to follow the above link in Non-US GSM Networks session?
4- In case I want to go back stock image ( revert to the original one after messing it up), how?
To Skreelink, thank for your instruction but can you or anyone show me where to do the "required options" part because I simply couldn't find what you mentioned in my phone under Wireless & Network setting -> Mobile Network.
( I tried to post this under the above post but couldn't)
Thanks
macarong1 said:
Hi,
The system version is 5.7.906.XT862.Verizon.en.US
It was unlocked, rooted and installed root explorer ready to modify to work with US GSM ( Lycamobile also)
Here is where I got info to follow
http://forum.xda-developers.com/showthread.php?t=1989359
However, I have some concerns need help
1- will the instruction and the first build.prop file in the above link will work with my phone?
2- Can I use the phone with both pageplus ( being flashed with TalkForGood) and T-Mobile ( Lycamobile later)? I saw the same question without answer here http://forum.xda-developers.com/showthread.php?t=1425519
3- Can I use the phone oversea as a global phone without a need to follow the above link in Non-US GSM Networks session?
4- In case I want to go back stock image ( revert to the original one after messing it up), how?
To Skreelink, thank for your instruction but can you or anyone show me where to do the "required options" part because I simply couldn't find what you mentioned in my phone under Wireless & Network setting -> Mobile Network.
( I tried to post this under the above post but couldn't)
Thanks
Click to expand...
Click to collapse
1: The link you provided is my information and files for KEXEC ROMs, such as CM10.2 or AOKP. For the stock rom (As you listed 906), you will want to go here.
2: If you flash the XT883 radio for US GSM networks (like T-Mobile) you will not be able to flip between them via software toggle, you will have to flash the stock radio + swap build.prop back to stock and OTA on PagePlus, vice versa when you want to use the other network. (I wanted the same thing, I solved it by getting a Motorola Razr M XT907). The main reason for this is; The XT883 radio expects an RUIM card (CDMA version of SIM) and without it, puts it in emergency only mode. Verizon/PagePlus/Sprint/other US CDMA networks do not use the RUIM so no real way around this.
3: To use it as a global phone, just restore the stock radio and build.prop, it should work without issue WITHOUT MODIFICATION, as long as you have input the SIM unlock code to unlock the phone. You *can* use the XT883 radio globally, but both radios will work for global GSM.
4: To return to stock, follow this thread.
thank you
The best answer I have ever seen.
So if I buy Motorola Razr M XT907 to achieve the goal Pageplus/T-mobile, where is the best procedure I should follow?
Thank you very much.
McR
Help please
Skreelink said:
1: The link you provided is my information and files for KEXEC ROMs, such as CM10.2 or AOKP. For the stock rom (As you listed 906), you will want to go here.
Click to expand...
Click to collapse
I follow the above link to flash my Droid3 with the current stock image.
The flash was done then I rebooted the phone.
However, I was unable to replaced the build.prop file
I couldn't change its properties or owner or overwrite the file.
I see the instruction here http://forum.xda-developers.com/showthread.php?t=1406812&page=3
but I couldn't overwrite the original file with the modified one.
I rooted the phone already.
I am not sure what I did was wrong.
Please help.
Thanks,
macarong1 said:
I follow the above link to flash my Droid3 with the current stock image.
The flash was done then I rebooted the phone.
However, I was unable to replaced the build.prop file
I couldn't change its properties or owner or overwrite the file.
I see the instruction here http://forum.xda-developers.com/showthread.php?t=1406812&page=3
but I couldn't overwrite the original file with the modified one.
I rooted the phone already.
I am not sure what I did was wrong.
Please help.
Thanks,
Click to expand...
Click to collapse
You either have to use adb or a root browser. Rom Toolbox Lite has one, ES File explorer also has one. I'm sure other apps have a root browser, but I've not used others.Rom Toolbox's root browser allows you to longpress for a menu to change permissions.
Help please
Skreelink said:
You either have to use adb or a root browser. Rom Toolbox Lite has one, ES File explorer also has one. I'm sure other apps have a root browser, but I've not used others.Rom Toolbox's root browser allows you to longpress for a menu to change permissions.
Click to expand...
Click to collapse
Thank you for your fast reply.
I use totalcommander that run with superuser permission.
With a long press on the file, I go to property and set up with all permission ( 777)
After I hit OK to confirm the change, nothing happens but when I check again, it is still (rw-r--r--)
I have superuser installed.
I am stuck now.
Is there a way to browse and copy overwrite via windows or before the phone is up ( using usb cable)
Help please
macarong1 said:
Thank you for your fast reply.
I use totalcommander that run with superuser permission.
With a long press on the file, I go to property and set up with all permission ( 777)
After I hit OK to confirm the change, nothing happens but when I check again, it is still (rw-r--r--)
I have superuser installed.
I am stuck now.
Is there a way to browse and copy overwrite via windows or before the phone is up ( using usb cable)
Help please
Click to expand...
Click to collapse
If the permissions are not sticking, then the app you're using either does not have root privledges, is not performing correctly, or your root isn't correct. Try updating your superuser binary via the superuser app. Although, rw-r--r-- should be just fine, 777 would 'pose' a security threat since it would allow any app to modify it. Long as you replace it with the one required for GSM, rw-r--r-- permissions should work.
macarong1 said:
The best answer I have ever seen.
So if I buy Motorola Razr M XT907 to achieve the goal Pageplus/T-mobile, where is the best procedure I should follow?
Thank you very much.
McR
Click to expand...
Click to collapse
Sorry, didn't see this until now... getting the Razr M on pageplus is a real pain, though T-Mobile would be simple. It's a matter of getting the computer to read the diag port (you have to manually select the driver) and simply editing ONE NV-Item, then any GSM sim will work (AT&T, T-Mobile, etc).
Here is one of my posts with a quick guide about unlocking a razr m for gsm.
THANK YOU
Skreelink said:
You either have to use adb or a root browser. Rom Toolbox Lite has one, ES File explorer also has one. I'm sure other apps have a root browser, but I've not used others.Rom Toolbox's root browser allows you to longpress for a menu to change permissions.
Click to expand...
Click to collapse
I install Rom Toolbox Lite, it failed to verify root.
I check in SuperUser app and found a check mark "Temp Unroot"
I clear and run update for superuser.
Then I remove Rom ToolBox Lite and install again.
I then use Root browser from its link.
Each time it prompts permission of su.
I copy and paste sucessfully.
Reboot the phone and it work in T-Mobile NOW.
It WORKS now.
Thank you so much.
According to your answer in my first post, I can use this phone with GSM oversea without modification ?
Can you help on the link to the instruction of the phone model that can toggle between Pageplus/T-mobile.
I am much appreciated your help.
macarong1 said:
I install Rom Toolbox Lite, it failed to verify root.
I check in SuperUser app and found a check mark "Temp Unroot"
I clear and run update for superuser.
Then I remove Rom ToolBox Lite and install again.
I then use Root browser from its link.
Each time it prompts permission of su.
I copy and paste sucessfully.
Reboot the phone and it work in T-Mobile NOW.
It WORKS now.
Thank you so much.
According to your answer in my first post, I can use this phone with GSM oversea without modification ?
Can you help on the link to the instruction of the phone model that can toggle between Pageplus/T-mobile.
I am much appreciated your help.
Click to expand...
Click to collapse
The Droid 3 requires flashing the radio and build.prop to swap between CDMA/GSM
UNLESS it it is a foreign GSM network like Rogers in Canada, then the stock radio works without modification. The XT907 Razr M can do a software toggle between them (Network mode under Mobile Networks like the D3) but setting up PagePlus requires a lot of work for data, though GSM is a lot easier to get working than the D3. You can still go ahead and activate the D3 on pageplus, just after you flash between radios, you have to OTA program each time.
question for help
Skreelink said:
The Droid 3 requires flashing the radio and build.prop to swap between CDMA/GSM
UNLESS it it is a foreign GSM network like Rogers in Canada, then the stock radio works without modification. The XT907 Razr M can do a software toggle between them (Network mode under Mobile Networks like the D3) but setting up PagePlus requires a lot of work for data, though GSM is a lot easier to get working than the D3. You can still go ahead and activate the D3 on pageplus, just after you flash between radios, you have to OTA program each time.
Click to expand...
Click to collapse
Thank you.
I think I can do the same process with the image file from the original and overwrite the build.prop with original.
I did back up the build.prop but not the radio.img
Where can I find the Droid 3 radio.img of 906 version?
I want it simple as a reverting from what I did because I already removed all Verizon apps and install my apps in the current image.
A recovery task can bring back the original image.
** Oversea I meant is Vietnam
Thank again,
macarong1 said:
Thank you.
I think I can do the same process with the image file from the original and overwrite the build.prop with original.
I did back up the build.prop but not the radio.img
Where can I find the Droid 3 radio.img of 906 version?
I want it simple as a reverting from what I did because I already removed all Verizon apps and install my apps in the current image.
A recovery task can bring back the original image.
** Oversea I meant is Vietnam
Thank again,
Click to expand...
Click to collapse
I will see about uploading the stock radio when I get home.
THANK YOU
Skreelink said:
I will see about uploading the stock radio when I get home.
Click to expand...
Click to collapse
I am waiting.
Thank you sir ( my guess)
macarong1 said:
I am waiting.
Thank you sir ( my guess)
Click to expand...
Click to collapse
Sorry it took me so long, I had a long hectic day, but Here it is.
Just flash it like you did the XT883 radio and put a stock build.prop in (you should have backed up the original). Then you should be able to OTA program with *228 if it's activated on pageplus.
THANK YOU
Skreelink said:
Sorry it took me so long, I had a long hectic day, but Here it is.
Just flash it like you did the XT883 radio and put a stock build.prop in (you should have backed up the original). Then you should be able to OTA program with *228 if it's activated on pageplus.
Click to expand...
Click to collapse
I understand.
Thank you.
You are the best in my eyes
As the subject says. Anyone know how to extract APN settings from a locked phone? I tried "APN Backup & Restore" but seeing Softbank has locked down the settings part I cant extract info, same goes for "Sbm4GSimInfo", it just returns blank fields.
I need this info as I want to buy a Nexus 5 or HTC One.
I've searched all over the net for this problem but to no avail.
I have a Samsung galaxy s4 i9505 LTE android 4.3 which is rooted with Cwm recovery using odin.
So the problem is the only reason I rooted my phone was in order to read the wifi passwords stored in my device (coz mostly my friends enter their wifi passwords and do not show them) but in this phone the passwords inside "wpa_supplicant conf" are encrypted. :/
So I need your help guys .. just find me another way to figure this out..
Thank you
murtuza_tiger said:
I've searched all over the net for this problem but to no avail.
I have a Samsung galaxy s4 i9505 LTE android 4.3 which is rooted with Cwm recovery using odin.
So the problem is the only reason I rooted my phone was in order to read the wifi passwords stored in my device (coz mostly my friends enter their wifi passwords and do not show them) but in this phone the passwords inside "wpa_supplicant conf" are encrypted. :/
So I need your help guys .. just find me another way to figure this out..
Thank you
Click to expand...
Click to collapse
May be its for a reason they dont want to share the passwords? If it was ok to them, then they probably will git it to you.
LS.xD said:
May be its for a reason they dont want to share the passwords? If it was ok to them, then they probably will git it to you.
Click to expand...
Click to collapse
It's not really about knowing their passwords it's about accessing them. .
All the other devices I've used which are rooted of course have the feature of reading the wifi passwords stored in them.. except this s4 i9505 which encrypts the passwords. .my question is y and how to solve this..
This was never solved?
smithilberry said:
This was never solved?
Click to expand...
Click to collapse
you can install an app called (wifi password) in play store requires root
Which doesn't crack the wifi passwords but it shows the password of secured wifi which you have been connected and saved to your device
This is helpful because in an non rooted phone you cannot see the passwords of secured wifi but can get connected
In this app you can see the saved passwords
Hit THANKS if I helped you
pandian8552 said:
you can install an app called (wifi password) in play store requires root
Which doesn't crack the wifi passwords but it shows the password of secured wifi which you have been connected and saved to your device
This is helpful because in an non rooted phone you cannot see the passwords of secured wifi but can get connected
In this app you can see the saved passwords
Hit THANKS if I helped you
Click to expand...
Click to collapse
but such apps do not seem to work for the galaxy s4... you get random characters when using them
I just upgraded from 4.3 to 4.4.2 (on a Sprint L720) and was surprised by this issue too. Even when Titanium backs up the access points to xml, the passwords are still encrypted as a string of hex characters. Presumably they're encrypted by a key specific to each Android install (and not a hardware key)? Titanium will restore all of the access points from the xml, but the password protected ones will not function since the encrypted keys are restored instead of the plain text passwords.
EDIT: I just created an xml from my current install. When I compare the encrypted data for my home network between my old install and new install, the data is different. So, whatever key is used changes between installations.
nobody291 said:
I just upgraded from 4.3 to 4.4.2 (on a Sprint L720) and was surprised by this issue too. Even when Titanium backs up the access points to xml, the passwords are still encrypted as a string of hex characters. Presumably they're encrypted by a key specific to each Android install (and not a hardware key)? Titanium will restore all of the access points from the xml, but the password protected ones will not function since the encrypted keys are restored instead of the plain text passwords.
EDIT: I just created an xml from my current install. When I compare the encrypted data for my home network between my old install and new install, the data is different. So, whatever key is used changes between installations.
Click to expand...
Click to collapse
Interesting find but sounds like this will never be possible for us
No way to decrypt wifi passwords on I9505?? My passwords are like this bellow:
SSID: "XYZ"
psk: 9af4cdbcd8d8ec619c07147adef9591
use xposed and this module
http://repo.xposed.info/module/com.whd.wifikeyview
I doubt that xposed module will work since Samsung encrypts the passwords...but please let us know if you try it and it works!
With Samsung devices if it shows hex code for password, you need to open /system/build.prop file with a text editor and change the line ro.securestorage.support=true to false and reboot. Now your app shows actual passwords and not hex string.
shallmann said:
With Samsung devices if it shows hex code for password, you need to open /system/build.prop file with a text editor and change the line ro.securestorage.support=true to false and reboot. Now your app shows actual passwords and not hex string.
Click to expand...
Click to collapse
Thk
Hello,
this is my first time i installed a custom rom.
I downloaded the slim rom from official slim rom website (Slim-i9100-4.4.2.build.5-OFFICIAL-4068).
All work well except the mobile network, I can access 3G and wifi but not to make calls or send sms.
I installed GetRil to verify compatibility between my baseband and my RIL (see attachment).
I downloaded and Ril BVL2 modem and installed from the recovery mode, but no thing work
Please I need your help
ksad said:
Hello,
this is my first time i installed a custom rom.
I downloaded the slim rom from official slim rom website (Slim-i9100-4.4.2.build.5-OFFICIAL-4068).
All work well except the mobile network, I can access 3G and wifi but not to make calls or send sms.
I installed GetRil to verify compatibility between my baseband and my RIL (see attachment).
I downloaded and Ril BVL2 modem and installed from the recovery mode, but no thing work
Please I need your help
Click to expand...
Click to collapse
have you checked your APN settings? you may need to change some things depending on your carrier.
Same problem after APN setting changed
efan3719 said:
have you checked your APN settings? you may need to change some things depending on your carrier.
Click to expand...
Click to collapse
Thanks for your answer efan, yes i had checked APN setting.
I copied the setting from my galaxy S4 but the network still unavailable.
Any other ideas ?
ksad said:
Thanks for your answer efan, yes i had checked APN setting.
I copied the setting from my galaxy S4 but the network still unavailable.
Any other ideas ?
Click to expand...
Click to collapse
Goto you settings and check your imei number and check it against the tag on the case under the battery if its what I think it is I had the same when I had a i9100 basicly your efs folder has courpted some how by rights you should of done a back up do a bit of googling its very common and could be easy to restore if I'm correct your device will show a generic imei like this 004999010640000
If yes there are apps on play store that could help restore your efs folder
DO NOT POST YOUR ORIGNAL IMEI ON HERE
if you get stuck pm me and I'll help best I can
There is an amazing guide on here somewhere do a search for it but it shows the steps to take to restore your data settings. u need your msl number there is an app on the market just type msl (must be rooted) and the dial code is ##3282# it will ask for view or edit mode and then the msl code there u can restore your data settings
Sent from my HTC One SV using XDA Free mobile app