Related
hi!
in order to test something, i need to replace the build.prop in root/system with a modified one. but trying to delete this file with astro manager displays an error message, and just copying the modified build.prop over the old one doesn't work too (nothing happens).
so my question is: how do you replace such a file?
thanks in advance for your help
are you serious!?!?!?
If the build.prop is located on the Android folder IT HAS TO BE A SYSTEM FILE !!!
if you mod the system files you could break android or the system just won't let you do it, you will need R and W privileges to do that.
edit the system files from your PC or just boot up in to windows mobile.
use some common scene next time.
hope it helps!
Sent from my HTC HD2 using XDA App
Do you use a cyanogen build?
yes and there is already a cyanogen rom posted with the proper build.prop fixed, so you won't have to edit anything, just search for it.
Sent from my HTC HD2 using XDA App
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
thanks for your help / posts. but unfortunately they're not helpful.
yes, i am serious! and yes, of course it's a system file. i know as well that modification might brick android.
there are reasons for modifying this file. some people seem to be able to, e.g. for chaning screen point density or modify the data passthrough.
so, please tell me, how can i edit/modify a system file from pc or windows mobile when its within the data.img-file?
thanks for any tips / hints on this.
use root explorer
Sichroteph said:
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
Click to expand...
Click to collapse
Thank you VERY much for your help - I finally got it to work by listening your instructions. It is simply different if you have HD2 and plus CM mod. That figures why it was going back all the time to 180 instead of changing it - because it runs from sd card and that's where it needs to be replaced as well ...
Droid Explorer
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Can anyone help?
During standy the battery drain is a consistent 60-70mA. Nothing is running, background data turned off, no wi-fi, no GPS, no sync.
rice-CHRISpies said:
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Click to expand...
Click to collapse
You need to use a file explorer with root privileges. You can d/l ES File Explorer (or something like it) from the market for free.
When you run it, you'll be prompted to give it root (SU, or superuser) permissions. There's a checkbox in the menu, for you to do this anyway.
Most importantly - since the file system is read only - you'll have to also check the box directly underneath it in the root settings section of the menu to 'Mount File System'. This will make the files writable, so you can save your edits.
In general, you can keep the 'Root Explorer' box checked at all times, but it's not a bad practice to uncheck the Mount File System box when you're done so as to ensure against file changes.
gps.conf is located in the etc directory of the system. The line you want to edit is at the end of the file. When you make your change... don't forget to press the menu button and then press SAVE.
another user had similar problems - so you can take a quick look here...
http://forum.xda-developers.com/showpost.php?p=16735406&postcount=15225
Rob
thanx.works for me.
ke2v85 said:
thanx.works for me.
Click to expand...
Click to collapse
"Speaking of thanks, use the thanks button. Use it every time you get an answer, even if it's a one you don't like"
http://www.youtube.com/watch?v=JmvCpR45LKA&t=1m33s
I pressed it for you this time, next time you do it.
Here is a bit of why I wrote this manual:
Back at December 2010 Paul from modaco found how to enable sip over 3g for the gingerbread native client, his original thread is here:
http://android.modaco.com/topic/327770-using-gingerbread-internet-calling-sip-without-wifi/
For chefs it is probably straight forward how to use this tip, but for me I always begged for cookers to include this in their roms usually they didn't even replay to my request, so I investigated this, and here is very easy way to enable this feature.
This guide assumes you are a little familiar with changing files on your ROM.
*I take no responsibility for this guide, use it at your own risk
So, what we are doing is modifying the framework-res.apk from from our framework directory.
We need:
apktools from here: http://code.google.com/p/android-apktool/
Two files are needed, this: http://code.google.com/p/android-apktool/downloads/detail?name=apktool1.4.1.tar.bz2&can=2&q=
And this: http://code.google.com/p/android-apktool/downloads/detail?name=apktool-install-windows-r04-brut1.tar.bz2&can=2&q=
(You can also do this for Linux and Mac, this guide will use windows)
Take the framework-res.apk from your ROMS zip file inside /system/framework directory.
How its done:
Extract both files that you downloaded to c:\apktools (can be any dir...)
You should have 3 files.
Copy the framework-res.apk to the same directory: c:\apktools
start --> run --> cmd
c:
cd \apktools
apktools d framework-res.apk temp
Now a folder named temp will appear named temp
inside temp, edit the file: C:\apktools\temp\res\values\bools.xml
I use notepad++, search for a line:
<bool name="config_sip_wifi_only">true</bool>th
change in the line the "true" into "false"
save the file.
go back to cmd
c:
cd \apktools
apktools b temp temp.apk
Now rename your original framework-res.apk to framework-res.apk.zip
open it with winrar/winzip/7zip it will open like regular archive.
take the file that was created by the build process:
C:\apktools\temp\build\apk\resources.arsc
Use this file to replace the file inside the archive of framerwork-res.apk.zip (overwriting the original, inside the zip)
rename the file back to framework-res.apk
And now you have a sip over 3g enabled framework-res.apk.
There are few options to push this file, easiest is just replace it in your ROM zip and flush the ROM, you need to wipe cache and dalvik cache.
There are other ways to push this to your rom but I won't discuss them here.
I used this on stock roms, AOSP roms, MIUI roms and Sense roms, worked for me on all, if you find a roms it doesn't work on please report.
Thats it, its actually quite easy.
You are Awesome! Thank you for posting this. I just setup my phone with this and it works great.
Great Process, a few little remarks
Shalom,
This is a great process tutorial and within 15 minutes I flashed my HTC Sensation to support Internet calls on 3G/4G, while before it was WiFi ONLY.
So now, no need to have any cellular minutes purchased, have DATA have LIFE.
Remarks:
1. Have only 2 files. You mentioned 1 download and then 2 more. The 1st is duplicated withing the 2.
2. The BAT file is apktool.bat and not apktools.bat.
Other then that, SWEEET.
Toda Raba.
Easy
---------- Post added at 04:29 AM ---------- Previous post was at 04:11 AM ----------
HTC Sensation T-Mobile.
Forgot to mention earlier.
Thanks.
HI
tryed not working stoped at temp file cretion is showing an eror cant go further plz help
Does this change your phone to use 3g to make calls? If so that is excellent.
Sent from my Sabotaged Droid Incredible 2.
Thanks, but why don't we use SIP third-party such as Sipdroid, 3CXPhone...? I think they are easy to use.
Nice work , What about Xperia Lines, will there appear 3G video calling button ?
I tried on Wet Dreams 1.3.0 for Atrig 4G and didn't works (Didn't show SIP Calling option)... maybe my mistake or isn't working with Moto's 2.3.6 build. But I asked to be added by the chef! Thanks for this tip!
If SIP options are not present in your Settings.APK it may have been disabled by the carrier.
The solution is to place the proper permissions file into /system/etc/permissions/ which will enable SIP overall on your device, then of course to this fix as well.
Solution found in various other places, just thought I'd add it to this thread since the thread is linked from the homepage.
Nice, surprisingly easy, almost to much so lol
lotherius said:
If SIP options are not present in your Settings.APK it may have been disabled by the carrier.
The solution is to place the proper permissions file into /system/etc/permissions/ which will enable SIP overall on your device, then of course to this fix as well.
Solution found in various other places, just thought I'd add it to this thread since the thread is linked from the homepage.
Click to expand...
Click to collapse
Thanx.
But it didnt work for me, and still not seeing sip settings.
I plased the attached file in system/etc/permissions, rebooted.
Also tried to fix permissions, and still didnt work.
Please Help
Verizon Motorola Droid 3
Stock deodexed Rom, Android 2.3.4
BTLINU said:
Thanx.
But it didnt work for me, and still not seeing sip settings.
I plased the attached file in system/etc/permissions, rebooted.
Also tried to fix permissions, and still didnt work.
Please Help
Verizon Motorola Droid 3
Stock deodexed Rom, Android 2.3.4
Click to expand...
Click to collapse
Then the options probably just aren't there in your carrier's Rom. They were present in my LG Rom, after I pushed the permissions file. However, when I tried to use SIP, it would force close as soon as the call connected... something else missing.
In my case and yours, the answer is to use SipDroid from the market.
Pls any guide on how to do this in ICC ROMs
Good day, all!
I've been working on [my first] ROM for Verizon S5 and everything seems to be going great! I've cleaned out as much Samsung/Verizon/Google trash as I can, applied some tweaks to build.prop, changed some default apps to (IMHO) better replacements, and anything that is left (functions correctly) has been moved to /data/app so they can be Uninstalled fully (not just Turned Off). Just a few quick questions:
1) How can I "bake-in" app data? I have replaced the normal, crap launcher with Holo Launcher and cannot seem to get correct permissions when the ROM is installed thru SS. I believe the issue is permissions for /data/data/ get screwed up or not set correctly. I have looked and looked and tried to determine the correct permissions, but still no joy. I've tried to fix /data/data permissions in the updater-script, but it seems like each subfolder/file has different permissions making me think I'll have to go thru them one-by-one.
I have a work-around in place using a OneTimeInit script that does work, but it seems like that's not really the best approach?
2) Kind of ties into question number 1, I patched the framework-res.apk in to allow WiFiHotspot, but without being able to install the system settings data properly, there is not a "Quick Shortcut". Again, I've resolved the problem using the OneTimeInit to update Sqlite DBs after the system is up.
3) How do I de-odex the stock ROM? Using Android Kitchen doesn't seem to do it right. It works mostly but I still seem to get various FCs. I tend to believe that some things just cannot (should not) be De-Odex'd?
I've also discontinued Zip-Aligning because it sometimes produces errors on my ROM. Is it not advised to use Android Kitchen to do these tasks or is there some trick to getting it to work just right?
Bonus Question) I was going to share my ROM on XDA but it says I'm not allowed to post in Development. I assume because of my low post count. Any way I can get an over-ride or should I just make a few more posts and then do it?
Thanks again guys!
I appreciate all the help as always!
Jake
jake5253 said:
Good day, all!
I've been working on [my first] ROM for Verizon S5 and everything seems to be going great! I've cleaned out as much Samsung/Verizon/Google trash as I can, applied some tweaks to build.prop, changed some default apps to (IMHO) better replacements, and anything that is left (functions correctly) has been moved to /data/app so they can be Uninstalled fully (not just Turned Off). Just a few quick questions:
1) How can I "bake-in" app data? I have replaced the normal, crap launcher with Holo Launcher and cannot seem to get correct permissions when the ROM is installed thru SS. I believe the issue is permissions for /data/data/ get screwed up or not set correctly. I have looked and looked and tried to determine the correct permissions, but still no joy. I've tried to fix /data/data permissions in the updater-script, but it seems like each subfolder/file has different permissions making me think I'll have to go thru them one-by-one.
I have a work-around in place using a OneTimeInit script that does work, but it seems like that's not really the best approach?
2) Kind of ties into question number 1, I patched the framework-res.apk in to allow WiFiHotspot, but without being able to install the system settings data properly, there is not a "Quick Shortcut". Again, I've resolved the problem using the OneTimeInit to update Sqlite DBs after the system is up.
3) How do I de-odex the stock ROM? Using Android Kitchen doesn't seem to do it right. It works mostly but I still seem to get various FCs. I tend to believe that some things just cannot (should not) be De-Odex'd?
I've also discontinued Zip-Aligning because it sometimes produces errors on my ROM. Is it not advised to use Android Kitchen to do these tasks or is there some trick to getting it to work just right?
Bonus Question) I was going to share my ROM on XDA but it says I'm not allowed to post in Development. I assume because of my low post count. Any way I can get an over-ride or should I just make a few more posts and then do it?
Thanks again guys!
I appreciate all the help as always!
Jake
Click to expand...
Click to collapse
1: All I had to do was place apk in /system/app or /system/priv-app and thats it. Make sure when you add your apks you dont unzip the archive. basically use kitchen and build your base rom then simply open the archive and make your edits. I also used the updater script from beans base build and only edited the ui print.. Messing with the updater script i wouldnt recommend as it could be causing some of your issues.
2: If using beans base theres no reason for you to edit anything as the hotspot is already baked in.. you must have borked it.. If you are not using beans base then maybe you should copy his files for the native hotspot as its already done properly. I wouldnt mess with framework or settings apks unless you know what your doing. Id work on gettin the fcs n other issues sorted first as you might b doin too much too fast.. work on learning how to make your apks work first before making edits to framework n settings apks.
3: The kitchen is best to deodex and zipalign.. also these two things should not cause fcs or errors if done properly. zipalign should help more than anything.. i just like workin with deodex bcuz its easier and only one set of files instead of .apk and .odex for just bout everything..
Again, if you are not using beans bases id recommend to do so.. his bases are already deodexed have hotspot zipaligned read/write to ext sd etc.. so you wouldnt have to do all from scratch and have so many issues..
Sent from my SM-G900V using XDA Premium HD app
elliwigy said:
1: All I had to do was place apk in /system/app or /system/priv-app and thats it. Make sure when you add your apks you dont unzip the archive. basically use kitchen and build your base rom then simply open the archive and make your edits. I also used the updater script from beans base build and only edited the ui print.. Messing with the updater script i wouldnt recommend as it could be causing some of your issues.
2: If using beans base theres no reason for you to edit anything as the hotspot is already baked in.. you must have borked it.. If you are not using beans base then maybe you should copy his files for the native hotspot as its already done properly. I wouldnt mess with framework or settings apks unless you know what your doing. Id work on gettin the fcs n other issues sorted first as you might b doin too much too fast.. work on learning how to make your apks work first before making edits to framework n settings apks.
3: The kitchen is best to deodex and zipalign.. also these two things should not cause fcs or errors if done properly. zipalign should help more than anything.. i just like workin with deodex bcuz its easier and only one set of files instead of .apk and .odex for just bout everything..
Again, if you are not using beans bases id recommend to do so.. his bases are already deodexed have hotspot zipaligned read/write to ext sd etc.. so you wouldnt have to do all from scratch and have so many issues..
Sent from my SM-G900V using XDA Premium HD app
Click to expand...
Click to collapse
Thank you for the response!
It seems perhaps I didn't quite make clear what I've done versus what I'm trying to accomplish.
Firstly, I wouldn't go so far as to say I'm "having so many issues". Everything in my ROM is in perfectly fine working order. I just have these few quirks that I would like to address both so I can learn, and to make this and future projects better.
While I appreciate the recommendation to use bean's base, I have taken a look at his and there seems to be nothing in his which copies data into /data/data/com.whatever.package (or at least there's nothing in his zip in the /data/data folder -- not sure if his ROM has the toggle activated?)
I have the Apps working correctly in my ROM -- they just go in /data/apps, /system/app or /system/priv-app, respectively.
What I need, is to get /data/data/com.whatever.package/ copied With Correct Permissions when the ROM is installed; I do not want a second zip to update things after install, especially for a toggle and a couple shortcuts, seems silly.
For instance, when you boot your phone up with the default [stock] samsung launcher, it has a list of default apps and widgets on the first screen you see such as phone, messages, a clock widget, etc, etc. Since I've replaced the stock launcher with Holo Launcher HD and some other default apps have also been replaced, there's very few shortcuts on the main launcher screen.
** Holo Launcher does have a list of default apps it adds to your main page, but many of those have been removed in my rom.
The solution I've come up with basically waits for the system to boot up to the point that Holo Launcher actually creates the default (mostly blank) /data/data/com.mobint.hololauncher.hd/databases/launcher.db and then my script uses sqlite3 to update the DBs with a list of different shortcuts -- ones to apps that actually exist.
The Hotspot Toggle is the same way as above.. Hotspot works fine in my rom if you go through settings!
I just cannot add the notification panel pull-down toggle to /data/data/com.android.providers.settings/database/settings.db until after the system boots up at least ONE time, and then update the DB to include WiFiHotspot in notification_panel_active_app_list and notification_panel_active_app_list_for_reset
As for the zipalign and deodexing, I will have to try those again now that I have a fairly stable rom.
****EDIT****
I think I figured it out. I can just use busybox to kill the systemui after I update the databases during the first boot. I also figured out how I can add the SetupWizard without it locking up on activation.
Thanks anyways, guys.
Look for my rom, coming soon!
=P
Please add support for more languages
I found a mod for Motorola latest 4.4 please port it
Sent from my SM-G900T using XDA Free mobile app
Hello fellows XDA, after updating my G928T to marshmallow, I can't seem to find setting.db under sqlite or even searching the file doesn't come up in /data/data/com.android.providers.setting/databases. Does anyone know where I could find this file or what may happen to it? Thanks all!
Sent from my SM-G928T using XDA-Developers mobile app
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
astrit1 said:
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
Click to expand...
Click to collapse
I mean the setting used to be stored in a .db file, but (because samsung changed it i guess) it is now stored in a .xml file. no need to rename anything, just edit the xml.
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
Click to expand...
Click to collapse
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
Click to expand...
Click to collapse
if he uses only the xxx_reset one they are going to be overwritten by the normal one when he reboots ,it did this to me
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I found that xml, I copied it on my pc, opened in browser but in that xml I couldn't find anything related to mobile data toggling, or notification toggling like this: notification_panel_default_active_app_list. Could you pls tell me how did you manage to add mobbile data toggle using this method? I'm on Sprint N920P. Thanks in advance