yes, i change preseted value after they are initialised by starting of exeDSP, this i have today success tested on my D8000 TV,
tv create all files like drm is enabled just the recorded .srf file is not scrambled.
must check is it posible on same way to do on C serie.
this way is just posible by injectso or loading a game from SmartHub/Internet@TV where Injectso i did not use.
also , i have also alredy patched samdrv.ko , so the tool posted on 1st posting will be soon replaced by new one.
Code: Select all
void DRM_Disable(void) {
void *dl_handle;
void* tmpfunc;
funcexe tmp;
char *error;
unsigned char *rc;
dl_handle = dlopen( NULL, RTLD_NOW | RTLD_GLOBAL );
if (!dl_handle) {
fprintf(log_fp,"[CIP_SAMYGO] Open exeDSP self %s\n", dlerror() );
return;
}
tmpfunc = (void*) dlsym( dl_handle, "_ZN9SingletonI9ConfigureE11getInstanceEv" );
error = dlerror();
if (error != NULL) {
fprintf(log_fp,"[CIP_SAMYGO] Singleton::Configure::getInstanc func load error -> %s\n", error );
return;
}
fprintf(log_fp,"[CIP_SAMYGO] Singleton::Configure::getInstanc func loaded\n" );
assert(sizeof(funcexe) == sizeof(tmpfunc));
memcpy(&tmp, &tmpfunc, sizeof(tmpfunc));
fprintf(log_fp,"[CIP_SAMYGO] Singleton::Configure::getInstanc func loaded @ %x\n" , tmp );
rc = tmp( );
if (rc) {
fprintf(log_fp, "[CIP_SAMYGO]DRM Config before : %x %x \n", tmp, rc );
fprintf(log_fp,"[CIP_SAMYGO] %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x \n", rc[0],rc[1],rc[2],rc[3],rc[4],rc[5],rc[6],rc[7],rc[8],rc[9],rc[10],rc[11],rc[12],rc[13],rc[14] );
rc[4] = 0; // -----> Is Drm Apply 0 or 1
// rc[5] = 1; // -----> CanPrintDrmKey 0 or 1
// rc[13]= 1; // -----> CanExtractFrameData 0 or 1
fprintf(log_fp, "[CIP_SAMYGO] DRM Config after : %x %x \n", tmp, rc );
fprintf(log_fp,"[CIP_SAMYGO] %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x %02x \n", rc[0],rc[1],rc[2],rc[3],rc[4],rc[5],rc[6],rc[7],rc[8],rc[9],rc[10],rc[11],rc[12],rc[13],rc[14] );
} else {
fprintf(log_fp, "Singleton::Configure::getInstanc func error caling\n" );
}
dlclose( dl_handle );
}
cat /proc/kmsg give :
Code: Select all
<4>[CIP_SAMYGO] Singleton::Configure::getInstanc func loaded @ 11eccd0
<4>[CIP_SAMYGO] DRM Config before : 11eccd0 73aef60
<4>[CIP_SAMYGO] 00 78 3e 03 01 00 00 00 18 15 00 00 01 00 00
<4>[CIP_SAMYGO] DRM Config after : 11eccd0 73aef60
<4>[CIP_SAMYGO] 00 78 3e 03 00 00 00 00 18 15 00 00 01 00 00
// EDIT ON
just checked T-VALDEUC ,
thre are no config setup like on D serie

, basicly this can be also done by modify exeDSP but is it relay need to spend time if it can be done in samdrv.ko ?
// EDIT OFF