-
Notifications
You must be signed in to change notification settings - Fork 183
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
Not being able to flash AROMA zip on treble A/B devices like OP6 or U12+ (imagine) #38
Comments
not sure if anyone is following this issue at all but I just wanted to update just in case someone wants to give it a shot and fix the issue "The problem is that your device/TWRP is using DRM graphics (hardware accelerated) instead of framebuffer (traditional SW rendering). Aroma doesn't understand how to use your graphics "driver". Unless you can get a build of TWRP (and kernel) with classic framebuffer rendering, it can't be fixed. Not sure how likely or even possible that is." that being said if someone want to fix AROMA and with the proper drivers instructions for this new devices that would be awesome since most kernel dev will not go back to classic framebuffer having this new drivers |
I also encountered this problem. I don't know how to solve it. |
When I tried to solved that I noted that AROMA can't output to the screen even if TWRP got SIGSTOP. But you can clear the screen if you execute the "stop recovery" comand. TWRP will be stopped but AROMA will be able to use screen. |
And how do I execute the stop recovery command? |
run_program("stop", "recovery"); Also you shoul not forget about starting the recovery service right after the end of AI script. Use start or setprop ctl.start. Also you can reboot device without returning to recovery with "reboot -f system". |
@twaik what device you use for that? |
@jeanrivera I don't remember. It was a long time ago. Try to run the command over ADB first. |
@twaik I did already, and it didn't work, I just got a black screen, this is more related to new display drivers on SD 845 devices, and aroma does not know how handle those graphics at all but thanks for the suggestions |
@jeanrivera can you please try something for me?
|
C:\ADB>adb push update.zip / C:\ADB>adb push update-binary / C:\ADB>adb shell /update-binary 1 1 /update.zip C:\ADB> |
@jeanrivera |
this was the output on the command window but the device was on a black screen nothing visual
|
I assume nothing on the device, then? |
nothing in the device correct |
Looks like the only way to start Aroma on the device is to build it over TWRP sources with some patches... |
are you able to help with that? |
@jeanrivera maybe. First thing I need is link to TWRP source used for the build and its version. If TWRP is build from source for the device, of course. |
I have some work here, but I think I'll help you in a few days. And you should know that the Aroma build will be suitable only on that device model. I don't even know if it work on CWM. |
https://github.com/CaptainThrowback/android_device_htc_ime is that the correct source @CaptainThrowback |
there is no rush with that I have been trying to figure this out for months, practically since the release of the device and TWRP for it |
@twaik let me now if you need anything else from my end to makes things easier on your side |
@jeanrivera Can you please try to build that on you device tree? |
I have asked @CaptainThrowback to do it since I have no idea how to build stuff I'll let you know the outcome, he did mentioned this: I'll try it on 8.1 Jeanrivera [4:56 PM] Captain_Throwback [4:56 PM] Jeanrivera [5:01 PM] Captain_Throwback [5:02 PM] |
I tried building your source in the android-5.1 minimal Omni tree (which uses TWRP's android-9.0 branch) but I'm getting errors. AROMA has to be built for arm, so I have to use an older tree (either 5.1 or 6.0) for it to actually compile. It does not, however, compile, with your updates, at least not in android-5.1:
|
I used libminui's api in the patch. That should work on both TWRP and CWM, but it still will be device specific build. It should work on any recovery version. |
@twaik |
That means that the binary built with my source will be suitable only for the device it was build for. |
@twaik At any rate, I'm still getting build errors:
|
@CaptainThrowback that is device specific because it is built with libminui. libminui uses libdrm of the target device. |
Can you give me comands needed to clone the device tree and to initialize build environment? Including lunch/breakfast comand. I need to build the source using the TWRP version used on the device. |
C:\ADB>adb shell /sbin/minuitest C:\ADB> |
@twaik I am missing libminui.so @CaptainThrowback said he will provide it to me as soon as I get that I will provide more feedback on this, thanks again for all of this. |
|
just ran miuitest on recovery after adb shell stop recovery and it worked
C:\ADB> |
here is how it looks, sorry that gif is not good, i'll link the actual video https://drive.google.com/file/d/1KP2lFfOjtWkT9Zs4UC-WBsokAb_OIsAX/view?usp=sharing |
@twaik please tell me this means good news? or at least progress in the right direction |
Yes. That's good news. I will try building aroma installer over minui again. |
just to let you know the only thing that didn't show on the test was the test.png at the end of the test, first we thought it was because the file didn't exist there, but i placed an actual png there and ran the test and still did not show on screen, and I try with a larger png still did not show at the end of the test, not sure how important is that the test.png shows on screen for all this project |
@twaik I understand you are busy with other projects, when you have some time and decide to build aroma again, let me know as soon you come up with a new build for testing, I'll gladly provide logs and feedback as needed, thanks for your continuous support on this matter. |
Seems to have seen hope. |
@tbalden since you mentioned interest in aroma on U12+ you might want to take a look in the progress we have made already thanks to @twaik & @CaptainThrowback |
@twaik I am sorry to ask you this please do not take this question as an ETA, I just want to know if you are still interested in this project, since I haven't heard from you in the last 5 days, at least just a heads up would be nice...., if you are no longer interested on this I do understand, since you do not even own the device, and I know it would be so complicated for testing, thanks in advance. and again I am sorry if I am being annoying and persistent with this....... |
I'm still interested in the project. I'm trying to find a way to emulate drm or use it on pc. For now I have sources of AROMA filemanager & installer (https://github.com/twaik/AROMA-tools) that runs on x86. |
@twaik any updates? or haven't had a chance to test yet? |
I am still busy with another project. I will start working on AROMA soon. |
@twaik thanks for your help it helped @mikalovtch to resolve issues with the HTC U12+ thanks to you and him we have a fully working AROMA environment, with the downside we need a modified TWRP to make it work |
Talked to a TWRP Dev. The Problem will be that Busybox isn't working on Modern Devices anymore (Snapdragons from 2017+ (835/845+)). They are using Toybox which isn't compatible with AROMA since it hasn't been updated since around 4 Years to make use of it... Think it's sad to say but AROMA is dead as long as we don't get Busybox working on Modern Device Recovery environments (Or a AROMA Update for Toybox usage). See: https://landley.net/toybox/help.html Edit: Usual Updater scripts using Busybox for Mounting are also not working anymore (Faced it myself on My XASP Project here on GitHub). AOSP ROMs are using also Toybox Commands to work... |
Sorry for everyone... I am not active in android "recovery" environment anymore, actually I don't even flash, root and customize my phone anymore atleast for 3-4 years :D, I have many things to do. And I dont follow latest android "rom" development anymore. But I willing to restore the project, but I dont wanna play around too much in android system. I don't even know that "Busybox isn't working on Modern Devices anymore" thats so scary :) how long did I leave this environment. I still develop enterprise Android app, I still using libaroma in my projects (embedded, realtime ui, etc), so I am able to devel some UI stuffs, but If there no one help me with android recovery programming (how it should install, what it need to flash, format, etc), I don't think I can do it anymore,,... I also don't have rooted phone, only have 1 phone with alot of important data I can't mess with. |
This is the best Message i've read in a while! I'm a huge fan of Your work @amarullz and worked since the very early Days with AROMA including the last Beta in the last few Years. I'm pretty sure if You would start a Thread or post something on XDA that People will buy or pay You any Device that You want to own. I would also like to Donate and give You a way to get back into Business :) I would also be happy to share any Infos with You that could help to get back in. If You want to, check My Website and You will find a AROMA Installer ZIP from this Month. That's how it was working on My Mi Mix 2 Device with TWRP while it wasn't working for Mi 8, Poco F1 and Mi 9 Users. It also uses the great AROMA FM within the Installer which was hardcore to realize for Me back some Years... ^^ |
I could help out on testing part, and provide logs |
It has been more than a year since the last comment. Any updates? |
AROMA Installer uses the "old engine" to work, somebody need to adapt libaroma (the new engine) and still then it will have some issues because of being outdated (but is better than installer). |
im trying to build aroma file manager for ginkgo (Redmi note 8), and getting a lot of errors, ive not forked but i need help as i am very new to all the stuff.. could you help in the free time... |
I am willing to spend time in reviving this project, but i need help... |
Whoa, nice to read that! I'm also working on the same, can you contact me on Telegram? (@MLXProjects) |
yes sure |
I found "maybe" something. Since newer Custom Recovery Builds does not contain Busybox but Toolbox and Toybox did i have Problems with My Scripts like:
I solved this by adding:
My Scripts can use Busybox now. Would this work for AROMA too? idk, just to lazy to try this yet... You can grab Busybox from here: https://github.com/Magisk-Modules-Repo/busybox-ndk |
well, the issue with AROMA Installer isn't busybox, but the "drivers" it has integrated to use the screen (which fail to start and make the installer crash). I'm still working on that, so don't worry! |
while trying to flash any AROMA GUI Installer embedded zip for example a ROM or OpenGapps, TWRP just freezes but adb commands still work it looks like a graphics rendering issue because it doesn't even get to the splash part of any zip with AROMA GUI I can provide logs if needed,
I know AROMA is an abandoned project but some of the ROM devs still use it for personal customizations on custom ROMs like Team Venom, LeeDroid, etc.... & Kernels like Elemental X
recovery (4).log
The text was updated successfully, but these errors were encountered: