传说中的无敌吸星大法

Hi,

Assume that the value is stored in a CenRep file, do the following steps,

 

1. Start the S60 3rd Edition FP2 emulator and then enter the "Settings" application.

 

2. Remember the default value of the Power-saver timeout setting (15s) and then modify it (to 25s, for example),
and then exit the "Settings" application

 

3. Search in the 'epoc32' folder for recently changed files, there are several modified .cre files.
101f87ef.cre
101f877c.cre
1000a82b.cre
make a copy of them

 

4. Enter the "Settings" application and then modify the setting again (to 30s, for example),
and then exit the "Setting" application

 

5. Search in the 'epoc32' folder again for recently changed files, still the .cre files.
Compare them to the copies made in step 3, and we can see only the 101f877c.cre is changed,
 and actually only one byte is changed from 0x19 (25s) to 0x1E(30s),
so it is must be the one we are looking for.

 

6. Check the "/epoc32/release/winscw/udeb/z/private/10202be9/101f877c.txt",
the key of the item with default value 15 is 0x8, so I guess it is the key for backlight timeout.
...
0x8 int 15 16777216 cap_rd=alwayspass cap_wr=WriteDeviceData
...

 

You can make a further confirmation by code:


Code:


TInt timeout = 0;
CRepository* cenrep = CRepository::NewLC(TUid::Uid(0x101F877C));
User::LeaveIfError(cenrep->Get(0x8, timeout));
CleanupStack::PopAndDestroy(cenrep);


Regards

Ziteng Chen

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值