yashsingh1/xdaforums huggingface dataset:
[Fire General] DB126:
A downgrade to FireOS v4 is not possible for several reasons (most notably there are no FireOS v4 builds for this device even if one could work around bootloader issues). As the bootloader/kernel are locked custom ROMs are restricted to Android 5.1 due to compatibility restrictions.
[Fire General] owerevoke:
So, it is apperant that you can downgrade from 5.4.0.1 to 5.4.0.0.

Then from 5.4.0.0 to 5.3.2.1.

But you can't root or downgrade 5.3.2.1, so how am I going to flash a custom rom then?
[Fire General] Matrey_Moxley:
As of now, AFAIK you can't - 5.3.2.1 can't be rooted.

Maybe they'll find a way to root the later versions sometime in the future, but it does not seem very likely.
[Fire General] Jake1702_:
Personally, I might sell this tablet and get something that can be rooted and have the bootloader unlocked. Problem is, the screen has a couple of scratches on it, (not my fault btw), and the back is pretty scratched up too, so not sure how much I'd get for it honestly.
[Fire General] meric57:
Bonjour ,demande aide suite a donwngrad kindle fire gen 5 de la version 5.4.0.1 vers 5.1.2 j'ai suivi tuto sur le forum.Le souci après abb sideload update-kindle-global-37.5.4.2_user_542168620.bin tous ces bien passer ,j'ai fait reboot système et écran noir plus moyen de l'allume .

J'ai essayé power 40 secondes rien,J'ai mis ma tablette en charge peut être déchargé je verrais bien dans 5 heure .

merci d'avance
[Fire General] DB126:
Per XDA rules all posts must be made in English. Native language can follow.
[Fire General] simbin:
anyone successfully downgrade HD 7 (4th gen)?

from what I can tell (4th & 5th gen) are essentially same chipset

couple people said they downgraded 5th gen ok

I was going to try it myself but can't get adb working - not sure what's up
[Fire General] javweird:
What do you mean "Please the firmware file into your ABD folder (PC side)? Where is this folder located? or do you just mean to create it?
[Fire General] DB126:
See video link in OP (1st post) of this thread. Should answer many of your questions. When it comes to execution be sure to substitute the proper file for the one referenced in the video; using the latter will brick your device.
[Fire General] joe7dust:
I'm trying to do "pm uninstall -k --user 0 com.amazon.kindle.kso" on my Fire 7 HD 5th gen running 5.4.0.1 to get rid of the lock screen ads, but it is telling me "Failure - not installed for 0"
[Fire General] DB126:
Please don't cross post: https://xdaforums.com/amazon-fire/g...remove-amazon-bloatware-t3636797/post74348245

Amazon disabled this command in FireOS > 5.4.0.0. You'll need to roll back to FireOS 5.4.0.0 (and remain on that version) or use another method to disable ads. A quick email to Amazon usually does the trick.

https://xdaforums.com/amazon-fire/general/how-to-rid-ads-special-offers-lock-t3585863
[Fire General] joe7dust:
How do I roll back from 5.4.0.1 ?
[Fire General] DB126:
See linked thread (includes video). Be sure to go with 5.4.0.0 vs the version mentioned in the video.

https://xdaforums.com/amazon-fire/general/unbrick-amazon-fire-7in-2015-5th-gen-t3285294
[Fire General] joe7dust:
Post on the front page sounds like it could use an update.

This isn't an index thread, is it?
[Fire General] joe7dust:
Meaning I posted in the right place here?
[Fire General] DB126:
Yes - proper Q&A thread, but I don't see a question/concern. Same issue that was previously posted in the index thread? If yes I can go there for the details and then respond here.
[Fire General] joe7dust:
I may have overused the Hide tag a little. Should be on page 13.
[Fire General] DB126:
Appears the details got lost in the edits. Assume you are referring to this:

adb sideload update-kindle-37.5.7.9_user_579225620.bin

loading: 'update-kindle-37.5.7.9_user_579225620.bin'

error: device '(null)' not found

Also assume tethered device was in *recovery mode* with "apply update from ADB" option selected.

You should have received a response from the "adb devices" command in the form of a serial number (long string of characters) plus the word 'sideload'. At the same time your device should have displayed the following in yellow:

"Now send the package you want to apply

to the device with 'adb sideload <filename>’..."

Based on the response I'm guessing the device was not in the proper mode to receive an adb update (sideload).
[Fire General] joe7dust:
Close, it was a driver issue. Had to try several before it worked. Part of the guide said look for fire devices part said Android phone. For me it was neither, I had to select "Samsung And Phone" and edit it to the general androidusb.inf from 5thgensupertool. Just finished and said "Total xfer: 2.00x"

By the way I already got the ads removed earlier today via a phonecall to amazon support. I was hoping to get the default android options for the lockscreen back somehow now that I can root. I might put CM or something more on it instead, looking at options. I want to be able to completely remove/disable screen locking. The person I spoke with said there is no way to do it, but I don't believe! :) If I don't have a password set and I'm not required to be served up ads for using the device, then there is no point to have to swipe every time I turn the screen back on.

I'd also like put on TWRP if that is possible. It comes in so handy when you wanna mount an .iso for hosting like USB drive for another device to boot from the sdcard plus it makes reverts/recovery super easy later on from a .Zip file.

edit: It worked! I'm running 5.4.0.0 now. Time to dig into the fun bits of deciding how to customize it. You think it is safe/recommend using Debloater? I'd like to remove all bloat/junk that doesn't need to run to speed it up, as I found this tablet to be quite slow compared to my very old (now) Nexus 7.
[Fire General] DB126:
- Windows driver issues are a frequently source of joy with Amazon gizmos, although less so with 5th-7th gen devices; surprised you had an issue

- No root w/FireOS 5.4.0.0 (thus no TWRP or custom ROMs)

- No know way to disable lock screen without root on FireOS

- Approach standard debloat script with caution as it tends to be a bit too aggressive; only way to restore 'desirable' apps is a factory reset which destroys personal content; script can be modified to suit personal tastes
[Fire General] joe7dust:
What was the point of downgrading to 5.4.0.0 from 5.4.0.1 if no root is available yet?
[Fire General] DB126:
Your request surrounded disabling lock screen ads; that can only be done via disabling system components on FireOS 5.4.0.0 or lower.

If your device is a 5th gen model it can be further downgraded to 5.3.2.1 using the same process. However, there is little point it doing so as root is not available on any build above 5.3.1.0 (note 5.3.2.0 can be rolled back to 5.3.1.0). Pretty sure 7th gen devices can not be downgraded below 5.4.0.0.

In my view the chance of identifying a vulnerability in FireOS 5.4+ that leads to a leverageable root exploit or bootloader unlock is remote. Optimists will take issue with that position but it is based on an increasing emphasis by Amazon, Google and others on eliminating such vulnerabilities. The fruits of their efforts are evident everywhere.

If you demand root and your device is <30 days old consider returning it. Even when fully 'debloated' FireOS imposes a number of restrictions that you may not like.
[Fire General] joe7dust:
It's fine, even disabling ads and recommendations on home screen increased the speed by a lot.
[Fire General] DragonFire1024:
Please note if you want to remove Amazon contacts and replace it with Google's, you need to make sure you install Google's first then uninstall Amazon's. This goes for other apps as well.
[Fire General] adilkhanashrafi:
How i can disable updates on my amazon stick.. Please help me..

Thanks in Advance
[Fire General] DB126:
- this forum is for the Fire 7 tablet

- ask your question here: https://xdaforums.com/fire-tv

- in general (may not apply to Fire Stick...) you must block OTA updates on an unrooted Amazon device at your router or via software firewall (VPN)
[Fire General] Alan06095:
What are the benefits of downgrading to 5.3.2.1 vs 5.4.0.0?
[Fire General] DB126:
None other than unsubstantiated speculation that root might come to 5.3.2.1 before higher builds (cough). You do loose some security patches, incremental improvements and arguably tighter Alexa integration. Pick your poison.
[Fire General] joe7dust:
Returned that slow PoS. Good luck all.
[Fire General] THC Butterz:
So I have a 5th gen with 5.4.0.1 on it, I should be able to downgrade and root/ rom right?

Really trying not to brick this one XD
[Fire General] DragonFire1024:
You can downgrade to 5.3.2.1. there is no root, therefore no ROM. The best you can do is disable system apps.
[Fire General] THC Butterz:
can I disable otas and the launcher and have it default to nova?
[Fire General] DB126:
A software firewall (vpn) is the best way to block OTA updates on an unrooted device. Alternatively, you can disable some of the components responsible for handling OTA updates using the 'debloat' script once on 5.4.0.0 or below.
[Fire General] thambikutty:
I'm trying to downgrade from 5.4.0.1 to 5.4.0.0 and I'm to able get sideload started but it stops during verifying phase at 47% and tablet says "E:failed to verify whole-file signature"
[Fire General] DB126:
Most likely have the wrong file. There are different builds for 5th and 7th gen devices. I don't have access to 5.4.0.0 links at the moment; you'll need to hunt them down.
[Fire General] Sparksys:
Any news about rooting this tablet or it is still not possible?
[Fire General] DB126:
Nope. Assume no root for the lifespan of this device. Low hanging fruit is long gone.

https://xdaforums.com/amazon-fire/general/unbrick-amazon-fire-7in-2015-5th-gen-t3285294/post74672809
[Fire General] thambikutty:
Well I found one that flashed all the way this time, except on reboot it wouldn't turn on. Tried the troubleshooting steps of holding down pwr button but no luck. Looks dead to me :(
[Fire General] DB126:
Probably if you used an incompatible image.
[Fire General] abacabie:
I don`t think its possible to downgrade from to 5.4.0.1 to 5.4.0.0 without it bricking, not positive mind but i have only read about unsuccessful attempts.
[Fire General] DB126:
5th gen 7" Fire devices (Ford) can be sucessfully downgraded from 5.4.0.1 to 5.4.0.0. Recent posts in this thread suggest 7th gen devices (Austin) can also be downgraded with one poster claiming success going from 5.6.0.0 -> 5.4.0.1 -> 5.4.0.0. Note different '.bin' files (images) are required for 5th and 7th gen devices. Most unsuccessful attempts are the result of using the wrong image and/or inappropriate technique.
[Fire General] abacabie:
I stand corrected, i honestly thought i was still browsing the Fire HD 8 section and apologise for the misinformation.
[Fire General] FreewareLovers:
I also think that Fire HD 8 (7th gen) should be downgradable from 5.4.0.1.

I just successfully downgraded my Fire 7 (7th gen) from 5.6.0.0 directly to 5.4.0.0 using the "update-kindle-55.5.7.9_user_579225620.bin" image file.

I have a Fire HD 8 (7th gen) here, which was delivered already with the version 5.4.0.1.

Will try to downgrade it to 5.4.0.0 and will report back here.
[Fire General] DragonFire1024:
HD 8 cannot be downgraded. Will result in perma brick.
[Fire General] DB126:
To my knowledge all attempts to down grade 6th/7th gen HD 8 models have been unsuccessful (non-recoverable bricks). Best try this during the 30 day return window as Amazon will exchange non-functioning units without question provided you don't volunteer too much information.
[Fire General] FreewareLovers:
Just learned it the hard way. Tried to downgrade my Fire HD 8 (7th gen) v5.4.0.1 to the version 5.4.0.0 using the file "update-kindle-50.5.7.9_user_579225620.bin" and, as you said, hard bricked it. I will give myself a couple of days and if it's not resurrectable will return it all together.
[Android Software/Hacking General [Developers Only]] yshalsager:
Part 2: How to build DualBootPatcher using docker images?

What is docker?

[in case you don't know it :confused: ]

Firstly, make sure you have docker installed, if not install it

From here you should choose a method you'll follow, Building docker images manually or use pre-built docker images.

A) Building docker images manually:

[MENTION=4277844]chenxiaolong[/MENTION] sir has made docker image configuration files here

all you need to do after sync the repo like part 1 is entering the following commands in DualBootPatcher directory:

./docker/generate.sh
./docker/build.sh

B) Using ready-made docker images:

i have made docker images and uploaded them to docker hub

to download "pull" it enter these commands:

docker pull yshalsager/dualbootpatcher:9.3.0-4-base
docker pull yshalsager/dualbootpatcher:9.3.0-4-android
docker pull yshalsager/dualbootpatcher:9.3.0-4-linux

Building DualBootPatcher using docker:

- To enter docker container and build DualBootPatcher make folder "builder" in DualBootPatcher directory

cd DualBootPatcher && mkdir -p builder

- Then run this to enter android build container

docker run --rm -it -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/builder/DualBootPatcher:rw,z" -v "${HOME}/.android:/builder/.android:rw,z" -v "${HOME}/.ccache:/builder/.ccache:rw,z" -v "${HOME}/.gradle:/builder/.gradle:rw,z" yshalsager/dualbootpatcher:9.3.0-4-android bash

- After this you'll continue like normal building:

cd DualBootPatcher/builder && cmake .. -DMBP_BUILD_TARGET=android -DMBP_BUILD_TYPE=debug && make -j16 && rm -rf assets && cpack && make apk -j16
make android-system_armeabi-v7a -j16 && make -C data/devices -j16

- Now exit from container and enter linux build one:

docker run --rm -it -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/builder/DualBootPatcher:rw,z" -v "${HOME}/.android:/builder/.android:rw,z" -v "${HOME}/.ccache:/builder/.ccache:rw,z" -v "${HOME}/.gradle:/builder/.gradle:rw,z" yshalsager/dualbootpatcher:9.3.0-4-linux bash

- Build utilities ZIP:

cd DualBootPatcher/builder && ./utilities/create.sh

- And build linux app

cmake .. -DMBP_BUILD_TARGET=desktop -DMBP_PORTABLE=ON && make -j16 && cpack

- You'll find output files in your local "builder" folder like normal build.
[Android Software/Hacking General [Developers Only]] yshalsager:
Part 5: How to submit new Devices to official DualBootPatcher support?

Once you checked everything is working, it's time to contribute to DualBootPatcher and add your device to official devices:

- First, Check you made all needed changes to add your device without problems, again check for YAML syntax because if it's wrong build won't work.

- Open DualBootPatcher Repository, press New pull request button.

- Press compare across forks and change the head fork to your username/DualBootPatcher

- Give a name and a description to your pull request, some thing like: "Add (Device Name) support" or "data: Add (device name)

- Now click the "Create pull request" green button

- Wait for your changes to be verified and merged to the project, the developer received your code and he will review, try and add it to the source code. You will be notified when your code merged.
[Android Software/Hacking General [Developers Only]] yshalsager:
Supported Devices by me

Here is my all contributions to DualBootPatcher:

Nokia X/XL

Nokia X2

Samsung Galaxy Win & Core

Xiaomi Mi 6

Xiaomi Redmi 4A

OnePlus 5

HTC Desire Eye

YU YUREKA BLACK

Xiaomi Mi 4S

Xiaomi Redmi Pro

Samsung Galaxy S8/S8+ [Exynos & Snapdragon]

Zenfone 2 Laser [Z00ED]

Lenovo Vibe K6

Samsung Tab S2

Samsung Galaxy Note 8 (Exynos)

If you can't add your device, you can pm me with logs tar file and i'll add it for you ;)
[Android Software/Hacking General [Developers Only]] afridi.shahriar:
Hii reserved

---------- Post added at 02:20 AM ---------- Previous post was at 02:20 AM ----------

I will tell u, how to sync apps between roms, without using double storage space for apk and libs.

---------- Post added at 02:25 AM ---------- Previous post was at 02:20 AM ----------

also can be used as multi profile
[Android Software/Hacking General [Developers Only]] taicracker:
Support Nokia 6?

Qualcomm s430 Full root...
[Android Software/Hacking General [Developers Only]] addy692:
Flash get logs

And send me
[Android Software/Hacking General [Developers Only]] yshalsager:
Read this man! ;) https://xdaforums.com/showpost.php?p=73551957&postcount=5

or if you can't do it i can help, just give me the logs tar file
[Android Software/Hacking General [Developers Only]] taicracker:
The file where you say is located on the device. I will upload it to you soon ?

---------- Post added at 05:27 PM ---------- Previous post was at 04:28 PM ----------

https://drive.google.com/file/d/0B-7MZC8TPIGtTjQyOFVydzNHV1U/view?usp=drivesdk

This is the logs file. (.tar.gz)

I am not on a PC right now. You help me. Do you need the build.prop file on your device?
[Android Software/Hacking General [Developers Only]] taicracker:
https://drive.google.com/file/d/0B-7MZC8TPIGtTjQyOFVydzNHV1U/view?usp=drivesdk

?
[Android Software/Hacking General [Developers Only]] yshalsager:
I got it, apk will be here soon
[Android Software/Hacking General [Developers Only]] taicracker:
Ok. Thanks
[Android Software/Hacking General [Developers Only]] yshalsager:
[MENTION=5758374]taicracker[/MENTION]

Here you are, please test and report me

https://transfer.sh/rqmJs/Android_GUI-debug-290817-12h43m41s.apk
[Android Software/Hacking General [Developers Only]] taicracker:
link die
[Android Software/Hacking General [Developers Only]] yshalsager:
Sorry

https://transfer.sh/rqmJs/Android_GUI-debug-290817-12h43m41s.apk
[Android Software/Hacking General [Developers Only]] taicracker:
Ok Thanks. I'm downloading. Installation is complete and then I do next. My Nokia 6 does not have a compatible room at all
[Android Software/Hacking General [Developers Only]] taicracker:
I installed apk file and what do i do next?
[Android Software/Hacking General [Developers Only]] yshalsager:
if you don't have another rom to install, then no need of app ! :D
[Android Software/Hacking General [Developers Only]] DAusRon:
Lets say im currently booted on secondary rom (data slot). How can i flash the stock boot img of primary rom? Do i have to:

1) dirty flash primary rom which has been patched by dbp while still on secondary rom

Or

2) boot to primary rom, then reboot to twrp, choose flash img

Thanks
[Android Software/Hacking General [Developers Only]] yshalsager:
No, simple patch boot zip flasher to primary and flash it
[Android Software/Hacking General [Developers Only]] addy692:
Hello sir

Ur tutorial for compiling apk was very helpful

Can u make a tut. For ROM development using server

Like

About how to set up

Or if u can

Just suggest some good server for ROM development
[Android Software/Hacking General [Developers Only]] yshalsager:
There's many tutorials for setting servers on xda

you can use Google cloud, Microsoft azure or just any linux server
[Android Software/Hacking General [Developers Only]] kirito9:
Great tutorial. I was finally able to add support for my device but I'm having an error which I don't understand. It's telling me that it cannot recognize the device codename :/ .I've made codename changes many times and also edited my build.prop. Here is my stock build.prop and edited source Any help would be appreciated @ yshalsager.
[Android Software/Hacking General [Developers Only]] yshalsager:
1- You need to add "tct" to https://github.com/kirito96/DualBootPatcher/blob/master/data/devices/CMakeLists.txt

so it'll be

symphony.yml
tecno.yml
tct.yml
umi.yml

2- Remove this line https://github.com/kirito96/DualBootPatcher/blob/master/data/devices/tct.yml#L9 and add this codename instead Yaris_M
[Android Software/Hacking General [Developers Only]] 3lambda:
[MENTION=6084385]yshalsager[/MENTION]

Is there a way to make magisk work on other rom except primary ? I mean ready to flash ?

Also thanks for your guide :D
[Android Software/Hacking General [Developers Only]] yshalsager:
Try magisk v12 it works for me

And welcome : D
[Android Software/Hacking General [Developers Only]] ndrancs:
Dear op, did your try building 9.3.0-staging branch on travis? its support oreo
[Android Software/Hacking General [Developers Only]] yshalsager:
Thanks for this info, i'll try it soon :good:
[Android Software/Hacking General [Developers Only]] satriahitam:
please add my device to the 9.3.0 snapshot, thx dev
[Android Software/Hacking General [Developers Only]] Nonta72:
Hi,

I used your Travis config, yet the build is still failing.

Here is my fork https://github.com/Google-Africa/DualBootPatcher/tree/master

LOG: https://api.travis-ci.org/v3/job/320687074/log.txt
[Android Software/Hacking General [Developers Only]] yshalsager:
My bad, I forgot to update config here, so please use this latest one

https://github.com/yshalsager/DualBootPatcher/blob/travis-docker/.travis.yml
[Android Software/Hacking General [Developers Only]] Nonta72:
Still not good!

https://github.com/bqm5/DualBootPatcher/blob/master/.travis.yml

https://api.travis-ci.org/v3/job/320993390/log.txt
[Android Software/Hacking General [Developers Only]] yshalsager:
Error response from daemon: pull access denied for bqm5/dualbootpatcher, repository does not exist or may require 'docker login'

There's no docker image named "bqm5/dualbootpatcher". so, you don't have to edit these lines

https://github.com/bqm5/DualBootPatcher/blob/master/.travis.yml#L10

it should be like here https://github.com/yshalsager/DualBootPatcher/blob/travis-docker/.travis.yml#L10
[Android Software/Hacking General [Developers Only]] Nonta72:
So, this one https://github.com/bqm5/DualBootPatcher/blob/master/.travis.yml#L8 is enough???
[Android Software/Hacking General [Developers Only]] yshalsager:
You still need to change all "yshalsager" https://github.com/bqm5/DualBootPatcher/blob/master/.travis.yml#L35 to yours "bqm5"
[Android Software/Hacking General [Developers Only]] Nonta72:
Thanks!

The compilation completed successfully.

Although the apk file appears to be big! It's roughly 33 MB.
[Android Software/Hacking General [Developers Only]] yshalsager:
Welcome

Yes, because it's debug build
[Android Software/Hacking General [Developers Only]] yshalsager:
Updated: 29/12/2017

- Changes for v9.3.0-4

New Travis script https://github.com/yshalsager/DualBootPatcher/blob/travis-docker/.travis.yml
[Android Software/Hacking General [Developers Only]] killergg:
Can you add Moto g5 and S5 neo please
[Android Software/Hacking General [Developers Only]] yshalsager:
If you have twrp, Flash logs https://dbp.noobdev.io/misc/getlogs/GetLogs-20161128-1.zip

attach tar file and let me add it.
[Android Software/Hacking General [Developers Only]] killergg:
Thanks mate will do now for both cheers
[Android Software/Hacking General [Developers Only]] killergg:
S5 Neo files

Here is S5 Neo files mate
[Android Software/Hacking General [Developers Only]] yshalsager:
DualBootPatcher-YAML-Generator​

Here's a new tool to auto-generate YAML in order to add your device to DualBootPatcher

https://github.com/yshalsager/DualBootPatcher-YAML-Generator

It'll make .yml file, then you should follow instructions here.
[Android Software/Hacking General [Developers Only]] yshalsager:
Devices added!

Downloads:

https://transfer.sh/TJZ6w/Android_GUI-debug-030218-20h46m.apk

https://transfer.sh/12AJ2D/DualBootUtilities-9.3.0-030218-20h46m.zip

https://transfer.sh/13uP6U/DualBootPatcher-9.3.0-030218-20h46m-Linux.zip
[Android Software/Hacking General [Developers Only]] problemathic:
add my device? can? cherry mobile touch xl 2
[Android Software/Hacking General [Developers Only]] sumitarora2:
please add Samsung galaxy core prime
[Android Software/Hacking General [Developers Only]] problemathic:
https://drive.google.com/file/d/16KK9I-N5FEwuzRpst0wR5Kom2iIISn9y/view?usp=sharing mine is here bro. im running a custom rom but my device is Cherry Mobile Touch XL 2

EDIT: ADDED A NEW LINK and also my build.prop in in the logs in recovery folder. default prop :)
[Android Software/Hacking General [Developers Only]] Razz...:
Plzzzz Add support to Gionee F103 attachments are provided
[Android Software/Hacking General [Developers Only]] yshalsager:
OK guys, I'll add them in 3 day