View Single Post
Old 10-30-2017, 08:16 PM   #4
coplate
Guru
coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.coplate ought to be getting tired of karma fortunes by now.
 
Posts: 645
Karma: 1888888
Join Date: Jun 2009
Device: prs-505, Kindle Keyboard 3g, PW3
This diff is fascinating - it is from PW# version, not oasis though.:
Code:
diff -r 5.8.9.2/etc/upstart/console.conf 5.9.2/etc/upstart/console.conf
25c25
< # default unless we see e.g. console=ttymxc0,115200 on the kernel command line 
---
> # default unless we see e.g. console=ttymxc0,115200 on the kernel command line
29a30,37
>   # Based on https://wiki.labcollab.net/confluence/display/thorapollo/Cognac+security+lockdown+guideline
>   # This feature is introduced from Zelda platform. For older platforms, we keep the login unlocked
> 
>   # default to unlock device
>   prodVersion=0
>   unlockedkernel=true
>   secureCpu=0
> 
33,40c41,60
< 	x=${i#console=}
< 	x=${x//,/ }
< 	if [ -n "$x" ]; then
< 	  set $x
< 	  [ -n "$1" ] && UART=$1
< 	  [ -n "$2" ] && BAUD=$2
< 	fi
< 	;;
---
>         x=${i#console=}
>         x=${x//,/ }
>         if [ -n "$x" ]; then
>           set $x
>           [ -n "$1" ] && UART=$1
>           [ -n "$2" ] && BAUD=$2
>         fi
>         ;;
>       androidboot.prod*)
>         val=$i
>         prodVersion=${val##*=}
>         ;;
>       androidboot.unlocked_kernel*)
>         val=$i
>         unlockedKernel=${val##*=}
>         ;;
>       secure_cpu*)
>         val=$i
>         secureCpu=${val##*=}
>         ;;
44c64,73
<   exec getty -L $BAUD /dev/$UART 2>> $STDERR
---
> #We determine to execute getty, which prompts for the login password using the values in the /proc/cmdline file
> #The locked variable is used lock the prompt
> 
> if [ "$prodVersion" == "0" -o "$unlockedKernel" == "true" -o "$secureCpu" = "0" ]; then
>     #Unlocked Prompt if: unlockedKernel or not prod or not secure cpu
>     exec getty -L $BAUD /dev/$UART 2>> $STDERR
> else
>     exec getty -L $BAUD /dev/$UART -i -n -l /etc/upstart/custom-login 2>> $STDERR
> fi
>

Last edited by coplate; 10-30-2017 at 08:22 PM.
coplate is offline   Reply With Quote