Symlink - Xiaomi Redmi Note 4 Questions & Answers

How can I create symlinks without foldermount? i'm using Magisk.

Related

busybox/a2sd causes copy_dir PACKAGE:system SYSTEM: Problems

OK, so I'm at my wits end trying to figure out what is wrong. Since I've added busybox and a2sd to my Hero rom, copy_dir PACKAGE:system SYSTEM: doesn't seem to function correctly (from my update-script).
I run into problems when flashing that say directories don't exist, so I nandroid backup up my broken flash and found out that copy_dir PACKAGE:system SYSTEM: is only copying files up to /system/lib, no other files or folders get copied after /lib, which means I'm missing xbin and busybox (as well as a few other things).
Note: I originally had busybox on /data/busybox but moved it to /system/xbin/busybox at the guidance of another dev - neither way has worked, they both have the same problem with causing files and directories to get skipped on copy_dir. Is there a way I can debug (much like a logcat) but during the setup process? I wonder if its running out of memory. PS: I'm on a MyTouch 3G with current SPL and Radio.
Can someone possibly help me figure out whats wrong? Here's my update-script:
show_progress 0.1 0
format SYSTEM:
format BOOT:
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm_recursive 0 2000 0755 06755 SYSTEM:xbin
set_perm 0 0 04755 SYSTEM:xbin/busybox
symlink dumpstate SYSTEM:bin/bugreport
symlink dumpstate SYSTEM:bin/dumpcrash
symlink toolbox SYSTEM:bin/cat
symlink toolbox SYSTEM:bin/chmod
symlink toolbox SYSTEM:bin/chown
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/dd
symlink toolbox SYSTEM:bin/df
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/ln
symlink toolbox SYSTEM:bin/ls
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/mkdosfs
symlink toolbox SYSTEM:bin/mount
symlink toolbox SYSTEM:bin/mv
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/newfs_msdos
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/reboot
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rm
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/umount
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe
set_perm 0 3003 06755 SYSTEM:bin/ip
set_perm 0 3003 02755 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
#set_perm 0 2000 06755 SYSTEM:bin/reboot
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez
set_perm 0 0 0755 SYSTEM:etc/bluez
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm 0 0 04755 SYSTEM:bin/su
symlink busybox SYSTEM:xbin/zcip
symlink busybox SYSTEM:xbin/zcat
symlink busybox SYSTEM:xbin/yes
symlink busybox SYSTEM:xbin/xargs
symlink busybox SYSTEM:xbin/whoami
symlink busybox SYSTEM:xbin/who
symlink busybox SYSTEM:xbin/which
symlink busybox SYSTEM:xbin/wget
symlink busybox SYSTEM:xbin/wc
symlink busybox SYSTEM:xbin/watchdog
symlink busybox SYSTEM:xbin/watch
symlink busybox SYSTEM:xbin/volname
symlink busybox SYSTEM:xbin/vlock
symlink busybox SYSTEM:xbin/vi
symlink busybox SYSTEM:xbin/vconfig
symlink busybox SYSTEM:xbin/uuencode
symlink busybox SYSTEM:xbin/uudecode
symlink busybox SYSTEM:xbin/usleep
symlink busybox SYSTEM:xbin/uptime
symlink busybox SYSTEM:xbin/unzip
symlink busybox SYSTEM:xbin/unlzop
symlink busybox SYSTEM:xbin/unlzma
symlink busybox SYSTEM:xbin/unix2dos
symlink busybox SYSTEM:xbin/uniq
symlink busybox SYSTEM:xbin/unexpand
symlink busybox SYSTEM:xbin/uncompress
symlink busybox SYSTEM:xbin/uname
symlink busybox SYSTEM:xbin/umount
symlink busybox SYSTEM:xbin/udpsvd
symlink busybox SYSTEM:xbin/udhcpd
symlink busybox SYSTEM:xbin/udhcpc
symlink busybox SYSTEM:xbin/tunctl
symlink busybox SYSTEM:xbin/ttysize
symlink busybox SYSTEM:xbin/tty
symlink busybox SYSTEM:xbin/true
symlink busybox SYSTEM:xbin/traceroute
symlink busybox SYSTEM:xbin/tr
symlink busybox SYSTEM:xbin/touch
symlink busybox SYSTEM:xbin/top
symlink busybox SYSTEM:xbin/timeout
symlink busybox SYSTEM:xbin/time
symlink busybox SYSTEM:xbin/tftpd
symlink busybox SYSTEM:xbin/tftp
symlink busybox SYSTEM:xbin/test
symlink busybox SYSTEM:xbin/telnetd
symlink busybox SYSTEM:xbin/telnet
symlink busybox SYSTEM:xbin/tee
symlink busybox SYSTEM:xbin/tcpsvd
symlink busybox SYSTEM:xbin/tar
symlink busybox SYSTEM:xbin/tail
symlink busybox SYSTEM:xbin/tac
symlink busybox SYSTEM:xbin/syslogd
symlink busybox SYSTEM:xbin/sysctl
symlink busybox SYSTEM:xbin/sync
symlink busybox SYSTEM:xbin/switch_root
symlink busybox SYSTEM:xbin/swapon
symlink busybox SYSTEM:xbin/swapoff
symlink busybox SYSTEM:xbin/svlogd
symlink busybox SYSTEM:xbin/sv
symlink busybox SYSTEM:xbin/sum
symlink busybox SYSTEM:xbin/sulogin
symlink busybox SYSTEM:xbin/stty
symlink busybox SYSTEM:xbin/strings
symlink busybox SYSTEM:xbin/stat
symlink busybox SYSTEM:xbin/start-stop-daemon
symlink busybox SYSTEM:xbin/split
symlink busybox SYSTEM:xbin/sort
symlink busybox SYSTEM:xbin/softlimit
symlink busybox SYSTEM:xbin/sleep
symlink busybox SYSTEM:xbin/slattach
symlink busybox SYSTEM:xbin/showkey
symlink busybox SYSTEM:xbin/sha512sum
symlink busybox SYSTEM:xbin/sha256sum
symlink busybox SYSTEM:xbin/sha1sum
symlink busybox SYSTEM:xbin/sh
symlink busybox SYSTEM:xbin/setuidgid
symlink busybox SYSTEM:xbin/setsid
symlink busybox SYSTEM:xbin/setlogcons
symlink busybox SYSTEM:xbin/setkeycodes
symlink busybox SYSTEM:xbin/setfont
symlink busybox SYSTEM:xbin/setconsole
symlink busybox SYSTEM:xbin/setarch
symlink busybox SYSTEM:xbin/seq
symlink busybox SYSTEM:xbin/sendmail
symlink busybox SYSTEM:xbin/sed
symlink busybox SYSTEM:xbin/scriptreplay
symlink busybox SYSTEM:xbin/script
symlink busybox SYSTEM:xbin/rx
symlink busybox SYSTEM:xbin/runsvdir
symlink busybox SYSTEM:xbin/runsv
symlink busybox SYSTEM:xbin/runlevel
symlink busybox SYSTEM:xbin/run-parts
symlink busybox SYSTEM:xbin/rtcwake
symlink busybox SYSTEM:xbin/route
symlink busybox SYSTEM:xbin/rmmod
symlink busybox SYSTEM:xbin/rmdir
symlink busybox SYSTEM:xbin/rm
symlink busybox SYSTEM:xbin/resize
symlink busybox SYSTEM:xbin/reset
symlink busybox SYSTEM:xbin/renice
symlink busybox SYSTEM:xbin/reformime
symlink busybox SYSTEM:xbin/reboot
symlink busybox SYSTEM:xbin/realpath
symlink busybox SYSTEM:xbin/readprofile
symlink busybox SYSTEM:xbin/readlink
symlink busybox SYSTEM:xbin/readahead
symlink busybox SYSTEM:xbin/rdev
symlink busybox SYSTEM:xbin/rdate
symlink busybox SYSTEM:xbin/raidautorun
symlink busybox SYSTEM:xbin/pwd
symlink busybox SYSTEM:xbin/pscan
symlink busybox SYSTEM:xbin/ps
symlink busybox SYSTEM:xbin/printf
symlink busybox SYSTEM:xbin/printenv
symlink busybox SYSTEM:xbin/poweroff
symlink busybox SYSTEM:xbin/popmaildir
symlink busybox SYSTEM:xbin/pkill
symlink busybox SYSTEM:xbin/pivot_root
symlink busybox SYSTEM:xbin/pipe_progress
symlink busybox SYSTEM:xbin/ping6
symlink busybox SYSTEM:xbin/ping
symlink busybox SYSTEM:xbin/pidof
symlink busybox SYSTEM:xbin/pgrep
symlink busybox SYSTEM:xbin/patch
symlink busybox SYSTEM:xbin/passwd
symlink busybox SYSTEM:xbin/openvt
symlink busybox SYSTEM:xbin/od
symlink busybox SYSTEM:xbin/nslookup
symlink busybox SYSTEM:xbin/nohup
symlink busybox SYSTEM:xbin/nmeter
symlink busybox SYSTEM:xbin/nice
symlink busybox SYSTEM:xbin/netstat
symlink busybox SYSTEM:xbin/nc
symlink busybox SYSTEM:xbin/nameif
symlink busybox SYSTEM:xbin/mv
symlink busybox SYSTEM:xbin/mt
symlink busybox SYSTEM:xbin/msh
symlink busybox SYSTEM:xbin/mountpoint
symlink busybox SYSTEM:xbin/mount
symlink busybox SYSTEM:xbin/more
symlink busybox SYSTEM:xbin/modprobe
symlink busybox SYSTEM:xbin/mktemp
symlink busybox SYSTEM:xbin/mkswap
symlink busybox SYSTEM:xbin/mkpasswd
symlink busybox SYSTEM:xbin/mknod
symlink busybox SYSTEM:xbin/mkfs.vfat
symlink busybox SYSTEM:xbin/mkfs.minix
symlink busybox SYSTEM:xbin/mkfifo
symlink busybox SYSTEM:xbin/mkdosfs
symlink busybox SYSTEM:xbin/mkdir
symlink busybox SYSTEM:xbin/microcom
symlink busybox SYSTEM:xbin/mesg
symlink busybox SYSTEM:xbin/mdev
symlink busybox SYSTEM:xbin/md5sum
symlink busybox SYSTEM:xbin/man
symlink busybox SYSTEM:xbin/makemime
symlink busybox SYSTEM:xbin/makedevs
symlink busybox SYSTEM:xbin/lzopcat
symlink busybox SYSTEM:xbin/lzop
symlink busybox SYSTEM:xbin/lzmacat
symlink busybox SYSTEM:xbin/lsmod
symlink busybox SYSTEM:xbin/lsattr
symlink busybox SYSTEM:xbin/ls
symlink busybox SYSTEM:xbin/lpr
symlink busybox SYSTEM:xbin/lpq
symlink busybox SYSTEM:xbin/lpd
symlink busybox SYSTEM:xbin/losetup
symlink busybox SYSTEM:xbin/logread
symlink busybox SYSTEM:xbin/logname
symlink busybox SYSTEM:xbin/login
symlink busybox SYSTEM:xbin/logger
symlink busybox SYSTEM:xbin/loadkmap
symlink busybox SYSTEM:xbin/loadfont
symlink busybox SYSTEM:xbin/ln
symlink busybox SYSTEM:xbin/linuxrc
symlink busybox SYSTEM:xbin/linux64
symlink busybox SYSTEM:xbin/linux32
symlink busybox SYSTEM:xbin/less
symlink busybox SYSTEM:xbin/length
symlink busybox SYSTEM:xbin/last
symlink busybox SYSTEM:xbin/klogd
symlink busybox SYSTEM:xbin/killall5
symlink busybox SYSTEM:xbin/killall
symlink busybox SYSTEM:xbin/kill
symlink busybox SYSTEM:xbin/kbd_mode
symlink busybox SYSTEM:xbin/iptunnel
symlink busybox SYSTEM:xbin/iprule
symlink busybox SYSTEM:xbin/iproute
symlink busybox SYSTEM:xbin/iplink
symlink busybox SYSTEM:xbin/ipcs
symlink busybox SYSTEM:xbin/ipcrm
symlink busybox SYSTEM:xbin/ipcalc
symlink busybox SYSTEM:xbin/ipaddr
symlink busybox SYSTEM:xbin/ip
symlink busybox SYSTEM:xbin/ionice
symlink busybox SYSTEM:xbin/install
symlink busybox SYSTEM:xbin/insmod
symlink busybox SYSTEM:xbin/init
symlink busybox SYSTEM:xbin/inetd
symlink busybox SYSTEM:xbin/ifup
symlink busybox SYSTEM:xbin/ifplugd
symlink busybox SYSTEM:xbin/ifenslave
symlink busybox SYSTEM:xbin/ifdown
symlink busybox SYSTEM:xbin/ifconfig
symlink busybox SYSTEM:xbin/id
symlink busybox SYSTEM:xbin/hwclock
symlink busybox SYSTEM:xbin/hush
symlink busybox SYSTEM:xbin/httpd
symlink busybox SYSTEM:xbin/hostname
symlink busybox SYSTEM:xbin/hostid
symlink busybox SYSTEM:xbin/hexdump
symlink busybox SYSTEM:xbin/head
symlink busybox SYSTEM:xbin/hdparm
symlink busybox SYSTEM:xbin/hd
symlink busybox SYSTEM:xbin/halt
symlink busybox SYSTEM:xbin/gzip
symlink busybox SYSTEM:xbin/gunzip
symlink busybox SYSTEM:xbin/grep
symlink busybox SYSTEM:xbin/getty
symlink busybox SYSTEM:xbin/getopt
symlink busybox SYSTEM:xbin/fuser
symlink busybox SYSTEM:xbin/ftpput
symlink busybox SYSTEM:xbin/ftpget
symlink busybox SYSTEM:xbin/ftpd
symlink busybox SYSTEM:xbin/fsync
symlink busybox SYSTEM:xbin/fsck.minix
symlink busybox SYSTEM:xbin/fsck
symlink busybox SYSTEM:xbin/freeramdisk
symlink busybox SYSTEM:xbin/free
symlink busybox SYSTEM:xbin/fold
symlink busybox SYSTEM:xbin/findfs
symlink busybox SYSTEM:xbin/find
symlink busybox SYSTEM:xbin/fgrep
symlink busybox SYSTEM:xbin/fdisk
symlink busybox SYSTEM:xbin/fdformat
symlink busybox SYSTEM:xbin/fdflush
symlink busybox SYSTEM:xbin/fbsplash
symlink busybox SYSTEM:xbin/fbset
symlink busybox SYSTEM:xbin/false
symlink busybox SYSTEM:xbin/fakeidentd
symlink busybox SYSTEM:xbin/expr
symlink busybox SYSTEM:xbin/expand
symlink busybox SYSTEM:xbin/ether-wake
symlink busybox SYSTEM:xbin/envuidgid
symlink busybox SYSTEM:xbin/envdir
symlink busybox SYSTEM:xbin/env
symlink busybox SYSTEM:xbin/eject
symlink busybox SYSTEM:xbin/egrep
symlink busybox SYSTEM:xbin/ed
symlink busybox SYSTEM:xbin/echo
symlink busybox SYSTEM:xbin/dumpleases
symlink busybox SYSTEM:xbin/dumpkmap
symlink busybox SYSTEM:xbin/du
symlink busybox SYSTEM:xbin/dos2unix
symlink busybox SYSTEM:xbin/dnsdomainname
symlink busybox SYSTEM:xbin/dnsd
symlink busybox SYSTEM:xbin/dmesg
symlink busybox SYSTEM:xbin/dirname
symlink busybox SYSTEM:xbin/diff
symlink busybox SYSTEM:xbin/dhcprelay
symlink busybox SYSTEM:xbin/df
symlink busybox SYSTEM:xbin/devmem
symlink busybox SYSTEM:xbin/depmod
symlink busybox SYSTEM:xbin/deluser
symlink busybox SYSTEM:xbin/delgroup
symlink busybox SYSTEM:xbin/deallocvt
symlink busybox SYSTEM:xbin/dd
symlink busybox SYSTEM:xbin/dc
symlink busybox SYSTEM:xbin/date
symlink busybox SYSTEM:xbin/cut
symlink busybox SYSTEM:xbin/cttyhack
symlink busybox SYSTEM:xbin/cryptpw
symlink busybox SYSTEM:xbin/crontab
symlink busybox SYSTEM:xbin/crond
symlink busybox SYSTEM:xbin/cpio
symlink busybox SYSTEM:xbin/cp
symlink busybox SYSTEM:xbin/comm
symlink busybox SYSTEM:xbin/cmp
symlink busybox SYSTEM:xbin/clear
symlink busybox SYSTEM:xbin/cksum
symlink busybox SYSTEM:xbin/chvt
symlink busybox SYSTEM:xbin/chrt
symlink busybox SYSTEM:xbin/chroot
symlink busybox SYSTEM:xbin/chpst
symlink busybox SYSTEM:xbin/chpasswd
symlink busybox SYSTEM:xbin/chown
symlink busybox SYSTEM:xbin/chmod
symlink busybox SYSTEM:xbin/chgrp
symlink busybox SYSTEM:xbin/chattr
symlink busybox SYSTEM:xbin/chat
symlink busybox SYSTEM:xbin/catv
symlink busybox SYSTEM:xbin/cat
symlink busybox SYSTEM:xbin/cal
symlink busybox SYSTEM:xbin/bzip2
symlink busybox SYSTEM:xbin/bzcat
symlink busybox SYSTEM:xbin/bunzip2
symlink busybox SYSTEM:xbin/brctl
symlink busybox SYSTEM:xbin/blkid
symlink busybox SYSTEM:xbin/beep
symlink busybox SYSTEM:xbin/basename
symlink busybox SYSTEM:xbin/awk
symlink busybox SYSTEM:xbin/ash
symlink busybox SYSTEM:xbin/arping
symlink busybox SYSTEM:xbin/arp
symlink busybox SYSTEM:xbin/ar
symlink busybox SYSTEM:xbin/adjtimex
symlink busybox SYSTEM:xbin/adduser
symlink busybox SYSTEM:xbin/addgroup
symlink busybox SYSTEM:xbin/[[
symlink busybox SYSTEM:xbin/[
delete DATA:app
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
show_progress 0.1 10
show_progress 0.2 0
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10
Click to expand...
Click to collapse
hi,
have solved your issues?

[TUTORIAL]porting miui nexus rom to x10

PLEASE DONT FORGET TO HELP OTHERS AS I AM TRYING FOR YOU
lots of people ask... how do you port roms... so here you go... I hope now the thread is started the people posting can help each other as I have other projects working on... Maybe someone learning will help me later with my other roms
lot of chatter of people saying that the structure of my rom is from other x10 so for you all to see I give you basic instructions (that I ported and posted first with almost everything working) so here is all the basics on getting a bootable miui rom for beginners.. first download the formels newest release.
then download a stable gingerbread 2.3.3 version that is compatible with the files. ( I always use the great z and j for sources).
the next step is to get the formels rom ready by deleting the boot image and the data folder. Next step is to go to the etc folder and delete firmware folder... also delete ap2sd init script from the init folder)
then go to lib folder and delete hw and modules.
now it is time to add files. I know the miui files pretty good now so the list has shortened greatly.
now use your stable gb rom source to replace the folders I had you delet above
you may have to change other files depending on the rom i.e. bluetooth/dhcpd and others.
to start in the etc folder you need to add
apns-conf
dbus
dualmic
gps
hosts
hw-config
init.bt
init.gold
init.local
mediaprofiles
mke2fs
profile
resolve
sensors
sysctl
vold
now to the lib folder all files start with lib
cm
dll
dsm
dss
gsl
miscta
oem-rapi
pbmilb
qmi
diag
mmgsdilib
nv
onrpc
queue
ril-qc-1
wms
auth
sdi-exp
wmsts
mmipl
oemcamera
mmjpeg
there are other files but I think that is enough to get bootscreen... if not let me know and I will list the other misc ones.
now the bin files
akmd2
am
bmgr
bmiloader
chargemon
charger
compache
eeprom
fixpermisions
gdbserver
handlecompache
hciqcomminit
ime
input
monkey
pm
port-bridge
qmuxd
recevent
svc
sysinit
updatemiscta
wlanmac
wlantool
wmiconfig
here is the update script you will need to use in meta folder
you use a kitchen to convert the updater script and change it to our rom.
I had to add recovery perm... I forget the other stuff but the beggining is usually edify so you have to change yaffs lines to compatible lines.
for those without a kitchen below is the script... make sure you delet updater and update binary from folder and replace with update-script
show_progress 0.500000 0
format CACHE:
format DATA:
format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
symlink dumpstate SYSTEM:bin/dumpcrash
symlink busybox SYSTEM:xbin/[
symlink busybox SYSTEM:xbin/[[
symlink busybox SYSTEM:xbin/arp
symlink busybox SYSTEM:xbin/ash
symlink busybox SYSTEM:xbin/awk
symlink busybox SYSTEM:xbin/basename
symlink busybox SYSTEM:xbin/bbconfig
symlink busybox SYSTEM:xbin/brctl
symlink busybox SYSTEM:xbin/bunzip2
symlink busybox SYSTEM:xbin/bzcat
symlink busybox SYSTEM:xbin/bzip2
symlink busybox SYSTEM:xbin/cal
symlink busybox SYSTEM:xbin/catv
symlink busybox SYSTEM:xbin/chgrp
symlink busybox SYSTEM:xbin/chmod
symlink busybox SYSTEM:xbin/chown
symlink busybox SYSTEM:xbin/cksum
symlink busybox SYSTEM:xbin/clear
symlink busybox SYSTEM:xbin/cmp
symlink busybox SYSTEM:xbin/cp
symlink busybox SYSTEM:xbin/cpio
symlink busybox SYSTEM:xbin/cut
symlink busybox SYSTEM:xbin/date
symlink busybox SYSTEM:xbin/dc
symlink busybox SYSTEM:xbin/dd
symlink busybox SYSTEM:xbin/depmod
symlink busybox SYSTEM:xbin/devmem
symlink busybox SYSTEM:xbin/df
symlink busybox SYSTEM:xbin/diff
symlink busybox SYSTEM:xbin/dirname
symlink busybox SYSTEM:xbin/dmesg
symlink busybox SYSTEM:xbin/dnsd
symlink busybox SYSTEM:xbin/dos2unix
symlink busybox SYSTEM:xbin/du
symlink busybox SYSTEM:xbin/echo
symlink busybox SYSTEM:xbin/ed
symlink busybox SYSTEM:xbin/egrep
symlink busybox SYSTEM:xbin/env
symlink busybox SYSTEM:xbin/expr
symlink busybox SYSTEM:xbin/false
symlink busybox SYSTEM:xbin/fdisk
symlink busybox SYSTEM:xbin/fgrep
symlink busybox SYSTEM:xbin/find
symlink busybox SYSTEM:xbin/fold
symlink busybox SYSTEM:xbin/free
symlink busybox SYSTEM:xbin/freeramdisk
symlink busybox SYSTEM:xbin/fuser
symlink busybox SYSTEM:xbin/getopt
symlink busybox SYSTEM:xbin/grep
symlink busybox SYSTEM:xbin/gunzip
symlink busybox SYSTEM:xbin/gzip
symlink busybox SYSTEM:xbin/head
symlink busybox SYSTEM:xbin/hexdump
symlink busybox SYSTEM:xbin/id
symlink busybox SYSTEM:xbin/ifconfig
symlink busybox SYSTEM:xbin/insmod
symlink busybox SYSTEM:xbin/install
symlink busybox SYSTEM:xbin/ip
symlink busybox SYSTEM:xbin/kill
symlink busybox SYSTEM:xbin/killall
symlink busybox SYSTEM:xbin/killall5
symlink busybox SYSTEM:xbin/length
symlink busybox SYSTEM:xbin/less
symlink busybox SYSTEM:xbin/ln
symlink busybox SYSTEM:xbin/losetup
symlink busybox SYSTEM:xbin/ls
symlink busybox SYSTEM:xbin/lsmod
symlink busybox SYSTEM:xbin/lspci
symlink busybox SYSTEM:xbin/lsusb
symlink busybox SYSTEM:xbin/lzop
symlink busybox SYSTEM:xbin/lzopcat
symlink busybox SYSTEM:xbin/md5sum
symlink busybox SYSTEM:xbin/mkdir
symlink busybox SYSTEM:xbin/mke2fs
symlink busybox SYSTEM:xbin/mkfifo
symlink busybox SYSTEM:xbin/mkfs.ext2
symlink busybox SYSTEM:xbin/mknod
symlink busybox SYSTEM:xbin/mkswap
symlink busybox SYSTEM:xbin/mktemp
symlink busybox SYSTEM:xbin/modprobe
symlink busybox SYSTEM:xbin/more
symlink busybox SYSTEM:xbin/mount
symlink busybox SYSTEM:xbin/mountpoint
symlink busybox SYSTEM:xbin/mv
symlink busybox SYSTEM:xbin/netstat
symlink busybox SYSTEM:xbin/nice
symlink busybox SYSTEM:xbin/nohup
symlink busybox SYSTEM:xbin/nslookup
symlink busybox SYSTEM:xbin/ntpd
symlink busybox SYSTEM:xbin/od
symlink busybox SYSTEM:xbin/patch
symlink busybox SYSTEM:xbin/pgrep
symlink busybox SYSTEM:xbin/pidof
symlink busybox SYSTEM:xbin/ping
symlink busybox SYSTEM:xbin/pkill
symlink busybox SYSTEM:xbin/printenv
symlink busybox SYSTEM:xbin/printf
symlink busybox SYSTEM:xbin/ps
symlink busybox SYSTEM:xbin/pwd
symlink busybox SYSTEM:xbin/rdev
symlink busybox SYSTEM:xbin/readlink
symlink busybox SYSTEM:xbin/realpath
symlink busybox SYSTEM:xbin/renice
symlink busybox SYSTEM:xbin/reset
symlink busybox SYSTEM:xbin/rm
symlink busybox SYSTEM:xbin/rmdir
symlink busybox SYSTEM:xbin/rmmod
symlink busybox SYSTEM:xbin/route
symlink busybox SYSTEM:xbin/run-parts
symlink busybox SYSTEM:xbin/sed
symlink busybox SYSTEM:xbin/seq
symlink busybox SYSTEM:xbin/setsid
symlink busybox SYSTEM:xbin/sh
symlink busybox SYSTEM:xbin/sha1sum
symlink busybox SYSTEM:xbin/sha256sum
symlink busybox SYSTEM:xbin/sha512sum
symlink busybox SYSTEM:xbin/sleep
symlink busybox SYSTEM:xbin/sort
symlink busybox SYSTEM:xbin/split
symlink busybox SYSTEM:xbin/stat
symlink busybox SYSTEM:xbin/strings
symlink busybox SYSTEM:xbin/stty
symlink busybox SYSTEM:xbin/swapoff
symlink busybox SYSTEM:xbin/swapon
symlink busybox SYSTEM:xbin/sync
symlink busybox SYSTEM:xbin/sysctl
symlink busybox SYSTEM:xbin/tac
symlink busybox SYSTEM:xbin/tail
symlink busybox SYSTEM:xbin/tar
symlink busybox SYSTEM:xbin/tee
symlink busybox SYSTEM:xbin/telnet
symlink busybox SYSTEM:xbin/test
symlink busybox SYSTEM:xbin/tftp
symlink busybox SYSTEM:xbin/time
symlink busybox SYSTEM:xbin/top
symlink busybox SYSTEM:xbin/touch
symlink busybox SYSTEM:xbin/tr
symlink busybox SYSTEM:xbin/traceroute
symlink busybox SYSTEM:xbin/true
symlink busybox SYSTEM:xbin/tty
symlink busybox SYSTEM:xbin/tune2fs
symlink busybox SYSTEM:xbin/umount
symlink busybox SYSTEM:xbin/uname
symlink busybox SYSTEM:xbin/uniq
symlink busybox SYSTEM:xbin/unix2dos
symlink busybox SYSTEM:xbin/unlzop
symlink busybox SYSTEM:xbin/unzip
symlink busybox SYSTEM:xbin/uptime
symlink busybox SYSTEM:xbin/usleep
symlink busybox SYSTEM:xbin/uudecode
symlink busybox SYSTEM:xbin/uuencode
symlink busybox SYSTEM:xbin/vi
symlink busybox SYSTEM:xbin/watch
symlink busybox SYSTEM:xbin/wc
symlink busybox SYSTEM:xbin/wget
symlink busybox SYSTEM:xbin/which
symlink busybox SYSTEM:xbin/whoami
symlink busybox SYSTEM:xbin/xargs
symlink busybox SYSTEM:xbin/yes
symlink busybox SYSTEM:xbin/zcat
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/dd
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/ionice
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/nandread
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/newfs_msdos
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/reboot
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/uptime
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe
symlink iwmulticall SYSTEM:xbin/iwconfig
symlink iwmulticall SYSTEM:xbin/iwgetid
symlink iwmulticall SYSTEM:xbin/iwlist
symlink iwmulticall SYSTEM:xbin/iwpriv
symlink iwmulticall SYSTEM:xbin/iwspy
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02750 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 2000 06750 SYSTEM:bin/run-as
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluetooth
set_perm 0 0 0755 SYSTEM:etc/bluetooth
set_perm 1000 1000 0640 SYSTEM:etc/bluetooth/auto_pairing.conf
set_perm 3002 3002 0444 SYSTEM:etc/bluetooth/blacklist.conf
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm_recursive 0 2000 0755 0750 SYSTEM:etc/init.d
set_perm 0 0 0755 SYSTEM:etc/init.d
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp
set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin
set_perm 0 0 06755 SYSTEM:xbin/apply_firewall
set_perm 0 0 06755 SYSTEM:xbin/apply_theme
set_perm 0 0 06755 SYSTEM:xbin/dumplog
set_perm 0 0 06755 SYSTEM:xbin/hcitool
set_perm 0 0 06755 SYSTEM:xbin/librank
set_perm 0 0 06755 SYSTEM:xbin/ota
set_perm 0 0 06755 SYSTEM:xbin/procmem
set_perm 0 0 06755 SYSTEM:xbin/procrank
set_perm 0 0 06755 SYSTEM:xbin/su
set_perm 0 0 04755 SYSTEM:recovery/sh
show_progress 0.200000 0
show_progress 0.200000 10
show_progress 0.100000 0
delete_recursive DATA:dalvik-cache
delete_recursive /sd-ext/dalvik-cache
also change the lib egl folder change all of them except for gles android.so
next you have to change the build script. you can get by with using cm7 build script but should adapt the original to fit
ps don't forget to add ramdisk, kernel folder, recovery folder to system
and don't forget to use the correct chargemon file for the bin folder... I would recomend using the one with working kernel for beginners.
You should have a working miui rom that lags and has some boot up problems... the rest is tweaking and optimizing files.. boot up problem is editing service.jar Thanks cobrato...
Very nice, thankyou
Sent from my X10i TripNMiUI using XDA Premium App
great work rdannar.....keep it up....
Thanks for the good tutorial Buddy..
I wanted to get my hands dirty on ROM work however was lazy to collect stuff from around now since you have posted and i hope my major work on m project (Ubuntu on X10i) is close to over, i am hoping to put some efforts on this.
After reading this and several other posts decided to gave it a try. I am no dev But got it to boot! It goes through the "Touch the android to begin setup" then reboots after a while and gets stuck in bootloop. Not bad considering i have minimal knowledge about this. I will give it another try tomorrow. BTW i tried my luck with an AOSP build not MIUI. Redux from HTC Desire forum that i saw a video of. Thanks a lot for this thread.
This is very good for getting to know abit about porting. I'll try making atleast a booting ROM.
rdannar omfg after reading i could say "i know kung-fu" ... great tutorial!
this shuld be "General Porting Tutorial" ... btw. last night when i was reading few libs where missing.. today nope.
P.S.
bmgr, pm, am & monkey in most casses not really needed
Hm, is it just me or is there no sdi-exp file in z & j cm7 lib folder?
a1exander said:
Hm, is it just me or is there no sdi-exp file in z & j cm7 lib folder?
Click to expand...
Click to collapse
it is just you..
maybe libgsdi_exp.so <<
Chumby_666 said:
it is just you..
maybe libgsdi_exp.so <<
Click to expand...
Click to collapse
Ah ty.
Would just copying the update-script from j & z CM7 and replacing the code that rdannar wrote work? I mean not only doing that but without using a kitchen to open updater-script etc xD
EDIT: Just getting "E:Syntac error in update-script"
Installation aborted.
:S Could anyone give me a hint of what ive done wrong?
same im getting the error 2 how do we edit the update script
a1exander said:
Ah ty.
Would just copying the update-script from j & z CM7 and replacing the code that rdannar wrote work? I mean not only doing that but without using a kitchen to open updater-script etc xD
EDIT: Just getting "E:Syntac error in update-script"
Installation aborted.
:S Could anyone give me a hint of what ive done wrong?
Click to expand...
Click to collapse
Upload your script and I will look at it later.. you should use notepad++ not regular notebad
Sent from my X10project using XDA App
rdannar said:
Upload your script and I will look at it later.. you should use notepad++ not regular notebad
Sent from my X10project using XDA App
Click to expand...
Click to collapse
do we add your script to the cm7 script or just have only your script?
Just my script
Sent from my X10project using XDA App
rdannar said:
Upload your script and I will look at it later.. you should use notepad++ not regular notebad
Sent from my X10project using XDA App
Click to expand...
Click to collapse
I do use notepad++, and i just took the update-script from j & z cm7, deleted all code in it and pasted the code from your post. And i deleted updater script and that other file ofc.
I 'll upload when i get back from school.
This thread really helps me getting into porting
Sent from my X10i TripNMiUI using XDA App
Nvm, I'll upload it now. BTW I had like 4 more empty lines at the bottom of my update-script, could that be the problem?
Heres the meta-inf folder with the update-script in it. http://www.mediafire.com/?0ar9dx3vmqd3zjt
a1exander said:
Nvm, I'll upload it now. BTW I had like 4 more empty lines at the bottom of my update-script, could that be the problem?
Heres the meta-inf folder with the update-script in it. http://www.mediafire.com/?0ar9dx3vmqd3zjt
Click to expand...
Click to collapse
try removing the blank line between:
Code:
...
copy_dir PACKAGE:system SYSTEM:
symlink toolbox SYSTEM:bin/cat
...
and test it

[Proposal][WIP] MIUI Rom (Based upon CM7 FreeXperia)

Hi,
I am proposing building a MIUI rom using FreeXperia CM7 FXP30 and the Desire HD MIUI (similar hardware) rom like they have been doing over in the X10 section.
In the X10 section they have been using a script to combine the nexus one version (similar hardware) of MIUI with the FreeXperia CM7 rom and then flashing a zip made with the script using CWM.
Script is here: http://forum.xda-developers.com/showthread.php?t=1294451
Looking at the script it looks straight-forward to work out and could be used on our devices. However I need a few things to get this to work:
A lib folder for our device. (Seems to contain stuff like libcamera.so .etc might be able to be derived from the offical rom.), Kernel Modules in .so format.
dhcpcd conf files, android.hardware xmls, and wpa_supplicant.conf/hostapd.conf for the xperia play. FStab and init scripts.
Once these files have been obtained (if the ones included dont work which is likely) then MIUI is likely to be created easily from this point.
If i create a flashable zip using this tool (using the already provided files) then would someone be brave enough to install/flash it?
Thanks for reading,
XperiaPlayer
i can test it.
Great News. Love MIUI.
I should have a test zip ready within an hour. Please note that I do not accept any responsibility if this breaks your phone. It shouldnt do as it isn't modifying the kernel or anything that can't be fixed by a Nandroid backup.
EDIT:
ALSO THIS IS GSM AND R800i ONLY!
ROM IS BUILT! However I dont know if it will work....
I found most of the files I needed in the CM7 folder so i copied and paste em. I now have a my_miui.zip
Instructions are:
NOT FOR THE FAINT HEARTED. MAY NOT WORK.
DISCLAIMER:
I DO NOT ACCEPT ANY RESPONSABILITY IN ANY WAY SHAPE OR FORM FOR ANY HARM MADE TO YOUR DEVICE. FLASHING THIS ZIP IS YOUR OWN CHOICE AND MAY NOT WORK. I SEE NO REASON FOR IT TO BREAK YOUR PHONE AS IT IS A UPDATE.ZIP.
MAKE SURE YOU HAVE A NANDROID BACKUP BEFORE DOING THE BELOW. I STRONGLY STREESS THIS.
Now Moving on...
Unlock Bootloader. Flash Latest CM7 Kernel. Install Latest CM7 using ClockWorkMod. DO the following:
1. Clear User Data.
2. Clear Davik Cache.
3. Clear Caches
4. Install zip from sdcard. Select XperiaPlayerMIUI.zip
5. Start your phone.
6. HOPE WE GET SOMEWHERE!!!!!
Download is here:
http://www.mediafire.com/?qxmn34b7cpcbgcp
Enjoy! There be dragons!
Hmm. I decided to try it for myself. Curiosity was too much for me!
Beware it takes a while on the "Flashing rom." part.
I get the FreXperia project logo. (Kernel Booting) and the devices switches off...
This looks like it may be a problem with the Kernel modules, or actually going to start up the android system.
Basically a boot loop. But it doesn't go further than the bootloader/FreeXperia logo.
Could do with someone like Blagus to take a look at this !
maibe FXP would know better?
Yeh thats a thought. I am now trying it with the Nexus One MIUI files and using the CWM2 option in the script.
We need to get the attention of FXP somehow.
EDIT:
This time it doesnt advance futher than the FreeXperiaProject logo. No boot loops or anything just stays on that screen. Hmm
Given it switches off/stops working after starting to boot the kernel, I'd say it is a non functional kernel issue. I would ask Blagus or Doom Lord. Can you run a detailed debug?
Btw, nice job, regardless of the outcome.
Yes il see if i can do detailed debug. Lol i haven't done any development related stuff since I had a WM6 phone. (THank god for EasyKitchen/osKitchen )
It only seems to do bootloop if i select the CWM option not the CWM2 option. THis is using the Desire HD MIUI Files AND the Nexus One MIUI Files.
PLus how do i run a detailed debug from the bootloader up? Since there is no adb until the actual system.
I tried this for neo earlier today, using DHD bootloop too.... With cwm2
Edit: I think it's because x10 has different snapdragon processor and adreno files so the script cannot make it boot...
If someone was to configure what files were different and needed then edit the script then it would be easy...
Im no serious developer so im gonna look around and see what I can do, I'll keep you posted if I manage it
Regards
Sent from my MT15i using XDA App
Thats what I thought. The actual hardware is very similar to the Desire HD. (Same Snapdragon and Adreno). I rekon it could be the init scripts. Going to have a poke around now and see what I can change . Hehe this is fun to say I have no clue with Android Development.
EDIT
------------------
Second build fired up. Won't boot .
Copied and repalced ALL of the files from the CM7 update zip into the temp folder within the script.
My first theory is that it is the build.prop.....
##### Merging of the /util/data/semc_kernel_time_stamp.prop file #####
ro.build.date=Fri May 20 11:00:00 GMT 2011
ro.build.date.utc=1305889200
ro.build.user=builder
ro.build.host=ruijun-desktop
##### Final patch of properties #####
ro.semc.product.model=R800i
ro.build.product=R800i
ro.build.description=R800i-user 2.3.3 3.0.1.G.0.75 tB_P test-keys
ro.product.brand=SEMC
ro.product.name=Play
ro.product.device=R800i
ro.build.tags=test-keys
ro.build.fingerprint=SEMC/R800i_1247-6199/R800i:2.3.3/3.0.1.A.0.145/bn_p:user/release-keys
######################## Customized property values #########################
ro.semc.version.cust=1241-1846
ro.semc.version.cust_revision=R1C
#########################################################################
ro.config.ringtone=sony_ericsson.ogg
ro.config.notification_sound=notification.ogg
ro.config.alarm_alert=alarm.ogg
ro.semc.content.number=PA1
################# Updating of the SW Version #################
ro.semc.version.fs_revision=3.0.1.G.0.75
ro.build.id=MIUI
ro.build.display.id=XperiaPlayer Test MIUI
##### Values from product package metadata #####
ro.product.model=R800i
ro.semc.ms_type_id=AAD-3880056-BV
ro.semc.version.fs=WORLD-1-4-8
ro.semc.product.name=R800i
ro.semc.product.device=R800i
# begin build properties
# autogenerated by buildinfo.sh
#ro.build.id=3.0.1.G.0.75
#ro.build.display.id=3.0.1.G.0.75
ro.build.version.incremental=1.10.8
ro.build.version.sdk=10
ro.build.version.codename=REL
ro.build.version.release=2.3.7
#ro.build.date=Wed Jul 13 19:17:43 CEST 2011
#ro.build.date.utc=1310577463
ro.build.type=user
#ro.build.user=hudsonslave
#ro.build.host=seldlx1579
#ro.build.tags=test-keys
#ro.product.model=rachael
#ro.product.brand=Sony-Ericsson
#ro.product.name=rachael
#ro.product.device=rachael
ro.product.board=zeus
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Sony Ericsson
ro.product.locale.language=en
ro.product.locale.region=GB
ro.wifi.channels=
ro.board.platform=msm7x30
# ro.build.product is obsolete; use ro.product.device
#ro.build.product=rachael
# Do not try to parse ro.build.description or .fingerprint
#ro.build.description=rachael-user 2.3.3 3.0.1.G.0.75 tB_P test-keys
#ro.build.fingerprint=Sony-Ericsson/rachael/rachael:2.3.3/3.0.1.G.0.75/tB_P:user/test-keys
# end build properties
#
# system.prop for rachael
#
keyguard.no_require_sim=true
rild.libpath=/system/lib/libril-qc-1.so
rild.libargs=-d/dev/smd0
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.telephony.default_network=0
ro.telephony.call_ring.multiple=false
ro.telephony.ril_class=semc
wifi.interface=eth0
wifi.supplicant_scan_interval=15
ro.sf.lcd_density=240
keyguard.no_require_sim=true
ro.com.google.locationfeatures=1
dalvik.vm.dexopt-flags=m=y
dalvik.vm.heapsize=32m
dalvik.vm.dexopt-data-only=1
dalvik.vm.lockprof.threshold=500
dalvik.vm.execution-mode=int:jit
dalvik.vm.checkjni=false
ro.opengles.version=131072
ro.compcache.default=0
ro.product.locale.language=en
ro.product.locale.region=US
BUILD_UTC_DATE=0
ro.rommanager.developerid=cyanogenmod
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.com.google.clientidbase=android-google
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.config.ringtone=Playa.ogg
ro.config.notification_sound=regulus.ogg
ro.config.alarm_alert=Alarm_Beep_03.ogg
ro.modversion=CyanogenMod-7.1.0-XperiaPlay-R800i-KANG
ro.setupwizard.mode=OPTIONAL
dalvik.vm.dexopt-flags=m=y
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt
Click to expand...
Click to collapse
Can anyone notice anything wrong or missed out in that?
The Sony Ericsson Xperia Play is known as "zeus", not "rachael". That's the X10.
Yes, ive already changed that in the build.prop. (The bits where it says rachael are commented.).
http://android.modaco.com/topic/341986-how-to-port-miui/
There's a full guide. But it is in Engrish and it mentions you need a Kitchen and a build script.....
Bad news, we can't get any help from FXP. This is the response to a PM I sent them. Going to see if Blagus can offer us any insight.
sorry we dont suport porting roms
Click to expand...
Click to collapse
use adreno205 libs
also which android version is miui, u trying, based on? 2.3.3/2.3.4/2.3.5+ cause the ramdisk in kernel will have to correspond else device wont boot... miui also has another BIG issue of requiring VM_SPLIT addresses for some devices.... in that case u will need to make a new kernel...
Ok,
So from what you see I need to make sure that the android version is the same when compiling and where do I get these adreno205 libs from?
Thanks for helping though.
EDIT:
Version 2.3.5 For Android. Isn't the latest CM7 2.4.7? (This could be the first issue)
XperiaPlayer said:
Ok,
So from what you see I need to make sure that the android version is the same when compiling and where do I get these adreno205 libs from?
Thanks for helping though.
EDIT:
Version 2.3.5 For Android. Isn't the latest CM7 2.4.7? (This could be the first issue)
Click to expand...
Click to collapse
u can try kernels with 2.3.4 ramdisk or FXP kernel...
Message to above: Yes i am using them kernals. Would your kernal work?
----------
Thanks for your help. Ive looked at the script in the X10 Forum and It needs the following files:
/usr folder (ICU, keychars, keylayout, share, srec)
MC Folder (FlashDevice.smali, TorchSwitch.smali)
/system/bin -
atfwd-daemon
debuggerd
dhcpd
dnsmasq
drmioserver
drmserver
hostapd
kexec-tool
klogrouter
make_ext4s
mtp
netd
rild
sh
startupflag
suntrolkac
vold
wpa_supplicant
/system/etc
init.es209ra.bt
fstab
01_qcomm_omx.cfg
wifi folder
permissions folder
dhcpd folder
/system/lib
modules ->
wifi.ko
data.patch.hw2_0.bin
athwlan.bin.z77
libandroid_runtime.so
libc.so
libcamera.so
libcamera_client.so
libcamerasemc.so
libcameraservice.so
libdrmframework.so
libhardware_legacy.so
libidd.so
libiprouteutil.so
libloc_api.so
libnetutils.so
libopencore_common.so
libopencore_net_support.so
libopencore_player.so
libpdapi.so
libpdsm_atl.so
libping_mdm.so
libprotobuf-c.so
libqcomm_omx.so
libreference-ril.so
libroparsertest.so
libstagefrighthw.so
libwebcore.so
/system/xbin
oprofiled
/xrec - ONLY THINK THIS IS FOR XRECOVERY
/xrec/bin
chargemon
charger
su
/xrec/xbin
sh
xrecovery
Click to expand...
Click to collapse
The meat of the script seems to be this bit:
7za.exe e services.jar classes.dex
java -jar baksmali.jar -o mi/ classes.dex
copy /y Native*.smali mi\com\android\server\
del classes.dex
java -Xmx512M -jar smali.jar mi/ -o classes.dex
ren services.jar services.zip
7za.exe a services.zip classes.dex
ren services.zip services.jar
cd.. >nul
move /y temp\services.jar miui\framework\
del temp\services.jar
del temp\classes.dex
rmdir /s /q temp\mi
ren miui system
mkdir miui
copy /y temp\my_miui.zip \template\
call temp\7za.exe a my_miui.zip system
rmdir /s /q system
call temp\7za.exe d my_miui.zip system\etc\dhcpcd
call temp\7za.exe d my_miui.zip system\etc\wifi
call temp\7za.exe d my_miui.zip system\lib\modules
cd temp\patch\
xcopy /e system \template\system\
cd..
cd..
call temp\7za.exe a my_miui.zip system
call temp\7za.exe d my_miui.zip META-INF\com\google\android\update-script
rmdir /s /q system
ren my_miui.zip my_miui_cwm_luke_kernel.zip
cls
Click to expand...
Click to collapse
I have also manually created my own version (following a manual guide here on xda and modaco). However I cant flash it . I always get Error 6 when trying to install the zip using CWM.
The update-script has unix file endings and is correct. (Contents below). And the zip is signed and created using 7zip (Windows 7).
show_progress 0.500000 0
format CACHE:
format DATA:
format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
symlink dumpstate SYSTEM:bin/dumpcrash
symlink busybox SYSTEM:xbin/[
symlink busybox SYSTEM:xbin/[[
symlink busybox SYSTEM:xbin/arp
symlink busybox SYSTEM:xbin/ash
symlink busybox SYSTEM:xbin/awk
symlink busybox SYSTEM:xbin/basename
symlink busybox SYSTEM:xbin/bbconfig
symlink busybox SYSTEM:xbin/brctl
symlink busybox SYSTEM:xbin/bunzip2
symlink busybox SYSTEM:xbin/bzcat
symlink busybox SYSTEM:xbin/bzip2
symlink busybox SYSTEM:xbin/cal
symlink busybox SYSTEM:xbin/catv
symlink busybox SYSTEM:xbin/chgrp
symlink busybox SYSTEM:xbin/chmod
symlink busybox SYSTEM:xbin/chown
symlink busybox SYSTEM:xbin/cksum
symlink busybox SYSTEM:xbin/clear
symlink busybox SYSTEM:xbin/cmp
symlink busybox SYSTEM:xbin/cp
symlink busybox SYSTEM:xbin/cpio
symlink busybox SYSTEM:xbin/cut
symlink busybox SYSTEM:xbin/date
symlink busybox SYSTEM:xbin/dc
symlink busybox SYSTEM:xbin/dd
symlink busybox SYSTEM:xbin/depmod
symlink busybox SYSTEM:xbin/devmem
symlink busybox SYSTEM:xbin/df
symlink busybox SYSTEM:xbin/diff
symlink busybox SYSTEM:xbin/dirname
symlink busybox SYSTEM:xbin/dmesg
symlink busybox SYSTEM:xbin/dnsd
symlink busybox SYSTEM:xbin/dos2unix
symlink busybox SYSTEM:xbin/du
symlink busybox SYSTEM:xbin/echo
symlink busybox SYSTEM:xbin/ed
symlink busybox SYSTEM:xbin/egrep
symlink busybox SYSTEM:xbin/env
symlink busybox SYSTEM:xbin/expr
symlink busybox SYSTEM:xbin/false
symlink busybox SYSTEM:xbin/fdisk
symlink busybox SYSTEM:xbin/fgrep
symlink busybox SYSTEM:xbin/find
symlink busybox SYSTEM:xbin/fold
symlink busybox SYSTEM:xbin/free
symlink busybox SYSTEM:xbin/freeramdisk
symlink busybox SYSTEM:xbin/fuser
symlink busybox SYSTEM:xbin/getopt
symlink busybox SYSTEM:xbin/grep
symlink busybox SYSTEM:xbin/gunzip
symlink busybox SYSTEM:xbin/gzip
symlink busybox SYSTEM:xbin/head
symlink busybox SYSTEM:xbin/hexdump
symlink busybox SYSTEM:xbin/id
symlink busybox SYSTEM:xbin/ifconfig
symlink busybox SYSTEM:xbin/insmod
symlink busybox SYSTEM:xbin/install
symlink busybox SYSTEM:xbin/ip
symlink busybox SYSTEM:xbin/kill
symlink busybox SYSTEM:xbin/killall
symlink busybox SYSTEM:xbin/killall5
symlink busybox SYSTEM:xbin/length
symlink busybox SYSTEM:xbin/less
symlink busybox SYSTEM:xbin/ln
symlink busybox SYSTEM:xbin/losetup
symlink busybox SYSTEM:xbin/ls
symlink busybox SYSTEM:xbin/lsmod
symlink busybox SYSTEM:xbin/lspci
symlink busybox SYSTEM:xbin/lsusb
symlink busybox SYSTEM:xbin/lzop
symlink busybox SYSTEM:xbin/lzopcat
symlink busybox SYSTEM:xbin/md5sum
symlink busybox SYSTEM:xbin/mkdir
symlink busybox SYSTEM:xbin/mke2fs
symlink busybox SYSTEM:xbin/mkfifo
symlink busybox SYSTEM:xbin/mkfs.ext2
symlink busybox SYSTEM:xbin/mknod
symlink busybox SYSTEM:xbin/mkswap
symlink busybox SYSTEM:xbin/mktemp
symlink busybox SYSTEM:xbin/modprobe
symlink busybox SYSTEM:xbin/more
symlink busybox SYSTEM:xbin/mount
symlink busybox SYSTEM:xbin/mountpoint
symlink busybox SYSTEM:xbin/mv
symlink busybox SYSTEM:xbin/netstat
symlink busybox SYSTEM:xbin/nice
symlink busybox SYSTEM:xbin/nohup
symlink busybox SYSTEM:xbin/nslookup
symlink busybox SYSTEM:xbin/ntpd
symlink busybox SYSTEM:xbin/od
symlink busybox SYSTEM:xbin/patch
symlink busybox SYSTEM:xbin/pgrep
symlink busybox SYSTEM:xbin/pidof
symlink busybox SYSTEM:xbin/ping
symlink busybox SYSTEM:xbin/pkill
symlink busybox SYSTEM:xbin/printenv
symlink busybox SYSTEM:xbin/printf
symlink busybox SYSTEM:xbin/ps
symlink busybox SYSTEM:xbin/pwd
symlink busybox SYSTEM:xbin/rdev
symlink busybox SYSTEM:xbin/readlink
symlink busybox SYSTEM:xbin/realpath
symlink busybox SYSTEM:xbin/renice
symlink busybox SYSTEM:xbin/reset
symlink busybox SYSTEM:xbin/rm
symlink busybox SYSTEM:xbin/rmdir
symlink busybox SYSTEM:xbin/rmmod
symlink busybox SYSTEM:xbin/route
symlink busybox SYSTEM:xbin/run-parts
symlink busybox SYSTEM:xbin/sed
symlink busybox SYSTEM:xbin/seq
symlink busybox SYSTEM:xbin/setsid
symlink busybox SYSTEM:xbin/sh
symlink busybox SYSTEM:xbin/sha1sum
symlink busybox SYSTEM:xbin/sha256sum
symlink busybox SYSTEM:xbin/sha512sum
symlink busybox SYSTEM:xbin/sleep
symlink busybox SYSTEM:xbin/sort
symlink busybox SYSTEM:xbin/split
symlink busybox SYSTEM:xbin/stat
symlink busybox SYSTEM:xbin/strings
symlink busybox SYSTEM:xbin/stty
symlink busybox SYSTEM:xbin/swapoff
symlink busybox SYSTEM:xbin/swapon
symlink busybox SYSTEM:xbin/sync
symlink busybox SYSTEM:xbin/sysctl
symlink busybox SYSTEM:xbin/tac
symlink busybox SYSTEM:xbin/tail
symlink busybox SYSTEM:xbin/tar
symlink busybox SYSTEM:xbin/tee
symlink busybox SYSTEM:xbin/telnet
symlink busybox SYSTEM:xbin/test
symlink busybox SYSTEM:xbin/tftp
symlink busybox SYSTEM:xbin/time
symlink busybox SYSTEM:xbin/top
symlink busybox SYSTEM:xbin/touch
symlink busybox SYSTEM:xbin/tr
symlink busybox SYSTEM:xbin/traceroute
symlink busybox SYSTEM:xbin/true
symlink busybox SYSTEM:xbin/tty
symlink busybox SYSTEM:xbin/tune2fs
symlink busybox SYSTEM:xbin/umount
symlink busybox SYSTEM:xbin/uname
symlink busybox SYSTEM:xbin/uniq
symlink busybox SYSTEM:xbin/unix2dos
symlink busybox SYSTEM:xbin/unlzop
symlink busybox SYSTEM:xbin/unzip
symlink busybox SYSTEM:xbin/uptime
symlink busybox SYSTEM:xbin/usleep
symlink busybox SYSTEM:xbin/uudecode
symlink busybox SYSTEM:xbin/uuencode
symlink busybox SYSTEM:xbin/vi
symlink busybox SYSTEM:xbin/watch
symlink busybox SYSTEM:xbin/wc
symlink busybox SYSTEM:xbin/wget
symlink busybox SYSTEM:xbin/which
symlink busybox SYSTEM:xbin/whoami
symlink busybox SYSTEM:xbin/xargs
symlink busybox SYSTEM:xbin/yes
symlink busybox SYSTEM:xbin/zcat
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/dd
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/ionice
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/nandread
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/newfs_msdos
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/reboot
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/uptime
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe
symlink iwmulticall SYSTEM:xbin/iwconfig
symlink iwmulticall SYSTEM:xbin/iwgetid
symlink iwmulticall SYSTEM:xbin/iwlist
symlink iwmulticall SYSTEM:xbin/iwpriv
symlink iwmulticall SYSTEM:xbin/iwspy
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02750 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 2000 06750 SYSTEM:bin/run-as
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluetooth
set_perm 0 0 0755 SYSTEM:etc/bluetooth
set_perm 1000 1000 0640 SYSTEM:etc/bluetooth/auto_pairing.conf
set_perm 3002 3002 0444 SYSTEM:etc/bluetooth/blacklist.conf
set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm_recursive 0 2000 0755 0750 SYSTEM:etc/init.d
set_perm 0 0 0755 SYSTEM:etc/init.d
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp
set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin
set_perm 0 0 06755 SYSTEM:xbin/apply_firewall
set_perm 0 0 06755 SYSTEM:xbin/apply_theme
set_perm 0 0 06755 SYSTEM:xbin/dumplog
set_perm 0 0 06755 SYSTEM:xbin/hcitool
set_perm 0 0 06755 SYSTEM:xbin/librank
set_perm 0 0 06755 SYSTEM:xbin/ota
set_perm 0 0 06755 SYSTEM:xbin/procmem
set_perm 0 0 06755 SYSTEM:xbin/procrank
set_perm 0 0 06755 SYSTEM:xbin/su
set_perm 0 0 04755 SYSTEM:recovery/sh
show_progress 0.200000 0
show_progress 0.200000 10
show_progress 0.100000 0
delete_recursive DATA:dalvik-cache
delete_recursive /sd-ext/dalvik-cache
Click to expand...
Click to collapse
That error 6 sounds like you're using the wrong update-script format, amend and not edify for CWM 3.x?
Regards Dousan...

Extsdcard backward compatibility init.d script symlink

Symlink needs to be /sdcard1 at root, I now only have /ext_card and /storage/sdcard1
I used the following in terminal to make sure it worked and it did, once:
Code:
ln -s /storage/sdcard1 /sdcard1
Then I created a script in /etc/init.d/99sdcard1 with that same line
Code:
#!/system/bin/sh
ln -s /storage/sdcard1 /sdcard1
Doesn't create the symlink, and when trying the command in terminal it now prints:
ln: sdcard1: Read-only file system
I have a Z Ultra c6833 RR LP rom and TWRP 3.0.2 and should have init.d support since I do have /system/etc/init.d + /etc/init.d and there's files in it.
I think a symlink should do it, I rather not use mount points for something like this, thanks in advance for any help.
Anyone know what's missing from the equation??
Come on guys please I did use forum's search but nothing, how to make permanent symlink for extsdcard at read-only rootfs? Someone must know this..

Creating Symlink to ext SDCard, so internal has enough space left

Hello Everyone,
I want to create a folder symlink from my internal to my external sdcard, because my whatsapp folder takes too much space on my internal sdcard.
However when i put the ln command into the adb shell, i get an error, even though i am on the root user:
Code:
land:/ # ln -s /storage/self/primary/WhatsApp/ /storage/BECE-1BF7/WhatsApp/
ln: cannot create symbolic link from '/storage/self/primary/WhatsApp/' to '/storage/BECE-1BF7/WhatsApp//WhatsApp': Operation not permitted
Why can't i create the symlink?
Apps like FolderMount do also not work, because they rely on SuperSU and i am using the LineageOS root binary.
I am running LineageOS 14.1
Best regards
Typhoon

Categories

Resources