How to port Oreo 8.1 ROMs? - OS Porting

I have a Moto Z Play and I want to port some ROMs from Redmi Note 4 which is having the same SoC. The problems I'm getting are:-
1. Device not booting after flashing rom, something is wrong with boot.img porting, there is no updated guide on how to port oreo boot.img, porting with other methods doesn't seem to work.
2. Brotli files can be extracted with a number of steps but the problem is with repacking, I didn't find any guide on how to do this. At last, I just kept the system.new.dat as it as and changed updater-script with the same name but it didn't work and I got "Error 7" in twrp all the time. Is there any way to get back to the conventional way of having a "system" folder in rom zip?
3. In all previous version of Android we need to replace some system files but I didn't find any help for oreo.
If anyone knows how to port roms for oreo please let me know. At some point, after trying too hard I thought it's better to compile one but that requires a fast internet and an 8 core system at least, porting is the only thing I can do using my laptop.

Manish355 said:
I have a Moto Z Play and I want to port some ROMs from Redmi Note 4 which is having the same SoC. The problems I'm getting are:-
1. Device not booting after flashing rom, something is wrong with boot.img porting, there is no updated guide on how to port oreo boot.img, porting with other methods doesn't seem to work.
2. Brotli files can be extracted with a number of steps but the problem is with repacking, I didn't find any guide on how to do this. At last, I just kept the system.new.dat as it as and changed updater-script with the same name but it didn't work and I got "Error 7" in twrp all the time. Is there any way to get back to the conventional way of having a "system" folder in rom zip?
3. In all previous version of Android we need to replace some system files but I didn't find any help for oreo.
If anyone knows how to port roms for oreo please let me know. At some point, after trying too hard I thought it's better to compile one but that requires a fast internet and an 8 core system at least, porting is the only thing I can do using my laptop.
Click to expand...
Click to collapse
Hey, I'm trying to port a lenovo k4 note rom to my HTC 628 and I have the same problems too. Did you ever figure out how to do this?

Related

Remix for Teclast x98 Plus...

It seems the files in the zip from Jide for x98 Plus are in reality for Cube i10, since the folder inside the zip has Cube i10 as name.
Does anybody have already flashed that rom ?
How to Flash the ROM? I tried. Unsuccessfully. Cant find any hints how to Flash it.
There are a couple of videos in youtube about installing but an official installation guide would be really appreciated, since it is a supported device.
Plus info would be useful about what is needed before anyone start flashing, eg. external keyborad, usb hub?
I hope jide team keeps up good work and support X98 Plus with later releases too!
You need the Intel Flash Tools :
https://01.org/android-ia/downloads/intel-platform-flash-tool-lite
Select from the Tool the flash.json file from the Rom, set option to 'update' and flash.
But it will not work out of the box. You first need to flash mirek custom rom and after that, in place of record the device to google server as usually with new devices, flash directly with remix OS and Flash Tools.
I had an issue after that and had to flash again boot.img and recovery.img separatly with the help of a script .bat... Maybe a bug, i don't know. But i have been the only one from techtablet forum to have this issue.
The rom is amazingly smooth, very beautyfull and it solved the lagging issue i had with the custom rom and the hacker keyboard. Unfortunately, dolphin browser doesn't work on it. [Not bad since i'm a firefox user for privacy reason].
Unfortunately, there is no way to root from adb, since the rom is locked.
In the next weeks [when i'm done with school], i will root the system image with superSU before flashing it back in the device.
Hope this work.
w1nst0n sm1th said:
You need the Intel Flash Tools :
https://01.org/android-ia/downloads/intel-platform-flash-tool-lite
Select from the Tool the flash.json file from the Rom, set option to 'update' and flash.
But it will not work out of the box. You first need to flash mirek custom rom and after that, in place of record the device to google server as usually with new devices, flash directly with remix OS and Flash Tools.
I had an issue after that and had to flash again boot.img and recovery.img separatly with the help of a script .bat... Maybe a bug, i don't know. But i have been the only one from techtablet forum to have this issue.
The rom is amazingly smooth, very beautyfull and it solved the lagging issue i had with the custom rom and the hacker keyboard. Unfortunately, dolphin browser doesn't work on it. [Not bad since i'm a firefox user for privacy reason].
Unfortunately, there is no way to root from adb, since the rom is locked.
In the next weeks [when i'm done with school], i will root the system image with superSU before flashing it back in the device.
Hope this work.
Click to expand...
Click to collapse
Oh well, is there any way to flash Remix OS from Windows 10?
I have the Windows only version, and having Remix OS without upgrading to factory stock or any custom android would be nice.
Worked Fine, Thank You w1nst0n sm1th
Is it possible to Flash it to the whole 64 GB? I tried to replace the Original gpt.bin from Remix OS with the gpt.bin from Mirek ROM (1_GB_system_56.5_GB_data_gpt). Without success. Any Ideas?
Not sure about you guys but mine 98x plus A5C8 do have the wake problem after the display turn off something.
It is working on X98 Plus 3G ? (A6C9) ...
MTK6589 said:
It is working on X98 Plus 3G ? (A6C9) ...
Click to expand...
Click to collapse
Hi, yes but it's not working so fine for now, in my case, some apps don't work, the camera is not supported and sometimes i've got micro freeze (when i'm installing a app ont google play). I'm new on this OS, I don't know how to install on the micro sd apps.
I think, it needs optimizations.
Despite this issues, it's offering a good user experience ( i'm not sure i'lll stay on remix OS, it will depends on future improvments)
Hi. Does anybody have working 3G on Remix OS2.0? My tablet is A6C9, tried to install couple of times, can't find settings for 3G, only Wi-Fi.
Dobriak said:
Hi. Does anybody have working 3G on Remix OS2.0? My tablet is A6C9, tried to install couple of times, can't find settings for 3G, only Wi-Fi.
Click to expand...
Click to collapse
There is no Remix 2.0 for x98 plus 3g version. Only for x98 3g and only Remix 1.0.
But the remix 2.0 for plus version seems to have phone ability, according the packages in /system/app & /system/priv-app folder. I disactivated it with MyAndroidTools Apk.
Does it work on a Teclast X98 Plus II ID C2E3?
2gb +32GB model
Thanks

Elephone B Version 2016 CyanogenMod 13 ?

it was funny how I realized mine was the new version now
I made this thread here so you guys can discuss, this is for information to others who have gotten the new elephone
1) How do we get root ?
No, there isnt any proper recovery last @Emileh ported it did not work very well you are able to flash it the recovery but you are unable to boot back into the system it just stuck at the elephone logo.
2) as of now we only have one rom that has been up here and running K06TE-A.A.vR14.E1.160707 (2016 Version)
K05TS-A.A.vR1E.E2.160217 (2015 Version)
3) cosmetic mixed up (happens alot on chinese phone)
my front is the old 2015 version cover but my back is the new fingerprint cover (possible you can confirm with that is the new elephone you have if you are not sure.
4) so no root and no cyanogenmod and no recovery ?
as of now Im not sure about root, cause I did tried to flash recovery from @Emileh but I could not boot back to android os, so we cant flash supersu,
kingroot and others dont work !
also there some memory layout changed, so it will render the android 5.1 roms useless, please dont try unless you know what you are doing and know how to recover from mediatek usb port
5) will CyanogenMod 13 work ?
to be honest we need a fully working recovery.
maybe there can explain and clear anything more that I left out, I have just gotten the phone
@skeleton1911 @BlueFlame4 @Emileh @Deepflex
somehelp would be nice. thanks would be nice to get cm13 for both the 2015 and 2016 working
Hey,
well the 2015 and 2016 versions are basically two different devices - despite having the same name they share very little. A unified CM 13 build is thus not only difficult to establish but I would even say that it makes things more complex than developing two single versions. That said, CM 13 for the 2016 should be rather easy to bring up because it ships with 6.0. Basically you could take Deepflex's P9000 tree, change it according to the 2016_P8000 and boom - should work. With that you can then of course also compile a working recovery to achieve root That's the theory at least
Is that so but we have yet to achive root and figure out what is the internal changes between those two? Maybe @Deepflux can lend a helping hand in this wish you could help out @BlueFlame4, cause I finally had the money to get this phone possible if you could look into the recovery issue on why it does not boot after flashing it aka bootloop at elephone logo
** Attempted to Port and it does not work. did repack twice.
Hey. Just saw this topic.
I made a better version of the recovery (but forgot to post it), which is actually able to flash roms. It now also mounts everything properly. Flashing root on stock rom works 100%. (only thing not working in ADB, I think).
I will upload it later.
Problem is, there are no roms (expect stock, which you flash using SP Flash Tools). You can't flash the roms that other have made for the old version of the phone. Doesn't work like that.
Emileh said:
Hey. Just saw this topic.
I made a better version of the recovery (but forgot to post it), which is actually able to flash roms. It now also mounts everything properly. Flashing root on stock rom works 100%. (only thing not working in ADB, I think).
I will upload it later.
Problem is, there are no roms (expect stock, which you flash using SP Flash Tools). You can't flash the roms that other have made for the old version of the phone. Doesn't work like that.
Click to expand...
Click to collapse
yeah @BlueFlame4
mention something about cyanogenmod from @Deepflex, could it be this ?
https://github.com/Deepflex/android_device_elephone_p8000/commits/master
hopefully we can get cyanogenmod working, possible if you release the recovery ? is it TWRP ?
Zenns said:
yeah @BlueFlame4
mention something about cyanogenmod from @Deepflex, could it be this ?
https://github.com/Deepflex/android_device_elephone_p8000/commits/master
hopefully we can get cyanogenmod working, possible if you release the recovery ? is it TWRP ?
Click to expand...
Click to collapse
I was talking about this. You have to adapt it to the P8000 and have to use a 3.18 kernel (+ M blobs) though.
there isnt any 3.18 kernel that was released right ? m blobs can be extracted question is why won't your cm13.1 work on the new elephone ? memory changes ? it is still same soc right or there is something different quite confused.
Bump

No service after custom rom flashing help??!?!

I recently, like as of last, flashed my s6 edge plus g928T with the V.5 brx s8+ port. It works amazing no problems except one. I am having trouble getting service no internet and calls go through but no audio. I read that flashing the modem(?) will fix. I just dont know were to find the modems for my specific carrrier and phone model. If anybody could provide some insight that would be amazing.
Thanks
Alex
There may be a few causes to your issue. If the rom you installed isn't specified for the T variant, then the kernel may not have the required components for the call audio to work (I had this issue myself with a LOT of roms) In this case there isn't much you can do that I know of except try another rom. If you'd like an s8 port, I got Khongloi's to work on my G928T practically flawlessly. The rom's thread can be found here and if you need clearer instructions on how to install like I did they can be found here.
RA1dz said:
I recently, like as of last, flashed my s6 edge plus g928T with the V.5 brx s8+ port. It works amazing no problems except one. I am having trouble getting service no internet and calls go through but no audio. I read that flashing the modem(?) will fix. I just dont know were to find the modems for my specific carrrier and phone model. If anybody could provide some insight that would be amazing.
Thanks
Alex
Click to expand...
Click to collapse
Usually caused by the boot.img i tried to use a boot.img from your version 4 and it did the same thing, i then stuffed it with the system folder from the latest firmware and it fixed just fine.... I have also noticed some roms have the boot.img in a sub folder instead of the root of the rom and notice if I copy the boot.img from the sub folder to the root of the rom it fixes this issue... and like with SMOKKIE ROM you get the red letter error on first boot that the kernel in nonpermisive I believe and in that case I just used the boot.img from my builds and the system folder of your choosing then check the prop update.script and any other associated file like .config folders etc..

Need some simple help

I've bricked my mate SE, I'm familiar with flashing but the name schemes from team MT is throwing me off. I bricked my phone when it was on EMUI 5.1.
From the Multi Tool it tells me I need 5 images. I can find 3 out of the 5, I'm missing the cust.img, and userdata.img(I assume this one is optional).
I've unpacked the UPDATE.APP files and can't find any that have a cust.img inside.
BND-L34CC567B330 (8.0.0.330) <--- Is this for EMUI8 ?
If so, where can I find one for EMUI5.1
I apologize if this are newby questions, Never worked with a Huawei before.
trevor.is.bored said:
I've bricked my mate SE, I'm familiar with flashing but the name schemes from team MT is throwing me off. I bricked my phone when it was on EMUI 5.1.
From the Multi Tool it tells me I need 5 images. I can find 3 out of the 5, I'm missing the cust.img, and userdata.img(I assume this one is optional).
I've unpacked the UPDATE.APP files and can't find any that have a cust.img inside.
BND-L34CC567B330 (8.0.0.330) <--- Is this for EMUI8 ?
If so, where can I find one for EMUI5.1
I apologize if this are newby questions, Never worked with a Huawei before.
Click to expand...
Click to collapse
The full ota files are not really full. And you were on 5.1 so you should use nougat to unbrick, not Oreo. The version you mentioned you are pulling files from is Oreo.
You have two options as I see it.
Not sure how bricked you are so that makes it more difficult.
But search team mt for (bond-l34) you will find mate se nougat rom b130. And it should have all the images inside .
Other option is to use the images pulled from someone else's device. I have links to these backups. If you want
https://www.androidfilehost.com/?w=files&flid=265998
mrmazak said:
The full ota files are not really full. And you were on 5.1 so you should use nougat to unbrick, not Oreo. The version you mentioned you are pulling files from is Oreo.
You have two options as I see it.
Not sure how bricked you are so that makes it more difficult.
But search team mt for (bond-l34) you will find mate se nougat rom b130. And it should have all the images inside .
Other option is to use the images pulled from someone else's device. I have links to these backups. If you want
Click to expand...
Click to collapse
Thanks for the response. I'll give bond-l34b130 a try.
Can you provide link to the backups in case it doesn't work?
Oops, you updated your reply with the link. Thanks!

Is there more ROMs?

I recently purchased an tab S4 just an update from my previous Samsung tablet. I was wondering is there more ROMs for this tablet or ROMs currently in development? I noticed theres like 2 ROMs for this tablet. I have a note 8 and I'm currently running deluxerom on and it, and I really enjoy the tweaks and customization I'm able to do. I was looking for a same kind of feature for my tablet. Would greatly appreciate the answers I'm looking for. Thanks!
Mkami said:
I recently purchased an tab S4 just an update from my previous Samsung tablet. I was wondering is there more ROMs for this tablet or ROMs currently in development? I noticed theres like 2 ROMs for this tablet. I have a note 8 and I'm currently running deluxerom on and it, and I really enjoy the tweaks and customization I'm able to do. I was looking for a same kind of feature for my tablet. Would greatly appreciate the answers I'm looking for. Thanks!
Click to expand...
Click to collapse
Pretty much zero support. You can get a few 9.0 GSI ROMs to boot, but they all have issues. Mine has been sitting around since it was purchased while still using my old 2014 model.
veekay said:
Pretty much zero support. You can get a few 9.0 GSI ROMs to boot, but they all have issues. Mine has been sitting around since it was purchased while still using my old 2014 model.
Click to expand...
Click to collapse
Aww no way!? Really? I excitingly got this tablet cause of the features and thought perhaps there would be amazing ROMs for this particular tablet, but I guess not xD What are GSI ROMs? Also as a desperate attempt would other tablet ROMs work on this s4? Thanks mate!
Mkami said:
Aww no way!? Really? I excitingly got this tablet cause of the features and thought perhaps there would be amazing ROMs for this particular tablet, but I guess not xD What are GSI ROMs? Also as a desperate attempt would other tablet ROMs work on this s4? Thanks mate!
Click to expand...
Click to collapse
I had thought the same thing, but it seems the S3 is the last tablet to get real support.
https://forum.xda-developers.com/project-treble/trebleenabled-device-development
Some of the ones for 9 will work, but most features won't work too well, if at all.
You might be able to get another rom to work, I know I had no luck. Even trying ones with similar hardware, they all failed to even flash since the booting numbers are different.
Kind of have to be satisfied with Samsung, half baked custom roms or sell the thing.
Mkami said:
Aww no way!? Really? I excitingly got this tablet cause of the features and thought perhaps there would be amazing ROMs for this particular tablet, but I guess not xD What are GSI ROMs? Also as a desperate attempt would other tablet ROMs work on this s4? Thanks mate!
Click to expand...
Click to collapse
First,download "Treble Check" app from playstore & read for your device...
https://www.xda-developers.com/flash-generic-system-image-project-treble-device/
(Some GSIs roms are not compatible with some devices!)
veekay said:
I had thought the same thing, but it seems the S3 is the last tablet to get real support.
https://forum.xda-developers.com/project-treble/trebleenabled-device-development
Some of the ones for 9 will work, but most features won't work too well, if at all.
You might be able to get another rom to work, I know I had no luck. Even trying ones with similar hardware, they all failed to even flash since the booting numbers are different.
Kind of have to be satisfied with Samsung, half baked custom roms or sell the thing.
Click to expand...
Click to collapse
Hey Veekay I tried it and you're right unfortunately I came across the same issue as you brother
Now I'm stuck and I need help sorting my device out, was wondering if you knew this issue or could help?
When I got the stock firmware back and then when I flash TWRP with odin after going into TWRP I get 0mb as internal
so when I format and then go back into my load up the screen after SAMSUNG says "verification failed" and then reset
on the bottom. I tried other options as well. Without even wiping on TWRP the devices boots up into the setup wizard for the firmware fine
but after I wipe TWRP so I can get access to my internal drive my samsung boots into that verification reset screen. Got any clue as to how I can
resolve this issue? Thanks a bunch!
daitalos said:
First,download "Treble Check" app from playstore & read for your device...
https://www.xda-developers.com/flash-generic-system-image-project-treble-device/
(Some GSIs roms are not compatible with some devices!)
Click to expand...
Click to collapse
Hey! Thanks for your reply, will this work for PIE? I can't downgrade from PIE to OREO
and I don't know if GSI even works properly on my device
Mkami said:
Hey Veekay I tried it and you're right unfortunately I came across the same issue as you brother
Now I'm stuck and I need help sorting my device out, was wondering if you knew this issue or could help?
When I got the stock firmware back and then when I flash TWRP with odin after going into TWRP I get 0mb as internal
so when I format and then go back into my load up the screen after SAMSUNG says "verification failed" and then reset
on the bottom. I tried other options as well. Without even wiping on TWRP the devices boots up into the setup wizard for the firmware fine
but after I wipe TWRP so I can get access to my internal drive my samsung boots into that verification reset screen. Got any clue as to how I can
resolve this issue? Thanks a bunch!
Click to expand...
Click to collapse
Have you tried just reloading the latest stock firmware from scratch?
Yup, its unfortunate that there isn't much community support for this device. The Tab S4 is Project Treble supported and a few GSI ROMS do work. But as others have said they are unstable and not for use as a daily driver. We have a few discussion threads here talking about them.
veekay said:
Have you tried just reloading the latest stock firmware from scratch?
Click to expand...
Click to collapse
Would that work? If I did that I would still be able to download and install TWRP and have a root? Because of it being PIE
UndeadAnarchy said:
Yup, its unfortunate that there isn't much community support for this device. The Tab S4 is Project Treble supported and a few GSI ROMS do work. But as others have said they are unstable and not for use as a daily driver. We have a few discussion threads here talking about them.
Click to expand...
Click to collapse
I am going to do more research on these projects because I really wish there was more ROMs its quite an amazing tablet but the potential with the stock ROM lacks a lot
Mkami said:
Hey! Thanks for your reply, will this work for PIE? I can't downgrade from PIE to OREO
and I don't know if GSI even works properly on my device
Click to expand...
Click to collapse
Generic System Image (GSI) list :
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
you can try only "Android 9 Pie" official or unofficial gsi roms..
and remember ! Some GSIs roms maybe are not compatible with some devices! you can ask for your device on each thread
(for example look here): https://github.com/phhusson/treble_experimentations/issues/777
(usually this Gsi aosp 9 phh, generally works on most devices...BUT! ask first,and discuss it in the thread)
https://forum.xda-developers.com/pr...vice-development/aosp-9-0-phh-treble-t3831915
daitalos said:
Generic System Image (GSI) list :
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
you can try only "Android 9 Pie" official or unofficial gsi roms..
and remember ! Some GSIs roms maybe are not compatible with some devices! you can ask for your device on each thread
(for example look here): https://github.com/phhusson/treble_experimentations/issues/777
(usually this Gsi aosp 9 phh, generally works on most devices...BUT! ask first,and discuss it in the thread)
https://forum.xda-developers.com/pr...vice-development/aosp-9-0-phh-treble-t3831915
Click to expand...
Click to collapse
Can I do this without stock ROM and only TWRP? Because having the stock ROM is disabling my twrp to function without wiping and if I wipe than my stock ROM doesn't work
Thanks!
Mkami said:
Can I do this without stock ROM and only TWRP? Because having the stock ROM is disabling my twrp to function without wiping and if I wipe than my stock ROM doesn't work
Thanks!
Click to expand...
Click to collapse
Sorry,but I don't understand what do you mean " without stock rom and only twrp"...
you can install a Gsi rom, with two ways
Via TWRP, or Via Fastboot : https://www.xda-developers.com/flash-generic-system-image-project-treble-device/ (Tab S4 is a-only arm64)
for any other question, it is better to ask in the thread : https://forum.xda-developers.com/pr...vice-development/aosp-9-0-phh-treble-t3831915
(read carefully in OP & you can post,every single question there for your device,and you will get certainly help from the developer or from any other user..)
Mkami said:
Can I do this without stock ROM and only TWRP? Because having the stock ROM is disabling my twrp to function without wiping and if I wipe than my stock ROM doesn't work
Thanks!
Click to expand...
Click to collapse
You are going to have to just wipe it and start over from square one, unless you made a TWRP backup before starting all of this.
Download and flash the latest stock rom from recovery and then you can load twrp again.
I was looking at the possibility of using GSI's on some devices, and while they can offer new life to older devices, they're not entirely stable all the time unless you're willing to make your own changes. I know Lineage has made some excellent progress, but it's not fullproof yet and I wouldn't try it unless you're willing to not use your device as a daily use device.
I had an extra T-Mobile Revvlry which is basically a rebranded Moto g7 Play that I installed the Lineage GSI image and it works fairly well. However, this is more the exception to the rule and Moto devices, I feel, are far simpler in design vs certain Samsung devices. It also had a ton of trial and error involved for me to get it up and running properly.
Is it possible as the s4 becomes older, more people buy it and Samsung stops releasing official updates that someone will come along and create a ROM for it? Or is it more like Samsung locked the bootloaders and its close to impossible to write a ROM for it? Is it still possible to root the s4?
slipnslider said:
Is it possible as the s4 becomes older, more people buy it and Samsung stops releasing official updates that someone will come along and create a ROM for it? Or is it more like Samsung locked the bootloaders and its close to impossible to write a ROM for it? Is it still possible to root the s4?
Click to expand...
Click to collapse
Read very carefully without rush ! for " WETA Kernel + Encryption disabler " etc
especially, read the user comments carefully, and ask on the thread for any questions you have..
https://forum.xda-developers.com/galaxy-tab-s4/development/recovery-twrp-3-3-0-sm-t83x-t3928278 (Pie version)
https://forum.xda-developers.com/showpost.php?p=79483624&postcount=2
https://forum.xda-developers.com/galaxy-tab-s4/how-to/guide-sm-t83x-twrp-magisk-t4059227
( Newest Odin v3.14.4 is there : https://dl2018.sammobile.com/Odin3-v3.14.4.zip )
Thanks. I took a quick peak at the roms and kernels in the roms and kernels forum and they are pretty much all abandoned.
Someone did mention that the LOS 16.0 and ArrowOS GSI's work alright but are a bit buggy.
slipnslider said:
Thanks. I took a quick peak at the roms and kernels in the roms and kernels forum and they are pretty much all abandoned.
Someone did mention that the LOS 16.0 and ArrowOS GSI's work alright but are a bit buggy.
Click to expand...
Click to collapse
samsung,maybe at the end of july to give the upgrade to android 10....it is very likely to happen I think
yes,all Gsi Roms still have various problems unfortunately...
my opinion is: stay to stock rom for now....you can "uninstall" many applications if you want & without root, via "samsung package disabler"(paid) from playstore, or with this way:
https://beebom.com/how-remove-bloatware-android-without-root/
also,you can Install "NiceLock Downloader Companion App" ,to add some features on your device : https://forum.xda-developers.com/galaxy-note-9/themes/nicelock-module-download-links-module-t3923844
with this way I operate my device until now..

Categories

Resources