Announcement

Collapse

Microsoft Mail Accounts not Working

Hello,

We like to Inform you, that we can not Send Mailīs to Microsoft Mail Service.
This means User with an E-Mail Account @ Hotmail, Outlook, Live etc. will
not receive any Mails from us.
This is not our fault, we are in Contact with them but so far no Answer.
We will let you know when the Issue is fixed!

Freaktab Admin Team
See more
See less

A New Preinstall.sh For TV boxes.

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

  • A New Preinstall.sh For TV boxes.

    Abdul_PT Created a Script for me to use in a Firmware that i Am Building For the KII units. I Was Running Low on System Space and I needed to Compress data to save space on the system partition.

    I Made Some Simple Modifications. And Have tested them out and it appears to work well. Your mileage May vary

    This Script Should Log any Errors to ' /storage/emulated/legacy/Android/preinstall_script_err_log '

    It Will Install Apps (APKS) from preinstall.tar.gz. just place your apk files in the root of the archive (I used maximum compression and ultra with no issues)
    You Can Also Place your uncompressed apks in /preinstall
    It Will install data to the "Home" Folder Android,DCIM,Download,media (etc,etc) from datapack.tar.gz I have included a Template
    Datapack.tar.gz Template
    https://mega.nz/#!fkYT3TQQ!P0TqdZfX_...oJivh0YuQclYeU


    All the Credit goes to Abdul_PT

    Code:
    #!/system/bin/sh
     
    APPMARK=/data/local/pre_installed_apps_success
    PKGS=/system/preinstall
    DCONF=/storage/emulated/legacy/Android/pre_install_data_success
    DATA=/storage/emulated/legacy/
    LOG=/storage/emulated/legacy/Android/preinstall_script_err_log
    
    if [ ! -e $APPMARK ]; then
    echo "The System is Booting for the First Time, Please Wait While Some Apps Are Pre-installed"
    mkdir -p /storage/emulated/legacy/apps 2>&1 | tee $LOG
    mkdir -p /storage/emulated/legacy/Download 2>&1 | tee $LOG
    
    
    busybox find $PKGS -name "*\.apk" -exec sh /system/bin/pm install {} \; 2>&1 | tee $LOG
    
    # The Below Script Will install apps (APKS) from preinstall.tar.gz (just create it with all your apks in the root of the archive #
    
    
    busybox tar xzf $PKGS/preinstall.tar.gz -C /storage/emulated/legacy/apps 2>&1 | tee $LOG
    busybox find /storage/emulated/legacy/apps -name "*\.apk" -exec sh /system/bin/pm install {} \; 2>&1 | tee $LOG
    busybox rm -rf /storage/emulated/legacy/apps 2>&1 | tee $LOG
     
    touch $APPMARK
    echo "Application Pre-install complete. Please wait While the Data Pack is Extracted"
    
    # Install "DATAPACK" It is a Tar.gz that will install data to /storage/emulated/0 (legacy in this script) #
    # You Can Use this to include files and or data in that location for example preload a downloads folder with some games or include your own custom xbmc config #
    
    if [ ! -e $DCONF ]; then
       mkdir -p /storage/emulated/legacy/Android/data/org.xbmc.kodi 2>&1 | tee $LOG
       mkdir -p /storage/emulated/legacy/DCIM 2>&1 | tee $LOG
       mkdir -p /storage/emulated/legacy/wallpapers
    fi
    busybox tar xzf $PKGS/datapack.tar.gz -C $DATA 2>&1 | tee $LOG
    touch $DCONF
    fi

  • #2
    If I add echo "1" > /sys/devices/virtual/amhdmitx/amhdmitx0/rgb_mode
    will it work?

    Comment

    Working...
    X