Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Doogee smartphones to the supported list #302

Open
wants to merge 2,097 commits into
base: android-9.0
Choose a base branch
from

Conversation

Cougar16
Copy link

@Cougar16 Cougar16 commented May 8, 2021

Hi TWRP TEAM ,
I hope you are doing well 🙂 , Doogee company has become one of the most popular companies in producing smartphones in the worldwide, please can you add this company's devices to the list of the supported devices <> ! why not ?
MY BEST REGARDS TO YOU TEAM WIN RECOVERY PROJECT ! THANKS TO REPLY BACK TO MY MESSAGE 🙂

Tao Bao and others added 30 commits April 26, 2019 12:21
This leaves the FD implementation details to subclasses. In particular,
it allows minadbd to do additional works with the FD after sideloading.

Bug: 128415917
Test: atest recovery_component_test
Test: atest minadbd_test
Test: Sideload package on taimen.
Change-Id: I106bbaad05201227bbc5fe28890bbbb06fdcb67e
Merged-In: I106bbaad05201227bbc5fe28890bbbb06fdcb67e
(cherry picked from commit 2be9737)
Bug: 128415917
Test: Enter rescue mode on taimen. Send the following commands:
      `adb rescue getprop ro.build.fingerprint`
      `adb rescue getprop ro.build.date.utc`
      `adb rescue install /path/to/package.zip`
Test: Sideload on taimen w/ `adb sideload /path/to/package.zip`.
Change-Id: Ibc25daf9fd13f7002e54789f67aaf85d06976bb8
Merged-In: Ibc25daf9fd13f7002e54789f67aaf85d06976bb8
(cherry picked from commit ed717ca)
Ass some unit tests to check if the minadbd service exit correctly in
the failure case. Also start the fuse and verify the socket communication
between minadbd with adb host, and minadbd with recovery.

Bug: 131037235
Test: run unit tests repeatedly, injects some errors and test fails
without dangling process.
Change-Id: I2f073b701b25d7f1aafc59868a7a91a8cbefaf49
Merged-In: I2f073b701b25d7f1aafc59868a7a91a8cbefaf49
(cherry picked from commit 9c04eb4)
Bug: 128415917
Test: Run the following commands under sideload and rescue modes
      respectively.
$ adb reboot
$ adb reboot bootloader
$ adb reboot recovery
$ adb reboot rescue
$ adb reboot invalid
Change-Id: I84daf63e3360b7b4a0af5e055149a4f54e10ba90
Merged-In: I84daf63e3360b7b4a0af5e055149a4f54e10ba90
(cherry picked from commit 10f441a)
bootloader will set `boot-rescue` in BCB command field to indicate
booting into rescue mode. This CL adds the matching parsing code.

This CL changes the on-screen UI to display the default image while
waiting for each sideload / rescue command.

It also changes the minadbd reboot handlers to use REBOOT_ instead of
the previous ENTER_ actions. This ensures a reboot going through
bootloader, which may load a newly installed bootloader/recovery.

Bug: 128505466
Bug: 128415917
Test: Boot into rescue mode. Run `adb rescue getprop` and `adb rescue
      install`. Check the UI. Then run `adb reboot rescue`.
Change-Id: I5b7de9dfd898ed8e14bea0d4ad7385a9bae26e94
Merged-In: I5b7de9dfd898ed8e14bea0d4ad7385a9bae26e94
(cherry picked from commit d9cb014)
Bug: 131037235
Test: unit tests pass, run `adb rescue wipe`
Change-Id: I22668f2c98fe2d9195d2561f961c28a7c08e712c
(cherry picked from commit fedeef6)
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4933222253f1bde2daab4726be971c6d7008a0e4
am: 9681eef -s ours
am skip reason: subject contains skip directive

Change-Id: I718746d348b6449d23c0efa37a198cb854d28454
Change-Id: I38ee4ee56c98b79bf2eb64e92ce6df239f825d7c
bootloader_message.h currently divides /misc into four segments. The
space between 2K and 16K is reserved for vendor use (e.g. bootloader
persists flags). This CL adds a vendor tool "misc_writer", to allow
writing data to the vendor space in /misc, before getting a dedicated
HAL for accessing /misc partition (b/131775112).

Targets need to explicitly include the module, then invoke the
executable to write data. For example, the following command will write
3-byte data ("0xABCDEF") to offset 4 in vendor space (i.e. 2048 + 4 in
/misc).
$ /vendor/bin/misc_writer --vendor-space-offset 4 --hex-string 0xABCDEF

Bug: 132906936
Test: Run recovery_unit_test on crosshatch.
Test: Call the command via init.hardware.rc on crosshatch. Check that
      the call finishes successfully. Then check the contents written to
      /misc (`dd bs=1 skip=2048 if=/dev/block/sda2 count=32 | xxd`).
Change-Id: I79548fc63fc79b705a0320868690569c3106949f
Merged-In: I79548fc63fc79b705a0320868690569c3106949f
(cherry picked from commit 7ae0169)
am: 35e0f6d

Change-Id: I4c9c9db09280a0e492cf832489b48511728413b4
Change-Id: Ic78a1225c03b30ae6e2e539e14219b65deabcccd
Most of these properties are already part of the fingerprint. This CL
allows querying them directly, instead of encouraging users to decode
from fingerprints.

Bug: 134027350
Test: Boot into rescue mode on taimen. Run `adb rescue getprop` with new
      props.
Change-Id: Id4667fcaf0e908c391085b22e22c957acd01d9c4
Merged-In: Id4667fcaf0e908c391085b22e22c957acd01d9c4
(cherry picked from commit 3b9ef34)
It dumps all the allowed properties, similar to `adb shell getprop`.

Bug: 134027350
Test: Run the command under rescue mode.
Change-Id: Ic0864ca0fb51505ec1e4f38af2464591aa576201
Merged-In: Ic0864ca0fb51505ec1e4f38af2464591aa576201
(cherry picked from commit d8db81a)
This change addresses the comment in [1], which makes the results of
`adb shell getprop foo` and `adb rescue getprop foo` more consistent.
That is, both will return newline-terminated results now.

[1] https://r.android.com/c/platform/bootable/recovery/+/976340/3/minadbd/minadbd_services.cpp#188

Fixes: 134027350
Test: Run the following commands on taimen (under rescue mode):
    `adb rescue getprop ro.build.fingerprint`
    `adb rescue getprop ro.nonexistent`
    `adb rescue getprop`
Change-Id: I5af47f8ea4d569b8507e259daef87749c0945f47
Merged-In: I5af47f8ea4d569b8507e259daef87749c0945f47
(cherry picked from commit 57a2789)
Change-Id: I564fb600ee57b347cb2b6a9c7f88b8d5cbf04728
Change-Id: Ib9d586f649fd141c08b4b1cb1c6f54da4bcb6953
Change-Id: Ie46693d0aaf8ec8732578c6ed7ee005a9e287443
Change-Id: I87b9aef60fb242db67a05d8070ae7898706b0233
libprocessgroup symbols are being moved into libcutils in order to
optimize linking/memory usage. libprocessgroup will no longer be
required in the future (however removing references to it will come
separately).

Since libcutils is used statically here, the dependencies of
libprocessgroup need to be explicitly listed.

Bug: 135145426
Test: boot
Change-Id: I91c082f0fa2f5f5c52751065cd5f50f5cb965b23
am: 46ec20b

Change-Id: I39a19e98437e210aa14bee4f03c1c69e8f2faa34
Change-Id: I9820970150af84fd563798dfb2b85b6ece61974d
This reverts commit 46ec20b.

Reason for revert: breaks all camera use cases

Bug: 135568875
Change-Id: I86747c0df5489f80d1966dd07669637597fb2b00
am: cdbd84d

Change-Id: I83e2eb9e4961141389d7c8d90fd70363985b9855
Change-Id: I5a500d2edf16ca3024d8f929069228644fac08f3
We start minadbd and rescue services in two processes. In particular,
minadbd handles the requests from host, then communicates with rescue
service to do install/wipe works. When resuce service doesn't see any
request in a pre-defined timeout (currently 300s), rescue service will
exit to avoid endless waiting.

This CL changes minadbd to additionally send a no-op command to rescue
service as a heartbeat signal, so that host side can finish
time-consuming operations (e.g. downloading over network) while keeping
rescue service alive.

Bug: 136457446
Test: Enter resuce mode on blueline. Send `adb rescue getprop
      ro.build.fingerprint` and check that rescue service doesn't exit.
Test: Stop sending the getprop command. Check that rescue service exits
      after 300s.
Change-Id: Ib9d5ed710cfa94ecfe6cf393a71a0b67b2539531
Merged-In: Ib9d5ed710cfa94ecfe6cf393a71a0b67b2539531
(cherry picked from commit 2223e6a)
Change-Id: Ia1d41a9046568a28daa92201ab351393d79e7cbb
nebrassy and others added 30 commits February 17, 2021 11:47
Use 'TW_EXCLUDE_NANO := true' to exclude from build

Will be excluded by default if 'TW_OEM_BUILD := true' is set

Change-Id: I812399ef9f3f5d3c7d4baf981924d49255c16e5a
Change-Id: Ie7d940545569e6de976d2a51666b692f3fc23798
Change-Id: I90ceb5d678bafb0679329f27f711d1732a1ae69d
Only run Update_System_Details on boot after decryption is
complete, if device is unencrypted, or if decryption prompt
is cancelled.

This significantly decreases the delay in reaching the
decryption prompt on devices with large used storage
capacity

Use refreshsizes action to update system details when
Cancel button is pressed at decryption prompt

Change-Id: I9e436b1c57664a5269f42dc1cda4f6097f7e3062
Change-Id: Id3b3b46d492bf83d1d9d3f535c880ea9d15b4107
Change-Id: I66a66cc6b952c1aae45c50a8f40c00febce69462
Change-Id: Ie1826df01ad5fe2480e96d56b2c4fd1c91449cc2
Otherwise, the script bombs out when it tries to write the illegal XML.

Change-Id: Iaf0e9f6c82a57886ff56cdd4d1fc1c402776b29b
Change-Id: I583df33125092bef205f0f8710225b9dbfbe7602
Change-Id: Iafda62a5f77f7c1f564f1a2ec0a59aefaf5e1266
Change-Id: Ic01685602a47d0b468616e3d5c3f26a44313cdc8
(cherry picked from commit 3b3bd12)
Change-Id: I216889667c959bb2a0fb1cb59bb6216946974b89
Change-Id: Id76269c81618adc966f63d80cb6a2da318a8d25c
Change-Id: Ie95a57239b2576e71869fe5711d081600d2e2f0f
Change-Id: Ie17582f144e0a5b5a68e2c6d88c26cb9f5a29ee6
This is required on some devices where previous to 8.1/8.0 the blank
screen flag worked but don't now.

Test: Tested on begonia, screen is now no longer black

Change-Id: Ib4ff607d220bcb1aa5166fea23cc7ecb0e012fdd
(cherry picked from commit 28d8dec)
Change-Id: I0951175abdef591fe6b2089660ac822c2fbc9cce
(cherry picked from commit 050a22a)
Change-Id: I5a3e82f103e7a80800be7790f1c8dc33c76413da
Change-Id: Ia076d0f6c6e3db7806e127d2fe62aa58c5fc435f
Between Android versions, there may be different partitions
that make up super. Just because a partition that in fstab
is not in super doesn't necessarily mean there's a problem.

Change this message to information only so the end user
doesn't think there's a problem when there isn't one

Change-Id: I9cb99aabe20e20059e66cf0cf13cff5ed056f529
Change-Id: I49732e59711cdc2ff0900cd8d3d7b1a0ea1d2011
Simplifies code for retrieving this list rather than using
every possible specified super partition group

Change-Id: I1a3bd8e4b73ce18a176c74a52eb91d25709080f4
Change-Id: Ic0ed7737e12974b9a901f47e6c60c6720005ecf3
Some if the newer 2020 Samsung devices have a single file that enables/disables/sets the timeout for vibration in /sys/class/timed_output/vibrator/enable
The content of the file determines the state of the vibrator, 0 being vibrator being off and any other value being the time in ms that the vibrator is going to run before resetting to 0 again.

Signed-off-by: soulr344 <[email protected]>
Change-Id: I1144e139285494e43b8656229ad6df10d5b48f39
Signed-off-by: soulr344 <[email protected]>
Change-Id: I8af2239735a800a7c883931ac3531440cc7f7758
(cherry picked from commit 5c10257)
(cherry picked from commit 69e6e77)
…e/by-name/

Signed-off-by: Mohd Faraz <[email protected]>
Change-Id: Iebebe9234723bcda863098cdff6ed41e7b410e78
 * Export vendor paths for boot-hal as some libs are present in vendor
 * hwservicemanager and vndservicemanager are also required by health hal amd boot hal

Change-Id: I9017e0692cdb917db86629588726ba11eafd1e81
Signed-off-by: Mohd Faraz <[email protected]>
Change-Id: I3b40b30a24ef70ed9acc2c36fd7037cec6ed4bdb
A recent change removed the inclusion of hwservicemanager
and vndservicemanager with only this flag

Change-Id: I9b8cb05a6bd053b794599167bcc8bf0591b2e184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.