Reply
Thread Tools
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#11
Maybe try the last instead of x79\x79\x79\x79 to become x59\x59\x79\x79 or x79\x79\x59\x59
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#12
Originally Posted by thedead1440 View Post
Maybe try the last instead of x79\x79\x79\x79 to become x59\x59\x79\x79 or x79\x79\x59\x59
Can't check it now, because i need 2 numbers from original file. Probably it should be the same length.. Or another number instead 59...

Last edited by Schturman; 2012-10-03 at 09:43.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#13
The below is how hex values look like hence why I suggested x59...

Code:
dd=64 64
DD=44 44
mm=6D 6D
MM=4D 4D
yy=79 79
YY=59 59
I could be wrong but the above is what I got from typing into HxD...
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#14
Ok, I did a many tests now... Checked the original file etc...
Probably we can't to add more then 3 characters !

Also, maybe we don't need "refhashlist" script, or my phone is crazy after so much tests I tested a few times without "refhashlist" script and it worked, but it can take a few sec on the first opening of camera.. Just will test it without "refhashlist" script...
Also on the first opening of camera, probably it remember the last string and you will not see the changes in the name of file, just close camera and open it again...
Some variations that we can do:

perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x79\x79\x4d\x4d\x64\x64\x5f/g' /usr/lib/libqcamera.so.1.0.0
121003_0001
(YYMMDD_0001)

perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x64\x64\x4d\x4d\x79\x79\x5f/g' /usr/lib/libqcamera.so.1.0.0
031012_0001
(DDMMYY_0001)


perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x64\x64\x4d\x4d\x4d\x79\x79/g' /usr/lib/libqcamera.so.1.0.0
03Oct120001
(DDMMMYY0001)

perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x79\x79\x4d\x4d\x4d\x64\x64/g' /usr/lib/libqcamera.so.1.0.0
12Oct030001
(YYMMMDD0001)


0001
= number of image

Someone want another combination ?

Last edited by Schturman; 2012-10-03 at 19:28.
 

The Following 2 Users Say Thank You to Schturman For This Useful Post:
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#15
Schturman,

You wouldn't need refhashlist.pl as this binary doesn't seem to be in refhaslist in the first place

You were signing it without it being present
 

The Following User Says Thank You to thedead1440 For This Useful Post:
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#16
There isn't enough space for every format. The original format
is YYMM followed by four nul-bytes. But we need at least one
nul-byte for an null terminated string.
Therefore yyyymmdd doesn't work.
0x59 is for the underscore "_"
You'll have to restart the camera application after
modifieng the lib:
killall camera-ui

Last edited by nicolai; 2012-10-04 at 08:20.
 

The Following User Says Thank You to nicolai For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#17
Yep, i know now (checked the original file)
We have space only for 3 characters...
 
death_jax's Avatar
Posts: 326 | Thanked: 122 times | Joined on Sep 2012 @ Italy
#18
I tried, without refhashlist.pl, the:

Code:
perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x64\x64\x4d\x4d\x79\x79\x5f/g' /usr/lib/libqcamera.so.1.0.0
for DDMMYY_0001, but it shows me Substitution replacement not terminated at -e line 1

Last edited by death_jax; 2012-10-04 at 12:54.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#19
Originally Posted by death_jax View Post
I tried, without refhashlist.pl, the:

Code:
perl -pi -e 's/\x79\x79\x4d\x4d\x00\x00\x00/\x64\x64\x4d\x4d\x79\x79\x5f/g' /usr/lib/libqcamera.so.1.0.0
for DDMMYY_0001, but it shows me Substitution replacement not terminated at -e line 1
I also use this format and today after reflash i used this command without any problem and without refhashlist.pl, all work. Don't know why you have problem
 
death_jax's Avatar
Posts: 326 | Thanked: 122 times | Joined on Sep 2012 @ Italy
#20
Originally Posted by Schturman View Post
I also use this format and today after reflash i used this command without any problem and without refhashlist.pl, all work. Don't know why you have problem
I resolved now, but only after copying the file to the computer and than run that command from terminal of this one. After this, I copied the edited file to phone and from terminal of this one I replaced the original file.. now it works well..
But I don't understand why the command doesn't work from the phone directly
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:42.