[FIX STOCK ROM] No Service & Sensors issue fixed in stock rom - Moto E5 Guides, News, & Discussion

Most of the moto e5 users have the same issue where after reverting back to stock rom from a custom rom, mobile data doesn't work, auto rotation doesn't work, it won't detect when you pick up your phone- and others... So these issues are related to sensors and connectivity. I found that my imei number gets lost in stock rom. Let's fix it and get our old Motorola back-
Before Starting
You have to backup certain things from a custom rom where everything (Data & Sensors) works fine-
You must use MT File Manager
1/ Boot into TWRP, click on backup, select storage- sd card, select FSG, EFS, PERSIST. Then swipe to backup.
2/ Open Mt file manager. Backup sensors folder from /mnt/ vendor/persists/sensors.
3/ Backup APN settings from /system/etc/apns-conf.xml.
Download & install stock ROM
1/ Download & install rescue and smart assistant tool from here
2/ Boot you mobile into fastboot mode and connect it with PC.
3/ Open rescue and smart assistant tool & it will detect your device.
4/ Rescue menu will automatically open up. Click on download button to start downloading the rom.
5/ After completing the download, open file explorer and find the stock rom zip that you downloaded. If you can't find it in RSA program files directory, simply search for it (You can search a keyword from the name that you saw while downloading the rom in RSA. For example- nora users can search "nora"). Then cut and paste it to a convenient directory. Extract the zip to folder name.
6/ Copy all files of platform-tools folder & paste them to the stock rom folder.
7/ Download the attached flash.zip file, extract it and move the bat file to stock rom folder.
8/ Make sure your device is connected to pc in fastboot mode. Then double click on the flash.bat file. It will take 5 to 10 minutes.
If you see no service on top then try the fixes. If one doesn't work, try the next-
Fix- 1
Boot into TWRP and restore FSG, EFS & PERSIST backup. Reboot.
Fix- 2
Open MT file manager. In your left side, Open the backed up sensors folder. In right side, Go inside /persist/sensors/. Then copy and replace the 3 files from left to right side. Reboot.
Fix- 3
Open MT file manager. In right side, go inside /system/etc/. Then copy and replace apns-conf.xml file from left side to right side. Reboot.

Tawsif999 said:
Please consider it as a general thread here (Not development)
Click to expand...
Click to collapse
If it's not a development thread, why did you post in Development? You've been around long enough to know where this should go.
Moved to Guides, News, and Discussion.

V0latyle said:
If it's not a development thread, why did you post in Development? You've been around long enough to know where this should go.
Moved to Guides, News, and Discussion.
Click to expand...
Click to collapse
Ahh, my bad. It's a serious issue of stock rom for a long time. That's why I thought it should help people in the ROMs section. Anyways ..

Related

[Guide] Update any Motorola Charm to lates T-Mobile firmware (Working 2G / 3G).

List of improvements, from T-Mobile Documentation.
I AM NOT RESPONSIBLE FOR ANY DAMAGE THAT THIS GUIDE MAY CAUSE. TESTED AND WORKING. FOLLOW AT YOUR OWN RISK!
Warning: Flashing T-Mobile sbf will update the Bootloader, so cant downgrade or flash other sbf.
This guide is for update any Motorola Charm w/o brand to the latest T-Mobile update with fully working 2G/3G network, and get many improvements (Best of all Stability and Battery).
If you have official US T-Mobile Charm you don't need this. as it can be updated normally.
Requirements:
* Any sbf file that currently work (2G/3G) with the corresponding Mobile Providers Link.
* T-Mobile 03.90.7 BLUR firmware sbf file. Link from the Wiki.
* RSD Lite 4.6 Link from the Wiki.
* Moto Android Depacker Link.
* SuperOneClick for Root Internal link.
* Root explorer NO LINK! (Or via ADB).
Click to expand...
Click to collapse
Guide:
A- Backup from the running firmware.
1. Root the phone (any method).
2. Install Root Explorer (alternatively can use ADB or terminal emulator).
3. Backup this folder and save a copy in the computer. "etc\motorola\bp_nvm_default".
Click to expand...
Click to collapse
B- Extract BP from the sbf (That currently work with your 2g/3g network).
1. Open Motorola Android Depacker --> Open From File -->Browse the sbf
2. Click "Split To Folder" this will generate a folder with the same name of the sbf.
3. Remove all split files except this one "CG45.smg" (BP Firmware file).
Click to expand...
Click to collapse
C- Mod T-Mobile sbf.
1. Open Motorola Android Depacker --> Open From File -->Browse the sbf (T-Mobile one).
2. Click "Split To Folder" --> browse to the splitted folder.
3. Replace and overwrite the "CG45.smg" with the one from B.
4. Open Motorola Android Depacker --> "Open File Folder" --> Browse T-Mobile split folder.
5. Click on "Compile File" this will generate "firmware.sbf" with BP that work with the phone.
Click to expand...
Click to collapse
D- Install T-Mobile Mod sbf.
1. Backup any needed phone data.
2. Install and open RSD Lite --> Click on "..." --> Browse to "firmware.sbf"
3. Connect the phone to the computer.
4. Wait until phone show as connected in the RSD Lite--> click "Start".
5. Wait until RSD Lite finish. --> Configure "Moto blur" account.
Optional: It's possible to restore "clockworkmod" backup using polovinamozga's Bootstrapped Recovery Link.
Click to expand...
Click to collapse
E- Restore network.
1. Root the phone (using SuperOneClick).
2. Install Root Explorer.
3. Copy this folder from step "A" to the SD Card "bp_nvm_default".
4. open Root Explorer --> Navigate to "sdcard" --> navigate to "bp_nvm_default" folder.
5. "Multi-select" these files:
File_Audio
File_Audio2
File_GSM
File_Seem_Flex_Tables
generic_pds_init
Click to expand...
Click to collapse
6. Then press "Copy" --> Navigate to "etc\motorola\bp_nvm_default" --> "Mount RW".
7. Paste --> Overwrite all the files.
8. IMPORTANT Select all copied files (from step E-5) and change permission to rw-r--r--.
9. Reboot phone...Then add the APN of the corresponding network provider.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Credit for all Tools Creator.
Sorry about any grammatical/spell English error.
Great for those who are accidentally stuck on T-Mo firmware.
I'll give it a try before throwing away my charm
Quick question: There is nothing extra/better with this firmware, right?
Sent from my MB502 using XDA App
It still "2.1 update-1" but have many improvements, see the list at the top of this thread.
Not much improvement IMHO.
Of what I've heard, the t-mo rom sucks more battery. So an improvement on that= avg. battery life on deblur ROMs. Also, my messaging app already shows the last msg instead of the first. Possibly, t-mo had to put up an update for these while others got it stock.
I try to use this guide to change baseband from my t-mobile to movistar chile to use 3g, but when i turn on, i´m not getting signal from my carrier. any solution??
(for now i reflashed t-mobile rom to use the phone but i really want to use 3g)
the links provided dont work anymore
Thanx for the tutorial
I stay in India and unknowingly, flashed with a T-mobile's latest (3.90) ROM. The network stopped working and I learnt that I cant downgrade...
I was felling like nowhere when I found your thread... It helped me make my network work..
Thanx alot dude!!:good:

How to get working WIFI with custom ROM on (t) and (l) variants

Make sure you make a backup of your stock ROM before flashing any custom ROMs.
Copy the WLAN folder from system/etc/ in your nandroid backup.
With your new custom ROM downloaded you want to open the zip file and navigate to system/etc/firmware place WLAN folder from your backup in here, then flash,
Congrats working WIFI !.
Sounds great, BUT.....
spaedi said:
Make sure you make a backup of your stock ROM before flashing any custom ROMs.
Copy the WLAN folder from system/etc/ in your nandroid backup.
With your new custom ROM downloaded you want to open the zip file and navigate to system/etc/firmware place WLAN folder from your backup in here, then flash,
Congrats working WIFI !.
Click to expand...
Click to collapse
I am wondering, where can one find the original firmware for, say a GT-S7500L I installed a custom ROM, but the wifi gives an error.
baracalao said:
I am wondering, where can one find the original firmware for, say a GT-S7500L I installed a custom ROM, but the wifi gives an error.
Click to expand...
Click to collapse
Not sure if the WIFI drivers are the same on the T and L but I've attached the WLAN folder with this post, otherwise just download stock ROM for your device from sammobile.
I will give it a try
spaedi said:
Not sure if the WIFI drivers are the same on the T and L but I've attached the WLAN folder with this post, otherwise just download stock ROM for your device from sammobile.
Click to expand...
Click to collapse
I will give it a try. Thanks
Found a solution
spaedi said:
Not sure if the WIFI drivers are the same on the T and L but I've attached the WLAN folder with this post, otherwise just download stock ROM for your device from sammobile.
Click to expand...
Click to collapse
I found a solution.
You will need:
1. Phone must be rooted (should be anyway with custom ROM)
2. download the folder I put in this post an put it on you SD card
3. have a "root explorer" installed (I used "X-plore File Manager", free on play store)
With the file explorer copy the "Wifi" folder to the "Root/System/etc"
It will ask if you want to overwrite the existing files. (accept)
For me not all the files copied over, but the files that did copy were enough.
Restart your phone.
Wifi works (for me at least this solved the problem).
covinced dopTOWes
spaedi said:
Make sure you make a backup of your stock ROM before flashing any custom ROMs.
Copy the WLAN folder from system/etc/ in your nandroid backup.
With your new custom ROM downloaded you want to open the zip file and navigate to system/etc/firmware place WLAN folder from your backup in here, then flash,
Congrats working WIFI !.
Click to expand...
Click to collapse
thanks Spaedi for quick response i'm new to this so will have to study your instructions on how to correct wifi
I've already installed the v-11 rom do I have to flash it again?
also do you have a nandroid back up that you would recommend (I have busybox installed ) any other help you can give me would be most welcome
once again i'm very thankful for your help
best regards
Cliff
have already sent this message not sure if it went to you if it did then just ignore this one
Cliff

RESTORE .APKs FROM CWM

Hello Friends This is my first TUTORIAL.
DO, ANYONE RATHER THAN ME (AS A NOOB) NEEDS SOME SYSTEM OR USER INSTALLED .APKS from CWM (clockwork mod) Backups? It would be easy to get them just by Re-installing the Backups. But in some Cases we don’t want to restore the whole system backup instead of SOME APPS or DATA Only.
So Here’s the Tutorial to Extract the .APKs or DATAs From the Backups which is in the .tar format. (CWM RECOVERY only.) found By ME. (I don’t know if anyone Other than me have already found this Method. Coz I Didn’t find any.)
Steps:-
1. The BACKUP of your ROM (from which you want to Restore .APKs / DATA)
2. A Computer / Android Device.
3. 7 – Zip installed (for a Computer PC) / 7 zipper (free in the Play Store) Installed (for a Android Device)
4. Now go the Backup folder and Open It.
5. If you want to restore System (Pre-installed) .APKs of CWM RECOVERY find the File Named “system.ext4.tar.a”
6. If you want to restore your USER INSTALLED .APKs of CWM RECOVERY find the File Named “data.ext4.tar.a”
7. Open it with the Respective Installed “7-Zip | 7 Zipper” via the Device you have.
8. And Navigate to the Folder “system --> app” for Pre-Installed | and for USER installed APK.s “data --> app”
9. Now you’ve got to the Respective Place and you have the Whole .APKs of your Android. Restore / Copy them Which ever you want.
10. By this Method you can obtain much more than just APKs. Coz it has simply all the Vital Data or Information of your ROM.
Note: For Installing SYSTEM APPS you have to put it to your Root/System/App folder. And give it the Appropriate PREMISSIONs.
I hope You find it Helpful Noobs. just like me.
Thanks. & Regards,
v_singh (VIPIN SINGH)
v_singh said:
Hello Friends This is my first TUTORIAL.
DO, ANYONE RATHER THAN ME (AS A NOOB) NEEDS SOME SYSTEM OR USER INSTALLED .APKS from CWM (clockwork mod) Backups? It would be easy to get them just by Re-installing the Backups. But in some Cases we don’t want to restore the whole system backup instead of SOME APPS or DATA Only.
So Here’s the Tutorial to Extract the .APKs or DATAs From the Backups which is in the .tar format. (CWM RECOVERY only.) found By ME. (I don’t know if anyone Other than me have already found this Method. Coz I Didn’t find any.)
Steps:-
1. The BACKUP of your ROM (from which you want to Restore .APKs / DATA)
2. A Computer / Android Device.
3. 7 – Zip installed (for a Computer PC) / 7 zipper (free in the Play Store) Installed (for a Android Device)
4. Now go the Backup folder and Open It.
5. If you want to restore System (Pre-installed) .APKs of CWM RECOVERY find the File Named “system.ext4.tar.a”
6. If you want to restore your USER INSTALLED .APKs of CWM RECOVERY find the File Named “data.ext4.tar.a”
7. Open it with the Respective Installed “7-Zip | 7 Zipper” via the Device you have.
8. And Navigate to the Folder “system --> app” for Pre-Installed | and for USER installed APK.s “data --> app”
9. Now you’ve got to the Respective Place and you have the Whole .APKs of your Android. Restore / Copy them Which ever you want.
10. By this Method you can obtain much more than just APKs. Coz it has simply all the Vital Data or Information of your ROM.
Note: For Installing SYSTEM APPS you have to put it to your Root/System/App folder. And give it the Appropriate PREMISSIONs.
I hope You find it Helpful Noobs. just like me.
Thanks. & Regards,
v_singh (VIPIN SINGH)
Click to expand...
Click to collapse
or easier just restore from nandroid manager
ngoralph said:
or easier just restore from nandroid manager
Click to expand...
Click to collapse
hmm... thanks for your advice sir.
but does it offers to restore odex files.?
and other kind of files like built.prop etc.?

[Q] Boot animation freeze

So I changed the boot animation to something different. The animation is so heavy the phone lags halfway in between and now my phone can't even get past the boot animation screen. It's stuck at the boot animation. Anyway to revert this?
Download the default boot animation from here: http://forum.xda-developers.com/google-nexus-5/themes-apps/bootanimation-nexus-5-animations-t2789918
Scroll down a bit and you'll find the default Lollipop animation. Download the zip which is supposed to be manually installed.
Put it in system/media/bootanimation.zip
You can use Aroma File Manager for this. AromaFM is a flashable zip which brings up a file manager in your recovery
experience7 said:
Download the default boot animation from here: http://forum.xda-developers.com/google-nexus-5/themes-apps/bootanimation-nexus-5-animations-t2789918
Scroll down a bit and you'll find the default Lollipop animation. Download the zip which is supposed to be manually installed.
Put it in system/media/bootanimation.zip
You can use Aroma File Manager for this. AromaFM is a flashable zip which brings up a file manager in your recovery
Click to expand...
Click to collapse
I can't even access my phone's storage so how am I suppose to use the zip? Are you saying I can flash the zip file while the phone is in fastboot/recovery?
If you're using TWRP as a recovery you can access your storage. It does support MTP.
Yeah, the file manager has to be flashed just like a ROM.
experience7 said:
If you're using TWRP as a recovery you can access your storage. It does support MTP.
Yeah, the file manager has to be flashed just like a ROM.
Click to expand...
Click to collapse
And that's the problem. I'm running a stock rom (4.4.2) with no TWRP or CWM.
The phone is rooted and the boot-loader is unlocked.
Bootloader unlocked. So where's the problem?
Download latest TWRP and execute
fastboot flash recovery twrp.img
to flash it.
Or simply
fastboot boot twrp.img
to launch it once. You don't even need to flash it.
experience7 said:
Bootloader unlocked. So where's the problem?
Download latest TWRP and execute
fastboot flash recovery twrp.img
to flash it.
Or simply
fastboot boot twrp.img
to launch it once. You don't even need to flash it.
Click to expand...
Click to collapse
AYEEEEE!!! I see where you're going with this now. I think I get it now. I'll try tonight or maybe in a couple of hours and then I'll come back if any problems. Once finished I'll let you know with a thanks
By the way: After copying the new (default lollipop) bootanimation.zip to /system/media do a 'fix permissions' in TWRP. Not quite sure if the option is available in TWRP but if it is, just do it. It won't do any harm
Alright I flashed TWRP and it's working but the file manager kinda sucks. I mean it's picking up the files and their aren't any options to copy and paste. The boot animation is stored in /system/media and when I go into the system folder all I see is "bin" and nothing else. I don't understand what's the problem
Man, the file manager does not suck. A little more respect to the developer! You should be thankful, not disrespectful!
Enable hidden files in the file manager and you'll see them. And it also does provide copy/paste functionality. I've used it several times.
EDIT: If you still don't see them after enabling hidden files you have to mount the system partition.
experience7 said:
Man, the file manager does not suck. A little more respect to the developer!
Enable hidden files in the file manager and you'll see them. And it also does provide copy/paste functionality. I've used it several times.
Click to expand...
Click to collapse
I searched everywhere and I don't see an option to enable hidden files. How did you enable hidden files?
It's in the lower right corner if I remember correctly. Three dots which will bring up a menu.
...
experience7 said:
It's in the lower right corner if I remember correctly. Three dots which will bring up a menu.
Click to expand...
Click to collapse
What version of TWRP are you using? I don't see three dots anywhere. The bottom always has a back button on the right, a button to launch terminal in the center and a home button on the left
Dude. It has nothing to do with TWRP version at all. You didn't even launch Aroma File Manager... that's the point.
Read my previous posts again, take your time & don't double post (there's an option to edit if you have to).
experience7 said:
Dude. It has nothing to do with TWRP version at all. You didn't even launch Aroma File Manager... that's the point.
Read my previous posts again, take your time & don't double post (there's an option to edit if you have to).
Click to expand...
Click to collapse
Sorry for being impatient.
Do I flash Aroma the same way I flashed TWRP? If so will this cause any problems or anything? TWRP can't install Aroma from SD because my computer won't even pick up my phone
If you're in TWRP, connect your phone to your computer. It should be detected just like any Android phone since it's also using MTP.
Aroma File Manager has to be flashed in TWRP (install zip). That's why you had to flash TWRP in the first place.
experience7 said:
If you're in TWRP, connect your phone to your computer. It should be detected just like any Android phone since it's also using MTP.
Aroma File Manager has to be flashed in TWRP (install zip). That's why you had to flash TWRP in the first place.
Click to expand...
Click to collapse
Better yet as soon as I connected my phone to my PC, TWRP's file manager started working. I deleted the corrupted bootanimation.zip that made my phone lag in the first place. However it keeps failing to move the other bootanimation.zip into /system/media (I backed up the stock boot in /system/media by renaming it
EDIT: Never-mind I got it. I renamed the file from 0bootanimation.zip to "android" and then to bootanimation.zip
I restarted my phone and it's just stuck in the boot loop. The animation is occurring forever and nevermind it just started.
Thank you experience7!!! Massive vouch for you man. You saved me so much trouble. Much love from me =D
As said before... TWRP uses MTP to enable file transfer between your computer and your phone. However, you'll only see your internal storage (pictures, videos and stuff like that) - not the system partition. That's why you should use Aroma File Manager! It lets you access the system partition directly on the phone and provides everything you need (copy/paste/delete and so on).
I have no idea what file you actually deleted. But I'm pretty sure it was not the one in /system/media.
experience7 said:
As said before... TWRP uses MTP to enable file transfer between your computer and your phone. However, you'll only see your internal storage (pictures, videos and stuff like that) - not the system partition. That's why you should use Aroma File Manager! It lets you access the system partition directly on the phone and provides everything you need (copy/paste/delete and so on).
I have no idea what file you actually deleted. But I'm pretty sure it was not the one in /system/media.
Click to expand...
Click to collapse
And that's the most weird part of all...
1) TWRP file manager started working as soon as I connected my phone to my PC. I didn't need to flash AromaFM. TWRP worked like a charm
2) I deleted the laggy bootanimation.zip and replaced it with the stock one I backed up. I backed up the stock animation by renaming it to a different file. However TWRP always failed to rename the stock animation to bootanimation.zip. So I renamed it entirely different (to android) and then back to bootanimation.zip and it worked like a charm.
Does that make sense now? I don't know what the hell just happened but I ain't complaining

First Port to the Cube T7 Phablet.

After trying and trying and failing, I have finally figured out a way to port a rom to the Cube T7.
This has proven the only method (in my experience) to work. All the standard methods have failed
each time.
WARNING!!!!! THIS COULD BRICK OR DAMAGE YOUR PHONE
YOU ARE TRYING THIS AT YOUR OWN RISK. I WILL NOT BE HELD RESPONSIBLE
FOR WHAT HAPPENS TO YOUR DEVICE!!!!
Things you need.
latest Spftool
and the Rom package
NOTE:You need to know that you can't just flash the package I put together. You will
need to use the TWRP recovery that comes in the package to transfer file from your external sd to
the system folder and so forth. Also the proper permission to set.
Step 1: Flashing the images.
I've already pulled the correct img from each folder and put it together for you.
The only thing that you will need to do is extract the folder and use the spf tool to
install the firmware.
Note** In order to keep the 3.97 app storage, I've had to make sure to use the
Spf tool to do a full format except for the bootloader.
Step 2: Repairing the Rom
In the rar package, I included all the files need to fix the rom so
it will work smoothly on your phone. The files can be located in
the "system" folder which will need to be copied to your external sdcard
At this point you will already have flash the images and turn on the phone.
You will notice that the after you turn it on, you will get a warning that says "Cpu overheating"
or at least to that affect. This is not true by the way, this is from the fact the tp settings are off
from the original rom. Either way the warning will force boot your phone which again is fine.
Once this happens you will need to go to recovery.
Once in recovery make sure that you go ahead and mount your
system partition.
With this done you will be able to go to /system/etc/.tp
This folder contains the files that control the thermal manager for
the rom. You want to delete this folder. YES DETELE IT!!!
Once deleted, go to the system folder that you should have copied to your
external Sdcard. You need to copy /system/etc/tp to the exact location that you
just deleted the original.
Once you've done this you will need to set the permissions for the folder and the
files contained. The folder needs to be set to 0755 and the files inside need to be set to 0644.
Once done its best to go ahead and use the recovery to flash UPDATE-SuperSU-v2.46.zip to root your device before
restarting. Once restarted you will need to use root explorer or es explorer root function to
copy all the files to there correct locations and set their permissions. Each file is in its corresponding
folder as it should be in the system partition. All you will need to do is copy and past from the folder on the external and
paste to the same folder in the system partition. For those that may not know, all files will be set to 0644/rw--r--r-- and folders that you copy over will be 0755/rwxr-xr-x (if your using root explorer, just un check the group and others on the "Write" permissions.
Whats not working?
I can't figure out how to get the camera to working.
I've used standard tuts to try and copy the right files or libs
but not luck as of yet. If anyone figures out a way please share!!!
Also, if you have the fold case, the screen does not come on when you
open the fold. Also when double tapping the screen, this does not take it out of sleep
mode. From what I've seen those are the only things that dont work. If you see something
else, please report it to this thread.
Also in the package you will find the Carliv 3.3 recovery version for our phone.
Thanks to kushyree from needrom.com for building it for us.
He also has been assisting me in trying to port other roms to our phone. We owe him a lot of thanks.
Let me know if you guys need any help with this. I will do the best I can to try and help out. Enjoy.

Categories

Resources