You are on page 1of 2

Facebook Does It Again.

Cheating Dalvik
AUG 11TH, 2014 | C!!"#T$
$%all Cla&i'ication $ince this (ost )ent live it t&igge&e* +,ite a *isc,ssion H#.
-,st to cla&i'. be'o&e .o, sta&t bashing %e in the co%%ents. I kne) abo,t F/ *oing the 0inea&Alloc
b,''e& thing )hen the. ha* &elease* the (atch. Ho)eve&, the&e a&e othe& sol,tions o,t the&e to 'i1
this iss,e, an* Facebook *i* not t&. a*o(ting an. o' the%, thei& &easons 'o& not a*o(ting it a&e not
that convincing, AFAI2 '&o% a so't)a&e *evelo(%ent (e&s(ective.
3ecentl. I 'o,n* this c&ash t&ace in %. (hone4
1
2
5
4
6
7
8
9
:
10
11
12
15
14
16
17
18
19
1:
20
21
09;09 12427418.917 2867;2867<= "<Dalvik3e(lace/,''e& Faile* to &e(lace 0inea&Alloc b,''e&
>at si?e 55664452@. Contin,ing )ith stan*a&* b,''e&.
Aava.io.I"1ce(tion4 Co,l* not 'in* 0inea&Alloc %e%o&. %a((ing.
at co%.'acebook.*alvik.DalvikInte&nals.b>DalvikInte&nals.Aava4152@
at co%.'acebook.*alvik.Dalvik3e(lace/,''e&.b>Dalvik3e(lace/,''e&.Aava499@
at co%.'acebook.*alvik.Dalvik3e(lace/,''e&.a>Dalvik3e(lace/,''e&.Aava470@
at co%.'acebook.katana.a((.FacebookA((lication.a>FacebookA((lication.Aava4202@
at co%.'acebook.base.a((.DelegatingA((lication.e>DelegatingA((lication.Aava452@
at
co%.'acebook.base.a((.DelegatingA((lication.attach/aseConte1t>DelegatingA((lication.Aava46:@
at an*&oi*.a((.A((lication.attach>A((lication.Aava4191@
at an*&oi*.a((.Inst&,%entation.ne)A((lication>Inst&,%entation.Aava4::1@
at an*&oi*.a((.Inst&,%entation.ne)A((lication>Inst&,%entation.Aava4:86@
at an*&oi*.a((.0oa*e*A(k.%akeA((lication>0oa*e*A(k.Aava4602@
at an*&oi*.a((.Activit.Th&ea*.han*le/in*A((lication>Activit.Th&ea*.Aava44501@
at an*&oi*.a((.Activit.Th&ea*.accessB1600>Activit.Th&ea*.Aava4156@
at an*&oi*.a((.Activit.Th&ea*BH.han*le!essage>Activit.Th&ea*.Aava41267@
at an*&oi*.os.Han*le&.*is(atch!essage>Han*le&.Aava4102@
at an*&oi*.os.0oo(e&.loo(>0oo(e&.Aava4157@
at an*&oi*.a((.Activit.Th&ea*.%ain>Activit.Th&ea*.Aava46001@
at Aava.lang.&e'lect.!etho*.invoke>#ative !etho*@
at co%.an*&oi*.inte&nal.os.C.goteInitB!etho*An*A&gsCalle&.&,n>C.goteInit.Aava4896@
at co%.an*&oi*.inte&nal.os.C.goteInit.%ain>C.goteInit.Aava4701@
I i%%e*iatel. &eali?e* that this is FacebookDs ve&sion o' t&.ing to cheat Dalvik E! 'o& its li%it o'
762 %etho*s in a single D"F 'ile.
G,oting '&o% the a&ticle4
As it stoo*, the &elease o' the %,ch;antici(ate* Facebook 'o& An*&oi* 2.0 )as at &isk. It see%e* like
)e )o,l* have to choose bet)een c,tting signi'icant 'eat,&es '&o% the a(( o& onl. shi((ing o,&
ne) ve&sion to the ne)est An*&oi* (hones >IC$ an* ,(@. #eithe& see%e* acce(table. He nee*e* a
bette& sol,tion. nce again, )e looke* to the An*&oi* so,&ce co*e. 0ooking at the *e'inition o' the
0inea&Alloc b,''e&, )e &eali?e* that i' )e co,l* onl. inc&ease that b,''e& '&o% 6 !/ to 9 !/, )e
)o,l* be sa'eI
I %aintain that this is a ho&&ible hack an* one that is beset )ith %an. (&oble%s. n a &eall. non;
technical note, this 'i1 is a ve&. *i&t. )hich can ca,se othe& a((s to %isbehave on .o,& (hone. Also,
it %eans .o, as a *evelo(e& *onDt &eall. believe in the e1istence o' )ell;*e'ine* AJIs. 3ecentl.,
Facebook *i* the sa%e b. la,nching A(( 0inks 'o& !obile $D2, anothe& hack. (&o*,ct, )itho,t a
(&o(e& involve%ent o' the co%%,nit., in a stan*a&*s en'o&ce* )a.. Ko, can &ea* all othe& &eall.
technical Aot;*o)ns he&e
Hhile the o''icial stan*a&* )a. to to 'i1 this (&oble% is *esc&ibe* in the o''ical An*&oi* /log.
"DIT
$ee%s like Facebook %isse* it. Hhat a )aste.
Facebook *i* not %iss it, ho)eve& the &easons the. have %entione* *onDt see% to be ve&.
convincing. An*&oi* a((s loa* ,( in a se+,ence )ith *i''e&ent ent&. (oints being calle* at *i''e&ent
stages o' the a((lication, not eve&.thing is a co&e (a&t o' the a((, it can be a&g,e* to so%e e1tent.
He&e is a ni't. )a. to s(lit D"F 'iles i' .o, a&e 'acing a si%ila& sit,ation.

You might also like