Skip to content
Permalink
Browse files

Add Android 9 (Pie) support

  • Loading branch information...
Re4son committed Jan 27, 2019
1 parent 50e0634 commit 79d9179dad48658d4be4996ab92d8af72dd73716
Showing with 6 additions and 2 deletions.
  1. +6 −2 nethunter-installer/build.py
@@ -485,6 +485,7 @@ def main():
parser.add_argument('--marshmallow', '-m', action='store_true', help='Android 6')
parser.add_argument('--nougat', '-n', action='store_true', help='Android 7')
parser.add_argument('--oreo', '-o', action='store_true', help='Android 8')
parser.add_argument('--pie', '-p', action='store_true', help='Android 9')
parser.add_argument('--forcedown', '-f', action='store_true', help='Force redownloading')
parser.add_argument('--uninstaller', '-u', action='store_true', help='Create an uninstaller')
parser.add_argument('--kernel', '-k', action='store_true', help='Build kernel installer only')
@@ -542,10 +543,13 @@ def main():
if args.oreo:
OS = 'oreo'
i += 1
if args.pie:
OS = 'pie'
i += 1
if i == 0:
abort('Missing Android version. Available options: --kitkat, --lollipop, --marshmallow, --nougat, --oreo')
abort('Missing Android version. Available options: --kitkat, --lollipop, --marshmallow, --nougat, --oreo, --pie')
elif i > 1:
abort('Select only one Android version: --kitkat, --lollipop, --marshmallow, --nougat, --oreo')
abort('Select only one Android version: --kitkat, --lollipop, --marshmallow, --nougat, --oreo, --pie')

if args.rootfs and not (args.rootfs == 'full' or args.rootfs == 'minimal'):
abort('Invalid Kali rootfs size. Available options: --rootfs full, --rootfs minimal')

0 comments on commit 79d9179

Please sign in to comment.
You can’t perform that action at this time.