[Android Software/Hacking General [Developers Only]] amarullz:
NOT WORK ON YOUR ROM?, DON'T WORRY I WILL HELP YOU

This script (AD2SDX) alghoritm should be compatible in any android phone that support init.d, busybox and rooted, but it still depended on how the ROM place the files in your phone.

To make this script compatible with more ROM+PHONE, you can send me your file system information with this sh script (also available in attachment to download):

#!/bin/sh
echo "AD2SDX - Dump Logs...";
echo " by amarullz [at] yahoo [dot] com"
echo ""
echo "WARNING!!!"
echo "This script WILL dump an Informations About your Storages,"
echo "If you allow me to know your filesystem structures,"
echo "maybe I can help to improve AD2SDX Compatibility..."
echo ""
echo "This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME"
echo "SERIAL NUMBER and ANY PERSONAL INFORMATIONS..."
echo ""
echo "But Please provide me your Device Name and ROM when you"
echo "submit it on AD2SDX Thread..."
echo ""
sleep 1
echo "Mounting data, sd-ext, and sdcard..."
mount /data
mount /sd-ext
mount /system
mount /sdcard
echo ""

echo "Dumping FileSystem..."
echo "DF" > /sdcard/ad2sdx-dump.txt
echo "==" >> /sdcard/ad2sdx-dump.txt
df >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on data files..."
cd /data
echo "LIST /data" >> /sdcard/ad2sdx-dump.txt
echo "==========" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on /sd-ext files..."
cd /sd-ext
echo "LIST /sd-ext" >> /sdcard/ad2sdx-dump.txt
echo "============" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on /system files..."
cd /system
echo "LIST /system" >> /sdcard/ad2sdx-dump.txt
echo "============" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo "Dumping File List on /system/etc/init.d files..."
cd /system/etc/init.d
echo "LIST init.d" >> /sdcard/ad2sdx-dump.txt
echo "===========" >> /sdcard/ad2sdx-dump.txt
ls -la >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt
echo "" >> /sdcard/ad2sdx-dump.txt

echo ""
echo "Finished... Thanks..."

HOW TO DUMP?

You should use adb, or Script Manager as root

Copy ad2sdx-dumpinfo.sh into your /sdcard/

(for ADB): Run "sh ad2sdx-dumpinfo.sh" in adb shell

Copy "/sdcard/ad2sdx-dump.txt" from your phone to your pc ( If you not trust me, you can review it before you send it to me )

Post comments + content of "/sdcard/ad2sdx-dump.txt" in this thread "use CODE or attachment"

COPY FILES WITH ADB

From PC to Phone

adb push c:\ad2sdx-dumpinfo.sh /sdcard/

From Phone to PC

adb pull /sdcard/ad2sdx-dump.txt c:\ad2sdx-dump.txt

SHELL

adb shell

* You are more advance than me about it :o...

WARNING!!!

This script WILL dump an Informations About your Storages,

If you allow me to know your filesystem structures,

maybe I can help to improve AD2SDX Compatibility...

This script WILL NOT dump any PHONE NUMBER, IMEI, DEVICE NAME

SERIAL NUMBER and ANY PERSONAL INFORMATIONS...

USE IT YOUR OWN RISK!!!

But Please provide me your Device Name and ROM when you

submit it on AD2SDX Thread...​

EXAMPLE DUMP FILE

DF
==
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 206664 64 206600 0% /dev
tmpfs 206664 0 206664 0% /mnt/asec
tmpfs 206664 4 206660 0% /mnt/asec/download
tmpfs 206664 0 206664 0% /mnt/obb
tmpfs 8192 0 8192 0% /app-cache
/dev/block/mtdblock3 148480 124428 24052 84% /system
/dev/block/mtdblock5 294528 152336 142192 52% /sd-ext
/dev/block/mtdblock4 5120 1228 3892 24% /cache
/dev/block/mmcblk0p2 1968876 547236 1321624 29% /data
/dev/block/vold/179:1
13656560 4473152 9183408 33% /mnt/sdcard
/dev/block/vold/179:1
13656560 4473152 9183408 33% /mnt/secure/asec

LIST /data
==========
drwxrwx--x 13 1000 1000 4096 Oct 20 15:16 .
drwxr-xr-x 16 0 0 0 Oct 20 15:16 ..
-rwxrwxrwx 1 0 0 1069 Oct 20 08:17 99SuperCharger.sh
lrwxrwxrwx 1 0 0 13 Oct 20 07:49 DxDrm -> /sd-ext/DxDrm
-rw-rw-rw- 1 0 0 14 Oct 20 08:17 SuperChargerAdj
-rw-rw-rw- 1 0 0 34 Oct 20 08:17 SuperChargerMinfree
-rw-rw-rw- 1 0 0 4 Oct 20 08:17 SuperChargerOptions
drwxrwxr-x 2 1000 1000 4096 Oct 20 13:32 anr
drwxrwx--x 2 1000 1000 4096 Oct 20 08:05 app
drwxrwx--x 2 1000 1000 4096 Oct 20 07:50 app-private
drwxr-xr-x 2 0 0 12288 Oct 20 08:20 app_s
drwx------ 5 1000 1000 4096 Oct 20 15:52 backup
lrwxrwxrwx 1 0 0 9 Oct 20 07:49 d -> /sd-ext/d
lrwxrwxrwx 1 0 0 20 Oct 20 07:49 dalvik-cache -> /sd-ext/dalvik-cache
drwxrwx--x 59 1000 1000 12288 Oct 20 08:22 data
lrwxrwxrwx 1 0 0 14 Oct 20 08:07 data_s -> /sd-ext/data_s
lrwxrwxrwx 1 0 0 17 Oct 20 07:49 dontpanic -> /sd-ext/dontpanic
drwxr-xr-x 2 0 0 4096 Oct 20 07:40 framework_s
lrwxrwxrwx 1 0 0 13 Oct 20 07:49 hosts -> /sd-ext/hosts
lrwxrwxrwx 1 0 0 13 Oct 20 07:49 htcfs -> /sd-ext/htcfs
drwxr-xr-x 2 0 0 4096 Oct 20 07:40 lib_s
lrwxrwxrwx 1 0 0 13 Oct 20 07:49 local -> /sd-ext/local
drwxr-xr-x 2 0 0 16384 Oct 20 07:49 lost+found
lrwxrwxrwx 1 0 0 12 Oct 20 07:49 misc -> /sd-ext/misc
lrwxrwxrwx 1 0 0 16 Oct 20 07:49 property -> /sd-ext/property
drwx------ 3 1000 1000 4096 Oct 20 07:50 secure
drwxrwxr-x 9 1000 1000 4096 Oct 21 01:00 system
-rw-r--r-- 1 0 0 3107 Oct 20 15:16 zipalign.log

LIST /sd-ext
============
drwxrwx--x 1 1000 1000 2048 Oct 20 07:38 .
drwxr-xr-x 16 0 0 0 Oct 20 15:16 ..
lrwxrwxrwx 1 0 0 23 Oct 20 08:22 99SuperCharger.sh -> /data/99SuperCharger.sh
dr-xr-xr-x 1 0 0 2048 Oct 20 07:49 DxDrm
lrwxrwxrwx 1 0 0 21 Oct 20 08:22 SuperChargerAdj -> /data/SuperChargerAdj
lrwxrwxrwx 1 0 0 25 Oct 20 08:22 SuperChargerMinfree -> /data/SuperChargerMinfree
lrwxrwxrwx 1 0 0 25 Oct 20 08:22 SuperChargerOptions -> /data/SuperChargerOptions
lrwxrwxrwx 1 0 0 9 Oct 20 08:07 anr -> /data/anr
lrwxrwxrwx 1 0 0 9 Oct 20 07:49 app -> /data/app
lrwxrwxrwx 1 0 0 17 Oct 20 07:49 app-private -> /data/app-private
lrwxrwxrwx 1 0 0 11 Oct 20 07:49 app_s -> /data/app_s
lrwxrwxrwx 1 0 0 12 Oct 20 08:07 backup -> /data/backup
drwxr-xr-x 16 0 0 0 Jan 1 1970 d
drwxrwx--x 1 1000 1000 2048 Oct 20 07:49 dalvik-cache
lrwxrwxrwx 1 0 0 10 Oct 20 07:49 data -> /data/data
drwxrwxrwx 1 0 0 2048 Oct 20 07:49 data_s
drwxr-x--- 1 0 1007 2048 Oct 20 07:49 dontpanic
lrwxrwxrwx 1 0 0 11 Oct 20 07:49 drm -> /data/local
lrwxrwxrwx 1 0 0 17 Oct 20 07:49 framework_s -> /data/framework_s
-rw-r--r-- 1 0 0 708302 Aug 1 2008 hosts
drwxr-xr-x 16 0 0 0 Oct 20 15:16 htcfs
lrwxrwxrwx 1 0 0 11 Oct 20 07:49 lib_s -> /data/lib_s
drwxrwx--x 1 2000 2000 2048 Oct 20 07:49 local
drwxrwx--- 1 0 0 2048 Oct 20 07:49 lost+found
drwxrwx--t 1 1000 9998 2048 Oct 20 15:16 misc
drwx------ 1 0 0 2048 Oct 20 21:54 property
lrwxrwxrwx 1 0 0 12 Oct 20 08:07 secure -> /data/secure
lrwxrwxrwx 1 0 0 12 Oct 20 08:07 system -> /data/system
lrwxrwxrwx 1 0 0 18 Oct 20 08:07 zipalign.log -> /data/zipalign.log

LIST /system
============
drwxr-xr-x 1 0 0 2048 Oct 20 07:41 .
drwxr-xr-x 16 0 0 0 Oct 20 15:16 ..
lrwxrwxrwx 1 0 0 13 Oct 20 07:41 app -> /sd-ext/app_s
drwxr-xr-x 1 0 2000 2048 Oct 20 07:41 bin
-rw-r--r-- 1 0 0 7966 Oct 20 08:17 build.prop
-rw-r--r-- 1 0 0 7437 Oct 20 08:17 build.prop.unsuper
drwxr-xr-x 1 0 0 2048 Oct 20 07:40 customize
drwxr-xr-x 1 0 0 2048 Oct 20 07:41 etc
drwxr-xr-x 1 0 0 2048 Oct 20 07:40 fonts
lrwxrwxrwx 1 0 0 19 Oct 20 07:41 framework -> /sd-ext/framework_s
drwxr-xr-x 1 0 0 2048 Oct 20 07:47 lib
drwxr-xr-x 1 0 0 2048 Oct 20 07:40 lost+found
drwxr-xr-x 1 0 0 2048 Oct 20 07:41 media
drwxr-xr-x 1 0 0 2048 Oct 20 07:41 usr
drwxr-xr-x 1 0 2000 2048 Oct 20 07:41 xbin

LIST init.d
===========
drwxr-xr-x 1 0 2000 2048 Oct 20 07:47 .
drwxr-xr-x 1 0 0 2048 Oct 20 07:41 ..
-rwxr-xr-x 1 0 0 446 Oct 20 13:36 00aroc
-rwxr-xr-x 1 0 2000 1167 Aug 1 2008 02ramtweaks
-rwxrwxrwx 1 0 0 4151 Oct 20 07:47 40a2sd
-rwxr-xr-x 1 0 2000 1938 Aug 1 2008 77tweaks
-rwxr-xr-x 1 0 2000 1499 Aug 1 2008 97zipalign
-rwxrwxrwx 1 0 0 1097 Oct 20 08:17 99SuperCharger
-rwxr-xr-x 1 0 2000 176 Aug 1 2008 99complete