Sonntag, 8. April 2018

[TOTAL MOD] Playing With Fire (v4) NEW "LazyLeanback" Installer - AndroidTV on FireTV

Got this working on Fire TV 2 running Rooted v5.2.6.2
So for the first time in almost 18 months I got the chance to play with my Fire TV 2 and I have managed to get this running on my Fire TV 2 running rooted firmware v5.2.6.2
I want to give all credit to SimLynks for this MOD. Without his work, I could not have tweaked it a little to work on the latest firmware and latest GAPPS (2018-03-31).

THIS IS FOR A FIRE TV 2, Running Rbox Pre-rooted rom "sloane-5.2.6.2-rooted_r1.zip"
I UPDATED THE GAPPS-CONFIG SO THIS WORKS WITH NEWER VERSIONS OF GAPPS. TESTED ON "open_gapps-arm64-5.1-tvstock-20180331" (Linked below)
I HAVE ALSO CORRECTED THE WIFIDIRECT BUG, TWEAKED A FEW THINGS AND REPACKAGED THE "PlayFire_v4a_LazyLeanback.tar.gz" FILE. YOU WILL SEE IT IS NOW VERSION v4a.
I CHANGED HOW XPOSEDEDGE IS NOW INSTALLED. APP INSTALL VIA APK AND CONFIG FILES INSTALL VIA LAZYLEANBACK SCRIPT. THIS WILL ENSURE THAT THE SETTING CHANGES BUG IS CORRECTED.
I REMOVED LIVE CHANNELS FROM GAPPS SYSTEM INSTALL. YOU CAN INSTALL THIS LATER VIA PLAY STORE IF YOU USE IT.
I RECOMMEND YOU FOLLOW MY INSTRUCTION BELOW TO INSTALL MY MODIFIED FILES AS THE ORDER OF THINGS HAVE CHANGED A LITTLE.
I ALSO RECOMMEND CLEANING YOUR DEVICE PRIOR TO STARTING: Wiping System, Data, Internal, Dalvik/Cache, and then reinstalling RBox's Prerooted Rom.

INSTALL INSTRUCTIONS
You may wish to change something from my build - Below is the step by step that I took, after figuring out some bugs, taking a different approach on the install sequence, amending some files to get a fully workuing system.
Note, you will need to insert your Fire TVs IP address in place of the 192.168.xxx.x when running adb commands
GAPPS DOWNLOADS FOR THE VERSION USED:
https://github.com/opengapps/arm64/r...k-20180331.zip
https://github.com/opengapps/arm64/r...180331.zip.md5

1) Boot to TWRP, wipe your device (Optional but recommended) and then install Rbox Pre-rooted rom "sloane-5.2.6.2-rooted_r1.zip"
2) Reboot device and perform signing in to Amazon if required. Goto Settings -> Device -> Developer Options and enable ABD Debugging and Apps from Unknown Sources.
3) Download the GAPPS required files linked above and my "Playing_With_Fire_v4a.ZIP" file here. Md5 File
4) EXTRACT THE Playing_With_Fire_v4a.ZIP THEN:
PLACE THE CONTENTS OF THE "sdcard" FOLDER TO THE ROOT OF A MICRO SD CARD or USB along with the downloaded GAPPS .zip & .zip.md5. Thus ensuring the gapps-config.txt is with the GAPPS files.
PLACE THE "Minimal ADB and Fastboot" folder in "C:\Program Files (x86)" of your Windows PC. If you already have this you can just overwrite.
NOTE: I have configured the "gapps-config.txt" file to include leanback launcher in the install.
5) Open "Minimal ADB and Fastboot" by clicking the shortcut link in the "C:\Program Files (x86)\Minimal ADB and Fastboot" folder.
Connect to your device's ADB terminal and run the following commands to install the Busybox APK and push files to /sdcard/
adb kill-server
adb start-server
adb connect 192.168.xxx.xx
adb install -r busybox.apk
adb install -r XposedEdge_v4.4.1.apk


NOTE: You MUST OPEN the Busybox app on the Fire TV and install the Busybox Binaries, BEFORE YOU RUN the LazyLeanback Scripts.
If you don't, everything may APPEAR TO INSTALL OK, BUT YOU WILL BE MISSING A CRITICAL step that allows OpenGApps TV-Stock to fully install all required libraries properly.

6) On the Fire TV box, run Busybox, and install Binaries on Fire TV device (Allowing SuperUser permissions)
Also, open the XposedEdge app and then close it. This will ensure the prefs folder is created and will prevent errors in the LazyLeanback Script later.

7) Continue on ADB to push the required files to the Fire TV sdcard directory:
adb push gapps-config.txt /sdcard/
adb push HDXPosed-1.3.apk /sdcard/
adb push PlayFire_v4a_LazyLeanback.tar.gz /sdcard/
adb push XposedInstaller_3.1.5.apk /sdcard/


8) Continue on ADB with the following code (After the below "su" command you will need to allow Superuser on the FireTV as this is the first time requesting root):
adb shell
su
tar -xzvf /sdcard/PlayFire_v4a_LazyLeanback.tar.gz


9) MAKE SURE YOU ARE STILL IN A ROOT SHELL AND ONLY ONCE YOU ARE ROOT RUN THE LAZYLEANBACK SCRIPTS
Code:
adb shell
su
sh /sdcard/PlayFire/LazyLeanback.sh


Note: While in shell, you can type: df to check /system partition space (If you have 130M+ you should be good to go using my gaaps-config.txt file)

10) Reboot into TWRP and install the Updated SuperSU-v2.82 "UPDATE-SuperSU-v2.82-20170528234214.zip"(if you hadn't already)
11) Continue in TWRP and install OpenGApps "open_gapps-arm64-5.1-tvstock-20180331.zip"
12) Continue in TWRP and install Xposed "xposed-v89-sdk22-arm64.zip"
Once you've successfully installed these 3 in TWRP, reboot the system.

13) Connect to your device's ADB terminal and run the next FINAL command FROM A ROOT SHELL (OR IT WILL NOT WORK)
adb kill-server
adb start-server
adb connect 192.168.xxx.x
adb shell
su
sh /sdcard/PlayFire/LazyNoTouch.sh


14) Go into Xposed and enable Xposed Edge and HDXPosed, Then reboot the Fire TV (again)

15) Go into Xposed Edge and Enable "Keys"

16) Reboot

17) YOU ARE MOSTELY DONE. AT THIS POINT YOU SHOULD BE ABLE TO SUCCESSFULLY LOGIN TO GOOGLE PLAY STORE.

18) Disable services not needed (I done this through ADB shell but there are other ways if you want):
adb shell
su
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override


Note: The next 3 are related to the Amazon launcher. You should disable if you don't use it, or leave it if you do.
pm disable com.amazon.tv.launcher
pm disable com.amazon.device.sale.service
pm disable com.amazon.vizzini


19) Done - You can now proceed to perform other activities (additional blacklisting etc)

Please note that the TV-Stock GApps package is quite large. This is why I recommend a clean start on your system.
Even when many of the useless packages are being ignored via the custom "gapps-config.txt" file.
This directs the GApps installer and tells it specifically what to install and what to ignore[/B].
As example, on a FireTV-v1 after doing a total wipe of System, Data, Internal, Dalvik/Cache, then reinstalling RBox's Prerooted Rom,
I only had about 140MB of free space in my /system partition.

Xposed Edge Notes:
Enable Button Remapping via "Keys" in Xposed Edge & Editing the Xposed Edge Custom Configuration:
Home Button Single Press = Leanback Launcher (Home)
Home Button Double Press = Running Apps List Overlay + Task Switcher
Home Button Long Press = On-Screen Menu Options
Back Button Long Press = Kill foreground app
Menu Button Long Press = Installed Applications Drawer Overlay + App Launcher
Voice (Search) Button Single Press = Google Search (Katniss)
Voice (Search) Button Long Press = TV Voice Input
These settings along with all other custom button mappings can be edited within the Xposed Edge application.

YOU MUST ENABLE the "Xposed Edge" module within Xposed AND THEN ENABLE "Keys" from within the main Xposed Edge settings menu before all these configuration options will take effect.


ADMIN OTHER NOTES:
The following do not need to be placed in /sdcard/ taking up space.
They can be installed using TWRP from a USB or MicroSD location:
xposed-v89-sdk22-arm64.zip
UPDATE-SuperSU-v2.82-20170528234214.zip
open_gapps-arm64-5.1-tvstock-20180331.zip
open_gapps-arm64-5.1-tvstock-20180331.zip.md5


ENJOY!

Keine Kommentare:

Kommentar veröffentlichen