• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root {MS323} Cyanogenmod Development thread.

That's okay. :)
Hey buddy. Happy Holidays to you and your family.... Looking to skype family over the Holidays .... My question is ... Should I try the recent cm11 or go back to stock. Honestly, I can't fix the camera on it. Just want a good option because u know a lot more than me . thank u Bud
 
Hey buddy. Happy Holidays to you and your family.... Looking to skype family over the Holidays .... My question is ... Should I try the recent cm11 or go back to stock. Honestly, I can't fix the camera on it. Just want a good option because u know a lot more than me . thank u Bud
The only difference is, do you want back camera or not? That's the only difference really
 
I am grateful for that. Wrong thread.... I a can't use skpye through cm 12 . will go back to stock for a few days. Its amazing though how cm 12 just loads up and fires up. I wish u the best
 
I am grateful for that. Wrong thread.... I a can't use skpye through cm 12 . will go back to stock for a few days. Its amazing though how cm 12 just loads up and fires up. I wish u the best
Probably because of the video streaming issue.... Thanks for letting me know.
 
can someone help me ? I'm working on a script to mount ext4 partition and move all data to ext-card . I keep getting error (Installing unionfs...
mount () expects 4 args, got 3
E:Error in /external_sd/sd card 40ad2sdx-a2Recovery.zip
(status 7)
installation aborted
this is for cm11323
 
Last edited:
can someone help me ? I'm working on a scrip to mount ext4 partition and move all data to ext-card . I keep getting error (Installing unionfs...
mount () expects 4 args, got 3
E:Error in /external_sd/sd card 40ad2sdx-a2Recovery.zip
(status 7)
installation aborted
this is for cm11323
What recovery are you using?
 
TWRP = not work

I need one more argument in this script
Code:
#!/system/bin/sh
#
# AMARULLZ DATA TO SDCARD1 MOD FOR ANDROID ( AD2SDX )
# ==================================================
#
#  by amarullz [at] yahoo [dot] com
#  xda-developers : amarullz
#  (c) 2011
#  * Oct 19 (ALPHA01)
#
#  Info: ~ For Changing Log
##

###
# Initializing
###

#-- SDCard Speed Fix
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
  /system/xbin/echo "8192" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

#-- Unmount /sdcard1 if it already mounted
busybox umount /sdcard1;

#-- Mount /data and move it to /sdcard1
busybox mount /data;
busybox mount --move /data /sdcard1;

#-- Mount sdcard1 to /data ( You Will Get 1GB/2GB Internal Memory :D )
busybox mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
busybox chown 1000:1000 /data;
busybox chmod 771 /data;

###[ sdcard1 mmcblk0p2 STRICT ]###
# app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
#
# ~ ALPHA02 - Add framework_s into (mmcblk0p2) strict
###
for i in framework_s app app_s lib_s app-private data;
do
  #-- If Symlink in /data, delete it
  if [ -h /data/$i ]
  then
    busybox rm /data/$i;
  fi;
   
  #-- If Directory Exists in /sdcard1, move it to /data
  if [ -d /sdcard1/$i ]
  then
    busybox mv /sdcard1/$i /data/;
  fi;
 
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /data/$i ]
  then
    busybox mkdir /data/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /data/$i;
  fi;
 
  #-- Now Create Symlink From /sdcard1 to /data
  if [ ! -h /sdcard1/$i ]
  then
    busybox ln -s /data/$i /sdcard1/$i;
  fi;
done;

###[ INTERNAL mtdblock5 STRICT ]###
# For performance, dalvik-cache should be on /sdcard1
###
for i in dalvik-cache;
do
  #-- If Symlink in /data, delete it
  if [ -h /sdcard1/$i ]
  then
    busybox rm /sdcard1/$i;
  fi;
   
  #-- If Directory Exists in /sdcard1, move it to /data
  if [ -d /data/$i ]
  then
    busybox mv /data/$i /sdcard1/;
  fi;
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /sdcard1/$i ]
  then
    busybox mkdir /sdcard1/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /sdcard1/$i;
  fi;
 
  #-- Now Create Symlink From /sdcard1 to /data
  if [ ! -h /data/$i ]
  then
    busybox ln -s /sdcard1/$i /data/$i;
  fi;
done;

###
# Now create symlink of the rest non Symlink Directories and Files on /sdcard1 to /data
#
# ~ ALPHA02 - Fix ls to ls -a, it's ok, because we test -h for symlink
###
cd /sdcard1;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /sdcard1/$i ]
    then
      if [ ! -h /data/$i ]
      then
        busybox ln -s /sdcard1/$i /data/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# It should also need to create the rest non Symlink Directories and Files on /data to /sdcard1
# ~ ALPHA02 - Some Directory may be missing if we don't use it
###
cd /data;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /data/$i ]
    then
      if [ ! -h /sdcard1/$i ]
      then
        busybox ln -s /data/$i /sdcard1/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# Now Important Thing, is to move the com.htc* and com.android* data to /sdcard1(internal)
# For Good performance. So the system applications will run smooth.
#
# System application will read/write in Internal memory, and 3rd apps will run on sdcard
#
# Notice: Will be affected in 2nd boot :D, so Reboot the system after 1st boot...
###

#-- Prepare data_s in /sdcard1( For system data )
if [ ! -d /sdcard1/data_s ]
then
  busybox mkdir /sdcard1/data_s;
  #-- Just Open All Permissions ;)
  busybox chmod 0777 /sdcard1/data_s;
fi;

#-- Now Move All com.htc* and com.android* to Internal Memory
cd /data/data/;
for i in `ls -d com.htc* com.android*`;
do
  #-- Only Non Symlink
  if [ ! -h /data/data/$i ]
  then
      busybox mv /data/data/$i /sdcard1/data_s/;
    fi;
done;

#-- Create Symlink of /data/data_s/* to /data/data/ (mmcblk0p2)
cd /sdcard1/data_s/
for i in `ls -d *`;
do
  #-- Only If Symlink Not Exists
  if [ ! -h /data/data/$i ]
  then
      busybox ln -s /sdcard1/data_s/$i /data/data/$i
    fi;
done;

#-- Of Finished.... :D
 
I need one more argument in this script
Code:
#!/system/bin/sh
#
# AMARULLZ DATA TO SDCARD1 MOD FOR ANDROID ( AD2SDX )
# ==================================================
#
#  by amarullz [at] yahoo [dot] com
#  xda-developers : amarullz
#  (c) 2011
#  * Oct 19 (ALPHA01)
#
#  Info: ~ For Changing Log
##

###
# Initializing
###

#-- SDCard Speed Fix
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
  /system/xbin/echo "8192" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;

#-- Unmount /sdcard1 if it already mounted
busybox umount /sdcard1;

#-- Mount /data and move it to /sdcard1
busybox mount /data;
busybox mount --move /data /sdcard1;

#-- Mount sdcard1 to /data ( You Will Get 1GB/2GB Internal Memory :D )
busybox mount -t ext4 -o noauto_da_alloc,data=ordered,commit=15,barrier=1,nouser_xattr,errors=continue,noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
busybox chown 1000:1000 /data;
busybox chmod 771 /data;

###[ sdcard1 mmcblk0p2 STRICT ]###
# app, app_s, lib_s, app-private, data : should in /data (mmcblk0p2)
#
# ~ ALPHA02 - Add framework_s into (mmcblk0p2) strict
###
for i in framework_s app app_s lib_s app-private data;
do
  #-- If Symlink in /data, delete it
  if [ -h /data/$i ]
  then
    busybox rm /data/$i;
  fi;
   
  #-- If Directory Exists in /sdcard1, move it to /data
  if [ -d /sdcard1/$i ]
  then
    busybox mv /sdcard1/$i /data/;
  fi;
 
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /data/$i ]
  then
    busybox mkdir /data/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /data/$i;
  fi;
 
  #-- Now Create Symlink From /sdcard1 to /data
  if [ ! -h /sdcard1/$i ]
  then
    busybox ln -s /data/$i /sdcard1/$i;
  fi;
done;

###[ INTERNAL mtdblock5 STRICT ]###
# For performance, dalvik-cache should be on /sdcard1
###
for i in dalvik-cache;
do
  #-- If Symlink in /data, delete it
  if [ -h /sdcard1/$i ]
  then
    busybox rm /sdcard1/$i;
  fi;
   
  #-- If Directory Exists in /sdcard1, move it to /data
  if [ -d /data/$i ]
  then
    busybox mv /data/$i /sdcard1/;
  fi;
  #-- If Directory Not Extst in /data, create it
  if [ ! -d /sdcard1/$i ]
  then
    busybox mkdir /sdcard1/$i;
    #-- Just Open All Permissions ;)
    busybox chmod 0777 /sdcard1/$i;
  fi;
 
  #-- Now Create Symlink From /sdcard1 to /data
  if [ ! -h /data/$i ]
  then
    busybox ln -s /sdcard1/$i /data/$i;
  fi;
done;

###
# Now create symlink of the rest non Symlink Directories and Files on /sdcard1 to /data
#
# ~ ALPHA02 - Fix ls to ls -a, it's ok, because we test -h for symlink
###
cd /sdcard1;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /sdcard1/$i ]
    then
      if [ ! -h /data/$i ]
      then
        busybox ln -s /sdcard1/$i /data/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# It should also need to create the rest non Symlink Directories and Files on /data to /sdcard1
# ~ ALPHA02 - Some Directory may be missing if we don't use it
###
cd /data;
for i in `ls -a`;
do
  if [ $i != ".." -a $i != "." ]
  then
    if [ ! -h /data/$i ]
    then
      if [ ! -h /sdcard1/$i ]
      then
        busybox ln -s /data/$i /sdcard1/$i;
      fi;
    fi;
  fi;
done;
cd /;

###
# Now Important Thing, is to move the com.htc* and com.android* data to /sdcard1(internal)
# For Good performance. So the system applications will run smooth.
#
# System application will read/write in Internal memory, and 3rd apps will run on sdcard
#
# Notice: Will be affected in 2nd boot :D, so Reboot the system after 1st boot...
###

#-- Prepare data_s in /sdcard1( For system data )
if [ ! -d /sdcard1/data_s ]
then
  busybox mkdir /sdcard1/data_s;
  #-- Just Open All Permissions ;)
  busybox chmod 0777 /sdcard1/data_s;
fi;

#-- Now Move All com.htc* and com.android* to Internal Memory
cd /data/data/;
for i in `ls -d com.htc* com.android*`;
do
  #-- Only Non Symlink
  if [ ! -h /data/data/$i ]
  then
      busybox mv /data/data/$i /sdcard1/data_s/;
    fi;
done;

#-- Create Symlink of /data/data_s/* to /data/data/ (mmcblk0p2)
cd /sdcard1/data_s/
for i in `ls -d *`;
do
  #-- Only If Symlink Not Exists
  if [ ! -h /data/data/$i ]
  then
      busybox ln -s /sdcard1/data_s/$i /data/data/$i
    fi;
done;

#-- Of Finished.... :D
Wut?
 
Back
Top Bottom