Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
UPEngineer
Old
#1  
Member - OP
Thanks Meter 10
Posts: 67
Join Date: Sep 2010
Location: Chickasha, OK
Default I have a CWM 3.0+ updater-script question

Hello all,

I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.

Here is what I am attempting to do.

Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.

So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.

the file goes into the /data/data/com.htc.provider.weather/files directory.

My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.

It works as intended because I can see the file using adb prior to reboot.

However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.

BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.

I don't understand why it works one way but not another.

Is there a step I am missing in the updater-script?

Any help would be appreciated....

Thanks,
Scott
 
dbu
Old
#2  
dbu's Avatar
Senior Member
Thanks Meter 40
Posts: 225
Join Date: Mar 2009
Quote:
Originally Posted by UPEngineer View Post
Hello all,

I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.

Here is what I am attempting to do.

Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.

So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.

the file goes into the /data/data/com.htc.provider.weather/files directory.

My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.

It works as intended because I can see the file using adb prior to reboot.

However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.

BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.

I don't understand why it works one way but not another.

Is there a step I am missing in the updater-script?

Any help would be appreciated....

Thanks,
Scott
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?

Follow me on Twitter: @0dbu
IRC Handle: ProgHouse
 
UPEngineer
Old
#3  
Member - OP
Thanks Meter 10
Posts: 67
Join Date: Sep 2010
Location: Chickasha, OK
Quote:
Originally Posted by dbu View Post
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
LOL, what I was thinking too, but it doesn't seem to work, unless I am doing it wrong.

If I replace the file and reboot, the original rebuilds.
If I delete the file completely and reboot, the original rebuilds.
If I replace the file using root explorer after phone has booted and then reboot, my modified file sticks.

That is what I can't figure out. Why it sticks after OS has loaded but rebuilds if the same file is placed before reboot.

And I can't figure out where the file is being rebuilt from.

Uggggg.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...