1. Download our Official Android App: Forums for Android!

Apps some basic questions about an android app

Discussion in 'Android Development' started by aliyesami, Mar 22, 2016.

  1. aliyesami

    aliyesami Newbie
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    17
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    17
    2
    26
    Male
    I am using this electronic gadget from Atmel called SAMW25 and it comes with an android app which takes the wifi SSID and password and passes it on to the SAM25 module.
    I am trying to understand how this app would be working and can I write my own android app to communicate with the SAMW25 module ? using TCP/IP sockets?
     

    Advertisement

  2. aliyesami

    aliyesami Newbie
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    17
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    17
    2
    26
    Male
    attaching the .apk file , can someone reverse engineer it and see what it is doing ?
    this is a demo app from Atmel and is not a commercial product.
     

    Attached Files:

  3. Thom

    Thom  
    VIP Member
    Rank:
     #22
    Points:
    1,318
    Posts:
    11,961
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    11,961
    4,945
    1,318
    Male
    Software Developer
    Keene, NH USA
    Welcome to Android Forums.

    This thread was moved to this forum that is dedicated to discussing development questions.

    ... Thom
     
  4. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,308
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,308
    10,426
    1,988
    Male
    Software developer
    South West of England
    I think it's very unlikely someone will spend the time doing this for you, and with the greatest of respect, you will learn far more from it, if you try to reverse engineer it yourself - particularly if your intention is to understand what it does, and communicate with it.
     
  5. aliyesami

    aliyesami Newbie
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    17
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    17
    2
    26
    Male
    I tried to do it myself but its giving me errors. I used apktool .
    is there anyother utility I can use ?
     
  6. aliyesami

    aliyesami Newbie
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    17
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    17
    2
    26
    Male
    here is the error I am getting .. can someone tell me how to fix it ?

    Directory of C:\android

    03/22/2016 12:26 PM <DIR> .
    03/22/2016 12:26 PM <DIR> ..
    09/10/2015 09:07 AM 2,838,011 avrforiot.apk
    03/22/2016 12:21 PM 2,347,822 avrforiot.zip
    2 File(s) 5,185,833 bytes
    2 Dir(s) 147,704,111,104 bytes free

    C:\android>apktool d avrforiot.apk
    I: Using Apktool 2.0.3 on avrforiot.apk
    I: Loading resource table...
    I: Decoding AndroidManifest.xml with resources...
    I: Loading resource table from file: C:\Users\kn857sa.TOLLS\apktool\framework\1.apk
    I: Regular manifest package...
    I: Decoding file-resources...
    I: Decoding values */* XMLs...
    I: Baksmaling classes.dex...
    I: Copying assets and libs...
    I: Copying unknown files...
    I: Copying original files...

    C:\android>apktool b avrforiot.apk
    I: Using Apktool 2.0.3
    Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
    at brut.androlib.Androlib.readMetaFile(Androlib.java:263)
    at brut.androlib.Androlib.build(Androlib.java:275)
    at brut.androlib.Androlib.build(Androlib.java:268)
    at brut.apktool.Main.cmdBuild(Main.java:225)
    at brut.apktool.Main.main(Main.java:84)
    Caused by: brut.directory.PathNotExist: apktool.yml
    at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:105)
    at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
    ... 4 more

    C:\android>
     
  7. aliyesami

    aliyesami Newbie
    Thread Starter
    Rank:
    None
    Points:
    26
    Posts:
    17
    Joined:
    Mar 22, 2016

    Mar 22, 2016
    17
    2
    26
    Male
    ok issue was fixed by using the command "apktool b avrforiot" without the ".apk" extension

    C:\android>apktool b avrforiot
    I: Using Apktool 2.0.3
    I: Checking whether sources has changed...
    I: Smaling smali folder into classes.dex...
    I: Checking whether resources has changed...
    I: Building resources...
    I: Building apk file...

    so now how can I open these files in the google android studio and emulate it ?
     

Share This Page

Loading...