• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Edited build.props, and broke my phone, please help!

I did something incredibly stupid. I have a Redmi 2 Pro, and for a while, Google Camera was not working as before, and I was always looking for a fix, and then I found one: I have to add "ro.config.low_ram=false" to the build.props file.

I copied this file to I think "/storage/emulated/0/" ,edited it, and then copied it back to /system/, and then I restarted my phone, and now only the MI logo comes up.

I don't know much about Android and I've really never should have experimented with my own phone like this, I feel really stupid.:( This is the first time ever (probably also the last) when I do anything that needs root. I hope you can help me out! What should I do?
 
Welcome to our AndroidForums and sorry to hear of your root troubles.

Do you have adb access to your device, even while it's bootlooping (which I'm guessing that's what the "MI logo" indicates) and/or do you have a custom recovery?

Barring that, you might have to find a way to restore your stock Android ROM--I'm not at all familiar with your device and don't see that we have a Redmi 2 Pro specific area here at AF (there are two Xiaomi Redmi areas here that you could check out and/or post in for ideas).

By the way, doing a factory reset is not at all likely to fix your issues, by the way since it won't restore your build.prop file to it's original values.
 
Upvote 0
Yeah, a custom recovery is a special (customized) version of the recovery software (partition) that is on every Android device. The customized one usually gets installed by rooters and enables them to do extra stuff, including using the adb utility to connect to and communicate with the device (ostensibly to fix issues like the one you're unfortunately experiencing).

Each manufacturer usually has a specific version of some special software that can be used to re-write/re-flash the stock firmware, although in some cases its not publicly / openly available. I've no idea what it would be for a Xiaomi device, though...although it does look like the http://en.miui.com/ site might contain what you need (from a quick view of it).
 
Upvote 0
Ah, yes!

That page looks very useful and helpful--they've done a great job with that, in my opinion.

This will very likely wipe your device (just my guess), but if you've already got a non-responsive device anyway...[edit: I do see that the flash too has "flash all except data and storage" which may very well leave your data intact]

Before you do that, can I ask if your device came pre-rooted or did you have to root it? (or did you not require any special permissions to update the build.prop file?)

If it came pre-rooted, then there's a good chance that you have a custom recovery installed that might already have adb enabled. If that is indeed the case, we can probably get your device working again without wiping it...
 
Upvote 0
I think Xiaomi phones are rooted by default (or at least Redmi 2 Pro used to be) but then it also got a custom ROM installed by the reseller. I had to use a buil-in Miui app to grant root to a file manager...

I got a suggestion that my build props file got bad permissions, is that possible to change it through adb?
 
Upvote 0
It's possible that you might be able to use adb to fix your device, but it depends on a couple of things:

1. You have the adb utility installed on your PC

You can grab the adb utility and install it on your PC from post #2 in this thread (i.e., download the sdk-tools.zip file), but you'll also likely need the proper USB adb drivers mentioned on the MIUI site from before before adb on your PC will talk with your phone.​

2. You have the proper adb USB drivers for your Android device installed on your PC (I think I saw this mentioned in the MIUI website link you provided previously)

3. Your Android device is in the proper mode to communicate with the adb client from your PC (this means that the adb daemon is up and running on your phone; this happens when USB debugging has been previously enabled in "normal" Android or when you've got a custom recovery installed and it too is ready/configured to use adb)

So, unless you can confirm that you've got a custom recovery installed (i.e., that it's TWRP or CWM, etc.) or know that you had previously enabled USB debugging access, it's probably a long-shot for getting / using adb to fix your device this way.

Can you put your device in recovery mode (I don't know how to do that for your particular device)?
 
  • Like
Reactions: Argentoratum
Upvote 0
Yes, I've got into recovery mode (MiRecovery) and then when I tried adb it listed my device, but
then with adb shell , I got:
"- exec '/system/bin/sh' failed: No such file or directory (2) - "

I think now it should be possible to either
1) use MiFlash and install a stock ROM from the website I linked
2) try to install TWRP and then try adb from there

I could use some help here, I'm afraid to mess things up even more, I guess if I install a custom recovery (twrp), then I wouldn't able to use MiFlash anymore, but on the other side that might allow me to get back to my old phone and not wipe everything...
 
  • Like
Reactions: scary alien
Upvote 0
I also visited the TWRP site last night and didn't see a specific version of their recovery for your device--which is vital/necessary since using a custom recovery built for a different device is "problematic" to say the least ;).

So, flashing back to stock using the MIUI site's flashing tools does appear to be your best best at this point since adb/custom recovery seems out of reach.
 
Upvote 0
I want to say a HUGE thank you to everyone! Now my phone is working again, I'm so happy :)

What I did in the end was: I installed TWRP though a "Mi multi-tool", which had a version also for my phone, and then I've mounted the /system as writable, went into the terminal, and chmod-ded the affected file. And now my phone works again, and it seems MiRecovery is still there (you can use TWRP without really installing it, it seems)

and to top it all, now it seems I can make photospheres again by Google Camera (which was the really stupid reason why I started messing with root.)

So all is well, and thank you again for being so helpful! :)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones