View Single Post
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#10
And ofcourse here is the instructions how to do that cleanly, maybe too late for you, but for next people in troubles. This example assumes that you have incepted opensh with all capas.

# devel-su
# opensh
# perl -pi -w -e 's#21 com.nokia.maemo/local#15 com.nokia.maemo#smg' /var/lib/aegis/refhashlist
# perl -pi -w -e 's#com.nokia.maemo/local#com.nokia.maemo#smg' /var/lib/aegis/restok/restok.conf
# accli -c tcb-sign -F /var/lib/aegis/refhashlist -i /var/lib/aegis/refhashlist
# accli -c tcb-sign -F /var/lib/aegis/restok/restok.conf -i /var/lib/aegis/restok/restok.conf
# /usr/sbin/validator-init; aegis-loader 2>/dev/null ;echo 1 > /sys/kernel/security/validator/flush
# apt-get install -y --reinstall system-ui
# /sbin/reboot

AND BIG DISCLAIMER IN HERE, YOU WILL MALF YOUR DEVICE, IF YOU DONT KNOW WHAT YOU ARE DOING.

After boot all the incepted packages have turned into normal nokia packages and you can apt-get original nokia packages over them just fine.

This also fixes inception, that in the future it will incept packages as com.nokia.maemo instead of buggy com.nokia.maemo/local


Same thing as ariadne script (devel-su; ariadne sh -c "sh /path/to/script"):
Code:
#!/bin/sh

RED='\033[1;31m'
NORMAL='\033[0m'
YELLOW='\033[1;33m'
BLINK='\033[5m'

echo ""
echo -e "${RED}${BLINK} WAIT!${NORMAL}${RED} until it finish process !!!${NORMAL}"
echo -e "${YELLOW}Your phone will reboot automatically!${NORMAL}"
echo ""
read -p "Press Enter to start fixer: " end

perl -pi -w -e 's#21 com.nokia.maemo/local#15 com.nokia.maemo#smg' /var/lib/aegis/refhashlist
perl -pi -w -e 's#com.nokia.maemo/local#com.nokia.maemo#smg' /var/lib/aegis/restok/restok.conf
accli -c tcb-sign -F /var/lib/aegis/refhashlist -i /var/lib/aegis/refhashlist
accli -c tcb-sign -F /var/lib/aegis/restok/restok.conf -i /var/lib/aegis/restok/restok.conf
/usr/sbin/validator-init; aegis-loader 2>/dev/null ;echo 1 > /sys/kernel/security/validator/flush
apt-get install -y --reinstall system-ui
reboot
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2013-06-20 at 14:13. Reason: Fixed the script
 

The Following 7 Users Say Thank You to rainisto For This Useful Post: