Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Update Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Update Question

    Is it worth while to update the roms I made. I made a new script that on first boot will install any apk that is in an /apk folder on external sd card only on first boot. It is good for me because i flash a lot. let me know if there is any interest.
    Prahjister ****MK808(nonB)****MK808B V5****MK808B Plus****UBOX R89**** CX919****MK808B Pro****Nexbox N9****Eny Em95****Matricon Q2****Tanix TX5 Pro****

    #2
    Sounds interesting !

    Comment


      #3
      Script

      Here is the script. Put this in your init.d to test. Remember to give it permissions to execute.
      To test put an apk on your external sd card in /apk directory. Reboot. It might not show up that boot reboot again and it should be installed. I will add it to any new roms.

      Code:
      #!/system/bin/sh
      sleep 30s
      FLAG="/data/system/firstboot.log"
      if [ ! -f $FLAG ]; then
          mount -o remount,rw rootfs /
          mount -o remount,rw /system
          cd /mnt/external_sd/apk
          for file in $(ls *.apk)
          do
              if [ ! -f "/data/app/$file" ]; then
                  echo $file
                  busybox cp /mnt/external_sd/apk/$file /data/app/
                  chown system:system /data/app/$file
                  chmod 644 /data/app/$file
              fi
         touch $FLAG
         done
      else
         echo "Do nothing"
      fi
      Prahjister ****MK808(nonB)****MK808B V5****MK808B Plus****UBOX R89**** CX919****MK808B Pro****Nexbox N9****Eny Em95****Matricon Q2****Tanix TX5 Pro****

      Comment

      Working...
      X