1. Download our Official Android App: Forums for Android!

ICS disapearing applications

Discussion in 'Android Apps & Games' started by Aikimaniac, Jan 2, 2014.

  1. Aikimaniac

    Aikimaniac Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 2, 2014

    Jan 2, 2014
    1
    0
    5
    Hello folks,

    i have problem on gaming console with ICS (JXD S5100). When i install some game for my son (purpose of the device), some games disapear after restart and icon of the game looks like another game (ive had 12 same icons with different name) One guy on xda developers sent me some script to try out but since im not very skilled with source or config in linux/android, i have no idea where to place it. If somebody is able to help me out, i would also post manufacturers url to the ROM but i cant as a noob here and here is the script the guy gave me. Thanks alot for any eventual help.

    Code (Text):
    1. #!/system/bin/sh
    2. #
    3. # Apps2SD using symlinks and bind mounts
    4. # Original Apps2SD script by [email]shade@chemlab.org[/email] (cyanogen)
    5. # Fixed for slow detection of SD cards by _thalamus and output a bit more debugging info so we can see where problems are arising.
    6.  
    7. # execute any postinstall script then kill it
    8.    
    9.  
    10. enablea2sd () {
    11.     # mount and set perms
    12.     busybox mount -o noatime,nodiratime -t auto /dev/block/mmcblk0p2 /sd-ext;
    13.     busybox chown 1000:1000 /sd-ext;
    14.     busybox chmod 771 /sd-ext;
    15.  
    16.     # clean up any old symlinks, create data directories
    17.     for i in data;
    18.     do
    19.         if [ -h /data/$i ];
    20.         then
    21.             rm /data/$i;
    22.         fi;
    23.         if [ ! -d /data/$i ];
    24.         then
    25.             mkdir /data/$i;
    26.             busybox chown 1000:1000 /data/$i;
    27.             busybox chmod 771 /data/$i;
    28.         fi;
    29.     done;
    30.  
    31.     # don't allow /data/data on sd because of upgrade issues - move it if possible
    32.     if [ -d /sd-ext/data ];
    33.     then
    34.         busybox cp -a /sd-ext/data/* /data/data/;
    35.         busybox rm -rf /sd-ext/data;
    36.     fi;
    37.  
    38.     # move apps from internal memory to sdcard
    39.     for i in app app-private dalvik-cache;
    40.     do
    41.         if [ ! -d /sd-ext/$i ];
    42.         then
    43.             mkdir /sd-ext/$i;
    44.         fi
    45.  
    46.         busybox chown 1000:1000 /sd-ext/$i;
    47.         busybox chmod 771 /sd-ext/$i
    48.        
    49.         if [ -d /data/$i ] && [ ! -h /data/$i ];
    50.         then
    51.             busybox cp -a /data/$i/* /sd-ext/$i/;
    52.             busybox rm -f /data/$i/*;
    53.         fi;
    54.     done;
    55.  
    56.     # symlink app dirs - they must be on the same filesystem
    57.     for i in app app-private dalvik-cache;
    58.     do
    59.         if [ -d /data/$i ] && [ ! -h /data/$i ];
    60.         then
    61.             busybox rm -rf /data/$i;
    62.             busybox ln -s /sd-ext/$i /data/$i;
    63.         fi;
    64.     done;
    65.  
    66.     # clean up old whiteouts
    67.     for i in local misc property system tombstones data;
    68.     do
    69.         if [ -h /sd-ext/$i ]; then rm -f /sd-ext/$i; fi
    70.     done;
    71.  
    72.     # please don't put odex files in the app directory people!
    73.     # it causes dexopt to crash when switching builds!
    74.     busybox rm -f /sd-ext/app/*.odex
    75.    
    76.     echo "+++ Apps-to-SD successfully enabled";
    77.  
    78. }
    79.  
    80. disablea2sd() {    # replace symlinks with directories so we can boot without sd
    81.     for i in app app-private dalvik-cache;
    82.     do
    83.        if [ -h /data/$i ];
    84.        then
    85.             rm -f /data/$i;
    86.             mkdir /data/$i;
    87.             busybox chown 1000:1000 /data/$i;
    88.             busybox chmod 771 /data/$i;
    89.         fi;
    90.     done;
    91. }
    92.  
    93.  
    94. if [ -e /dev/block/mmcblk0p1 ]; # We check for the presence of the FAT partition first to see if the SD has initialised.
    95.     then
    96.     echo "SD Card has been initialised...checking for ext partition.";
    97.         if  [ -e /dev/block/mmcblk0p2 ]; # If false, it isn't there so we don't have to sleep the script and delay the boot.
    98.         then
    99.             enablea2sd;
    100.         else
    101.             echo "No ext partition present, apps2sd disabled";
    102.             disablea2sd;
    103.         fi;
    104.        
    105.     else
    106.         sleep 4; #Enables time for a slow SD to be detected and populate the device nodes.
    107.         if [ -e /dev/block/mmcblk0p2 ];
    108.             then
    109.                 echo "enablea2sd for slow SD card";
    110.                 enablea2sd;
    111.             else
    112.                 echo "No ext partition present after sleep, apps2sd disabled";
    113.                 disablea2sd;
    114.             fi;
    115.     fi;
    116.  
    117. sync;
     

    Advertisement

  2. !on

    !on Android Expert
    Rank:
    None
    Points:
    93
    Posts:
    824
    Joined:
    Aug 14, 2011

    Aug 14, 2011
    824
    120
    93
    Male
    UK
    lol I know this is over a month old, but

    Are they still listed in the app manager?

    I had a launcher that did that to me, Apps would reappear if I restarted the launcher. So I changed it.

    (Apologies if that wasn't your problem).
     
    Sepero likes this.
  3. Sepero

    Sepero Linux Guru
    Rank:
    None
    Points:
    163
    Posts:
    963
    Joined:
    Aug 26, 2010

    Aug 26, 2010
    963
    594
    163

Share This Page

Loading...