desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

All XML files decompiled are encrypted? #615

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. De-compiling a encrypted apk will result into a random xml file 
2. Redoing this to make sure it wasn't a "first time" thing
3. Re downloading the apk

What is the expected output? What do you see instead?

The xml files should be decrypted

What version of the product are you using? On what operating system?

I'm using APKtool 1.5.2 on windows 7 x64

Please provide any additional information below.

I was trying to edit the name and icon of the "my ee" app for secure reasons. 
But the file's of all xml's are encrpted, see my android_manifest.xml file below

  €    ô
  E           0             4   R   n   Œ   ª   Æ   Þ   ö     $  8  D  R  h  ’     ¾  ä    &  8    ”  ¦  º  Ø  æ  ú    @  z  Ì    f  ¼    t  ¾     <  ˆ  à  ü  4  N  b  x  –  ¦  Ô  è  *  b  ¦  à  6    ”     ú      
  h
  º

  d  Œ  ž    j   v e r s i o n C o d e    v e r s i o n N a m e   
 m i n S d k V e r s i o n    l a r g e S c r e e n s   
 x l a r g e S c r e e n s   
 n o r m a l S c r e e n s    s m a l l S c r e e n s   
 r e s i z e a b l e   
 a n y D e n s i t y    n a m e    p r o t e c t i o n L e v e l    r e q u i r e d    i c o n    l a b e l     l a r g e H e a p    h a r d w a r e A c c e l e r a t e d    t h e m e   
 c o n f i g C h a n g e s    s c r e e n O r i e n t a t i o n    w i n d o w S o f t I n p u t M o d e   
 p e r m i s s i o n    a n d r o i d   * h t t p : / / s c h e m a s . a n d r o i d . c o m / a p k / r e s / a n d r o i d        p a c k a g e    m a n i f e s t   
 u k . c o . e e . m y e e    2 . 0 . 8    u s e s - s d k    s u p p o r t s - s c r e e n s    u s e s - p e r m i s s i o n    a n d r o i d . p e r m i s s i o n . I N T E R N E T   ' a n d r o i d . p e r m i s s i o n . A C C E S S _ N E T W O R K _ S T A T E     a n d r o i d . p e r m i s s i o n . R E A D _ C O N T A C T S   ) a n d r o i d . p e r m i s s i o n . W R I T E _ E X T E R N A L _ S T O R A G E   ) a n d r o i d . p e r m i s s i o n . A C C E S S _ C O A R S E _ L O C A T I O N   ' a n d r o i d . p e r m i s s i o n . A C C E S S _ F I N E _ L O C A T I O N   1 a n d r o i d . p e r m i s s i o n . A C C E S S _ L O C A T I O N _ E X T R A _ C O M M A N D S   # a n d r o i d . p e r m i s s i o n . R E A D _ P H O N E _ S T A T E    a n d r o i d . p e r m i s s i o n . G E T _ A C C O U N T S    a n d r o i d . p e r m i s s i o n . W A K E _ L O C K   $ u k . c o . e e . m y e e . p e r m i s s i o n . C 2 D _ M E S S A G E   * c o m . g o o g l e . a n d r o i d . c 2 d m . p e r m i s s i o n . R E C E I V E    u s e s - f e a t u r e    a n d r o i d . h a r d w a r e . t e l e p h o n y    a p p l i c a t i o n    a c t i v i t y     . L a u n c h e r   
 i n t e n t - f i l t e r    a c t i o n    u k . c o . e e . m y e e . M E S S A G E    c a t e g o r y    a n d r o i d . i n t e n t . c a t e g o r y . D E F A U L T    a n d r o i d . i n t e n t . a c t i o n . M A I N     a n d r o i d . i n t e n t . c a t e g o r y . L A U N C H E R    o r g . a p a c h e . c o r d o v a . D r o i d G a p   ) c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . P u s h W e b v i e w   - c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . M e s s a g e A c t i v i t y   1 c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . P u s h H a n d l e r A c t i v i t y    r e c e i v e r   + c o m . g o o g l e . a n d r o i d . g c m . G C M B r o a d c a s t R e c e i v e r   ' c o m . g o o g l e . a n d r o i d . c 2 d m . p e r m i s s i o n . S E N D   & c o m . g o o g l e . a n d r o i d . c 2 d m . i n t e n t . R E C E I V E   + c o m . g o o g l e . a n d r o i d . c 2 d m . i n t e n t . R E G I S T R A T I O N    c o m . p u s h w o o s h . t e s t    s e r v i c e   2 c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . P u s h G C M I n t e n t S e r v i c e   0 c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . G e o L o c a t i o n S e r v i c e   + c o m . a r e l l o m o b i l e . a n d r o i d . p u s h . A l a r m R e c e i v e r   € \   †¿…„l     Ž  ZÓ    +         ÿÿÿÿ       `      ÿÿÿÿÿÿÿÿ                   ÿÿÿÿ                   ÿÿÿÿ            8      ÿÿÿÿÿÿÿÿ                  ÿÿÿÿ               ÿÿÿÿÿÿÿÿ    œ      ÿÿÿÿÿÿÿÿ                  ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ       ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                                     ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                                    ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   !     !          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   "     "          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   #     #          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   $     $          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   %     %          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   &     &          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   '     '          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   (     (          ÿÿÿÿÿÿÿÿ    L      ÿÿÿÿÿÿÿÿ                   )     )      
   ÿÿÿÿ            ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   )     )          ÿÿÿÿÿÿÿÿ    8      ÿÿÿÿÿÿÿÿ                   *     *          ÿÿÿÿÿÿÿÿ    L   !   ÿÿÿÿÿÿÿÿ+                   ,     ,         ÿÿÿÿ          !   ÿÿÿÿÿÿÿÿ+    t   "   ÿÿÿÿÿÿÿÿ-               
   ÿÿÿÿ             ÿÿÿÿ         ÿÿÿÿ  ÿÿÿÿ      ÿÿÿÿ  ÿÿÿÿ œ   &   ÿÿÿÿÿÿÿÿ.                  ÿÿÿÿ      
   ÿÿÿÿ                /     /         ÿÿÿÿ           ÿÿÿÿ            ÿÿÿÿ      $   ,   ÿÿÿÿÿÿÿÿ0              8   -   ÿÿÿÿÿÿÿÿ1                      2     2       -   ÿÿÿÿÿÿÿÿ1    8   .   ÿÿÿÿÿÿÿÿ3                   4     4       .   ÿÿÿÿÿÿÿÿ3       /   ÿÿÿÿÿÿÿÿ0    $   0   ÿÿÿÿÿÿÿÿ0              8   1   ÿÿÿÿÿÿÿÿ1                   5     5       1   ÿÿÿÿÿÿÿÿ1    8   2   ÿÿÿÿÿÿÿÿ3                   6     6       2   ÿÿÿÿÿÿÿÿ3       3   ÿÿÿÿÿÿÿÿ0       4   ÿÿÿÿÿÿÿÿ.    t   5   ÿÿÿÿÿÿÿÿ.               
   ÿÿÿÿ                7     7         ÿÿÿÿ           ÿÿÿÿ          7   ÿÿÿÿÿÿÿÿ.    8   9   ÿÿÿÿÿÿÿÿ.                      8     8       9   ÿÿÿÿÿÿÿÿ.    8   :   ÿÿÿÿÿÿÿÿ.                   9     9       :   ÿÿÿÿÿÿÿÿ.    8   ;   ÿÿÿÿÿÿÿÿ.                   :     :       ;   ÿÿÿÿÿÿÿÿ.    L   =   ÿÿÿÿÿÿÿÿ;                   <     <         =     =    $   @   ÿÿÿÿÿÿÿÿ0              8   B   ÿÿÿÿÿÿÿÿ1                   >     >       B   ÿÿÿÿÿÿÿÿ1    8   D   ÿÿÿÿÿÿÿÿ1                   ?     ?       D   ÿÿÿÿÿÿÿÿ1    8   E   ÿÿÿÿÿÿÿÿ3                   @     @       E   ÿÿÿÿÿÿÿÿ3       F   ÿÿÿÿÿÿÿÿ0       G   ÿÿÿÿÿÿÿÿ;    8   H   ÿÿÿÿÿÿÿÿA                   B     B       H   ÿÿÿÿÿÿÿÿA    8   I   ÿÿÿÿÿÿÿÿA                   C     C       I   ÿÿÿÿÿÿÿÿA    8   J   ÿÿÿÿÿÿÿÿ;                   D     D       J   ÿÿÿÿÿÿÿÿ;       L   ÿÿÿÿÿÿÿÿ-       N   ÿÿÿÿÿÿÿÿ       N   ÿÿÿÿ      

Original issue reported on code.google.com by Henri.H...@gmail.com on 27 Mar 2014 at 4:56

GoogleCodeExporter commented 9 years ago
Sorry about the spelling, my firefox spell checker is off for some reason. But 
you should get what I'm trying to say...

Original comment by Henri.H...@gmail.com on 27 Mar 2014 at 4:58

GoogleCodeExporter commented 9 years ago
Very confused.

That looks like an unpacked AndroidManifest. If apktool didn't decode it, back 
to human-readable there would be an error.

Also, what is an encrypted apk? Obfuscated with what tool?

Which apk?

Original comment by connor.tumbleson on 27 Mar 2014 at 5:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If I read the apk from data/app using root browser on my phone I can see the 
xml without these encrypted symbols everywhere, it would come up like a normal 
xml file.

However, when I use apk tool to decode it; these random characters are all over 
the place.

Seems like my idea is to copy the xml from the root browser of my phone and 
copy and paste it in a email and send it to myself; even extracting the xml is 
the same as apktool.

I've attached the apk with this post if you would like to test it. I think it's 
my PC instead though...

Original comment by Henri.H...@gmail.com on 27 Mar 2014 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
gedit states that it doesn't know it's character encoding; a person tried it on 
a mac and suggested it worked. Should I try it on a linux pc?

Original comment by Henri.H...@gmail.com on 27 Mar 2014 at 5:33

GoogleCodeExporter commented 9 years ago
Worked on Windows / Linux, on newest 2.x source.

Not a bug. Wait for 2.x please.

Original comment by connor.tumbleson on 29 Mar 2014 at 6:52