Hovatek Forum DEVELOPMENT Android Spreadtrum/Unisoc twrp porter for android 10
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


Spreadtrum/Unisoc twrp porter for android 10

Spreadtrum/Unisoc twrp porter for android 10

Pages (2): 1 2 Next
SPDfan
SPDfan
SPDfan
Newbie
1
21-06-2021, 06:22 AM
#1



Any plans for the TWRP porter to be updated for android 10 on the spd/unisoc devices?

Some of these devices have great hardware for what they are, and it would be cool if we can put custom roms on them.
X3non
X3non
X3non
Recognized Contributor
22,062
21-06-2021, 12:21 PM
#2
(21-06-2021, 06:22 AM)SPDfan Any plans for the TWRP porter to be updated for android 10 on the spd/unisoc devices?

Some of these devices have great hardware for what they are, and it would be cool if we can put custom roms on them.

if custom rom is the issue, then it's a good thing that there's the option of flashing gsi roms using fastboot
This post was last modified: 21-06-2021, 12:25 PM by X3non.
CarlosCMD
CarlosCMD
CarlosCMD
Junior Member
26
13-05-2023, 08:22 PM
#3
(21-06-2021, 06:22 AM)SPDfan Any plans for the TWRP porter to be updated for android 10 on the spd/unisoc devices?

Some of these devices have great hardware for what they are, and it would be cool if we can put custom roms on them.
Were you able to port?
Gargoyle
Gargoyle
Gargoyle
Contributor
463
14-05-2023, 03:33 AM
#4
Unisoc is not very suitable for GSI Rom,
I have two devices "SC9863A + Tiger T610" and it is no glory.
Still having some issues.
Gargoyle
Gargoyle
Gargoyle
Contributor
463
14-05-2023, 06:23 AM
#5



But you can try it for tablet or phone

[For_Phone]_PixelExperience_Plus_treble_arm64_bgN-12.1-20230514-0225-UNOFFICIAL

[For_Tablet]_PixelExperience_Plus_treble_arm64_bgN-12.1-20230514-01002-UNOFFICIAL

1. change PRODUCT_SHIPPING_API_LEVEL from 30 to 29
2. change PRODUCT_CHARACTERISTICS tablet / phone
3. change EngineBase.cpp, so that fix audioserver crash during startup.
Code:

diff --git a/services/audiopolicy/engine/common/src/EngineBase.cpp b/services/audiopolicy/engine/common/src/EngineBase.cpp
index 150a9a8e4f..9d5dff6d9f 100644
--- a/services/audiopolicy/engine/common/src/EngineBase.cpp
+++ b/services/audiopolicy/engine/common/src/EngineBase.cpp
@@ -165,16 +165,7 @@ engineConfig::ParsingResult EngineBase::loadAudioPolicyEngineConfig()
         android::status_t ret = engineConfig::parseLegacyVolumes(config.volumeGroups);
         result = {std::make_unique<engineConfig::Config>(config),
                   static_cast<size_t>(ret == NO_ERROR ? 0 : 1)};
-    } else {
-        // Append for internal use only volume groups (e.g. rerouting/patch)
-        result.parsedConfig->volumeGroups.insert(
-                    std::end(result.parsedConfig->volumeGroups),
-                    std::begin(gSystemVolumeGroups), std::end(gSystemVolumeGroups));
     }
-    // Append for internal use only strategies (e.g. rerouting/patch)
-    result.parsedConfig->productStrategies.insert(
-                std::end(result.parsedConfig->productStrategies),
-                std::begin(gOrderedSystemStrategies), std::end(gOrderedSystemStrategies));


     ALOGE_IF(result.nbSkippedElement != 0, "skipped %zu elements", result.nbSkippedElement);

4. change AudioPolicyManager.cpp, so that fix audioserver crash when headset plugs in.
Code:

diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
index 5a18762967..f3f50f513c 100644
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -5349,15 +5349,7 @@ status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor>& d
     }

     if (state == AUDIO_POLICY_DEVICE_STATE_AVAILABLE) {
-        // first call getAudioPort to get the supported attributes from the HAL
-        struct audio_port_v7 port = {};
-        device->toAudioPort(&port);
-        status_t status = mpClientInterface->getAudioPort(&port);
-        if (status == NO_ERROR) {
-            device->importAudioPort(port);
-        }
-
-        // then list already open outputs that can be routed to this device
+        // first list already open outputs that can be routed to this device
         for (size_t i = 0; i < mOutputs.size(); i++) {
             desc = mOutputs.valueAt(i);
             if (!desc->isDuplicated() && desc->supportsDevice(device)
CarlosCMD
CarlosCMD
CarlosCMD
Junior Member
26
14-05-2023, 09:34 AM
#6
(14-05-2023, 06:23 AM)Gargoyle But you can try it for tablet or phone

[For_Phone]_PixelExperience_Plus_treble_arm64_bgN-12.1-20230514-0225-UNOFFICIAL

[For_Tablet]_PixelExperience_Plus_treble_arm64_bgN-12.1-20230514-01002-UNOFFICIAL

1. change PRODUCT_SHIPPING_API_LEVEL from 30 to 29
2. change PRODUCT_CHARACTERISTICS tablet / phone
3. change EngineBase.cpp, so that fix audioserver crash during startup.
Code:

diff --git a/services/audiopolicy/engine/common/src/EngineBase.cpp b/services/audiopolicy/engine/common/src/EngineBase.cpp
index 150a9a8e4f..9d5dff6d9f 100644
--- a/services/audiopolicy/engine/common/src/EngineBase.cpp
+++ b/services/audiopolicy/engine/common/src/EngineBase.cpp
@@ -165,16 +165,7 @@ engineConfig::ParsingResult EngineBase::loadAudioPolicyEngineConfig()
         android::status_t ret = engineConfig::parseLegacyVolumes(config.volumeGroups);
         result = {std::make_unique<engineConfig::Config>(config),
                   static_cast<size_t>(ret == NO_ERROR ? 0 : 1)};
-    } else {
-        // Append for internal use only volume groups (e.g. rerouting/patch)
-        result.parsedConfig->volumeGroups.insert(
-                    std::end(result.parsedConfig->volumeGroups),
-                    std::begin(gSystemVolumeGroups), std::end(gSystemVolumeGroups));
     }
-    // Append for internal use only strategies (e.g. rerouting/patch)
-    result.parsedConfig->productStrategies.insert(
-                std::end(result.parsedConfig->productStrategies),
-                std::begin(gOrderedSystemStrategies), std::end(gOrderedSystemStrategies));


     ALOGE_IF(result.nbSkippedElement != 0, "skipped %zu elements", result.nbSkippedElement);

4. change AudioPolicyManager.cpp, so that fix audioserver crash when headset plugs in.
Code:

diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
index 5a18762967..f3f50f513c 100644
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -5349,15 +5349,7 @@ status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor>& d
     }

     if (state == AUDIO_POLICY_DEVICE_STATE_AVAILABLE) {
-        // first call getAudioPort to get the supported attributes from the HAL
-        struct audio_port_v7 port = {};
-        device->toAudioPort(&port);
-        status_t status = mpClientInterface->getAudioPort(&port);
-        if (status == NO_ERROR) {
-            device->importAudioPort(port);
-        }
-
-        // then list already open outputs that can be routed to this device
+        // first list already open outputs that can be routed to this device
         for (size_t i = 0; i < mOutputs.size(); i++) {
             desc = mOutputs.valueAt(i);
             if (!desc->isDuplicated() && desc->supportsDevice(device)

Is there an a64 variant? I tried pixel experience but the image was larger than the partition. Even after deleting the product partition. Am currently on unofficial lineage OS 20 gsi
This post was last modified: 14-05-2023, 09:36 AM by CarlosCMD.
Gargoyle
Gargoyle
Gargoyle
Contributor
463
14-05-2023, 02:42 PM
#7
I made the build for my tablet, unfortunately I don't have the "a" variant, but I also don't like the bigger one if the super.img partition was larger than 4.1G.
CarlosCMD
CarlosCMD
CarlosCMD
Junior Member
26
14-05-2023, 10:47 PM
#8
(14-05-2023, 02:42 PM)Gargoyle I made the build for my tablet, unfortunately I don't have the "a" variant, but I also don't like the bigger one if the super.img partition was larger than 4.1G.

Yeah, that's why i required twrp as there was a script to resize the super partition at the cost of userdata. Is there an arm32 binder64 variant of pixel experience (A13)?
This post was last modified: 14-05-2023, 10:48 PM by CarlosCMD.
Gargoyle
Gargoyle
Gargoyle
Contributor
463
14-05-2023, 11:35 PM
#9
I think not.
kelvinchinedu
kelvinchinedu
kelvinchinedu
Contributor
1,302
18-05-2023, 06:37 PM
#10



Ancient a13 is very stable and full of customisation
And it has x64 binder
U can drop your boot here if no recovery partition
This post was last modified: 18-05-2023, 06:37 PM by kelvinchinedu.
Pages (2): 1 2 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram