Saturday, July 9, 2016

New way to block updates 9/7/16

I take no credit for this work I just noticed this new work over at AFTVNews & am passing on the info for everyone over here at XDA FireTv forums. The dev behind this is rbox & AFTVNews was posting & making the guides for everyone to use.

Here's all the information -

This is a new method of blocking software updates on a rooted Fire TV or Fire TV Stick. It involves setting a custom software version number in the device's build.prop configuration file. Rbox came up with this idea and asked me to test if it works. The main advantage to this update blocking method is that it can be implemented from within TWRP custom recovery before the device boots. That means, if you factory reset (i.e., wipe data partition) a Fire TV, you can ensure the device does not update during the initial setup process. Prior to this method, you had to rely on external router or OpenDNS update blocking methods when going through the Fire TV initial setup process after factory reseting. Now you can block updates internally before starting the initial setup process. If you have a rooted device and are blocking updates using the "pm disable …" method (method 1 in my blocking guide), it's a good idea to also follow this guide to have an additional update blocking method in place.

Important
This update blocking method MUST BE REDONE EVERY TIME YOU INSTALL A ROM. That is why it's best to use both this method and the "pm disable …" method (method 1) from my blocking guide. This blocking method does survive a factory reset, which method 1 does not. So this method will cover you when factory resetting your device, and method 1 will cover you if you flash a new ROM but forget to re-apply this method, since method 1 survives installing a new ROM.

You can implement this update blocking procedure from within TWRP or within Fire OS. Obviously, if you are following this method to block updates during the initial setup process, you need to implement this update block from within TWRP. If your device is already setup and you are following this guide to just have an additional blocking method in place, then it's actually simpler to implement this method from within Fire OS.

NOTE: I will be updating this guide with screenshots for each step within the next few days. So if it's difficult to understand, you should wait for the screenshots to be added.

Guide using TWRP
Boot into TWRP Custom Recovery. Be sure you are following this guide AFTER you're done installing a ROM. Installing a ROM will remove this blocking method, so it should be done last, just before you boot into Fire OS.
Select Mount from the TWRP main menu.
Check the box next to System and then return to the main menu by pressing the home shaped button in the bottom center.
You now need to transfer the file /system/build.prop from your Fire TV to your PC. You can do this using ADB or by copying it to a microSD card or USB drive connected to your device.
To transfer the file using ADB:

Connect to your device via ADB. You will need to be connected over ethernet and the IP of your device is displayed in the upper left of the main TWRP menu.
Transfer the file to your PC by running the command:
adb pull /system/build.prop [PATH-ON-YOUR-PC]

Be sure to replace [PATH-ON-YOUR-PC] with the directory on your PC where you want the file to be saved.
Mac example:
adb pull /system/build.prop /Users/AFTVnews/Downloads/

Windows example:
adb pull /system/build.prop C:\Users\AFTVnews\Desktop\
To transfer the file using a microSD card or USB drive:

Insert the microSD card or USB drive into your Fire TV.
Select Mount from the TWRP main menu.
If it is not already checked, check the box next to Micro SDCard or USB (depending on which one you're using). Then return to the main TWRP menu by clicking the home shaped button in the bottom center.
Click Advanced from the TWRP main menu.
Click File Manager from the menu.
Click the system directory.
Click the build.prop file.
Click Copy File from the menu.
Click the external_sd if you're using a micro SD card, or select usb if you're using a USB drive.
Click the Select Current Directory button in the lower right.
Click the Swipe to Confirm button to copy the file to your external storage device.
Press the home shaped button to return to the main TWRP menu. Go back into the Mount menu and uncheck your external storage device. You can now remove your microSD card or USB drive and connect it to your PC.
Now that you have the build.prop file on your PC, open it with a plain text editor.
Find the line (near the top) that starts with ro.build.version.number=
Replace the numbers on that line with 987654321 and save the file.
Now you need to transfer the file back to your Fire TV.
To transfer the file back using ADB:

Run the command:
adb push [PATH-TO-build.prop-ON-YOUR-PC] /system/build.prop

Be sure to replace [PATH-TO-build.prop-ON-YOUR-PC] with the location on your PC where the build.prop file is stored.
Mac example:
adb push /Users/AFTVnews/Downloads/build.prop /system/build.prop

Windows example:
adb push C:\Users\AFTVnews\Desktop\build.prop /system/build.prop
To transfer the file using a microSD card or USB drive:

Insert the microSD card or USB drive into your Fire TV.
Select Mount from the TWRP main menu.
If it is not already checked, check the box next to Micro SDCard or USB (depending on which one you're using). Then return to the main TWRP menu by clicking the home shaped button in the bottom center.
Click Advanced from the TWRP main menu.
Click File Manager from the menu.
Click the external_sd if you're using a micro SD card, or select usb if you're using a USB drive. (You may need to select "Up A Level" first.)
Click the build.prop file.
Click Copy File from the menu.
Click the system directory. (You may need to select "Up A Level" first.)
Click the Select Current Directory button in the lower right.
Click the Swipe to Confirm button to copy the file to your /system directory.
Press the home shaped button to return to the main TWRP menu.
That's it. To confirm the custom version number is saved correctly, do one of the following:
If you're connected via ADB, run the following command:
adb shell cat /system/build.prop | grep number
Or, within TWRP, go to Advanced, then to Terminal, and type the following command:
cat /system/build.prop | grep number

You should see ro.build.version.number=987654321 printed out. If you get the original version number printed out, then you did something wrong and need to repeat this guide from the beginning.

Guide using ES File Explorer within Fire OS
It will be a lot easier to follow this guide if you have a keyboard and mouse connect to your device. First, install the app ES File Explorer onto your Fire TV or Fire TV Stick from the Amazon Fire TV appstore.
Open ES File Explorer.
Scroll down the menu on the left and turn on the "Root Explorer" option under the "Tools" sub-menu.
Grant su permission if you're asked.
Press back or escape to dismiss the popup menu.
Scroll up the menu on the left and select "Local".
Select "Device" from the options that appear.
Scroll down and select the "system" folder.
Scroll down and select the "build.prop" file.
Select to open it with "ES Note Editor"
Select the pencil icon in the top right to edit the file.
Find the line that starts with ro.build.version.number and replace the number on that line with 987654321. It's best to use the error keys on your remote or keyboard, instead of clicking with a mouse, to edit the number.
Click the back arrow icon in the upper left. Not the one in the upper right.
Click "Yes" when asked if you want to save.
Click the back arrow icon in the upper left again.
To verify your changes were saved, open the build.prop file again and ensure the number next to ro.build.version.number is still 987654321


Here is the original post on AFTV if you wanna go there & leave them credit on there post -
http://ift.tt/29XcdAi

@rbox & @AFTVnews.com if you would like me to remove this let me know or if you would like to post on the below comments & I will link the thanks to the comment post number so you get the proper credit for your work.

This is great news & another step to stay protected & keep root for our FireTv.


from xda-developers http://ift.tt/29uq3eF
via IFTTT

No comments:

Post a Comment