Unfortunately we do not accept new members for free, Now Registration cost 30€, if you are interesting Send Email to [email protected]

BMW CIC USB SCRIPT ACTIVATOR
04-04-2017, 18:50 PM, (This post was last modified: 04-04-2017, 19:26 PM by intel123.)
Post: #1
XZBMW  BMW CIC USB SCRIPT ACTIVATOR
So like title says, this is script activator for BMW CIC

format usb to fat32
copy file from MEGA link to USB root folder (copie_scr.sh)
insert USB into CIC

it will make script activation and reboot the CIC if successful.

Also, since in copie_scr.sh is packed a binary not a script, just for full disclosure i will attach source code here even it is simple one.

PHP Code:
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/sysmgr.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "CIC_HU.h"

const char_target "/EFS_RO/startl6sss.sh";
const 
char_backup "/EFS_RO/startl6sss.sav";
const 
char_script "/EFS_RO/SWT_enable.sh";

int _remount() {
    return 
mount(NULL,"/mnt/EFS_RO",_MOUNT_REMOUNT,NULL,NULL,NULL);
}

void _reboot() {
    
sysmgr_reboot();
}

void _deploy_enabler(){
    
remove(_script);
    
FILE *f2 fopen(_script,"ab+");
    
fwrite(_enabler,sizeof(char),sizeof(_enabler),f2);
    
fclose(f2);
    
chmod(_scriptS_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
};

int _modify_startup() {
    
FILE *f0;
    
FILE *f1;
    
int i 0;
    
int ctr 0;
    
rename(_target_backup);
    
f0 fopen(_backup,"r");
    
f1 fopen(_target,"ab+");
    if(
f0!=NULL) {
        while((
i=fgetc(f0)) != EOF) {
            if(
ctr==11) {
                
fprintf(f1"%s &\n",_script);
            } else {
                
fputc(i,f1);
            }
        
ctr++;
        }
    
fclose(f0);
    
fclose(f1);
    
chmod(_targetS_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
    return 
0;
    }
    return -
1;
};    

bool _fileexists (const char _filename) {
    if (
FILE *file fopen(_filename"r")) {
        
fclose(file);
        return 
true;
    } else {
        return 
false;
    }   
}

int main(int argcchar *argv[]) {
    
std::cout << "CIC_HU - Script aktivator" << std::endl;
    if(
_fileexists(_backup)) {
        
std::cout << "Backup fajl postoji." << std::endl;
        return 
1;
    }
    if (
_remount() == -1) {
        
std::cout << "Remount problem" << std::endl;
        return 
1;
    }
    if (
_modify_startup() != 0) {
        
std::cout << "problem pri izvrsavanju" << std::endl;
        return 
1;
    }
    
_deploy_enabler();
    
std::cout << "Zavrseno" << std::endl;
    
_reboot();
  return 
0;


and the actual script
Code:
#!/bin/ksh
set -A etc 17 18 19 1A 1B
while true ; do
    for code in ${etc[@]}
        do
            swt="/mnt/HBpersistence/00"$code"0001.swt"
            if [ ! -e $swt ]; then
                touch $swt
            fi
        done
    sleep 5;
done


Attached Files
SCRIPT ACTIVATOR.txt
File Type: .txt
Downloaded: 1,797 times
Size: 70 bytes


[Image: 18.08.44-17.09.18.gif]
BlackBOX Sistemi, Automotive   
Reputation: +42 - Jartsa [+1] , pshoey [+1] , volavka [+2] , Czozen [+1] , darksool [+1] , Reclaimer [+1] , Fx82 [+1] , Twoone [+1] , BMWzone [+1] , RocketSurgeon [+1] , inspi1981 [+1] , CarCod [+1] , zfrepairtm [+1] , gvitkis [+1] , brunoman [+1] , winter [+1] , CATAHA [+1] , Loliceman [+1] , syrus [+1] , rafi-88 [+1] , yarickoff [+1] , georgia55 [+1] , atomantmk [+1] , RReader [+1] , bmm-71 [+1] , aaaok [+1] , petkowo [+1] , shintake [+1] , ValeS [+1] , MeMpHiSj [+1] , tortu25 [+1] , tigre [+1] , umutbulut [+1] , atc1979dc [+1] , bulletvip [+1] , NeRkO20 [+1] , t1tan1 [+1] , gaintp [+1] , vainn [+1] , bm92 [+1] , max72 [+1]
Visit this user's website
[+] 191 users say Thank You to intel123 for this post
04-04-2017, 23:09 PM,
Post: #2
RE: BMW CIC USB SCRIPT ACTIVATOR
Have just check it and works like a charm smile

Followed the steps related above, and ... once that the screen goes to red, when wake up from restart, navigation is working smile
[+] 4 users say Thank You to fumantwo for this post
05-04-2017, 00:02 AM, (This post was last modified: 05-04-2017, 00:09 AM by sacaman.)
Post: #3
RE: BMW CIC USB SCRIPT ACTIVATOR
Hi

please can you explain how do you convert it to a bin file

and thanks for your share

sacaman
[+] 1 user says Thank You to sacaman for this post
05-04-2017, 05:03 AM,
Post: #4
RE: BMW CIC USB SCRIPT ACTIVATOR
(05-04-2017, 00:02 AM)sacaman Wrote:  Hi

please can you explain how do you convert it to a bin file

and thanks for your share

sacaman

Read thread again. You have nothing to convert.
[+] 2 users say Thank You to muskatas for this post
05-04-2017, 06:31 AM,
Post: #5
RE: BMW CIC USB SCRIPT ACTIVATOR
(05-04-2017, 00:02 AM)sacaman Wrote:  Hi

please can you explain how do you convert it to a bin file

and thanks for your share

sacaman

SHC: http://www.thegeekstuff.com/2012/05/encr...ll-script/
[+] 2 users say Thank You to rafi-88 for this post
05-04-2017, 06:53 AM,
Post: #6
RE: BMW CIC USB SCRIPT ACTIVATOR
Making copie_scr.sh into readable format (bin format) by CIC is already published and documented: it uses simple xor, important thing when you are making copie_scr.sh on windows is that your source file (actual shell script) should be UNIX STYLE End of Line and ANSI encoding not UTF as encoders will mostly fail then since the difference in char size. Easiest way for end-users to check this is notepad++ at it has everything integrated into menu (EDIT->EOL CONVERSION and Encoding: ANSI). And only way i chosen to write a program for script activation is that QNX on CIC is missing many GNU tools in its bin directory so i was unable to script actual process and had to made native bin for it.

[Image: 18.08.44-17.09.18.gif]
BlackBOX Sistemi, Automotive   
Visit this user's website
05-04-2017, 13:36 PM,
Post: #7
RE: BMW CIC USB SCRIPT ACTIVATOR
And this goes for both Exx and Fxx CIC systems?

Don't forget to press [Image: thanks.gif] and [Image: postbit_reputation.gif], if my post helped you.
Visit this user's website
[+] 2 users say Thank You to mjuhl2003 for this post
05-04-2017, 13:40 PM,
Post: #8
RE: BMW CIC USB SCRIPT ACTIVATOR
(05-04-2017, 13:36 PM)mjuhl2003 Wrote:  And this goes for both Exx and Fxx CIC systems?

Yes.

[Image: 18.08.44-17.09.18.gif]
BlackBOX Sistemi, Automotive   
Reputation: +1 - ChampioNbg [+1]
Visit this user's website
06-04-2017, 09:08 AM,
Post: #9
RE: BMW CIC USB SCRIPT ACTIVATOR
Will it also suit Mini Cooper Mask-2 (with) Move map?
06-04-2017, 09:23 AM,
Post: #10
RE: BMW CIC USB SCRIPT ACTIVATOR
Hi to all.

Can someone tell me how maps would be loaded if this script is used to activate navigation and maps?

The loading of the maps would be the same way as before installing the script or must be done in a different way.

Thank you and greetings.
ATC

If any of my posts or current one helps then don't forget to press thanks and add a reputation. thumbsup


Possibly Related Threads…
Thread Author Replies Views Last Post
  APIX2 on EVO HW2.3 ID5/ID6 script fix superwofy 4 706 12-04-2024, 23:23 PM
Last Post: Gatsby79
  Anyone have a set of esys plus script? tokenmasterhk 5 925 03-07-2022, 23:45 PM
Last Post: tokenmasterhk
XZBMW CIC Script Activation files needed AlpineF30 11 2,625 20-05-2022, 03:01 AM
Last Post: cb6688999
XZBMW Script or Utility to grab VIN? BlueMeetsWhite 4 873 07-04-2022, 15:36 PM
Last Post: BlueMeetsWhite
  1b script for CIC Pro ad-d 0 400 01-02-2022, 22:09 PM
Last Post: ad-d
XZBMW BMW CIC USB SCRIPT ACTIVATOR April-rs125 3 769 20-01-2022, 14:41 PM
Last Post: NeRkO20
XZBMW WINkfp spdaten update script jararak 10 4,354 25-05-2019, 15:20 PM
Last Post: dfitz21
XZBMW Remove script activation from retrofitted CIC in 2007 M3 AlpineF30 4 903 08-04-2019, 07:16 AM
Last Post: huzionet
XZBMW BMW CIC prof How to delete a script huzionet 3 1,237 07-04-2019, 18:05 PM
Last Post: huzionet
  F11 CIC retrofit - can't enable navigation by script or custom FSC's claw 5 1,080 20-02-2019, 09:57 AM
Last Post: claw

Forum Jump:


Users browsing this thread:
3 Guest(s)

Return to TopReturn to Content