Update from Settings - OTA Update or TWRP?
Update from Settings - OTA Update or TWRP?
Test all
Use img and usb tools with cable
well i took out Android Tvheadend server from vitmod atv 7.2 and used on my KI pro old tuner with last 14.03.2019 firmare it work and open via web boxip:9981 .. attached th server.
what you need to make it always work.
1- use root explorer & copy tvheadend to system/xbin and give permission 0755
2- open the exist script "dtvdata.sh" located at system/bin and add after the first fi at end
you can inject this also as separated sh at init.rc in kernel and also to stop th_dtv apk occupied the tuner.
as the box can support 2 IC2 so you can make copy of the driver at init.amlogic.rc to let tvheadend communicated with it alone.
it my there other way to let it work rather than the way i did... but all up to you
What do you mean by copy driver of IC2, do you mean I2C? I cannot find this driver in init.amlogic.rc?
Can you share with us the modified files? init.amlogic.rc , the created tvheadend init script , and the changes in initrc
Thanks for this really good job![]()
mkdir -p /dev/dvb
chmod 777 /dev/dvb
mkdir -p /dev/dvb/adapter0
chmod 777 /dev/dvb/adapter0
busybox ln -s /dev/dvb0.frontend0 /dev/dvb/adapter0/frontend0
busybox ln -s /dev/dvb0.demux0 /dev/dvb/adapter0/demux0
busybox ln -s /dev/dvb0.dvr0 /dev/dvb/adapter0/dvr0
busybox ln -s /dev/dvb0.dsc0 /dev/dvb/adapter0/ca0
busybox ln -s /dev/dvb0.dsc0/dev/dvb.dsc0
#!/system/bin/sh
[B][COLOR="Red"]. /system/etc/link_dvbapi.sh[/COLOR][/B]
MARK=/data/data/th.dtv/dtv_user_data/dtv_preferences.xml
DATAMARK=/system/dtv_user_data/dtv_preferences.xml
if [ ! -e $MARK ]; then
if [ -e $DATAMARK ]; then
busybox cp -r /system/dtv_user_data /data/data/th.dtv;
busybox chown system:system /data/data/th.dtv/dtv_user_data;
busybox chmod 777 /data/data/th.dtv/dtv_user_data/*;
fi
fi
[B][COLOR="Red"]. /location/filename.sh[/COLOR][/B]
hello, I installed the latest firmware 14032019 on my ki pro with old tuner: of course the dtv does not work, I tried to install the dtv fix with twrp, but apparently the file is corrupted!
I tried to downgrade the firmware to that of 30102017, but impossible.
please is there a solution to recover dtv ?! thank you
well, i have my KI with old Tunner and it was on it 2017 firmware, i took KI_PRO_AVL6862-ota-20190314.112408.V0213.zip, factory_update_param.aml, recovery.img from this POST put it on sdcard formatted FAT32 and with needle pressed installed successfully
e
then i installed RootExplorer and make change as i like with some deb loaded apks i dont use them and no need also adds block hosts in etc.., then took the zip of the old tuner from this POST extracted and took out the System , put it on USB then with RootExplorer manual replaced all in place and give right permission.
after that make reset from system. every things work as it should Tuner and last firmware of march 2019
yes I2C, sorry it was typo from my side.
the easy way to link it and make copy for it for TVH server as following
make file .sh for example " link_dvbapi.sh " and copy it inside etc with permission 0644
Code:mkdir -p /dev/dvb chmod 777 /dev/dvb mkdir -p /dev/dvb/adapter0 chmod 777 /dev/dvb/adapter0 busybox ln -s /dev/dvb0.frontend0 /dev/dvb/adapter0/frontend0 busybox ln -s /dev/dvb0.demux0 /dev/dvb/adapter0/demux0 busybox ln -s /dev/dvb0.dvr0 /dev/dvb/adapter0/dvr0 busybox ln -s /dev/dvb0.dsc0 /dev/dvb/adapter0/ca0 busybox ln -s /dev/dvb0.dsc0/dev/dvb.dsc0
and let this new sh started at every boot to add on the top of exist file " dtvdata.sh " inside bin. with
Code:#!/system/bin/sh [B][COLOR="Red"]. /system/etc/link_dvbapi.sh[/COLOR][/B] MARK=/data/data/th.dtv/dtv_user_data/dtv_preferences.xml DATAMARK=/system/dtv_user_data/dtv_preferences.xml if [ ! -e $MARK ]; then if [ -e $DATAMARK ]; then busybox cp -r /system/dtv_user_data /data/data/th.dtv; busybox chown system:system /data/data/th.dtv/dtv_user_data; busybox chmod 777 /data/data/th.dtv/dtv_user_data/*; fi fi
and so on you can add any script to let it start at every boot.
Code:[B][COLOR="Red"]. /location/filename.sh[/COLOR][/B]
ls /dev | grep dvb
dvb0.demux0
dvb0.demux1
dvb0.demux2
dvb0.dsc0
dvb0.dsc1
dvb0.dvr0
dvb0.dvr1
dvb0.dvr2
dvb0.net0
dvb0.net1
dvb0.net2
[ -f /system/xbin/tvheadend ] || exit 0
if [ ! -d /data/data/tvheadend ] ; then
mkdir -p /data/data/tvheadend
fi
if [ -d /data/data/tvheadend ] ; then
/system/xbin/tvheadend -c /data/data/tvheadend -C
Thanks.
But I don't have TWRP recovery on my KI Pro.
Can you post TWRP recovery here, please?
ok I will do thanks
but anybody have the same box and having this problem