英国 国王 世系
您将需要什么:(What you will need:)
- A computer, HDMI cable, monitor and a mouse 电脑,HDMI线,显示器和鼠标
- Raspberry Pi树莓派
- A microSD card — 16 GB and a Card ReadermicroSD卡— 16 GB和读卡器
- Internet connectivity互联网连接
- USB cable to power on the Raspberry PiUSB电缆为Raspberry Pi供电
下载以下文件(Download the Following Files)
安装 (Installation)
STEP 1: Install Balena Etcher on your Windows or Linux machine
步骤1 :在Windows或Linux计算机上安装Balena Etcher
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/da00158a8f044249397314ce8706dc25.png)
STEP 2: Download Lineage OS by clicking on the link highlighted below and save it on your Downloads directory.
步骤2 :通过单击下面突出显示的链接下载Lineage OS,并将其保存在您的Downloads目录中。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/dde38218b730c92492c5a57bff7e7555.png)
STEP 3: Plugin your SD card into your computer using a USB card reader or the card reader slot if you have one on your machine.
步骤3 :如果您的计算机上装有SD卡,请使用USB读卡器或读卡器插槽将SD卡插入计算机。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/6b55b14f61fc67f8bd9043ff06150e63.png)
STEP 4: Start the Balena Etcher application on your computer
步骤4 :在计算机上启动Balena Etcher应用程序
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/14f5c1e610c9e59f250d3c7eecc0ca57.png)
STEP 5: Select “Flash from file “ option and choose the downloaded Lineage OS zip file. There is an option of using a URL as an alternative.
步骤5 :选择“ Flash from file ”选项,然后选择下载的Lineage OS zip文件。 可以选择使用URL作为替代。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/1a85cbb9fe85cbaf13168906a6823177.png)
STEP 6: Select the target as your microSD card and then click “Flash!”.
步骤6 :选择目标作为您的microSD卡,然后单击“ Flash! ”。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/6738d9ea48cfecb8f458c48795bc22e5.png)
STEP 7: Wait until Flash is completed and you can now remove the microSD card and insert it into your Raspberry pi.
步骤7 :等到闪存完成后,您现在可以卸下microSD卡并将其插入Raspberry pi。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/278ceff0b22c332eff9098c49b2431c0.png)
引导进入天堂操作系统: (Booting into Lineage OS:)
Before powering on your Raspberry Pi, make sure you connect
在打开Raspberry Pi的电源之前,请确保已连接
- A HDMI cable of your monitor to your Raspberry Pi显示器的HDMI电缆连接到Raspberry Pi
- A USB mouse on your Raspberry Pi. Raspberry Pi上的USB鼠标。
Optional: A keyboard. Lineage OS comes with an on screen keyboard as an alternative.
可选:键盘。 世系OS带有屏幕键盘作为替代。
STEP 10: Power on your Raspberry Pi and Lineage OS should boot and show you the following image:
步骤10 :打开Raspberry Pi和Lineage OS的电源,应该会启动并显示以下图像:
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/1efc3a2f08fc8176823dcfcb32d3f408.png)
STEP 11: On the setup page, click next and select your Language, Timezone, Time options and setup your network. No special options are required.
步骤11 :在设置页面上,单击“下一步”,然后选择“语言”,“时区”,“时间”选项并设置网络。 不需要特殊选项。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/5b4282dc1b660f580859790c64d2e1bb.png)
STEP 12: After setup click on the Start button. You can scroll the same way you use your Android device. Click and drag up from the bottom three apps to bring up the app library.
步骤12 :设置后,单击开始按钮。 您可以使用使用Android设备的相同方式滚动。 从底部的三个应用程序中单击并向上拖动以调出应用程序库。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/25f7b8fc0cb503429333dba4e4c81124.png)
启用ADB和终端 (Enable ADB and Terminal)
STEP 13: Click on the Settings application and Scroll to the tab “About Tablet” and click on it. This will reveal information about the device. Click on the tab “Build number” 5 times until you get the message “You have enabled development settings”.
步骤13 :单击“设置”应用程序,然后滚动到选项卡“关于平板电脑”,然后单击它。 这将显示有关设备的信息。 单击选项卡“内部版本号”五次,直到出现消息“您已启用开发设置”。
![Image for post](https://i-blog.csdnimg.cn/blog_migrate/2c78f7ba8a634061256dea656ed4c895.png)
STEP 14: Click back to go back to the “Settings” main page and click on Systems → Advanced →Developer Options and enable the following options:
步骤14 :单击返回返回“设置”主页,然后单击系统→高级→开发人员选项,然后启用以下选项:
“Root Access” Option — Choose the “Apps and ADB” option
“ Root Access ”选项-选择“ Apps and ADB ”选项
“Local Terminal” Option (Terminal Access)
“本地终端”选项(终端访问)
“ADB over network” Option (Access over network)
“通过网络的亚行”选项(通过网络访问)
You can now restart your Raspberry Pi to implement the changes. You can either
现在,您可以重新启动Raspberry Pi来实施更改。 你可以
- Unplug the power from your Raspberry Pi to restart; or 拔下Raspberry Pi的电源以重新启动; 要么
- Press F5 on your Keyboard; or 在键盘上按F5; 要么
- Implement a Switch OFF button on your Raspberry Pi在Raspberry Pi上实现“关闭”按钮
在恢复模式下安装Google Apps(Installing Google Apps in Recovery Mode)
STEP 15: Access the terminal with root privileges and allow access to files on the system. Type “su” on the terminal to allow root privileges.
步骤15 :以root权限访问终端,并允许访问系统上的文件。 在终端上键入“ su”以允许root特权。
su
STEP 16: Use the following commands to reboot on recovery mode:
步骤16 :使用以下命令在恢复模式下重启:
Raspberry Pi 4
树莓派4
rpi4-recovery.sh
reboot
Raspberry Pi 3
树莓派3
rpi3-recovery.sh
reboot
The Raspberry Pi should will reboot into the Android recovery mode.
Raspberry Pi应该会重新启动进入Android恢复模式。
STEP 17: Copy the gapps package into a USB Flash and plug it into your Raspberry Pi. and follow the following steps:
步骤17 :将gapps包复制到USB闪存中,然后将其插入Raspberry Pi。 并按照以下步骤操作:
Swipe on the option “Swipe to allow modifications”
在选项“滑动以允许修改”上滑动
Click on the “mount” option to mount “Boot“, “System“, “Data” and “USB-OTG” partitions for configuration changes and mounting the USB device. Leave the “Vendor” option blank then click on the “Select Storage” option.
单击“挂载”选项以挂载“引导”,“系统”,“数据”和“ USB-OTG ”分区,以更改配置并挂载USB设备。 将“供应商”选项保留为空白,然后单击“选择存储”选项。
A dialog menu will be displayed asking you to select the storage device you want to use. Click the “USB-OTG option then click “OK”.
将显示一个对话框菜单,要求您选择要使用的存储设备。 单击“ USB-OTG选项,然后单击“确定”。
- Click on the Android Recovery Home Button at the bottom of the screen. 点击屏幕底部的Android Recovery主页按钮。
Click on the “Install” button and click the “open_gapps” package to begin the installation process.
单击“安装”按钮,然后单击“ open_gapps ”软件包以开始安装过程。
- Confirm the Google Apps package setup by swiping the button “Swipe to confirm Flash” 滑动“滑动以确认Flash”按钮,以确认Google Apps软件包的设置
Once the Google Apps installation is done, click the home button and click the “Wipe” button and swipe on the “Swipe to Factory Reset”.
完成Google Apps的安装后,点击主屏幕按钮,然后点击“擦除”按钮,然后在“滑动为恢复出厂设置”上滑动。
Once the Android recovery software has finished resetting the operating system, click on the home button and go to the Advanced → Terminal menu and run the same recovery command to reboot back to the Lineage OS interface.
一旦Android恢复软件完成了操作系统的重置,请单击“主页”按钮并转到“高级” →“终端”菜单,然后运行相同的恢复命令以重新引导回到Lineage OS界面。
Raspberry Pi 4
树莓派4
rpi4-recovery.sh boot
reboot
Raspberry Pi 3
树莓派3
rpi3-recovery.sh boot
reboot
Lineage OS will now reboot to the Google account setup where you will be required to log into your google account.
Lineage OS现在将重新启动到Google帐户设置,在此您需要登录到Google帐户。
从您的计算机访问Raspberry Pi: (Access Raspberry Pi from your Computer:)
On your computer terminal, use the following command:
在计算机终端上,使用以下命令:
$ adb connect <android-ip>
$ adb shell
The connection will be slow and not encrypted. You can setup SSH by using the Android application SimpleSSH available on Google Play.
连接将很慢且未加密。 您可以使用Google Play上提供的Android应用程序SimpleSSH设置SSH。
I am not using Google Apps to install Android applications but using third party vendors which is not advisable but if you understand what you are doing you can use them.
我不是使用Google Apps安装Android应用程序,而是使用第三方供应商,不建议这样做,但是如果您了解自己在做什么,就可以使用它们。
They include:
它们包括:
In order to access Google Play you will have to setup Gapps. Please do this before installing any applications because the installation process includes wiping device content.
要访问Google Play,您必须设置Gapps。 请在安装任何应用程序之前执行此操作,因为安装过程包括擦除设备内容。
安装OWASP Android应用程序 (Installing OWASP Android Applications)
The following are the applications required:
以下是所需的应用程序:
Frida — Android Server setup
弗里达 — Android服务器设置
Xposed Framework: Change the behavior of the system and apps without touching any APKs.
Xposed Framework :无需触摸任何APK,即可更改系统和应用程序的行为。
Busybox: Busybox combines multiple common Unix utilities into a small single executable.
Busybox :Busybox将多个通用的Unix实用程序组合成一个小的可执行文件。
F-Droid: Extract APKs from your device
F-Droid :从您的设备中提取APK
Drozer agent: Agent for drozer to search for security vulnerabilities in applications and devices.
That is it for the setup. An added advantage is that you can use this setup to make your dumb TV smart.
设置就是这样。 另一个优点是您可以使用此设置使您的哑电视变得智能。
Happy Hacking!!
快乐黑客!!
英国 国王 世系