Editing build.prop breaks the camera? - Moto Z Play Questions & Answers

I rooted my phone a couple weeks ago and installed a custom ROM ( found here - https://forum.xda-developers.com/moto-z-play/development/rom-dedraks-essential-rom-mzp-t3576478 ) but am having a problem getting the phone to do what I want it to. Any time I edit the build.prop file to enable tethering, the camera refuses to open. If I go back to the stock build.prop, everything begins to function normally again. Anyone know what may be causing this issue or have a workaround? I'm not very experienced in this area so any help you guys can offer would be greatly appreciated. Thanks!

How did you edit file? Linux is using different end of file than Windows. Edit directly on the phone ir use better editor like Note++. Of course if that's the problem.
Sent from my LG-V940n using Tapatalk

Dont use any build.prop editor. Use es file manager to edit it.

Thanks for the suggestions guy. I originally edited the file on the phone using BuildProp Editor. I was going to give it a shot with ES File Explorer, but the app is full of bloatware and I passed when it straight up asked for permission to collect my info and share it with third parties. Should I be looking for another app to edit the building.prop on the phone?

Check FX File explorer, IMO the best file manager but not so popular like overbloaded ES.
https://play.google.com/store/apps/details?id=nextapp.fx

I installed FX File Explorer and added the "net.tethering.noprovisioning=true" line on the end of the build.prop file and reset the phone. I am now able to enable tethering and my camera still works, so I'll confirm that the tethering is actually working with another device when I get home from work tonight. I spent hours and hours trying to get this straightened out before I posted on here, so I am beyond grateful for the help.

hysteria411 said:
I installed FX File Explorer and added the "net.tethering.noprovisioning=true" line on the end of the build.prop file and reset the phone. I am now able to enable tethering and my camera still works, so I'll confirm that the tethering is actually working with another device when I get home from work tonight. I spent hours and hours trying to get this straightened out before I posted on here, so I am beyond grateful for the help.
Click to expand...
Click to collapse
So it was problem with editing file It happened to me, thousand years ago...

is it confirmed that changing build prop in es file explorer won't break camera as it did from me in buildprop app & root explorer both by Jrummy ? only changing dpi didn't break it.. everything else has.. ie multiwindow line as I have a Moto x pure

Related

how do i edit my build.prop

if i edit my build.prop with astro, on a reboot the changes are lost, the file is marked r-w, so something altering it on bootup, anybody know where the source comes from??
Download Root Explorer and use that. Trust.
tried that, it keeps getting overwritten with some king of backup.
mallard729 said:
tried that, it keeps getting overwritten with some king of backup.
Click to expand...
Click to collapse
If that's the case, then it's a problem specific to the ROM. I haven't tried it on my TP2 but it worked flawlessly on my G1.
Lemme take a look once I get a second.
why cant i find the directory /system/ ?!?! i cant find the build.prop from within windows or winmo?!
norpan111 said:
why cant i find the directory /system/ ?!?! i cant find the build.prop from within windows or winmo?!
Click to expand...
Click to collapse
Because it does not excist in winmo. It only excists in android.
I tried Root Explorer and it workers . I use latest froyo build with lower incall volume kernel .
Can somebody tell me when I delete apps in system/apps folder I delete from data.img or from system.ext2 ?
Same here, I change my build.prop file or replace it and it gets overwritten.
Using the build.prop for protected apps but can't get it to stay.
I am using the latest BLAZEN build from PPCGEEKS/Reefer.
Being an Ext2 file instead of sqsh I figure this would have worked flawless.
I'd really like to download logmein, gbahours, paypal and a few other protected apps. I can't without fixing this build.prop file....
OR
Find some way to get a working fingerprint Google has already approved.
Glad to see I'm not the only one looking into this I have the same problem in my android OS - different phone, but same custom OS. Hopefully this thread won't die - if I ever figure it out I'll be sure to post here as well

[Q]systemui.apk edit

So I installed a status bar mod over one that I already had (not back to back) it retained about 10 of the .png files and es file explorer doesn't let me delete them, do I need to use a program to pick apart the apk or is there another file explorer I can use and yes the root and sys is set r/w
Sent from my vivow using Tapatalk 2
sounds like to you need decompile and re-comple the apk to edit properly. I myself am having navigating theming my own phone. I will tell you its frustrating, but i'm not giving up. There seems to be a certain way to do things. Figuring that out, is the hard part. I would google apkmanger multitool. Its for windows and makes things easier, but i'm still learning how to use it.

[Q] Turn off camera shutter sound

I love this phone.
But, I can't turn the camera shutter sound off.
I have seen the following solutions:
Edit build.prop and set the camera sound value to =0
or
Use Camera Zoom Fx app and delete the camera_click.ogg file
I would prefer to do the former.
I guess I need to root my phone to do this - or is there an easier way?
I have never rooted a phone and I don't have a need for a rooted phone other than to be able to r/w the build.prop file.
Can I root it, edit the build.prop file, and then unroot it and have the build.prop file keep my edits?
Does anyone have any straightforward steps on how to root and then unroot this phone?
Thank you for any guidance you can provide!
J-Ha
can't freaking delete this post... tried to edit it and since im a new member it wouldn't let me within 5 minutes...my full reply is farther down.
http://forum.xda-developers.com/showthread.php?t=1994626
I believe that you can unroot directly from the superuser app that is sideloaded via this rooting method. Once unrooted, the changes that you made should remain. If they don't for some reason, all you have to do is keep root and just deny apps that request superuser access.
jhaaaa said:
I love this phone.
But, I can't turn the camera shutter sound off.
I have seen the following solutions:
Edit build.prop and set the camera sound value to =0
or
Use Camera Zoom Fx app and delete the camera_click.ogg file
I would prefer to do the former.
I guess I need to root my phone to do this - or is there an easier way?
I have never rooted a phone and I don't have a need for a rooted phone other than to be able to r/w the build.prop file.
Can I root it, edit the build.prop file, and then unroot it and have the build.prop file keep my edits?
Does anyone have any straightforward steps on how to root and then unroot this phone?
Thank you for any guidance you can provide!
J-Ha
Click to expand...
Click to collapse
You would need to root it to edit the build.prop, as it is located in system. That other way to unroot might work to keep it but if you use lgnpst it would replace all the system files, giving you your stock build.prop again. If you wanted to delete the ogg file you would still need to root for that. At least on my phone the camera_click.ogg file is located it /system/media/audio/ui directory. You could just move it somewhere else as a backup. But....being rooted is awesome
is their a complete fix to this.?
HelloDominick said:
is their a complete fix to this.?
Click to expand...
Click to collapse
jat255 said:
HelloDominick, any reason my post above doesn't work for you? That fixed the sound issue for me.
Click to expand...
Click to collapse
You had to root the phone first right or no.?
This solution didn't work for me. I did all of it, and upon resetting permissions, it makes a new file" build.prop.bak and I still get shutter sound. Using es file explorer
Sent from my LG-LS970 using xda app-developers app
i rooted my device where is the location to edit the camera sound.?
I dont see this code "ro.camera.sound.forced=1" anywhere
NVM. I found it, im getting old now.
but tested it and it works like a charm
HelloDominick - I still haven't gotten around to rooting the phone, so I haven't done this yet. Do you really have to have the sound off on the phone in order for this to work?
Colonel Travis said:
HelloDominick - I still haven't gotten around to rooting the phone, so I haven't done this yet. Do you really have to have the sound off on the phone in order for this to work?
Click to expand...
Click to collapse
Yes. Even deleting the camera shutter sound and editing the build.prop result in this. I just did it myself
Sent from my LG-LS970 using xda app-developers app
Anyone try repackaging the camera apk wi th out the shutter sound. Its what we had to do with the evo 3d`s
Sent from my LG-LS970 using Tapatalk 2
jat255 said:
Hmm... That's interesting. Only thing I can think of is maybe set the permissions via adb? Maybe ES has some issue?
Sent from my LG-LS970 using xda premium
Click to expand...
Click to collapse
Found the solution to be rebooting after the entire process. I forgot I hadn't done it, and decided to just reboot for the hell of it. No shutter sound
Sent from my LG-LS970 using xda app-developers app
I think (once rooted) is safest to just overwrite the click sound(s) with a silent one. Then it plays but you can't hear it. works for me and any camera proggy that defaults to the system will use it too.
thecolor said:
I think (once rooted) is safest to just overwrite the click sound(s) with a silent one. Then it plays but you can't hear it. works for me and any camera proggy that defaults to the system will use it too.
Click to expand...
Click to collapse
Where is the camera sound located in the filesystem? Thx!
hallucinate said:
Where is the camera sound located in the filesystem? Thx!
Click to expand...
Click to collapse
On the LGoG it's in: system > media > audio > ui > camera_click.ogg
It may be in a different location on other devices.
You have to be rooted in order to write over system files, but I just renamed the original to camera_click.ogg.bak and then copied the silent version in with the same original name "camera_click.ogg" less the quotes and making sure it's an ogg file too, so there is no system playback error.
Hope that helps.
thecolor said:
On the LGoG it's in: system > media > audio > ui > camera_click.ogg
It may be in a different location on other devices.
You have to be rooted in order to write over system files, but I just renamed the original to camera_click.ogg.bak and then copied the silent version in with the same original name "camera_click.ogg" less the quotes and making sure it's an ogg file too, so there is no system playback error.
Hope that helps.
Click to expand...
Click to collapse
Replaced the file but no love, same click sound... Any other path?
hallucinate said:
Replaced the file but no love, same click sound... Any other path?
Click to expand...
Click to collapse
I assume it's the LGoG you are attempting this with?
Mine is the first generation (incase there are other generations.)
You'll also want to verify it was overwritten. I'd try playing the sound once you do... just to be sure it's the write file.
Otherwise, you might search your device for the sound and see if it's listed elsewhere.
In case the program you are using does not have "system" write capability, I might suggest ES File Explorer.
Either way, you will have to access the settings to turn on the ability to "write" to root in order to "overwrite the file".
Additionally (if the file is changing back - or so it would seem)... be sure to check the permissions it has before you overwrite it and when you do (assuming success).. make sure to set the "new" files permissions to the same as what the old file had. Else, the OS might overwrite the "new" file with a tared (backed up) version... knowing that it's been screwed with.
It's kind of a form of protection from corruption (computer sees potentially bad file and replaces it with good file.)
Good luck and happy fourth!
Phantom camera_click.ogg
I beg your forgiveness for my ignorance, but I've never done much tweaking to file systems after a rooting... but my gf has the Sprint Optimus G and can't find the camera_click.ogg file at all using Astro File Explorer. Does anyone know any other location it may be at? As a computer technician, I'm embarrassed at my lack of know-how around the Droid OS!
Not sure if you looked at this thread: http://forum.xda-developers.com/showthread.php?t=2051384
Read the op then go to page 11 and you see there are 2 fields that need to be changed.
After you do that and reboot as it states, you will have sound when you have your volume on and no camera sound when you turn the volume down to vibrate or silent. At least that is how it is for me. I prefer it that way.
Hope this helps
Sent from my LG-LS970
Naturally
Per Murphy's law, after she and I both looked for around 30 min before giving up and me posting on the forums, I downloaded the ES file explorer and found both files within seconds.
Got it with the silent camera while the phone is on silent/vibrate. Now for a little tweaking to silence it with the volume up.
Thanks for your help, guys and gals. No wonder XDA-devs is one of, if not the, top-notch sites!
Regards,
Agnati

[Q] framework decompile help.

Not sure if this is the right spot or should actually go in development or here since I got lectured for putting it in development the last time.
But what I am trying to do is decompile the framework file from the stock rom and change a xml and recompile so as to bypass the tetheringprovison call.
The last time I did this on the HTC One S I ran into the trouble that the recompiled verision didn't work and ended up just opening the recompiled apk as a zip pulling the xml and replacing it in the original apk and load that.
That seemed to do the trick on that phone.
I think the problem is with compression as the output apk I get after recompiling is never even close to the original size.
I am having the same issue when it comes to the file for the gs3.
So far I haven't tested a recompiled one yet since I haven't rooted yet but just working on the file.
That is a job for a little later on my days off where I don't need my phone.
But with this one the file I am looking for once it is decompiled shows in res/values/arrays.xml for this one. How ever if I open either the source file or the recompiled when I don't see those values folders anywhere inside.
I am not sure if they are just hidden in something else or where the other files are.
I am using the newest verision of apk multi tool to recompiling and decompiling with compression values tested at 1 and 0.
both the framework-res.apk and twframework files are loaded into it as well as dependencies.
Any ideas on the best way of changing out this one file?
Or if anyone can recompile one with the following arrays.xml file instead that I have attached.
When it is decompiled it does show the right folder string "\res\values" and the array.xml inside I have just made a change to the xml that would not check the tethering provision on the device to allow the built in tether to work again. and a recompiled verision with that file will bypass any tethering check
any help would be greatly appreciated.
*edited* to include the arrays xml
Anything found in the "values" directory are not going to be visible inside the apk they are files used to build the actual apk that tells the other XML and other files where things are. Compression won't break an apk. What exact file are you editing? Also you are going to have to root if you want to put the modded file back on the device..
Sent from my SGH-T999 using Tapatalk 2
Yeah will be rooton on day off so i dont have to worry about it too much.
But with the arrays file that has a call in it to consult a different program before starting tethering.
I have changed that file so it dont check anymore.
This worked on it before with it just unlocked and a different apn update came and dont work anymore.
I am just confused that why it recompiled before for the one and wouldnt work right.
Based on what i read should be no problem as long as both frameworks are installed to the apk multitool
M9x3mos said:
Yeah will be rooton on day off so i dont have to worry about it too much.
But with the arrays file that has a call in it to consult a different program before starting tethering.
I have changed that file so it dont check anymore.
This worked on it before with it just unlocked and a different apn update came and dont work anymore.
I am just confused that why it recompiled before for the one and wouldnt work right.
Based on what i read should be no problem as long as both frameworks are installed to the apk multitool
Click to expand...
Click to collapse
I decompile framework-res.apk all the time with no issues. What is the exact issue you're having?
Sent from my SGH-T999 using Tapatalk 2
Just that when I decompile the framework-res.apk replace one xml file and recompile it using the multitool (am using the system apk with dependancies and linking the twframework) and then try and load it on the phone it seems to cause it to crash.
M9x3mos said:
Just that when I decompile the framework-res.apk replace one xml file and recompile it using the multitool (am using the system apk with dependancies and linking the twframework) and then try and load it on the phone it seems to cause it to crash.
Click to expand...
Click to collapse
You cannot replace XML files with other XML files. You have to open the XML in notepad++ and edit the actual lines of code then recompile. And I thought you weren't rooted so how are you able to push the app back to the device? Also, are you setting correct permissions for the newly compiled apk?
Sent from my SGH-T999 using Tapatalk 2
Yeah sorry for the late reply.
I am still tinkering with it. I wanted to root just till I had a day off that it wouldn't kill me to have the phone down for a little.
I will be rooting it in the next day or two since I am off.
After recompiling the APK and pulling the XML out of that one and putting in the original was the only way I could get the change to take on the One S.
When I was testing then, and will try the same procedure with the GS3, is after recompiling it with the tool I would put on sd card then using twrp copy to the phone and chmod 644
Out of curiosity what would be the DD command for backing up the recovery to the sd card?
I am having trouble finding that.
I would like to have that to flash back on the phone as I am planning to try this again from within twrp and see what happens.
From my understanding for triangle away to work you need to be on stock recovery right?
Ok
Now I have a new problem I have stumbled upon.
I have modded the file but when I try and push it with ADB from the pc even after system mounted it tells me that permission is denied.
Any ideas why that is happening?
Tried copying over with root explorer and that froze during copy and then resulted I'm a boot loop.
Not sure if that was because of the method or a problem with the file I made.
When decompiling does that need to be done with the twframework dependence or just simple decompile?
Also then after switching the arrays.xml I can just recompile with no compression or do I have to do something with keeping files.
Since the arrays is in something else I'm not sure what it shouldn't keep.
Any ideas would be greatly appreciated.
And I can't find if should either be zipaligned or signed. Some articles say signed some say don't sign system apks
Holy crap... youre allllllllllll over the place one bite at a time.. Quick answers first:
You do not need to backup your recovery. It is flashable via Odin and is much safer to flash via odin then it is using DD. With DD, you could flash the wrong partition by a simple slip of a keystroke. IE you typed '9' instead of '0'
Secondly: You got that 'freeze' issue using Root Explorer because framework-res.apk is constantly in use by the system. The BEST way to apply any system file is by creating a flashable zip file then applying it through recovery.
Thirdly: You do NOT need stock recovery to use Triangle Away, ive used it twice now with CWM as my recovery.
About your issues with decompiling recompiling.. I dont think its necessary to install the twframework... i dont recall if i had to when i was on Frosty, but doing "java -jar apktool.jar if <twframework here>" wouldnt hurt.
Also what exactly are you trying to modify?
Yeah Sorry about that
was just as I was reading other things and playing with it I kept coming across other questions.
Was thinking about that with the recovery so I am just going to skip doing that and flash a custom one then.
Was trying to do it without switching to avoid tripping the counter but seems like that is un neesicary
I am looking to stay on the stock software of the phone but want to edit the arrays file out of the framework so it don't check for tethering provisions.
Previously I was able to tether just by changing the APNs on the device now I can't do that. Says I don't have a tmo tathering plan. But also not with T-Mobile so that is problematic.
M9x3mos said:
Yeah Sorry about that
was just as I was reading other things and playing with it I kept coming across other questions.
Was thinking about that with the recovery so I am just going to skip doing that and flash a custom one then.
Was trying to do it without switching to avoid tripping the counter but seems like that is un neesicary
I am looking to stay on the stock software of the phone but want to edit the arrays file out of the framework so it don't check for tethering provisions.
Previously I was able to tether just by changing the APNs on the device now I can't do that. Says I don't have a tmo tathering plan. But also not with T-Mobile so that is problematic.
Click to expand...
Click to collapse
Quick question, are you running Stock Jellybean? And who is your carrier? There was a hacked apk that enabled tethering.. not sure what its called. just read about it. Never tried/downloaded it.
i got this to work last night for frosty 11.2.1, AllenD87 over at the att forums helped me get it right.
I have the stock jellybean on tmo device and use with simple mobile service
Just checked out the other one hack/mod that was looking like the same kind of mod where made changes to the framework and put it back.
different firmware so I don't that I should try that on mine.
i just decompiled framework-res.apk made the changes and recompiled. put it in the rom and flashed the whole rom.
Trying to keep the absolute stock rom.
I just installed twrp since it has file manager so I don't need to make a flashable zip but just copy over and chmod 0644
first attempt gave me a boot hang so I am going to try compiling with a different tool
Ok found out the problem was the multi tool inwas using
Used the beta instead and everything worked ok

HyperDrive ROM Help Please thanks

okay i installed the rom about 1 week ago, and i wanna know if someone can help me
1st off is there anyway i can disable the adblocker after i installed it.
2nd my viper4android is not working any help?
thanks for reading this thanks guys have a great day
Galaxy note 3 n900t KK 4.4
re: ad blocker
CODGOD35 said:
okay i installed the rom about 1 week ago, and i wanna know if someone can help me
1st off is there anyway i can disable the adblocker after i installed it.
2nd my viper4android is not working any help?
thanks for reading this thanks guys have a great day
Galaxy note 3 n900t KK 4.4
Click to expand...
Click to collapse
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Perfect!!!!!!
Misterjunky said:
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Click to expand...
Click to collapse
Nice direction. I can't wait to use this.
Misterjunky said:
Ok, the way to disable the hosts file is easy.
Use a root capable file manager like Root Explorer
and go to /System/Etc (open the etc folder).
There you will find a file called "hosts", just delete
the file and restart the phone and your done.
If you ever want to install another or aa new adblocker
it will re-create the hosts file for you automatically.
Good luck!
Click to expand...
Click to collapse
What if I don't want to delete the host file? Can I edit the host file? the settings would be like this only?
127.0.0.1
re: hosts file
Lorettaa said:
What if I don't want to delete the host file? Can I edit the host file? the settings would be like this only?
127.0.0.1
Click to expand...
Click to collapse
You can always rename it to hosts.bak, and you can also edit it manually
with an appropriate ascii editor.
If you know exactly which line in the hosts file causes problems with some other
app that are installed in your phone then you can if you like remove that one line
only and leave the rest alone so it will continue to block ads from the other apps
or sites and so on.
Good luck!
Thank you sir. Renaming it to .bak is also a good trick.
Adaway: http://forum.xda-developers.com/showthread.php?t=2190753
It also work with 4.4.2 Kitkat. I personally use this with Lucky patcher and able to get satisfy result. See how that goes for you .
@Lorettaa Thanks for the tips, I will try that and will let you know how the results work out.
No problem dude.

Categories

Resources