1 00:00:00,000 --> 00:00:02,370 ‫Instructor: Hi, within those lecture, 2 00:00:02,370 --> 00:00:06,480 ‫we're going to discuss how we can root the Android devices 3 00:00:06,480 --> 00:00:09,870 ‫and if we really need to root them or not. 4 00:00:09,870 --> 00:00:13,050 ‫So this is actually very different when we compare it 5 00:00:13,050 --> 00:00:16,470 ‫to the iOS devices, because iOS devices 6 00:00:16,470 --> 00:00:19,200 ‫are actually much more restrictive 7 00:00:19,200 --> 00:00:21,660 ‫when we compare them to the Android. 8 00:00:21,660 --> 00:00:25,200 ‫So you can do a lot of things in your Android devices 9 00:00:25,200 --> 00:00:28,560 ‫even though you don't have root privileges. 10 00:00:28,560 --> 00:00:30,240 ‫Of course, it doesn't mean that 11 00:00:30,240 --> 00:00:33,330 ‫you don't have to root your devices. 12 00:00:33,330 --> 00:00:35,760 ‫There are some other advantages as well, 13 00:00:35,760 --> 00:00:40,050 ‫but you may want to consider this as an option 14 00:00:40,050 --> 00:00:44,880 ‫if you already don't have any kind of devices 15 00:00:44,880 --> 00:00:47,100 ‫to spare for rooting. 16 00:00:47,100 --> 00:00:49,380 ‫For example, if you only have one Android device 17 00:00:49,380 --> 00:00:53,940 ‫and if you're using it as a daily device like a phone, 18 00:00:53,940 --> 00:00:56,190 ‫then I suggest you don't do that 19 00:00:56,190 --> 00:00:59,400 ‫because it will just expire the warranty. 20 00:00:59,400 --> 00:01:03,720 ‫It can't cause some kind of installation problems and stuff. 21 00:01:03,720 --> 00:01:07,323 ‫So it's better not to take any risk. 22 00:01:08,190 --> 00:01:11,250 ‫But I'm going to show you how to root it. 23 00:01:11,250 --> 00:01:15,510 ‫So over here, if you search for best rooting tools 24 00:01:15,510 --> 00:01:17,970 ‫for Android, you will see a lot of options 25 00:01:17,970 --> 00:01:21,720 ‫and we're going to have a look at that later on. 26 00:01:21,720 --> 00:01:25,620 ‫But right now, I'm just going to show you something. 27 00:01:25,620 --> 00:01:27,630 ‫So I'm going to open Android Studio 28 00:01:27,630 --> 00:01:30,360 ‫and I'm going to open any app, for example, 29 00:01:30,360 --> 00:01:33,030 ‫the 10 minutes app that we have worked on, 30 00:01:33,030 --> 00:01:37,620 ‫and I'm just opening it in order to open my emulator. 31 00:01:37,620 --> 00:01:39,360 ‫So you don't have to do that, 32 00:01:39,360 --> 00:01:41,250 ‫you just don't have to practice 33 00:01:41,250 --> 00:01:44,010 ‫what I'm doing right now, okay. 34 00:01:44,010 --> 00:01:46,680 ‫You can just try to take notes 35 00:01:46,680 --> 00:01:50,940 ‫and stuff because we are not going to do much over here. 36 00:01:50,940 --> 00:01:54,480 ‫All we are trying to understand is, 37 00:01:54,480 --> 00:01:59,460 ‫is how to install APKs into our devices. 38 00:01:59,460 --> 00:02:04,230 ‫So in iOS section, we have seen that we have to use 39 00:02:04,230 --> 00:02:08,280 ‫some Cydia Impactor tool in order to make this happen, 40 00:02:08,280 --> 00:02:13,280 ‫but it's actually much more easier in an Android device. 41 00:02:13,500 --> 00:02:17,100 ‫I'm going to use my emulator to display 42 00:02:17,100 --> 00:02:19,710 ‫how we can do that to you. 43 00:02:19,710 --> 00:02:24,390 ‫So I'm going to just take an APK file from here, 44 00:02:24,390 --> 00:02:28,473 ‫so it can be any APK, I'm going to show you a lot of APKs 45 00:02:28,473 --> 00:02:31,110 ‫during the iOS reverse and Android 46 00:02:31,110 --> 00:02:33,270 ‫reverse engineering sections. 47 00:02:33,270 --> 00:02:36,510 ‫But right now, I'm just going to display this, 48 00:02:36,510 --> 00:02:38,793 ‫you don't have to do that, okay? 49 00:02:39,750 --> 00:02:41,730 ‫Considering that I have an APK. 50 00:02:41,730 --> 00:02:44,940 ‫So this is the final product of Android development. 51 00:02:44,940 --> 00:02:47,910 ‫We're going to work with APKs often. 52 00:02:47,910 --> 00:02:52,320 ‫If I just take it and drag it on my emulator, 53 00:02:52,320 --> 00:02:55,320 ‫it will just install it, like this, here you go. 54 00:02:55,320 --> 00:02:59,220 ‫So I can just click on it and I can try to 55 00:02:59,220 --> 00:03:03,603 ‫just start working on this application, so it's fantastic. 56 00:03:04,470 --> 00:03:07,800 ‫If that doesn't work, there are a couple of other ways 57 00:03:07,800 --> 00:03:09,660 ‫to do so. 58 00:03:09,660 --> 00:03:14,660 ‫So let me show you the most anticipated ones. 59 00:03:15,600 --> 00:03:18,210 ‫For example, you can go to any 60 00:03:18,210 --> 00:03:21,810 ‫file transfer websites like files.fm. 61 00:03:21,810 --> 00:03:24,480 ‫So this is kind of WeTransfer, 62 00:03:24,480 --> 00:03:29,480 ‫but WeTransfer blocks the transfer of APK files. 63 00:03:29,610 --> 00:03:32,040 ‫So filesfm doesn't do that. 64 00:03:32,040 --> 00:03:36,000 ‫You can just send APK files with filesfm. 65 00:03:36,000 --> 00:03:39,000 ‫And you can create the link, okay, 66 00:03:39,000 --> 00:03:42,300 ‫with filesfm and you can open that link 67 00:03:42,300 --> 00:03:45,240 ‫on your emulator or on your Android device 68 00:03:45,240 --> 00:03:49,440 ‫and you can download whatever APK you are looking for 69 00:03:49,440 --> 00:03:52,500 ‫and just install it on your emulator 70 00:03:52,500 --> 00:03:57,390 ‫or on your Android device, which is cool, right? 71 00:03:57,390 --> 00:04:00,150 ‫So let me open my terminal. 72 00:04:00,150 --> 00:04:05,150 ‫And this is terminal Mac and this is cmd on Windows, okay? 73 00:04:06,300 --> 00:04:09,180 ‫So you know how to work with cmd. 74 00:04:09,180 --> 00:04:13,050 ‫If you don't know, you can go over the lower left side 75 00:04:13,050 --> 00:04:16,620 ‫of your Windows and click on the Windows sign 76 00:04:16,620 --> 00:04:19,770 ‫and just write cmd, okay? 77 00:04:19,770 --> 00:04:22,530 ‫It will open the comment prompt for you 78 00:04:22,530 --> 00:04:25,890 ‫and you can just run adb. 79 00:04:25,890 --> 00:04:30,890 ‫So adb is actually for Android debugging bridge. 80 00:04:31,350 --> 00:04:36,087 ‫So it is a command to work with emulators. 81 00:04:37,110 --> 00:04:39,450 ‫As you can see, it doesn't recognize adb 82 00:04:39,450 --> 00:04:41,580 ‫even though I have it. 83 00:04:41,580 --> 00:04:44,730 ‫So if I search for adb in my Mac, 84 00:04:44,730 --> 00:04:47,820 ‫you can do the same thing on Windows as well. 85 00:04:47,820 --> 00:04:52,620 ‫You can find the adb.exe on your files and folders. 86 00:04:52,620 --> 00:04:55,590 ‫So it should be in the Android SDK folder 87 00:04:55,590 --> 00:04:57,930 ‫that you have chosen to be downloaded 88 00:04:57,930 --> 00:05:01,380 ‫when you first installed Android Studio, right? 89 00:05:01,380 --> 00:05:05,280 ‫So remember we have downloaded something called SDK, 90 00:05:05,280 --> 00:05:09,660 ‫and in the SDK, we have a lot of folders 91 00:05:09,660 --> 00:05:12,690 ‫and you're gonna look for platform tools. 92 00:05:12,690 --> 00:05:16,140 ‫So there is my adb, for example. 93 00:05:16,140 --> 00:05:19,980 ‫If I just take this adb and put it on my terminal, 94 00:05:19,980 --> 00:05:23,520 ‫you can do the same thing on your Windows as well 95 00:05:23,520 --> 00:05:26,760 ‫or you can right click on it and just go to properties 96 00:05:26,760 --> 00:05:30,090 ‫or get info, in order to see where it's located, 97 00:05:30,090 --> 00:05:34,860 ‫and you can manually write it over here as well, like this. 98 00:05:34,860 --> 00:05:36,780 ‫Then it will work for you. 99 00:05:36,780 --> 00:05:41,130 ‫If I hit enter, it will show me the documentation of adb, 100 00:05:41,130 --> 00:05:44,520 ‫which means that it's actually working. 101 00:05:44,520 --> 00:05:49,520 ‫Now if I run adb list with all the thing, 102 00:05:49,560 --> 00:05:53,010 ‫yeah, it doesn't understand the list, 103 00:05:53,010 --> 00:05:56,700 ‫so let me run help and see what I'm looking for. 104 00:05:56,700 --> 00:06:00,030 ‫Adb actually working for me right now, 105 00:06:00,030 --> 00:06:04,410 ‫but I cannot find the appropriate command, I believe. 106 00:06:04,410 --> 00:06:07,830 ‫Yeah, we're looking for install, but before that, 107 00:06:07,830 --> 00:06:10,320 ‫yeah, it's devices, it's dash L. 108 00:06:10,320 --> 00:06:14,830 ‫So if you run adb devices, it will show you 109 00:06:15,900 --> 00:06:18,870 ‫or L, yeah, it doesn't work as well. 110 00:06:18,870 --> 00:06:21,270 ‫Let me run devices, it will show you 111 00:06:21,270 --> 00:06:23,400 ‫the current devices like this. 112 00:06:23,400 --> 00:06:25,710 ‫Here you go, this is my emulator. 113 00:06:25,710 --> 00:06:28,890 ‫Since I have already one emulator running up, 114 00:06:28,890 --> 00:06:30,660 ‫it's showing up on the list. 115 00:06:30,660 --> 00:06:35,660 ‫Now if I run adb install and just write the APK file 116 00:06:36,450 --> 00:06:39,120 ‫that I want to install over here, 117 00:06:39,120 --> 00:06:42,570 ‫it will just install this APK on my emulator. 118 00:06:42,570 --> 00:06:44,400 ‫And this is the third way. 119 00:06:44,400 --> 00:06:47,880 ‫Let me go to desktop by writing cd desktop 120 00:06:47,880 --> 00:06:49,890 ‫because it's on the desktop, right? 121 00:06:49,890 --> 00:06:54,890 ‫And then let me run adb install and EVABS APK, for example. 122 00:06:56,790 --> 00:06:59,613 ‫As you can see, it's already started installing. 123 00:07:00,480 --> 00:07:03,480 ‫And since it's already installed, I believe it failed, 124 00:07:03,480 --> 00:07:08,480 ‫but I have just shown you three ways to install APKs 125 00:07:09,660 --> 00:07:11,250 ‫on your Android devices. 126 00:07:11,250 --> 00:07:15,210 ‫You can just email them, you can just drag and drop them. 127 00:07:15,210 --> 00:07:20,210 ‫You can use adb install, if it's a real Android device, 128 00:07:21,690 --> 00:07:24,270 ‫you're just gonna have to email them, okay? 129 00:07:24,270 --> 00:07:27,840 ‫And if you search for download APK Android, 130 00:07:27,840 --> 00:07:31,860 ‫you can find millions of results to do that as well. 131 00:07:31,860 --> 00:07:35,490 ‫So for example, there is a website called APKPure, 132 00:07:35,490 --> 00:07:40,393 ‫and I believe we have APKMirror, androidapksfree.com, 133 00:07:41,550 --> 00:07:45,210 ‫like yeah, APKMirror is my choice most of the time. 134 00:07:45,210 --> 00:07:48,750 ‫You can actually find the real APKs of 135 00:07:48,750 --> 00:07:53,490 ‫the real world applications like Instagram, Facebook, 136 00:07:53,490 --> 00:07:56,160 ‫any other applications you may think of, 137 00:07:56,160 --> 00:07:58,830 ‫and you can download their APKs 138 00:07:58,830 --> 00:08:02,883 ‫and you can just install them to your emulator, 139 00:08:04,350 --> 00:08:08,460 ‫to your Android device so that you get to work on them. 140 00:08:08,460 --> 00:08:12,750 ‫And when you deal with Android reverse engineering, 141 00:08:12,750 --> 00:08:17,070 ‫it will be very great for you to find those APKs 142 00:08:17,070 --> 00:08:19,350 ‫because we're going to need the APKs. 143 00:08:19,350 --> 00:08:23,160 ‫So that's how you find them, and that's how you install them 144 00:08:23,160 --> 00:08:26,160 ‫on your emulator or on your devices. 145 00:08:26,160 --> 00:08:29,850 ‫So in iOS, we need additional tools. 146 00:08:29,850 --> 00:08:32,730 ‫And in Android, you get to do it 147 00:08:32,730 --> 00:08:36,510 ‫with very easily, with just one click 148 00:08:36,510 --> 00:08:41,510 ‫or one drag and drop or one command or one upload, okay? 149 00:08:42,000 --> 00:08:45,300 ‫All you had to make sure that you find the APK 150 00:08:45,300 --> 00:08:48,000 ‫and you can just work on it. 151 00:08:48,000 --> 00:08:52,080 ‫So this is not about rooting, I know, 152 00:08:52,080 --> 00:08:54,390 ‫but I'm just trying to make this point 153 00:08:54,390 --> 00:08:56,670 ‫that you don't have to have root 154 00:08:56,670 --> 00:09:00,000 ‫in order to do this stuff on Android. 155 00:09:00,000 --> 00:09:03,993 ‫We're going to discuss this issue further in next lecture.