[GUIDE] How to port Stock/GB/CM7/CM9/ICS/CM10/JB Based ROMs [Update: Sept.25.2012]

Search This thread

hariprasadiit

Senior Member
Jan 13, 2011
69
58
Bangalore
Porting CM10 to allwinner a31

somebody please help !!!

Logtcat :
Code:
D/AndroidRuntime( 1860): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 1860): CheckJNI is OFF
D/dalvikvm( 1860): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1860): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1860): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1860): Added shared lib libnativehelper.so 0x0
I/SamplingProfilerIntegration( 1860): Profiling disabled.
I/Zygote  ( 1860): Preloading classes...
D/dalvikvm( 1860): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 1860): GC_EXPLICIT freed 36K, 95% free 485K/8192K, paused 0ms+1ms, total 3ms
W/Zygote  ( 1860): Class not found for preloading: android.animation.ValueAnimator$2
W/Zygote  ( 1860): Class not found for preloading: android.animation.ValueAnimator$3
W/Zygote  ( 1860): Class not found for preloading: android.animation.ValueAnimator$4
W/Zygote  ( 1860): Class not found for preloading: android.animation.ValueAnimator$5
W/Zygote  ( 1860): Class not found for preloading: android.content.res.Resources$1
W/Zygote  ( 1860): Class not found for preloading: android.database.sqlite.SQLiteCompiledSql
W/Zygote  ( 1860): Class not found for preloading: android.database.sqlite.SQLiteDatabase$DatabaseReentrantLock
D/TextLayoutCache( 1860): Using debug level = 0 - Debug Enabled = 0
E/dalvikvm( 1860): ERROR: couldn't find native method
E/dalvikvm( 1860): Requested: Landroid/media/MediaPlayer;.getTrackList:()[Landroid/media/MediaPlayer$TrackInfoVendor;
E/dalvikvm( 1860): Candidate: Landroid/media/MediaPlayer;.getTrackList:()[Landroid/media/MediaPlayer$TrackInfo;
E/JNIHelp ( 1860): RegisterNatives failed for 'android/media/MediaPlayer', aborting
F/libc    ( 1860): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1860 (zygote)
I/DEBUG   ( 1199): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 1199): Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.3/IML74K/BGLP8:user/release-keys'
I/DEBUG   ( 1199): pid: 1860, tid: 1860, name: zygote  >>> zygote <<<
I/DEBUG   ( 1199): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG   ( 1199):     r0 00000027  r1 deadbaad  r2 4008baec  r3 00000000
I/DEBUG   ( 1199):     r4 00000000  r5 beff8744  r6 407652b9  r7 00000057
I/DEBUG   ( 1199):     r8 6febf234  r9 00000001  sl 00000000  fp 00000000
I/DEBUG   ( 1199):     ip 40394fe0  sp beff8740  lr 4005da11  pc 4005a0ae  cpsr 60000030
I/DEBUG   ( 1199):     d0  74726f6261202c27  d1  654d2f616964656d
I/DEBUG   ( 1199):     d2  7254247265796167  d3  3b6f666e496b6369
I/DEBUG   ( 1199):     d4  6cb83d806cb83d48  d5  6cb83df06cb83db8
I/DEBUG   ( 1199):     d6  6cb83e606cb83e28  d7  6cb83ed06cb83e98
I/DEBUG   ( 1199):     d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 1199):     d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 1199):     d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 1199):     d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 1199):     d16 00000000047b0c12  d17 00000000047aff0c
I/DEBUG   ( 1199):     d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 1199):     d20 0000000000000000  d21 0000000000000000
I/DEBUG   ( 1199):     d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 1199):     d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 1199):     d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 1199):     d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 1199):     d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 1199):     scr 60000010
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): backtrace:
I/DEBUG   ( 1199):     #00  pc 000180ae  /system/lib/libc.so
I/DEBUG   ( 1199):     #01  pc 0000dbd4  /system/lib/libc.so (abort+4)
I/DEBUG   ( 1199):     #02  pc 00000955  /system/lib/libnativehelper.so (jniRegisterNativeMethods+72)
I/DEBUG   ( 1199):     #03  pc 0001267f  /system/lib/libmedia_jni.so (JNI_OnLoad+42)
I/DEBUG   ( 1199):     #04  pc 0004f6e3  /system/lib/libdvm.so (dvmLoadNativeCode(char const*, Object*, char**)+450)
I/DEBUG   ( 1199):     #05  pc 000660a5  /system/lib/libdvm.so
I/DEBUG   ( 1199):     #06  pc 0004f21f  /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+174)
I/DEBUG   ( 1199):     #07  pc 000272e0  /system/lib/libdvm.so
I/DEBUG   ( 1199):     #08  pc 0002bbe8  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG   ( 1199):     #09  pc 0005f871  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
I/DEBUG   ( 1199):     #10  pc 0005f89b  /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
I/DEBUG   ( 1199):     #11  pc 0006a5ad  /system/lib/libdvm.so (dvmInitClass+1036)
I/DEBUG   ( 1199):     #12  pc 0006a721  /system/lib/libdvm.so (dvmFindClass(char const*, Object*)+16)
I/DEBUG   ( 1199):     #13  pc 000641df  /system/lib/libdvm.so (dvmFindClassByName(StringObject*, Object*, bool)+78)
I/DEBUG   ( 1199):     #14  pc 00065e95  /system/lib/libdvm.so
I/DEBUG   ( 1199):     #15  pc 000272e0  /system/lib/libdvm.so
I/DEBUG   ( 1199):     #16  pc 0002bbe8  /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG   ( 1199):     #17  pc 0005f871  /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
I/DEBUG   ( 1199):     #18  pc 000496f3  /system/lib/libdvm.so
I/DEBUG   ( 1199):     #19  pc 000447fd  /system/lib/libandroid_runtime.so
I/DEBUG   ( 1199):     #20  pc 000452df  /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
I/DEBUG   ( 1199):     #21  pc 00000dcf  /system/bin/app_process
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): stack:
I/DEBUG   ( 1199):          beff8700  6ccb4580  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff8704  40058d45  /system/lib/libc.so (free+12)
I/DEBUG   ( 1199):          beff8708  6ccb3900  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff870c  6ccb3c80  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff8710  6ccb32e0  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff8714  00000034  
I/DEBUG   ( 1199):          beff8718  40086754  /system/lib/libc.so
I/DEBUG   ( 1199):          beff871c  4008bcf0  
I/DEBUG   ( 1199):          beff8720  00000000  
I/DEBUG   ( 1199):          beff8724  4005da11  /system/lib/libc.so (_fwalk+32)
I/DEBUG   ( 1199):          beff8728  00000001  
I/DEBUG   ( 1199):          beff872c  beff8744  [stack]
I/DEBUG   ( 1199):          beff8730  407652b9  /system/lib/libdvm.so
I/DEBUG   ( 1199):          beff8734  00000057  
I/DEBUG   ( 1199):          beff8738  df0027ad  
I/DEBUG   ( 1199):          beff873c  00000000  
I/DEBUG   ( 1199):     #00  beff8740  beff875c  [stack]
I/DEBUG   ( 1199):          beff8744  fffffbdf  
I/DEBUG   ( 1199):          beff8748  41153b90  /dev/ashmem/dalvik-heap (deleted)
I/DEBUG   ( 1199):          beff874c  410684c8  [heap]
I/DEBUG   ( 1199):          beff8750  6feb7672  /system/lib/libmedia_jni.so
I/DEBUG   ( 1199):          beff8754  6d4f3c43  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff8758  410684c8  [heap]
I/DEBUG   ( 1199):          beff875c  410684c8  [heap]
I/DEBUG   ( 1199):          beff8760  6feb7672  /system/lib/libmedia_jni.so
I/DEBUG   ( 1199):          beff8764  4004fbd8  /system/lib/libc.so (__pthread_clone)
I/DEBUG   ( 1199):     #01  beff8768  6d4f3c43  /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG   ( 1199):          beff876c  40392959  /system/lib/libnativehelper.so (jniRegisterNativeMethods+76)
I/DEBUG   ( 1199):     #02  beff8770  410684c8  [heap]
I/DEBUG   ( 1199):          beff8774  28300019  
I/DEBUG   ( 1199):          beff8778  6fe68308  
I/DEBUG   ( 1199):          beff877c  6fe68428  
I/DEBUG   ( 1199):          beff8780  00000000  
I/DEBUG   ( 1199):          beff8784  41069a80  [heap]
I/DEBUG   ( 1199):          beff8788  6fea4655  /system/lib/libmedia_jni.so (JNI_OnLoad)
I/DEBUG   ( 1199):          beff878c  6fea4683  /system/lib/libmedia_jni.so (JNI_OnLoad+46)
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near r2:
I/DEBUG   ( 1199):     4008bacc 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1199):     4008badc 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1199):     4008baec 00000001 00000000 00000000 00000000  ................
I/DEBUG   ( 1199):     4008bafc 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1199):     4008bb0c 00000000 00000000 00000000 00000000  ................
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near r5:
I/DEBUG   ( 1199):     beff8724 4005da11 00000001 beff8744 407652b9  ...@....D....Rv@
I/DEBUG   ( 1199):     beff8734 00000057 df0027ad 00000000 beff875c  W....'......\...
I/DEBUG   ( 1199):     beff8744 fffffbdf 41153b90 410684c8 6feb7672  .....;.A...Arv.o
I/DEBUG   ( 1199):     beff8754 6d4f3c43 410684c8 410684c8 6feb7672  C<Om...A...Arv.o
I/DEBUG   ( 1199):     beff8764 4004fbd8 6d4f3c43 40392959 410684c8  ...@C<OmY)9@...A
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near r6:
I/DEBUG   ( 1199):     40765298 43f8e8bd bbf5f01b 00058a6e fffffe60  ...C....n...`...
I/DEBUG   ( 1199):     407652a8 fffffe5c 00056b56 fffffe98 fffffce3  \...Vk..........
I/DEBUG   ( 1199):     407652b8 4ff0e92d b0854605 a803460c 469b4629  -..O.F...F..)F.F
I/DEBUG   ( 1199):     407652c8 f7fb4617 4621fe03 f7fc9803 4604fdfb  .F....!F.......F
I/DEBUG   ( 1199):     407652d8 4478483e 7f436800 493db13b 4a3d2004  >HxD.hC.;.=I. =J
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near r8:
I/DEBUG   ( 1199):     6febf214 6feb7627 6fea3a5d 6feb7645 6feb758d  'v.o]:.oEv.o.u.o
I/DEBUG   ( 1199):     6febf224 6fea3a11 6feb7657 6feb753e 6fea39cd  .:.oWv.o>u.o.9.o
I/DEBUG   ( 1199):     6febf234 6feb7de5 6feb75eb 6fea5f7d 6feb75dd  .}.o.u.o}_.o.u.o
I/DEBUG   ( 1199):     6febf244 6feb7627 6fea5d91 6feb7df4 6feb7e05  'v.o.].o.}.o.~.o
I/DEBUG   ( 1199):     6febf254 6fea61fd 6feb7e1f 6feb6207 6fea60bd  .a.o.~.o.b.o.`.o
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near ip:
I/DEBUG   ( 1199):     40394fc0 00000000 40092a4c 00000000 00000000  ....L*.@........
I/DEBUG   ( 1199):     40394fd0 00000000 400648c1 4005e3b5 4003e2f5  .....H.@...@...@
I/DEBUG   ( 1199):     40394fe0 4004fbd0 40064889 4005c7c9 4003e101  ...@.H.@...@...@
I/DEBUG   ( 1199):     40394ff0 40058d39 4006c63d 40060bd5 40060f8d  9..@=..@...@...@
I/DEBUG   ( 1199):     40395000 1d2000a6 6cb24d18 6cb24cc8 00000000  .. ..M.l.L.l....
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory near sp:
I/DEBUG   ( 1199):     beff8720 00000000 4005da11 00000001 beff8744  .......@....D...
I/DEBUG   ( 1199):     beff8730 407652b9 00000057 df0027ad 00000000  .Rv@W....'......
I/DEBUG   ( 1199):     beff8740 beff875c fffffbdf 41153b90 410684c8  \........;.A...A
I/DEBUG   ( 1199):     beff8750 6feb7672 6d4f3c43 410684c8 410684c8  rv.oC<Om...A...A
I/DEBUG   ( 1199):     beff8760 6feb7672 4004fbd8 6d4f3c43 40392959  rv.o...@C<OmY)9@
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): code around pc:
I/DEBUG   ( 1199):     4005a08c e000b164 6823461c d1fb2b00 68e3e026  d....F#h.+..&..h
I/DEBUG   ( 1199):     4005a09c 4a17b123 447a2401 47986014 20274911  #..J.$zD.`.G.I' 
I/DEBUG   ( 1199):     4005a0ac 70082400 ecc2f7f4 f7f52106 a902ee02  .$.p.....!......
I/DEBUG   ( 1199):     4005a0bc f04f2006 460a5380 94029304 f7f59403  . O..S.F........
I/DEBUG   ( 1199):     4005a0cc 4629e9e0 20024622 e9e8f7f5 ecaef7f4  ..)F"F. ........
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): code around lr:
I/DEBUG   ( 1199):     4005d9f0 41f0e92d 4c0b2600 447c4680 68a56824  -..A.&.L.F|D$h.h
I/DEBUG   ( 1199):     4005da00 e0076867 300cf9b5 dd022b00 47c04628  gh.....0.+..(F.G
I/DEBUG   ( 1199):     4005da10 35544306 d5f53f01 2c006824 4630d1ef  .CT5.?..$h.,..0F
I/DEBUG   ( 1199):     4005da20 81f0e8bd 00028ae6 43f0e92d fb01461f  ........-..C.F..
I/DEBUG   ( 1199):     4005da30 f8dff602 b0878058 44f8460c 8000f8d8  ....X....F.D....
I/DEBUG   ( 1199): 
I/DEBUG   ( 1199): memory map around fault addr deadbaad:
I/DEBUG   ( 1199):     befd8000-beff9000 [stack]
I/DEBUG   ( 1199):     (no map for address)
I/DEBUG   ( 1199):     ffff0000-ffff1000 [vectors]
I/ServiceManager( 1195): service 'media.audio_flinger' died
I/ServiceManager( 1195): service 'media.player' died
I/ServiceManager( 1195): service 'media.camera' died
I/ServiceManager( 1195): service 'media.audio_policy' died
I/Netd    ( 1865): Netd 1.0 starting
I/mediaserver( 1864): ServiceManager: 0x41a21d38
I/AudioFlinger( 1864): Using default 3000 mSec as standby time.
I/CameraService( 1864): CameraService started (pid=1864)
I/AudioPolicyManagerBase( 1864): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
I/AudioFlinger( 1864): loadHwModule() Loaded primary audio interface from Sunxi audio HW HAL (audio) handle 1
I/AudioFlinger( 1864): HAL output buffer size 1776 frames, normal mix buffer size 1776 frames
I/AudioMixer( 1864): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 1864): Using module 1 has the primary audio interface
I/AudioFlinger( 1864): AudioFlinger's thread 0x41a308c0 ready to run
W/AudioFlinger( 1864): Thread AudioOut_2 cannot connect to the power manager service
W/AudioFlinger( 1864): Thread AudioOut_2 cannot connect to the power manager service
I/AudioFlinger( 1864): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 3
I/AudioFlinger( 1864): loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 4
I/AudioPolicyService( 1864): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
E/BandwidthController( 1865): runIptablesCmd(): failed /system/bin/iptables -t raw -N bw_raw_PREROUTING res=256
E/BandwidthController( 1865): runIptablesCmd(): failed /system/bin/ip6tables -t raw -N bw_raw_PREROUTING res=256
D/MDnsDS  ( 1865): MDnsSdListener::Hander starting up
D/MDnsDS  ( 1865): MDnsSdListener starting to monitor
D/MDnsDS  ( 1865): Going to poll with pollCount 1

Thanks
 

rishabh.raj37

Senior Member
Jul 29, 2012
641
4,081
Ranchi
techxtras.com
I/Zygote ( 1860): Preloading classes...
D/dalvikvm( 1860): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 1860): GC_EXPLICIT freed 36K, 95% free 485K/8192K, paused 0ms+1ms, total 3ms
W/Zygote ( 1860): Class not found for preloading: android.animation.ValueAnimator$2
W/Zygote ( 1860): Class not found for preloading: android.animation.ValueAnimator$3
W/Zygote ( 1860): Class not found for preloading: android.animation.ValueAnimator$4
W/Zygote ( 1860): Class not found for preloading: android.animation.ValueAnimator$5
W/Zygote ( 1860): Class not found for preloading: android.content.res.Resources$1
W/Zygote ( 1860): Class not found for preloading: android.database.sqlite.SQLiteCompiledSql
W/Zygote ( 1860): Class not found for preloading: android.database.sqlite.SQLiteDatabase$DatabaseReentrantLock

Thanks

Problem in framework.jar
and those are the names of smalis. Decompile framework.jar and find out the problem with these files.
Good Luck:good:

&
This
F/libc ( 1860): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1860 (zygote)
Due to libc.so
 
Last edited:
  • Like
Reactions: cyrusalmighty

Red Devil

Senior Member
Oct 25, 2012
1,355
2,494
Mumbai
E/dalvikvm( 1860): ERROR: couldn't find native method
E/dalvikvm( 1860): Requested: Landroid/media/MediaPlayer;.getTrackList:()[Landroid/media/MediaPlayer$TrackInfoVendor;
E/dalvikvm( 1860): Candidate: Landroid/media/MediaPlayer;.getTrackList:()[Landroid/media/MediaPlayer$TrackInfo;
E/JNIHelp ( 1860): RegisterNatives failed for 'android/media/MediaPlayer', aborting

Maybe ths ?
 
  • Like
Reactions: hariprasadiit

Quinny899

Recognized Developer / Recognized Contributor
Jan 26, 2011
9,428
8,754
26
Salford, Greater Manchester, UK
quinny898.co.uk
can somebody please tell what the below log means !!!

Code:
I/SurfaceFlinger( 1733): SurfaceFlinger is starting
I/SurfaceFlinger( 1733): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
E/FramebufferNativeWindow( 1733): couldn't open framebuffer HAL (Not a typewriter)
E/FramebufferNativeWindow( 1733): couldn't open gralloc HAL (Not a typewriter)
E/SurfaceFlinger( 1733): Display subsystem failed to initialize. check logs. exiting...

Thanks a lot.

---------- Post added at 10:27 PM ---------- Previous post was at 10:21 PM ----------



It was problem with mediaplayer class.

It's not loading the libs in /system/lib/hw
Are they chmodded to 644? The directory to 755? Are they from your device?

Sent from my Galaxy Nexus using Tapatalk HD
 
  • Like
Reactions: hariprasadiit

hariprasadiit

Senior Member
Jan 13, 2011
69
58
Bangalore
It's not loading the libs in /system/lib/hw
Are they chmodded to 644? The directory to 755? Are they from your device?

Sent from my Galaxy Nexus using Tapatalk HD

Thanks a lot. that helped me.my fault, i didnt chmod lib folder.

but now i got different problem. please look at below log.

Code:
E/dalvikvm( 1741): ERROR: couldn't find native method
E/dalvikvm( 1741): Requested: Lcom/android/server/input/InputManagerService;.nativeResetTouchCalibration:(I)V
E/JNIHelp ( 1741): RegisterNatives failed for 'com/android/server/input/InputManagerService', aborting
F/libc    ( 1741): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 1741 (system_server)

dalvikvm is looking for InputManagerService , but there is no class folder like that inside framework.jar even in stock and also in CM10. please help me with that.

EDIT : sorry, it was in services.jar.sorry for asking with out searching for it.
 
Last edited:

lozohcum

Senior Member
Jan 14, 2013
1,919
1,744
Internety
I followed strictly and carefully tutorial but system gets reboot when I click any key during SetupWizzard. Does anyone nkow how to make rom working now?
 

KainXSS

Senior Member
Jan 29, 2011
238
54
does anyone know what I can do if I cannot get the usb to work and am having problems with the external sd not showing up on on the port.
 

KainXSS

Senior Member
Jan 29, 2011
238
54
You need to define right mount points in fstab.

the vold.fstab right, when I try to swap the vold or edit it, I get no boot.

it seems the flash is mounted in the spot the sdcard should be so its not being detected

this is the base
## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/external_sd auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
dev_mount udisk /mnt/usb_storage auto /devices/platform/usb20_host/usb /devices/platform/usb20_otg/usb1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1

## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

this is the port vold

## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/external_sd auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
#wlf04 dev_mount udisk /mnt/usb_storage auto /devices/platform/usb20_host/usb
dev_mount udisk /mnt/usb_storage auto /devices/platform/usb20_host/usb2 /devices/platform/usb20_otg/usb1 #wlf04 ++
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1

## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

should I edit another file after changing the vold to match?
 
Last edited:

KainXSS

Senior Member
Jan 29, 2011
238
54
k i made a little progress I fixed the usb connection and can mount but I can only mount sdcard or flash and because both get detected as sdcard for some reason
 

grodstrike

New member
Feb 18, 2013
1
0
Hello.
I want to port CM7 or CM10 from Motorola atrix 4g on my phone ZTE v970. They have the same processor NVIDIA Tegra 2 AP20H, but different amounts of RAM. What else you need to do, other than those described in this guide action? Additional changes in the kernel?
Thanks.
 

pokexpert

Senior Member
Aug 16, 2012
220
46
Caen
Question - does it needs exact right version?
I have 4.0.3 on base rom, can i port cm9 4.0.4?
Thanks

EDIT: i found a 4.0.3 Version. The problem is : in my base rom, i haven't found kernel. The consequence is : The phone don't boot up. No bootanimation, stuck on brand name :(
 
Last edited:

cyrusalmighty

Senior Member
May 30, 2009
1,110
240
Hartford
I am still stuck on boot. I dont fully understand logcat. If I can post screenshot of "Dalvik Debug Monitor Server (DDMS)" as stated in OP, would it be easier to fix bootloop?? I see DDMS shows much information but is it going to show me me causes and errors of bootloops? The rom I am porting is GB stock based Arc Rom to GB Xperia Play device.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 462
    Code:
    /*
     * ~ Please READ ME ~
     *
     * I do not guarantee any successful porting. I am not responsible
     * for bricked devices, dead SD cards, or a broken device. [B]YOU[/B] are
     * choosing to make these modifications, and if you point the finger
     * at me for messing up your device, I will laugh at you. But I will try
     * my best to explain all the necessities, so you won't mess up your Device.
     *
     * ~ END OF AGREEMENT ~
     */

    Before we start, let's read the Title of this Guide. Notice it says: based
    This means, if you do not have a GB/ICS/JB already compiled for your device, then this Guide is useless for you.
    Android Source | Compile GB | Compile ICS | Compile JB ~ Thanks dastin1015 |- Building/Compiling - Durations

    Before you a port a ROM, make sure you asked permission from the Developer!

    This Guide applies the same principle for porting the following: Sense, Lewa OS, JoyOs, MIUI, LiGux OS, etc...

    What you'll need:



    Notes:
    • I will be referring to the following:
      • BASE = The GB/ICS/JB ROM made for your Device only.
      • PORTED = The ROM you are trying to port from.
    • BASE and PORTED must be the same CPU. e.g. ARMv7, ARMv6, ARMv5
    • You must have the same settings in Notepad++ like mine.
    • Ignore the procedure, if the file or folder is not present!
    • BASE & PORTED should be the same Android version.
    • If you are porting a custom GB ROM, then use a GB BASE, the same goes for ICS and JB
    • Make sure both BASE & PORTED are deodexed (It's hard to port an odexed ROM)
    • Final ROM is inside PORTED Folder
      (Don't get confused! This is a Major change from the previous Guide because this method is a lot faster and easier)



    Inside PORTED:​

    Remove kernel:
    • boot.img | zImage | kernel.sin | etc...

    Remove the following inside /system:
    • cameradata
    • tts
    • usr
    • vendor
    • firmware
    • modules
    • wifi
    Now you get 2 options:
    1. Delete bin & xbin & lib folder, but keep libandroid_runtime.so inside /system/lib
    2. Keep bin & xbin & lib folder
    Explanation:
    1. If PORTED has no tweaks or addons to those folders.
    2. If PORTED has tweaks and addons.
    Remove every folder inside /system/etc except:
    • init.d
    • permissions
    • license

    Remove the following inside META-INF:
    • CERT.RSA
    • CERT.SF
    • MANIFEST.MF

    Remove: META-INF/com/google/android/update-binary



    Inside BASE:​

    Move kernel to PORTED:
    • boot.img | zImage | kernel.sin | etc...

    Delete libandroid_runtime.so inside /system/lib

    Move the following inside /system to PORTED:
    (If prompted, select YES to copy and Replace all)
    • cameradata
    • bin
    • lib
    • tts
    • usr
    • vendor
    • firmware
    • modules
    • wifi
    • xbin
    (If prompted, select YES to copy and Replace all)

    Move everything inside /system/etc
    To: PORTED's /system/etc
    (If prompted, select YES to copy and Replace all)

    Move: META-INF/com/google/android/update-binary
    To: PORTED's META-INF/com/google/android/

    For ICS & Newer:
    Move the following inside /system/media to PORTED's media:

    • LMprec_508.emd
    • PFFprec_600.emd



    build.prop​

    Inside PORTED:
    Open /system/build.prop
    Copy & Replace the following:

    • ro.modversion
    • ro.cm.version
    • ro.config.ringtone
    • ro.config.notification_sound
    • ro.config.alarm_alert
    • ro.config.sms_received_sound
    • ro.config.sms_delivered_sound
    • persist.sys.themeId
    • persist.sys.themePackageName
    and anything similar to that, to: BASE's build.prop

    For MIUI:
    Add & Make sure the following values are like this:

    • ro.build.id=MIUI
    • ro.build.display.id=MIUI x.x.x
    • ro.build.version.incremental=x.x.x
    • ro.config.ringtone=MI.ogg

    For Lewa OS:
    Add & Make sure the following values are like this:

    • ro.build.display.id=LeWa_ROM_DeviceNickname_xx.xx.xx
    • ro.lewa.version=LeWa_ROM_DeviceNickname_xx.xx.xx
    • ro.lewa.device=DeviceNickname
    • ro.lewa.swapper.part_path=PORTED's_Value
    • ro.lewa.swapper.flash_swappiness=PORTED's_Value
    • ro.lewa.swapper.sd_swappiness=PORTED's_Value
    • ro.error.receiver.system.apps=com.lewa.fc
    • ro.error.receiver.default=com.lewa.fc

    Make sure the following is for your Device:
    • rild.libpath=
    • rild.libargs=


    Inside BASE:
    Open /system/build.prop
    Highlight from:
    ro.build.tags=
    to: # ADDITIONAL_BUILD_PROPERTIES
    Shown in this picture
    Copy & Replace that highlighted part to: PORTED's build.prop's highlighted part

    Copy everything from: # ADDITIONAL_BUILD_PROPERTIES
    To: the end of the file
    Paste it to PORTED's build.prop
    Shown in this picture



    For XPERIA devices:
    The whole build.prop is untidy and filled with tweaks and addons.
    To edit an XPERIA build.prop you really just need to use your common sense.
    Make sure you follow the above and just decide on your own on what to do ;)



    For HTC devices (Sense):
    The whole build.prop is filled with tweaks, addons and extra libs values.
    To edit an HTC build.prop you really just need to use your common sense.
    Make sure you follow the above and just decide on your own on what to do ;)



    updater-script​

    Inside BASE:
    Move the following, to PORTED:
    (If prompted, select YES to copy and Replace all)
    • META-INF/com/google/android/update-binary
    • META-INF/com/android/metadata
    • META-INF/com/android/otacert

    Open: META-INF/com/google/android/updater-script
    Replace the following values, to PORTED:
    • mount("xxxxxx");
    • format("xxxxxx");
    • retouch_binary
    • The installation of the kernel (Something like: assert(package_extract_file("boot.img",)
    • Take note of the added set_perms & set_perm_recursives that PORTED added. Then replace all set_perm and set_perm_recursive from BASE to PORTED. Put back in the noted set_perms & set_perm_recursive you wrote down, to PORTED's updater-script

    For ICS & Newer itself:
    • If the updater-script in PORTED is modded to have tweaks & addons do the set_perms procedure above
    • Now use BASE's entire META-INF Folder. Copy it to PORTED


    For MIUI v4:
    Add the following values to PORTED:
    • set_perm(0, 0, 06755, "/system/xbin/invoke-as");
    • set_perm(0, 0, 0755, "/system/lib/liblbesec.so");


    For AROMA Installer:
    It's actually too hard & time consuming to explain on how to make the script work on your Device when it came from another.
    So it's best to use BASE's META-INF folder, rather than try to make the AROMA Installer work on your Device. (Becuase it will be time consuming)​



    Porting from a different Manufacturer​

    If you are porting from a different manufacturer like, HTC or Sony, you have to check the kernel from them.


    1. Unpack the kernel from PORTED
    2. Unpack your Device's kernel
    3. Open PORTED's init.rc
    4. Replace the BOOTCLASSPATH from PORTED's init.rc to BASE's init.rc
    5. Compare the two files, and addon to your Kernel's init.rc
    6. Packup/Repack your Kernel



    Porting Wallpapers | Lockscreen Wallpapers | bootanimation​

    Usually you get a wallpaper/bootanimation that doesn't fit your device. Here's a quick tutorial on how to port it to your device.

    Download & Install FreeImageConverter then launch it.
    For Wallpapers & Lockscreen Wallpapers:
    1. Click Add Folder... and add the folder were the wallpapers are
    2. Then click Advanced Convert...
    3. Select Exact Size and set the image quality to 100
    4. Set your Width and Height resolutions for your device.
    5. Uncheck Add "Converted by www.freeimageconverter.com"
    6. Select Leave the same file name and leave the Postfix & Prefix empty. Then set your output in a folder.


    For bootanimation:
    1. Extract /system/media/bootanimation.zip OR /data/local/bootanimation.zip OR /system/customize/resource/bootanimation.zip (For Oxygen ROM, the bootanimation is built into the framework-res)
    2. Do the steps above
    3. Move the new resized folder(s) into your bootanimation workspace
    4. Edit the desc.txt to match your device resolutions
    5. Zip the contents ( folder_name desc.txt )
    6. Set compression method to Store
    7. Delete the extracted bootanimation files
    8. Make sure this new bootanimation.zip is in PORTED



    Logging & DDMS​

    This is very important if your a developer in the Android world. These tools help you debug your device to search for errors or see which processes are running.


    Tutorial - How to Logcat


    Tutorial from Android


    If you want me to help you, don't give me a Logcat from ADB. Instead, give me a screenshot of your DDMS.​



    Review

    • Make sure you did everything inside PORTED first, then work your way up/down to BASE.
    • Did you replace Kernel?
    • Is libandroid_runtime.so from PORTED?
    • Did you edit the updater-script, format & mount values?
    • Make sure dalvik.vm.heapsize is BASE's value inside build.prop
    • Make sure build.prop is mostly for your Device ;)
    • If the Port doesn't boot, try using your own META-INF folder. But backup the previous








    Happy porting! :laugh:
    90
    Frequently Asked Questions

    Q: How do you port a higher CPU ROM to my lower CPU device?
    A: P.M me or any big-name developers. You must already know what to do. The person you P.M will give you extra info... :cool:

    Q: Is it possible to port a lower CPU ROM to my higher CPU device?
    A: I think it'll work (But why would you do this:confused:). If it doesn't boot try changing the DPI values in the build.prop

    Q: How do I make a bigger DPI ROM work on my smaller DPI device?
    A: Resize all PNGs in every app & framework-res using Android Resizer Tool

    Q: Can I Port a smaller DPI device to my device?
    A: Yes. It probably won't run & it wouldn't look good if you did. The icons would be small or if you resized it, the icons would be blurry.​
    9
    Updated the Guide! GO READ! It looks better when I was editing it... :S
    LOL :laugh:
    7
    You say that we can use any ROM as BASE but you don't specify what to use as PORT.
    Can you please clarify that?
    You can port any Rom as long as it's based on CM7/GB/Stock Rom, the same CPU (Armv6, Armv7, Armv5) as your BASE, and it's best to port a Rom from the same manufacturer, if not, you can still do it, just change BOOTCLASSPATH

    there is no /data folder in cyanogen mod from galaxy mini.. wat to do now??
    i m porting cyano from mini to galaxy y
    If there is no data then it's fine to not include it :)

    Peteragent5 your arm7 port rom problem solve from this way?:)
    Lol. No not yet :p
    6
    Added a FAQ section in 2nd post!