Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
alvaritolalala
Old
(Last edited by alvaritolalala; 19th April 2011 at 06:39 PM.)
#1  
Member - OP
Thanks Meter 0
Posts: 65
Join Date: Jan 2010
Default [Q] Modified default.prop on hboot 1.01 S-ON. Useful??

Hi everyone, I bought my wildfire a week ago just to realise it already comes with hboot 1.02. Then I downgraded to 1.01 and 2.1 (via official RUU).
software info:
hboot 1.01.0001
S-ON


So today I tried this:

Code:
Run visionary+
su
mount -o remount,ro -t rootfs -w rootfs /
rm /default.prop
****PAUSE*****
on the root of my sdcard I have the modified  default.prop
Code:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
**END**PAUSE** cat /sdcard/default.prop > /default.prop
Now if I do cat on this file I get:
Code:
cat /default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=0
Then I tried to avoid overwriting by chmod 000 default.prop but it didn't work, every time I reboot the phone the file goes as before, with ro.secure=1.

So my question is, what I did is useful for something?
:S
 
dannyjmcguinness
Old
#2  
Member
Thanks Meter 16
Posts: 33
Join Date: Jan 2011
I have also tried modding this file along with the init files, but to no success.
I believe the correct way to do it is in the format of a comand like this :
setprop default.prop ro.debuggable=1
which appears to execute successfully but does not alter the file for some reason
 
dannyjmcguinness
Old
#3  
Member
Thanks Meter 16
Posts: 33
Join Date: Jan 2011
Can anyone verify if this is supposed to be the way to alter such a file, or does this do something else completely?
 
dannyjmcguinness
Old
#4  
Member
Thanks Meter 16
Posts: 33
Join Date: Jan 2011
Also I think it may be useful if you could find a way to alter the date property back in sync with the rest of the files which are on 1970, that way it may not get picked up as being modified.
 
alvaritolalala
Old
#5  
Member - OP
Thanks Meter 0
Posts: 65
Join Date: Jan 2010
I'll try the date trick but I think it's not going to work because *I think* hboot reloads these files every boot, but of course it's worth a try!
 
EchoVelocity
Old
#6  
Member
Thanks Meter 4
Posts: 77
Join Date: Mar 2011
But where does hboot reload these files from?
 
alvaritolalala
Old
#7  
Member - OP
Thanks Meter 0
Posts: 65
Join Date: Jan 2010
Quote:
Originally Posted by EchoVelocity View Post
But where does hboot reload these files from?
I *think* these properties (ro.secure, ro.cid, etc) are "embedded" into hboot and at boot time simply copy and overwrite old files.

Since the temproot for 2.2.1 (psneuter) is kinda **** (cannot use "touch", for example or "cp") I'm going to downgrade to 2.1, temproot with visionary and change the date of default.prop to the original one (by the way, even doing chmod 000 default.prop it gets deleted after boot ).

Does anyone know if it's possible to make the new file have the same chksum or md5 (i'll try both) that the old one?
I don't know how hboot checks if the file has been modified. Maybe it does not even check and just simply replaces it...

 
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...

XDA PORTAL POSTS

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more