Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:44:39+00:00 2026-06-10T18:44:39+00:00

I am trying to analyse Android malware on an emulator with Android 2.1. I

  • 0

I am trying to analyse Android malware on an emulator with Android 2.1. I want to analyze the files permissions and fingerprints after the execution of the suspicious app. I know, I can use the adb shell to get this information, but I think I can’t trust the information after the execution of e.g. a rootkit.

I think the only way to prevent rootkits from hiding is by mounting the images directly or?
I have the following files:

ramdisk.img  snapshots.img  userdata-qemu.img  cache.img  system.img  userdata.img  zImage

How can they be mounted/extracted on Ubuntu (read access is enough)?

With unyaffs I can extract the system.img and userdata.img file. simg2img returns "bad magic" for all files.

Thanks Alex

Edit: userdata-qemu.img works unyaffs2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:44:41+00:00Added an answer on June 10, 2026 at 6:44 pm

    You’ve already answered your own question but I’ll expand a bit.
    The Android sdk comes with system images, for example:

    $ cd android-sdk-linux/system-images/android-15/armeabi-v7a/
    $ ls *.img
    ramdisk.img  system.img  userdata.img
    
    $ cd ~/.android/avd/<img name>.avd/
    $ ls *.img
    cache.img  sdcard.img  userdata.img  userdata-qemu.img
    

    Though, not all images are of the same type:

    $ file *.img
    cache.img:         VMS Alpha executable
    sdcard.img:        x86 boot sector, code offset 0x5a, OEM-ID "MSWIN4.1", sectors/cluster 4, Media descriptor 0xf8, sectors 2048000 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 3993, reserved3 0x800000, serial number 0x17de3f04, label: "     SDCARD"
    userdata.img:      VMS Alpha executable
    userdata-qemu.img: VMS Alpha executable
    

    Since sdcard.img contains no extra partitions, it can be mounted directly without an offset parameter (like -o loop,offset=32256):

    $ fdisk -l sdcard.img
    You must set cylinders.
    You can do this from the extra functions menu.
    
    Disk sdcard.img: 0 MB, 0 bytes
    255 heads, 63 sectors/track, 0 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00000000
    
         Device Boot      Start         End      Blocks   Id  System
    
    $ sudo mount -o loop sdcard.img /mnt/
    

    The other image files which are described as VMS Alpha executable are in fact yaffs2 files. As far as I’m aware they can’t be mounted directly but can be extracted using the two utilities unyaffs or unyaffs2.

    $ mkdir extract
    $ cd extract
    $ unyaffs ../userdata.img
    

    or

    $ unyaffs2 --yaffs-ecclayout ../userdata.img .
    

    Note, there’s another utility called simg2img which can be found in the android source tree under ./android_src/system/extras/ext4_utils/ which is used on compressed ext4 img files. However, if wrongly applied to yaffs2 images it complains with Bad magic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to analyze the files/directories inside of a directory using a shell
I'm trying to write a function in R to batch-analyse a number of files
I'm trying to analyse a query execution plan in my Oracle database. I have
I'm trying to use MongoDB to analyse Apache log files. I've created a receipts
I'm trying to analyse some trx files (webTestResults) to output synthetic excel files. first,
I'm trying to create a script that will read text files and then analyse
I am trying to analyse the IIS log and would like to look at
I am attempting to analyse a time series with spectral analysis. I am trying
I'm running python2.5 and trying to use the astLib library to analyse WCS information
I'm trying to analyze logs using splunk and I need to parse lines that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.