build cm12.1 for n7100 sucessfully, start emulator but black screen - General Questions and Answers

I use fedora 21-x64 build cm12.1 for n7100 in the sdk manager sdk build tool 24.0.3 Android sdk tool 25.2.2 I also install Android 5.1.1 API 22 such as Sources for Andorid SDK, sdk platform.
please help me . thanks advance.
$ emulator -debug-init -logcat '*:v'
emulator: found Android build root: /home/pengfei/android/system
emulator: found Android build out: /home/pengfei/android/system/out/target/product/n7100
emulator: Read property file at /home/pengfei/android/system/out/target/product/n7100/system/build.prop
emulator: Cannot find boot properties file: /home/pengfei/android/system/out/target/product/n7100/boot.prop
emulator: Found target API sdkVersion: 22
emulator: virtual device has no config file - no problem
emulator: using core hw config path: /home/pengfei/android/system/out/target/product/n7100/hardware-qemu.ini
emulator: found skin-specific hardware.ini: /home/pengfei/android/system/development/tools/emulator/skins/HVGA/hardware.ini
emulator: autoconfig: -skin HVGA
emulator: autoconfig: -skindir /home/pengfei/android/system/development/tools/emulator/skins
emulator: found skin-specific hardware.ini: /home/pengfei/android/system/development/tools/emulator/skins/HVGA/hardware.ini
emulator: keyset loaded from: /home/pengfei/.android/default.keyset
emulator: trying to load skin file '/home/pengfei/android/system/development/tools/emulator/skins/HVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: autoconfig: -kernel /home/pengfei/android/system/out/target/product/n7100/kernel
emulator: Auto-detect: Kernel image requires legacy device naming scheme.
emulator: Auto-detect: Kernel does not support YAFFS2 partitions.
emulator: autoconfig: -ramdisk /home/pengfei/android/system/out/target/product/n7100/ramdisk.img
emulator: autoconfig: -sysdir /home/pengfei/android/system/out/target/product/n7100
emulator: Using initial system image: /home/pengfei/android/system/out/target/product/n7100/system.img
emulator: WARNING: system partition size adjusted to match image file (424 MB > 200 MB)
emulator: autoconfig: -data /home/pengfei/android/system/out/target/product/n7100/userdata-qemu.img
emulator: autoconfig: -initdata /home/pengfei/android/system/out/target/product/n7100/userdata.img
emulator: Physical RAM size: 512MB
emulator: WARNING: CPU acceleration only works with x86/x86_64 system images.
emulator: Auto-config: -qemu -cpu cortex-a8
Content of hardware configuration file:
hw.cpu.arch = arm
hw.cpu.model = cortex-a8
hw.ramSize = 512
hw.screen = touch
hw.mainKeys = yes
hw.trackBall = yes
hw.keyboard = no
hw.keyboard.lid = no
hw.keyboard.charmap = qwerty2
hw.dPad = yes
hw.gsmModem = yes
hw.gps = yes
hw.battery = yes
hw.accelerometer = yes
hw.audioInput = yes
hw.audioOutput = yes
hw.sdCard = yes
disk.cachePartition = yes
disk.cachePartition.size = 66m
hw.lcd.width = 320
hw.lcd.height = 480
hw.lcd.depth = 16
hw.lcd.density = 160
hw.lcd.backlight = yes
hw.gpu.enabled = no
hw.initialOrientation = portrait
hw.camera.back = emulated
hw.camera.front = none
vm.heapSize = 48
hw.sensors.proximity = yes
hw.sensors.magnetic_field = yes
hw.sensors.orientation = yes
hw.sensors.temperature = yes
hw.useext4 = yes
kernel.path = /home/pengfei/android/system/out/target/product/n7100/kernel
kernel.parameters = androidboot.console=ttyS2 android.checkjni=1 androidboot.logcat=*:v
kernel.newDeviceNaming = no
kernel.supportsYaffs2 = no
disk.ramdisk.path = /home/pengfei/android/system/out/target/product/n7100/ramdisk.img
disk.systemPartition.initPath = /home/pengfei/android/system/out/target/product/n7100/system.img
disk.systemPartition.size = 424m
disk.dataPartition.path = /home/pengfei/android/system/out/target/product/n7100/userdata-qemu.img
disk.dataPartition.size = 200m
avd.name = <build>
.
QEMU options list:
emulator: argv[00] = "/home/pengfei/android/system/prebuilts/android-emulator/linux-x86_64/emulator64-arm"
emulator: argv[01] = "-serial"
emulator: argv[02] = "stdio"
emulator: argv[03] = "-android-hw"
emulator: argv[04] = "/home/pengfei/android/system/out/target/product/n7100/hardware-qemu.ini"
Concatenated QEMU options:
/home/pengfei/android/system/prebuilts/android-emulator/linux-x86_64/emulator64-arm -serial stdio -android-hw /home/pengfei/android/system/out/target/product/n7100/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: Using kernel serial device prefix: ttyS
emulator: No fstab.goldfish file in ramdisk image
emulator: Probing system image file for partition type: /home/pengfei/android/system/out/target/product/n7100/system.img
emulator: system partition format: yaffs2
emulator: Mapping 'system' partition image to /tmp/android-pengfei/emulator-i5hKet
emulator: nand_add_dev: system,size=0x1a800000,file=/tmp/android-pengfei/emulator-i5hKet,initfile=/home/pengfei/android/system/out/target/product/n7100/system.img
emulator: rounding devsize up to a full eraseunit, now 1a81a000
emulator: Probing userdata image file for partition type: /home/pengfei/android/system/out/target/product/n7100/userdata-qemu.img
emulator: userdata partition format: yaffs2
emulator: nand_add_dev: userdata,size=0xc800000,file=/home/pengfei/android/system/out/target/product/n7100/userdata-qemu.img
emulator: rounding devsize up to a full eraseunit, now c810000
emulator: cache partition format: ext4
emulator: Mapping 'cache' partition image to /tmp/android-pengfei/emulator-OPFxL0
emulator: Creating empty cache partition image at: /tmp/android-pengfei/emulator-OPFxL0
Creating filesystem with parameters:
Size: 69206016
Block size: 4096
Blocks per group: 32768
Inodes per group: 4224
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 16896
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: nand_add_dev: cache,size=0x4200000,file=/tmp/android-pengfei/emulator-OPFxL0,pagesize=512,extrasize=0
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m'
emulator: Adding boot property: 'ro.config.low_ram' = 'true'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: Initializing hardware OpenGLES emulation support
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 androidboot.console=ttyS2 android.checkjni=1
androidboot.logcat=*:v ndns=3
emulator: autoconfig: -scale 1
emulator: Forcing ro.adb.qemud to "0".
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /home/pengfei/android/system/prebuilts/android-emulator/linux-x86_64/ddms

Related

Running a ROM on the emulator

Hi guys, I've been trying to get a nandroid dumped ROM to run on an emulator for development purposes, but I can't get the damn thing past the "Android_" screen.
I've made an AVD with 288 mb RAM and called it "visti". Then I made a copy of my SDK/platforms/android-1.5 folder to SDK/platforms/mine and overwrote the system.img in /images with my dumped one.
Then I changed the config file to point at /sdk/platform/mine/images instead of the default.
This is the verbose output I get from "emulator @visti -verbose":
Code:
D:\android\android-sdk-windows-1.5_r2\tools>emulator.exe @visti -verbose
emulator: found SDK root at D:\android\android-sdk-windows-1.5_r2
emulator: root virtual device file at C:\Documents and Settings\Visti\.android/a
vd/visti.ini
emulator: virtual device content at C:\Documents and Settings\Visti\.android\avd
\visti.avd
emulator: virtual device config file: C:\Documents and Settings\Visti\.android\a
vd\visti.avd/config.ini
emulator: locking user data image at C:\Documents and Settings\Visti\.androi
d\avd\visti.avd/userdata-qemu.img
emulator: locking cache image at C:\Documents and Settings\Visti\.android\av
d\visti.avd/cache.img
emulator: ignoring non-existing SD Card at C:\Documents and Settings\Visti\.andr
oid\avd\visti.avd/sdcard.img: No such file or directory
emulator: found skin 'HVGA' in directory: D:\android\android-sdk-windows-1.5_r2/
platforms\mine\skins
emulator: autoconfig: -skin HVGA
emulator: autoconfig: -skindir D:\android\android-sdk-windows-1.5_r2/platforms\m
ine\skins
emulator: keyset loaded from: C:\Documents and Settings\Visti\.android\default.k
eyset
emulator: trying to load skin file 'D:\android\android-sdk-windows-1.5_r2/platfo
rms\mine\skins/HVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: argv[00] = "emulator.exe"
emulator: argv[01] = "-kernel"
emulator: argv[02] = "D:\android\android-sdk-windows-1.5_r2/platforms\mine\image
s/kernel-qemu"
emulator: argv[03] = "-initrd"
emulator: argv[04] = "D:\android\android-sdk-windows-1.5_r2/platforms\mine\image
s/ramdisk.img"
emulator: argv[05] = "-nand"
emulator: argv[06] = "system,size=0x4200000,initfile=D:\android\android-sdk-wind
ows-1.5_r2/platforms\mine\images/system.img"
emulator: argv[07] = "-nand"
emulator: argv[08] = "userdata,size=0x4200000,file=C:\Documents and Settings\Vis
ti\.android\avd\visti.avd/userdata-qemu.img"
emulator: argv[09] = "-nand"
emulator: argv[10] = "cache,size=0x4200000,file=C:\Documents and Settings\Visti\
.android\avd\visti.avd/cache.img"
emulator: argv[11] = "-serial"
emulator: argv[12] = "android-kmsg"
emulator: argv[13] = "-serial"
emulator: argv[14] = "android-qemud"
emulator: argv[15] = "-append"
emulator: argv[16] = "qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS
1 android.ndns=1"
emulator: argv[17] = "-m"
emulator: argv[18] = "288"
emulator: mapping 'system' NAND image to C:\DOCUME~1\Visti\LOCALS~1\Temp\\Androi
dEmulator\TMP1B.tmp
emulator: using 'winaudio' audio input backend
emulator: using 'winaudio' audio output backend
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: D:\android\android-sdk-windows-1.5_r2\tools\ddms.bat
emulator: ping command: C:\WINDOWS\system32\cmd.exe /C "D:\android\android-sdk-w
indows-1.5_r2\tools\ddms.bat" ping emulator 1.9

Android Emulator startup does not complete

Hi,
the Android emulator does not startup until complete. It hangs in an infinite loop whilst showing the animated Android logo.
I was patient and tried it multiple times and also left it run over night, but it did not finish. I expect do see the standard Android Home screen.
What are the settings to bring it to run?
OS: Ubuntu 10.10
console out:
Code:
tuxbook:~$ emulator -version
Android emulator version 8.0 (build_id OPENMASTER-77661)
...
tuxbook:~$ emulator -avd Archos_101 -verbose
emulator: found SDK root at /home/me/Programmierung/android-sdk-linux_86
emulator: root virtual device file at /home/me/.android/avd/Archos_101.ini
emulator: virtual device content at /home/me/.android/avd/Archos_101.avd
emulator: virtual device config file: /home/me/.android/avd/Archos_101.avd/config.ini
emulator: locking user data image at /home/me/.android/avd/Archos_101.avd/userdata-qemu.img
emulator: locking cache image at /home/me/.android/avd/Archos_101.avd/cache.img
emulator: locking SD Card image at /home/me/.android/avd/Archos_101.avd/sdcard.img
emulator: 'magic' skin format detected: 1024x600
emulator: autoconfig: -skin 1024x600
emulator: keyset loaded from: /home/me/.android/default.keyset
emulator: argv[00] = "emulator"
emulator: argv[01] = "-kernel"
emulator: argv[02] = "/home/me/Programmierung/android-sdk-linux_86/platforms/android-8/images//kernel-qemu"
emulator: argv[03] = "-initrd"
emulator: argv[04] = "/home/me/Programmierung/android-sdk-linux_86/platforms/android-8/images//ramdisk.img"
emulator: argv[05] = "-nand"
emulator: argv[06] = "system,size=0x4e00000,initfile=/home/me/Programmierung/android-sdk-linux_86/platforms/android-8/images//system.img"
emulator: argv[07] = "-nand"
emulator: argv[08] = "userdata,size=0x4200000,file=/home/me/.android/avd/Archos_101.avd/userdata-qemu.img"
emulator: argv[09] = "-nand"
emulator: argv[10] = "cache,size=0x4200000,file=/home/me/.android/avd/Archos_101.avd/cache.img"
emulator: argv[11] = "-hda"
emulator: argv[12] = "/home/me/.android/avd/Archos_101.avd/sdcard.img"
emulator: argv[13] = "-serial"
emulator: argv[14] = "android-kmsg"
emulator: argv[15] = "-serial"
emulator: argv[16] = "android-qemud"
emulator: argv[17] = "-lcd-density"
emulator: argv[18] = "160"
emulator: argv[19] = "-append"
emulator: argv[20] = "qemu=1 console=ttyS0 android.checkjni=1 android.qemud=ttyS1"
emulator: argv[21] = "-m"
emulator: argv[22] = "96"
emulator: argv[23] = "-clock"
emulator: argv[24] = "unix"
emulator: registered 'boot-properties' qemud service
emulator: mapping 'system' NAND image to /tmp/android/emulator-ZI662H
emulator: rounding devsize up to a full eraseunit, now 4e1e000
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '16m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: using 'esd' audio input backend
emulator: using 'esd' audio output backend
emulator: Trace file name is not set
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /home/me/Programmierung/android-sdk-linux_86/tools/ddms
emulator: ping command: /home/me/Programmierung/android-sdk-linux_86/tools/ddms ping emulator standalone
Thanks in advance,
schibbl

[Q] Android emulator (div by zero)

I got intresting situation with following code:
Code:
static void DivideByZero() {
// volatile to prevent compiler optimizations.
volatile float zero = 0.0f;
volatile float result __attribute__((unused)) = 123.0f / zero;
}
DivideByZero();
int raised = fetestexcept(FE_DIVBYZERO | FE_OVERFLOW);
ASSERT_TRUE((raised & FE_DIVBYZERO) != 0);
When I run my qemu device witout KVM support I got following results:
command line:android -avd x86 -qemu
Code:
FE_DIVBYZERO !=0; //and it's ok
But when I run same source without KVM support:
command line:android -avd x86 -qemu -disable-kvm
Code:
FE_DIVBYZERO ==0; //and it's not ok
As I understand this situation, it's happens because in mxcsr register bit (div by zero) is not setted, by why this bit is not setted i don't understand. Any ideas?
System: Linux

[Q] Partiion table

What partitions there are in out tablet?
"fastboot getvar all" gets this:
bootloader
recovery
boot
system
cache
userdata
Also i can find such list:
mmcblk0boot0
mmcblk0boot1
mmcblk0 ... 8
(and mmcblk1 is external uSD card)
What is tre partition table (and its sizes, for 32G model), and what is function (and content) of these partitions?
tijl-comdor said:
What partitions there are in out tablet?
"fastboot getvar all" gets this:
bootloader
recovery
boot
system
cache
userdata
Also i can find such list:
mmcblk0boot0
mmcblk0boot1
mmcblk0 ... 8
(and mmcblk1 is external uSD card)
What is tre partition table (and its sizes, for 32G model), and what is function (and content) of these partitions?
Click to expand...
Click to collapse
mmcblk0 layout
All dumps were done on Asus Eee Pad Transformer Infinity TF700T, 64GB version, firmware 9.4.5.26, locked
mmcblk0 off-partition section
Offset: 0 (0x0)
Size: 38273024 (0x2480000)
Read command: busybox dd if=/dev/block/mmcblk0 of=/mnt/sdcard/mmcblk0pre1.img bs=524288 count=73
Offset: 0 (0x0)
Size: 3670016 (0x380000)
Contains: Zeroes
Purpose: Unknown
Extract command: dd if=mmcblk0pre1.img of=mmcblk0pre1s1.img bs=3670016 count=1
Process command: tr -d '\0' <mmcblk0pre1s1.img >mmcblk0pre1s1nz.img # mmcblk0pre1s1nz.img must be empty file
Offset: 3670016 (0x380000)
Contains: Recovery kernel image followed by zeroes
Size: 8388608 (0x800000)
Extract command: dd if=mmcblk0pre1.img of=mmcblk0pre1s2.img bs=524288 skip=7 count=16
Process commands:
perl split_bootimg.pl mmcblk0pre1s2.img
mkdir mmcblk0pre1s2.img-ramdisk
cd mmcblk0pre1s2.img-ramdisk
zcat ../mmcblk0pre1s2.img-ramdisk.gz | cpio -i
cd ..
# end Process commands
Offset: 12058624 (0xb80000)
Contains: Regular boot kernel image followed by zeroes
Size: 8388608 (0x800000)
Extract command: dd if=mmcblk0pre1.img of=mmcblk0pre1s3.img bs=524288 skip=23 count=16
Process commands:
perl split_bootimg.pl mmcblk0pre1s3.img
mkdir mmcblk0pre1s3.img-ramdisk
cd mmcblk0pre1s3.img-ramdisk
zcat ../mmcblk0pre1s3.img-ramdisk.gz | cpio -i
cd ..
# end Process commands
Offset: 20447232 (0x1380000)
Contains: Block of 16 bytes followed by 0x2de0 hexadecimal numbers followed by FF
Size: 12288 (0x3000)
Extract command: dd if=mmcblk0pre1.img of=mmcblk0pre1s4.img bs=524288 skip=39
Vital data:
Extract command: dd if=mmcblk0pre1s4.img of=mmcblk0pre1s4ss2.img bs=4096 skip=3
Binary part of vital data:
Extract command: dd if=mmcblk0pre1s4ss1.img of=mmcblk0pre1s4ss1ch1.img bs=16 count=1
Hexadecimal part of vital data:
Extract command: dd if=mmcblk0pre1s4ss1.img of=mmcblk0pre1s4ss1ch2.img bs=16 count=734 skip=1
Process command: unhex <mmcblk0pre1s4ss1ch2.img >mmcblk0pre1s4ss1ch2bin.img
FF part of vital data:
Extract command: dd if=mmcblk0pre1s4ss1.img of=mmcblk0pre1s4ss1ch3.img bs=16 skip=735
Process command: tr -d '\377' <mmcblk0pre1s4ss1ch3.img >mmcblk0pre1s4ss1ch3nff.img # mmcblk0pre1s4ss1ch3nff.img must be empty file
Zeroes:
Extract command: dd if=mmcblk0pre1s4.img of=mmcblk0pre1s4ss1.img bs=4096 count=3
Process command: tr -d '\0' <mmcblk0pre1s4ss2.img >mmcblk0pre1s4ss2nz.img # mmcblk0pre1s4ss2nz.img must be empty file
Purpose: Probably encrypted bootloader
mmcblk0p1
Offset: 38273024 (0x2480000)
Size: 805306368 (0x30000000)
File system size: 196608 * 4096 = 805306368 (fully occupies partition)
Format: Linux ext4 filesystem
Mounted at: /system
Mount options: read only, extended attributes, ACL
Permissions: only root can manipulate
Contains: Base system and embedded applications
Purpose: Base system
mmcblk0p2
Offset: 843579392 (0x32480000)
Size: 448790528 (0x1ac00000)
File system size: 109568 * 4096 = 448790528 (fully occupies partition)
Format: Linux ext4 filesystem
Mounted at: /cache
Mount options: read/write, no SUID, no device nodes, no atime
Permissions: only root can manipulate, UID system and GID cache can read and write
Contains: Cache
Purpose: Application cache
Note: The volume has the same UUID as mmcblk0p1
mmcblk0p3
Offset: 1292369920 (0x4d080000)
Size: 2097152 (0x200000)
File system size: 512 * 4096 = 2097152 (fully occupies partition)
Linux rev 1.0 ext3 filesystem
Not mounted
Permissions: GID system can manipulate
Contains: Empty file system
Purpose: Recovery /misc
Referenced by: /system/lib/libandroid_runtime.so recovery ramdisk: /etc/recovery.fstab
Note: File system is referenced in recovery as emmc, not ext3!
mmcblk0p4
Offset: 1294467072 (0x4d280000)
Size: 855638016 (0x33000000)
File system size: 208896 * 4096 = 855638016
Linux rev 1.0 ext3 filesystem
Not mounted
Permissions: GID system can manipulate
Contains: Empty file system
Purpose: Recovery /staging
Referenced by: recovery ramdisk: init.rc /etc/recovery.fstab
mmcblk0p5
Offset: 2150105088 (0x80280000)
Size: 5242880 (0x500000)
File system size: 5092 * 1024 = 5147488
Format: FAT32 file system, no partition table, MS-DOS "Non-system disk" boot block
Not mounted
Permissions: only root can manipulate
Contains: File system with files:
Serial numbers (ISN, PPID, SSN, UUID)
Calibration data (AL3010 light sensor, AMI304 magnetic sensor, KXTF9 motion sensor)
Purpose: Device specific unique system data, mounted as /btmac during Android boot
Referenced by: /system/bin/wifimacwriter /system/bin/brcm_patchram_plus /system/bin/sensors-config /system/bin/sixpair ramdisk: /init recovery ramdisk: /etc/recovery.fstab /init
mmcblk0p5 off file-system area
Offset in section: 5147488 (0x4e8b60)
Size: 28672 (0x7000)
Read command: busybox dd if=/dev/block/mmcblk0p5 of=/mnt/sdcard/mmcblk0p5s2.img bs=1024 skip=5092
Process command: tr -d '\0' <mmcblk0p5s2.img >mmcblk0p5s2nz.img # mmcblk0p5s2nz.img must be empty file
mmcblk0p6
Offset: 2155347968 (0x80780000)
Size: 524288 (0x80000)
Format: binary data
Permissions: UID drm can manipulate
Contains: 208 bytes of binary data, the rest are zeroes
Purpose: DRM, probably contains encrypted DRM key
Referenced by: /system/bin/wvdrmserver /system/vendor/lib/drm/libdrmwvmplugin.so
mmcblk0p7
Offset: 2155872256 (0x80800000)
Size: 5242880 (0x500000)
Format: empty
Contains: Zeroes
Purpose: Unknown
mmcblk0p8
Offset: 2161115136 (0x80d00000)
Size: 61415620608 (0xe4ca80000)
File system size: 14994040 * 4096 = 61415587840
Format: Linux ext4 filesystem
Mounted at: /data
Mount options: read/write, no SUID, no device nodes, no atime
Permissions: only root can manipulate, read and write are directory specific
Contains: User applications, user data, and virtual internal SD card
Note: /data/media is mounted via UID/GID stripping FUSE as /mnt/sdcard
mmcblk0p8 off file-system area
Offset in section: 61415587840 (0xe4ca78000)
Size: 32768 (0x8000)
Read command: busybox dd if=/dev/block/mmcblk0p8 of=/mnt/sdcard/mmcblk0p8s2.img bs=4096 skip=14994040
mmcblk0 off-partition section
Offset: 63576735744 (0xecd780000)
Size: 524288 (0x80000)
Read command: busybox dd if=/dev/block/mmcblk0 of=/mnt/sdcard/mmcblk0post8.img bs=524288 skip=121263
Process command: tr -d '\0' <mmcblk0p8s2.img >mmcblk0p8s2nz.img # mmcblk0p8s2nz.img must be empty file
Offset: 63576735744 (0xecd780000)
Offset in section: 0 (0x0)
Size: 507392 (0x7be00)
Contains: Zeroes
Purpose: Unknown
Extract command: dd if=mmcblk0post8.img of=mmcblk0post8s1.img bs=507392 count=1
Process command: tr -d '\0' <mmcblk0post8s1.img >mmcblk0post8s1nz.img # mmcblk0post8s1nz.img must be empty file
Offset: 63577243136 (0xecd7fbe00)
Offset in section: 507392 (0x7be00)
Size: 16896 (0x4200)
Contains: EFI Partition table (partition names: APP, CAC, MSC, USP, PER, YTU, CRA, UDA)
Extract command: dd if=mmcblk0post8.img of=mmcblk0post8s2.img bs=512 skip=991
Purpose: Partition table
Total size of mmcblk0: 63577260032 (0xecd800000)
Notes:
can manipulate = can read, write partition vital data, only root can mount
can read, write = can read, write partition file system contents
Read commands are ran on the Transformer
Extract and process commands are run anywhere, with pre-read image file in the current directory.
You need dd with large files support. Vanilla dd on TF700T does not support large files. Busybox dd does.

Android Emulator Serial COM1 port crashes on data incoming from windows

Hi,
I have the following set:
* Windows 10 pro
* Android Studio Emulator 27.3.10
* Virtual Windows COM port bridge COM1 <--> COM2
I start the emulator with a clean API 25
target Android 7.1.1 for x86
with the following windows command:
Code:
emulator @Device_API_25 -qemu -serial COM1
when running:
Code:
adb shell "dmesg|grep tty"
i can see that the serial port was forwarded:
[ 0.000000] console [ttyS0] enabled
[ 2.399629] 00:04: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.430745] 00:05: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Click to expand...
Click to collapse
afterwards i run the adb commands:
Code:
adb root
adb shell "setenforce 0"
Now,
when sending from android shell:
Code:
echo test >/dev/ttyS1
I can see the outcome in windows COM2 port
but, when trying to send from windows:
Code:
echo test > COM2
the emulator crashes with the following information:
emulator: ERROR: detected a hanging thread 'QEMU2 main loop'. No response for 15058 ms
Click to expand...
Click to collapse
and the emulator crash data is (partially):
Operating system: Windows NT
10.0.17134
CPU: amd64
family 6 model 61 stepping 4
4 CPUs
Crash reason: EXCEPTION_ACCESS_VIOLATION_WRITE
Crash address: 0x0
Assertion: Unknown assertion type 0x00000000
Process uptime: not available
Click to expand...
Click to collapse
did anyone encountered such an issue ?

Categories

Resources