[HTC One X] GabrielSousa:
don't know if works,

is a simple script, maybe we can port to your Nvidia Tegra 3

#!/bin/bash

############################################################################

#

#	SuperCID v1.2

#

#	This script will help you get SuperCID on your HTC One XL on AT&T

#

#	MAJOR props go to Grankin01 for finding this exploit

#	and all the other devs that work on a solution!

#

#	Script hacked together by JeepFreak@XDA

#

############################################################################

clear

echo "This script will give you SuperCID on the HTC One XL"

echo "(the S4 version), which is necessary if you want to"

echo "unlock the bootloader through HTCDev or if you want."

echo "to install an RUU for a different carrier."

echo ""

echo "Although I have taken every precaution to make this script safe,"

echo "I still can't take any responsibility if it bricks your phone!"

echo ""

echo "Finally, PLEASE make sure you understand the repercussions of"

echo "changing your CID and unlocking your bootloader with HTCDev"

echo "(ie. The unlock will probably void your warranty!)"

echo ""

read -p "If you're still game, press any key to continue..."

clear

echo "Before you begin..."

echo "Disable \"fastboot\" on the phone under Settings -> Power."

echo "Enable \"USB Debugging\" under Settings -> Developer Options."

echo "Make sure your USB cable is connected."

echo ""

read -p "When you're ready, press any key to continue..."

chmod +x adb

mkdir tmp

./adb kill-server

./adb wait-for-device

echo "Copying your misc partition to your sdcard partition..."

./adb shell "su -c dd if=/dev/block/mmcblk0p4 of=/sdcard/tmp/mmcblk0p4"

echo "Making a backup copy of the file, just in case..."

./adb shell "su -c cp /sdcard/tmp/mmcblk0p4 /sdcard/tmp/mmcblk0p4.backup"

echo "Copying the file to your computer so we can work with it..."

./adb pull /sdcard/tmp/mmcblk0p4 tmp/mmcblk0p4

echo "Making a backup copy here too..."

cp tmp/mmcblk0p4 tmp/mmcblk0p4.original

echo "Converting the image file to text..."

xxd tmp/mmcblk0p4 tmp/mmcblk0p4.txt

echo "Checking to see what your CID is now..."

if grep '11111111' tmp/mmcblk0p4.txt

then

echo "You already have SuperCID!"

exit

elif grep 'CWS__001' tmp/mmcblk0p4.txt

then

echo "OK, your CID is currently AT&T."

echo "Let's change that now...'"

sed "s/CWS__001/11111111/g" tmp/mmcblk0p4.txt > tmp/mmcblk0p4.modified

elif grep 'ROGER001' tmp/mmcblk0p4.txt

then

echo "OK, your CID is currently Rogers"

echo "Let's change that now...'"

sed "s/ROGER001/11111111/g" tmp/mmcblk0p4.txt > tmp/mmcblk0p4.modified

else

echo "We don't recognize your current CID. If you're sure that your"

echo "phone is the S4 version, HTC One XL, contact me on XDA and I"

echo "will see if I can get you going."

exit

fi

echo "Converting text back to an image file..."

xxd -r tmp/mmcblk0p4.modified tmp/mmcblk0p4

echo "Let's make sure the new file size matches the original..."

a=$(stat -c%s tmp/mmcblk0p4.original)

b=$(stat -c%s tmp/mmcblk0p4)

if [[ $a == $b ]]

then

echo "OK, the modified image file is the correct size."

echo "Pushing the modified image to the phone..."

./adb push tmp/mmcblk0p4 /sdcard/tmp/mmcblk0p4

echo "Installing the modified partition..."

./adb shell "su -c dd if=/sdcard/tmp/mmcblk0p4 of=/dev/block/mmcblk0p4"

echo "Rebooting the phone..."

./adb reboot

echo "OK, your HTC One XL now has SuperCID!"

echo ""

echo "HUGE thanks to Grankin01 for finding this exploit and same goes"

echo "to all the amazing devs that worked on a solution! I <3 XDA!"

rm -r tmp

exit

else

clear

echo "Uh oh! The size of the modified file does not match the original!"

echo "We're not sure what went wrong, but the bottom line is that if"

echo "we tried to flash the modified file would probably brick your phone,"

echo "so we're going to exit here and let you figure out what went wrong."

echo "Sorry Charlie!"

exit

fi