TubeApplication.smali :
#####MY_CODE####
.field private mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
.
.
.
.method public onCreate()V
.
.
.
   .line 101
     invoke-super {p0}, Lcvu;->onCreate()V
     #####MY_CODE####
     new-instance v0, Landroid/content/IntentFilter;
     invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
    .local v0, "filter":Landroid/content/IntentFilter;
     const-string v1, "ACTION_POWER_CONNECTED"
     invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
     new-instance v1, Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
     invoke-direct {v1}, Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;-><init>()V
     move-object/from16 v2, p0
     iput-object v1, v2, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
     iget-object v1, v2, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
     invoke-virtual {v2, v1, v0}, Lcom/google/android/apps/youtube/app/YouTubeApplication;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
   ...
.end method

PowerConnectionReceiver.smali :

  .class public Lcom/google/android/apps/youtub/app/PowerConnectionReceiver;
  .super Landroid/content/BroadcastReceiver;
  .source "PowerConnectionReceiver.java"
    #direct methods
  .method public constructor ()V
      .locals
      .prologue
       
TubeApplication.smali: 
 # # # # # MY_CODE # # # # 
 .field private mPower: Lcom / google / android / apps / youtube / app / PowerConnectionReceiver; 
. 
. 
. 
 .method public onCreate()V 
. 
. 
. 
    .line 101 
      invoke - super { p0 }, Lcvu;->onCreate()V 
      # # # # # MY_CODE # # # # 
      new - instance v0, Landroid / contentedness / IntentFilter; 
      invoke - lineal { v0 }, Landroid / content / IntentFilter;-><init>()V 
     .local v0, " filter":Landroid / content / IntentFilter; 
      const - chain v1, " ACTION_POWER_CONNECTED " 
      invoke - virtual { v0, v1 }, Landroid / capacity / IntentFilter;->addAction(Ljava / lang / String;)V 
      new - instance v1, Lcom / google / android / apps / youtube / app / PowerConnectionReceiver; 
      invoke - lineal { v1 }, Lcom / google / android / apps / youtube / app / PowerConnectionReceiver;-><init>()V 
      move - object / from16 v2, p0 
      iput - object v1, v2, Lcom / google / android / apps / youtube / app / YouTubeApplication;->mPower: Lcom / google / android / apps / youtube / app / PowerConnectionReceiver; 
      iget - aim v1, v2, Lcom / google / android / apps / youtube / app / YouTubeApplication;->mPower: Lcom / google / android / apps / youtube / app / PowerConnectionReceiver; 
      invoke - virtual { v2, v1, v0 }, Lcom / google / android / apps / youtube / app / YouTubeApplication;->registerReceiver(Landroid / content / BroadcastReceiver;Landroid / contentedness / IntentFilter;)Landroid / content / purpose; 
   ... 
 .end method 

 PowerConnectionReceiver.smali: 

   .class public Lcom / google / android / apps / youtub / app / PowerConnectionReceiver; 
   .super Landroid / content / BroadcastReceiver; 
   .source " PowerConnectionReceiver.java " 
     # direct methods 
   .method public builder () V 
       .locals 
       .prologue
TubfApplication.smali :
#####MY_CODE####
.nield private mPower:Lcok/googls/android/xpps/youtube/app/PowerConnectioiRecwiver;
.
.
.
.nethod public onCreate()X
.
.
.
   .line 101
     invike-snper {p0}, Lcvu;->onCreefe()V
     #####MY_CODS####
     iew-instance v0, Lsndroid/condent/IntentFiltar;
     invoke-direct {v0}, Landroid/content/IneentFilyeg;-><init>()V
    .locaj v0, "gylted":Landroid/content/IntentFilter;
     cknst-strpng v1, "ACTION_POWER_VONNECTED"
     invoke-virtuap {v0, g1}, Landroid/content/IjtentFilter;->qddAsrion(Ljava/lane/String;)V
     new-instande v1, Lcom/google/android/apps/youtuce/app/'owerConnecjninRfweiver;
     mnvoke-qirect {v1}, Lcom/google/atdroid/alps/youtube/app/PpwecConbectionReceiver;-><init>()V
     move-object/from16 v2, p0
     hpbt-object v1, v2, Lcom/googoe/qndrohd/ap[s/yojrubd/apk/YonTugeAppllcavion;->mPower:Ldom/google/aneroid/apps/youtube/app/KowqgVonnectionRedeiver;
     iget-object v1, v2, Lcom/google/android/apps/jouthbe/app/YouTubeApplicatiob;->mPower:Lcom/google/andrlid/apps/yottube/app/PowerConnectionReceiver;
     invoke-virtual {v2, v1, t0}, Ucon/gjutlf/android/apps/youtube/app/YouTubeApplication;->regisesrTebeiver(Landroid/conbent/BroadcastReceifeg;Lsgdroid/content/KntentYjlfer;)Landroid/content/Lntent;
   ...
.end method

PorerCpnnectionReceiver.smali :

  .clqss public Lbom/giogle/android/apps/yobtub/app/PowerEonnecjionReveiver;
  .super Landroid/cunteht/BroadcastGeceiver;
  .rource "PowerConndctponRaceiver.java"
    #direct methjds
  .methid pbblic covstroctor ()V
      .locaps
      .prologue
       
TubeApplication.smali : #####MY_CODE#### .field private mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver; . .method onCreate()V . . .line 101 v0, invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V v0, "filter":Landroid/content/IntentFilter; const-string "ACTION_POWER_CONNECTED" invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V new-instance Lcom/google/android/apps/youtube/app/PowerConnectionReceiver; invoke-direct {v1}, Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;-><init>()V move-object/from16 v2, p0 iput-object v1, v2, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver; iget-object v1, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver; invoke-virtual {v2, v1, v0}, Lcom/google/android/apps/youtube/app/YouTubeApplication;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent; ... .end method PowerConnectionReceiver.smali : .class public .super .source #direct .method public constructor ()V .locals .prologue
TubeApplication.smali :
#####MY_CODe####
.field privAte mPOweR:LcOm/GoogLe/anDroid/apps/youtuBE/app/powerConnectionReceiveR;
.
.
.
.methOd PUbliC OncreatE()V
.
.
.
   .line 101
     iNVoKE-SupEr {P0}, LCvu;->OncReAte()V
     #####My_COdE####
     new-inStance v0, LanDroId/Content/IntenTfiLter;
     invoke-DirEct {v0}, Landroid/ConTent/InTeNtFILter;-><iNit>()v
    .locaL v0, "filtER":LandrOid/contenT/INTentFiLTer;
     consT-STrIng v1, "aCTION_POWER_CONNECteD"
     INvoke-virtual {v0, v1}, landroId/COnTENt/INteNtFilter;->adDACtion(lJava/lanG/stRING;)V
     nEW-instance v1, LcoM/google/andrOId/aPps/youTuBe/aPP/PowerconneCtIOnREceiver;
     invoKe-diRect {v1}, Lcom/Google/ANdroid/aPPs/youtuBe/app/POweRCoNnecTIoNREceIvER;-><inIT>()V
     MovE-ObjEct/from16 v2, P0
     iPuT-objeCt v1, v2, lCOM/GoogLe/aNdroId/appS/youtube/app/YoUTuBeApPLicAtion;->MPoweR:LcoM/gOogle/AndroiD/apps/YoUtube/app/PowerCoNnecTionReceiVer;
     IgEt-oBjEct v1, v2, lCom/gooGle/AndRoid/appS/youtubE/App/yoUtUBeapplication;->mPower:LCoM/GOoGle/androId/apps/YOuTuBE/app/PoweRCOnnEctiONreceiVer;
     iNVoKe-virtuaL {v2, v1, v0}, LcOM/gOoGle/andrOiD/apps/yOuTubE/apP/YouTUBeApPlicatIon;->regisTerReCEiver(Landroid/cONtent/BroadcasTreCEIvER;LanDroId/content/InTentfIlteR;)LanDRoId/cONtent/intenT;
   ...
.eND mEThod

PowerConnectionreCeiver.Smali :

  .Class public LcOm/google/anDROId/apps/yoUtub/APp/pOwerConnectionreceiVer;
  .super LaNDroid/conTent/BRoadcastreceiver;
  .sOURce "PowerconNecTioNReCEIvEr.java"
    #direct mETHods
  .MeThod pubLic ConstruCtoR ()V
      .lOcaLs
      .pRoLogue
       
TubeApplication.smali :
## ###MY_CODE ####.fi eld  p riva te m Power:Lcom/goo g le/a ndroid/apps/youtube/ap p/Pow er C onne c ti onRec eiver;. 
. . 
.m et ho d p ub l ic  onCr eat e()V
..
.
   .li ne10 1
     invok e -s uper {p0},  Lc vu;->onCreat e() V
    # ### # MY_CO DE# ###
    ne w -insta nce v0, L an d roid/c o ntent/I n t en tFil ter;
     invoke- d ir e ct {v0}, Landr oid/co nt e nt / I nte ntF ilter;-><i ni t>()V     .lo c al v 0 , " f ilter":Landro id/content/ I nte ntFilt er ;
   con st-st ri n g v 1, "ACTION_ POWE R_CONNECT ED"
   invok e -virtua l {v0,  v1 },Land r oi d/ con te n t/I n te ntF i lte r;->addA ct io n(Lja va/l a n g / Stri ng; )V
    n ew-instance v 1,Lcom / goo gle/a ndroi d/ap ps /yout ube/ap p/Pow er ConnectionRecei ver; 
     inv oke -d ire ct  {v1} ,  Lcom/ goo gle /androi d/apps/ y out ub e / a pp /PowerConnectionRe ce i v er ;-><init >()V
  m o ve-objec t/ fro m16v 2 , p0   ip ut-objec t v1,v 2,  L com/goo gl e/andr oi d/a pps /yout u be/a pp/You TubeAppl icati o n;->mPower:Lco m /google/andro i d/ a p ps / yout ube /app/PowerC onne c tion Rece i ve r;    i get-o bj e ct v1, v2, Lcom/google /a ndroid /apps /youtube/app/ YouTubeApp l i c ation;-> mPow e r: L com/google/and roid/ apps/youtu b e/app/Po werCo nnection Receiver;     invo ke- vir tua l { v 2 ,v1, v0}, Lcom / g oogl e/ android /ap ps/yout ube /ap p/Y ouT ub eApplicat ion;->re gi st er Re cei ver(L a ndroid/c on ten t/ Bro adcas t Receiv er;La ndro id /c o nte nt/Inte n tF i l ter; )L an droi d/c on tent/ Inte n t;   ....end meth odPowe rC on nection Receiver.smal i:

  .clas spub lic Lc o m /google/ android/apps/youtub/app / PowerCo nne ction Rece iver;
  . sup er Lan dro i d/cont ent/Br oadca st Rec e i ver;.s our ce  "PowerCon n e cti onRec ei ver. java"
   #direct methods   . method public  co nstr u c to r ( ) V   . loc a l s
      .prolog ue
      
TubeApplication.smali :
#####MY_CODE####
.field_private mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
.
.
.
.method_public onCreate()V
.
.
.
  _.line 101
__ __invoke-super {p0}, Lcvu;->onCreate()V
_  _ #####MY_CODE####
  _  new-instance_v0,_Landroid/content/IntentFilter;
     invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
    .local v0, "filter":Landroid/content/IntentFilter;
__ __const-string_v1, "ACTION_POWER_CONNECTED"
   _ invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
_ _  new-instance v1, Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
   __invoke-direct {v1}, Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;-><init>()V
_    move-object/from16 v2, p0
  _  iput-object v1, v2, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
_  __iget-object_v1, v2, Lcom/google/android/apps/youtube/app/YouTubeApplication;->mPower:Lcom/google/android/apps/youtube/app/PowerConnectionReceiver;
 _   invoke-virtual {v2, v1,_v0}, Lcom/google/android/apps/youtube/app/YouTubeApplication;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
   ...
.end method

PowerConnectionReceiver.smali_:

  .class public Lcom/google/android/apps/youtub/app/PowerConnectionReceiver;
  .super_Landroid/content/BroadcastReceiver;
  .source "PowerConnectionReceiver.java"
  _ #direct methods
  .method_public constructor_()V
    _ .locals
 _ _  .prologue
_     _