add libsamsung hw legacy and some more cahnges