@oga83
question, sur le FW récupéré (B715-23c_UPDATE_11.198.01.01.965_M_AT.bin), j'ai ajouté le lancement LTE_H_M embarqué, je le test et ça fonctionne bien, pour ce qui est du passwd, ce n'est pas le même, est-ce que cela a de l'importance ?
celui du post comme mis plus haut : root::0:0:root:/tmp:/bin/sh
celui du fw récupéré : root::0:0:root:/data/root-home:/bin/sh
l'autorun contient d'autres instructions que j'ai laissé, puis-je tout laisser ?
merci de ton avis d'expert.
l'autorun comme je l'ai modifié :
#!/system/bin/busyboxx sh
mkdir bin ln -s /system/bin/sh /bin/sh
ln -s /system/bin/busyboxx /bin/passwd
busybox echo 0 > /proc/sys/net/netfilter/nf_conntrack_checksum
/app/webroot/webui_init1.sh
insmod /system/xbin/kpatch.ko addr=g_bAtDataLocked data=0,0,0,0 2> /dev/null
/system/etc/fix_ttl.sh
/system/bin/insmod_ctf_ko.sh /etc/huawei_process_start
busybox-armv7l telnetd -l /bin/sh ============== ===================== mon ajout # 0oga83 Wait for mic to start cms (mounts SDcard) busybox sleep 15 # Run HME autorun on SDcard if [ -f /mnt/sdcard/*/hme/autorun.sh ]; then source /mnt/sdcard/*/hme/autorun.sh; fi busybox sleep 10 ================ ========================== fin mon ajout
mv /sbin/adbd /sbin/adbd~
grep -q "root::" /system/etc/passwd if [ $? -eq 1 ]; then if [ ! -d /data/root-home ]; then mkdir /data/root-home fi if [ ! -f /data/root-home/.profile ]; then echo "cd /" > /data/root-home/.profile fi echo -e "#!/bin/sh\n\nbusyboxx login -p" > /sbin/login.sh chmod 777 /sbin/login.sh busyboxx telnetd -l /sbin/login.sh else busyboxx telnetd -l /bin/sh adbd & fi
uid=`busyboxx cut -d : -f3 /system/etc/passwd` if [ $? -eq 0 ]; then if [ $uid != "0" ]; then mount -o remount,rw /system busybox sed -i "s/$uid/0/" /system/etc/passwd mount -o remount,ro /system fi fi
/app/webroot/webui_init2.sh