ROM porting help - Android Software Development

I am trying to port s8 8.0 oreo to my s6 e+ and having some issues. This is my first attempt. Before today all I have done is build lineage or aosp from source and compile it using lunch via terminal. The specs are similar, same screen, similar processors besides the s8 obviously having less nm and a bit of speed. Cortex processors. Same flash memory. Same ram but 2gb less. I can get the rom to compile and install but it bootloops. I have tried leaving it untouched and debloated with knox removed. Never having ported a rom I am not sure if I need to swap any files. I looked for a tutorial but they are outdated and not all that helpful when it comes to touchwiz. Can anyone out there help me please? Should I put my device tree into the files I extracted from the s8 stock firmware? It's obviously not going to boot based on its own hardware info unless I missed a step somewhere? I generally don't ask such in depth questions here but I am pretty stumped. I've spent 2 days reading and trying different things. I've also tried flashing the fixes for oreo on s6e+ for no verity and kernel/cam fix. I know a lineage 15 port exists, i have my own build where i use pixel launcher and removed/added some things. but I'm trying to keep touchwiz and all the samsung goodies while getting oreo.

U are in bootanimations or black screen ? Can u take a logcat while in bootloop to see where ur issues ?

thereassaad said:
U are in bootanimations or black screen ? Can u take a logcat while in bootloop to see where ur issues ?
Click to expand...
Click to collapse
yes i can get a logcat, it bootloops. i will do that in a couple of days. i just got a port from lineage15.1 / nexusOS to boot up on my device so thats a big step in the right direction. but i really want touchwiz so i am going to push forward with this project after my database exam tomorrow

godkingofcanada said:
I am trying to port s8 8.0 oreo to my s6 e+.
Click to expand...
Click to collapse
first of all aosp and touchwiz roms are pretty different and without having libs from another device running touchwiz oreo with same soc as s6e+ it is almost impossible to work s8 has a quite newer soc so dont wait for libs from s8 to work and dont even think of using lineage 15.1 kernel to boot touchwiz oreo, i have tried to boot up touchwiz oreo on my s6 with an edited kernel for touchwiz oreo but that didnt boot because i need new libs from oreo so my suggestion for you would be wait for A8 2016 (A810S) to get oreo

Related

[Request] A Clean OS for the Tab A 7.0 (SM-T280)

Hello there
As the title tells you, i would like to have a clean OS for the Galaxy Tab A 7.0 (SM-T280)
With clean OS i mean a completely debloated rom without any extras. As slim as possible. Just a launcher and Core GApps (Playstore + Maps)
Maybe a debloated ROM or a debloation script. or a List of removeable Apps
I notices that the LTE version of the tablet, the SM-T285, allready got some non Touchwiz roms.
CM13 by Jedld and CM14.1 by Jedld
The best what could happen would be, if a developer from the T280 could make it compatible.
Jedld said:
SM-T280 Users: Unfortunately this rom would probably not work on it since the SM-T285 and SM-T280 have different kernels and slightly different hardware. I don't have access to this device so it would be hard for me to port it over. However I believe there are a lot of similiarities in the device tree that can be shared. If a dev with the SM-T280 is interested I can probably help.
Click to expand...
Click to collapse
It would be great if someone could help
Greetings!
A month ago i inquired about the likeliness of a ROM for the 280. There was some work being done on it but unfortunately it stopped. As long as devs don't have the device, no work will be done for it. So unless we (requesters) bundle and buy a 280 for a dev (something unlikely to happen) we can only hope.
i want it to
Just orered this tab, was at special price, sad to hear this
I guess all we can do is root and debloat
russy23 said:
Just orered this tab, was at special price, sad to hear this
I guess all we can do is root and debloat
Click to expand...
Click to collapse
it is not ruled out that there will be development for this tablet

Is Project Treble compatible with the S5?

Hi... I've been reading some news about Project Treble, and how it helps with the custom ROM development and software updates. But I want to ask. Is this working on phones like the Galaxy S5? Because it would be helpful considering the potential of this phone and how stable it is running on Nougat, and an Oreo update would be easier to Port.
Unfortunately, it's not. It is only compatible with phones that were initially shipped with Android 8.0.
camellirite said:
Unfortunately, it's not. It is only compatible with phones that were initially shipped with Android 8.0.
Click to expand...
Click to collapse
But Huawei Mate 9 got an AOSP build of Oreo in one day thanks to this. And it has never gotten updated since Nougat. It used Treble as the blog said.
Raynelfss said:
But Huawei Mate 9 got an AOSP build of Oreo in one day thanks to this. And it has never gotten updated since Nougat. It used Treble as the blog said.
Click to expand...
Click to collapse
After reading that article, you're right. I read a news article that said only phones shipped with 8.0 will be compatible with treble, my mistake.
Raynelfss said:
But Huawei Mate 9 got an AOSP build of Oreo in one day thanks to this. And it has never gotten updated since Nougat. It used Treble as the blog said.
Click to expand...
Click to collapse
Mate 9 have 4.4 kernel with android Oreo. S5 have 3.4 kernel always. And treble is compatible by phones with 4.4 kernel and above. So no treble for s5.
djgigi94 said:
Mate 9 have 4.4 kernel with android Oreo. S5 have 3.4 kernel always. And treble is compatible by phones with 4.4 kernel and above. So no treble for s5.
Click to expand...
Click to collapse
Ok... That's sad but ok. At least we are having Oreo anyway! Thanks for clarifying. Close thread please!
djgigi94 said:
Mate 9 have 4.4 kernel with android Oreo. S5 have 3.4 kernel always. And treble is compatible by phones with 4.4 kernel and above. So no treble for s5.
Click to expand...
Click to collapse
I heard something about repartitioning, so it doesn't necessarily has to do with the Kernel, it's more like partitioning the device storage, with A/B partitions and stuff with vendor. I heard about a tool that can do that job called REPIT but I didn't do so much of a research of it.
Mi3 with snapdragon 800 on kernel v 3.10 got android p today so is there any hope for our s5s ,can it be ported to our phones like the redmi devs did
https://www.xda-developers.com/xiaomi-mi-3-xiaomi-mi-4-xiaomi-redmi-4x-android-pie-ports/
I looked into it.
In order to get Project Treble working on our Samsung Galaxy S5, we would have to :
- Repartition device to have 2 partitions, Vendor & AOSP
1. All vendor-specific blobs should be moved to /vendor
2. Some blobs load config files from /system/etc. Just hex-edit them to load from /vendor/etc instead
3. Label and format that unused new partition as /vendor - this should be automatically done with an OTA script
4. The kernel should mount the new partition as /vendor as well
OR
https://forum.xda-developers.com/pr.../tool-capire-le-treble-terble-vendor-t3774629
Without repartitioning?
- Have a 'Treblified' ROM already installed. (I believe we have Oreo ported..)
- Have 8.1 Vendor Blobs? I don't know much about this.
Any dev willing to make this dream a reality, please, step forward!
Rhioun said:
I looked into it.
In order to get Project Treble working on our Samsung Galaxy S5, we would have to :
- Repartition device to have 2 partitions, Vendor & AOSP
1. All vendor-specific blobs should be moved to /vendor
2. Some blobs load config files from /system/etc. Just hex-edit them to load from /vendor/etc instead
3. Label and format that unused new partition as /vendor - this should be automatically done with an OTA script
4. The kernel should mount the new partition as /vendor as well
OR
https://forum.xda-developers.com/pr.../tool-capire-le-treble-terble-vendor-t3774629
Without repartitioning?
- Have a 'Treblified' ROM already installed. (I believe we have Oreo ported..)
- Have 8.1 Vendor Blobs? I don't know much about this.
Any dev willing to make this dream a reality, please, step forward!
Click to expand...
Click to collapse
Looks nice. It would be great to try. If someone does try please post your experience here!
clockstoper said:
Mi3 with snapdragon 800 on kernel v 3.10 got android p today so is there any hope for our s5s ,can it be ported to our phones like the redmi devs did
https://www.xda-developers.com/xiaomi-mi-3-xiaomi-mi-4-xiaomi-redmi-4x-android-pie-ports/
Click to expand...
Click to collapse
Xiaomi have a terribke habbit of skipping android versions
Take the MiBox for example, from what i hear it never got an official 7.1.2 only leaked builds, they went from 6.0 to 8.0 and still face quite alot of bugs.
don't know if this is the right place for this but my old moto g 2014 with 3.4 kernel version just got android pi port its very smooth as per the reports, i have not installed it yet as i gave that phone to my mom. the phone runs on with a lowly snapdragon 400 chip and 1gb ram also its kernel version is 3.4 which is the same as our s5s so there might be a good chance android pie can be ported to our device
LINK
https://forum.xda-developers.com/moto-g-2014/development/titan-xperience-13-0-t3830834
did some further searching and found that lenovo zuk z1 also got Pie and it has SD 801 chip like our S5 so things looking quite promising tbh.....
LINK
https://forum.xda-developers.com/zuk-z1/orig-development/rom-pixel-experience-t3830494
clockstoper said:
don't know if this is the right place for this but my old moto g 2014 with 3.4 kernel version just got android pi port its very smooth as per the reports, i have not installed it yet as i gave that phone to my mom. the phone runs on with a lowly snapdragon 400 chip and 1gb ram also its kernel version is 3.4 which is the same as our s5s so there might be a good chance android pie can be ported to our device
LINK
https://forum.xda-developers.com/moto-g-2014/development/titan-xperience-13-0-t3830834
did some further searching and found that lenovo zuk z1 also got Pie and it has SD 801 chip like our S5 so things looking quite promising tbh.....
LINK
https://forum.xda-developers.com/zuk-z1/orig-development/rom-pixel-experience-t3830494
Click to expand...
Click to collapse
Anyone working on 9.0 for S5?
Official Aex devices will get 9.0 soon so yes I presume
The Galaxy S5 (klte) Kernel source on LOS has reportedly submitted comments about LineageOS 16. So we're having our pie soon.
LineageOS 16.0 teaser trailer by haggertk.
Rhioun said:
I looked into it.
In order to get Project Treble working on our Samsung Galaxy S5, we would have to :
- Repartition device to have 2 partitions, Vendor & AOSP
1. All vendor-specific blobs should be moved to /vendor
2. Some blobs load config files from /system/etc. Just hex-edit them to load from /vendor/etc instead
3. Label and format that unused new partition as /vendor - this should be automatically done with an OTA script
4. The kernel should mount the new partition as /vendor as well
OR
https://forum.xda-developers.com/pr.../tool-capire-le-treble-terble-vendor-t3774629
Without repartitioning?
- Have a 'Treblified' ROM already installed. (I believe we have Oreo ported..)
- Have 8.1 Vendor Blobs? I don't know much about this.
Any dev willing to make this dream a reality, please, step forward!
Click to expand...
Click to collapse
I've heard from the official website of lineage os that they can turn a device into an A/B device, but I am not sure that whether the A/B device is the one that have 2 partitions, here it is (https://lineageos.org/Changelog-19/)
Frank Telescope said:
I've heard from the official website of lineage os that they can turn a device into an A/B device, but I am not sure that whether the A/B device is the one that have 2 partitions, here it is (https://lineageos.org/Changelog-19/)
Click to expand...
Click to collapse
Its not as simple as having a/b partitions , there is a kernel issue. a simple google search wich show you guys that there is a minimum kernel version required for treble which the s5 is far and i mean far behind that minimum requirement for treble.
I know this is like off-topic but there is now a project WIP going on for Samsung Galaxy S3 Neo, since it's using 3.4 kernel, we using S5 have luck to support treble. At least if someone willing to do it.
For the AB partition it might be impossible to do so.
Now with pascua28's Intelli-Kernel we're even closer to the dream. This guy has managed to do wonders with this device... The last thing that may happen is him being able to update our Kernel version. I don't know how the A/B partition things work, but from what I've heard it requires a higher Kernel version. The S5 runs 3.4 right now, but with @pascua28 work it may get a higher version soon.

lineage, aosp for Samsung s8,,, are they coming???

when stock Android (lineage, aosp) gonna come for s8... any one is working on it??? any news??
Lineage is being worked on, but many important things don't work yet.
peachpuff said:
Lineage is being worked on, but many important things don't work yet.
Click to expand...
Click to collapse
Can we help the development by running current (un)stable builds (got a spare S8 for that), or can we track the current progress anywhere?
As long as it's not for the USA version I'm pretty sure exynos will have lineage in no time

Unofficial LineageOS 14.1 - Android 7.1.2

XDA:DevDB Information
Unofficial LineageOS 14.1 - Android 7.1.2, ROM for the Samsung Galaxy Note 8.0 (2013 Tablet)
Contributors
walter79
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
Based On: LineageOS
Version Information
Status: Nightly
Created 2019-07-20
Last Updated 2019-07-20
Is there any link??
Forget that i havent been in xda for a while already figured it out
silvaoproprio said:
Is there any link??
Forget that i havent been in xda for a while already figured it out
Click to expand...
Click to collapse
Where's the link??? I can't find it
NVM, found it.
https://mega.nz/#F!kRk22IBI!f3R8QBASM8-iA-ZH9wVW-g!xYM1wb7B
justinas2003 said:
Where's the link??? I can't find it
NVM, found it.
https://mega.nz/#F!kRk22IBI!f3R8QBASM8-iA-ZH9wVW-g!xYM1wb7B
Click to expand...
Click to collapse
This is the right one:
http://buildyourownandroid.selfhost.eu/smartphone/daily-builds/
And here is the thread:
https://forum.xda-developers.com/ga...fficial-lineageos-14-1-android-7-1-2-t3950114
note 8.0 gt n5105
i have galaxy note 8.0 gt n5105. four years ago update it from 4.2.2 to 4.4.4.
now i want to update it to android 7 or later. but some problem i have. when i open it seems gt n5105.
but droid info says
GT- N5100 (kona3gxx)
bootloader N5105JVCMI2
which lineageos i have use to update android 7.1.2?
PLEASE HELP
What's that device? Only WLAN, 3G vor LTE?
User_99 said:
What's that device? Only WLAN, 3G vor LTE?
Click to expand...
Click to collapse
it is galaxy note 8.0 gt n5105. Also it has wifi and lte
Think 5100 is similar.
Install android 7.1.2
I update n5105 from android 4.2.2 to android 7.1.2. Everything seems good. but there is no Samsung application. I install from Google play. But any of them does not work. Especially I want to use snote and spen. But does not work. How can I add samsung applications? İs there anything like Gapps may be called Sapps?
As far as I know, those Samsung applications will work only with Samsung ROMs. They need some proprietary functions not present in third party builds. There is software to use the pen, though. Coto Note comes to mind. Haven't used it for anything but brief testing, though.
Samsung apps mostly works only on Samsung Rom. There are some modded als also for Stock (vanilla) Android.
So if you use that 7.1.2 Rom you must find other apps than Samsung ones. They won't work.
cmergun said:
I update n5105 from android 4.2.2 to android 7.1.2. Everything seems good. but there is no Samsung application. I install from Google play. But any of them does not work. Especially I want to use snote and spen. But does not work. How can I add samsung applications? İs there anything like Gapps may be called Sapps?
Click to expand...
Click to collapse
Would you mind sharing the secret to getting that installed? I'm trying to do the same thing, but I can't get past the signature verification error. I'm not sure what to do.
Just got given Samsung GT-N5110, Yikes KitKat lol... Lets not!
Good old Odin, TWRP and now trying this build!
Glad I found this post with useful links, near end of 2021 too!!
Thanks!
This is crazy was asked can I do anything with it was going in Bin! I said wait No! that tablet is old, guy said you can't load much on it because it was old...
Actually really good old tablet, I went from memory and this forum...
I am not at Noob so skipped through a lot and did what I membered!
Same keys as S3, put in Download mode, use Odin to blast bootloader, reboot and quickly press right key combo before official software kicks it out.
Reboot again and see friendly TWRP as your bootloader.
I just saved a not bad old tablet from bin! I gonna keep, so glad for this forum!!!!
My main and only phone is a Samsung Galaxy A10 because it is my only 4G device decided not to mess with it BUT was phone to try with device I was given as tablet... Never push your luck!
I have made a brick before in my time!!!
Happy ending here!!!
Nice to be back!
Yes that old Samsung Note 8 has got new lease of life!
What memories from S3 that good old reflash Boot loader and hit key combo before original bootloader is retained!
Got TWRP going, got my Gapps and root, job done, nice!
WARNING:- Anyone with old Note 8 please don't just jump in! Yes it is possible, don't ask me if your a Noob, don't ask me what is a bootloader, what is Odin, what is TWRP, what is Root?... You can turn your tablet into chopping board! I am playing with Lineage on mine, you playing with Cucumber on yours?
Thankyou awesome links!
Nice Job, last step TWRP root file and enable in Dev Options!
Fully Rooted and enjoying the fact someone is still updating build for patch level.
Old tablet but not that bad once you get rid of KitKat lol!
This guy was going to chuck it out and said to me it will be limited because of old software... He told me dispose of it.... Just showed him now and he asked why did Samsung do this update for you not us, answer is they didn't!
This is why I love Android over Apple!

Building my own Kernel for Android 4.4.4 on my note 3 (The journey)

Hello XDA community,
After months of struggling im in desperate need of your help.
What is my goal?
To compile our own kernel so we can mess around with Qualcomm's trustzone.
Where did it all start?
It all started a few months ago back in November 2021 when me and a friend read a blog about a Trustzone exploit in Qualcomm's MSM8974 processor. (link to the blog)
Big noobs as we where, we where getting hyped an bought ourselves a Samsung Galaxy Note 3 with a MSM8974 processor. After messing around with the device we learned more and more about android and the workings of the software. We first started to root the phone and play around with ADB. After that we found that we can use Frida aswell. But all of it didn't lead to the result we wanted. So we started to dig deeper in to the write-up of the blog. We soon came to the conclusion that we where not even close to doing the right thing.
What happend next?
After we came to the conclusion that ADB and Frida is not enough we understood we need to build our own kernel for this exploit to work. So we do what we always do and that was start googling and watch YouTube. By doing that we found 2 different kernels:
Lineage 18.1
SM-N9005_EUR_LL_Opensource
We where over the moon because inside the folders we found the the files that need to be replaced for the exploit to work. So we replaced the files and try to compile the kernel by using this YouTube tutorial. Everything seemed to go well, we made the
Code:
make msm8974_sec_defconfig
and we run
Code:
make menuconfig
so far so good. the last and final step should be to run
Code:
make
to compile the kernel. And that is where it went wrong an ran in to a error.
Then what?
Then we started to compare the original files with the modified files and we found out that it wasn't just a few modifications in the code but the code was different. So we did what we always do, go back to the source. So back at the blog we thought maybe its because they modified a Nexus 5 at android 4.4.4.
Now what?
Now im trying to find the source of a android 4.4.4 kernel of msm8974 so we can compare those files to the modified files. So if anyone has useful info or knows where to find a kernel for android 4.4.4 for a Samsung Galaxy Note 3 (SM-N9005).
TLDR;
Im looking for a source of android 4.4.4. for a Samsung Galaxy Note 3 (SM-N9005) (hlte)
Well, unfortunately today almost no one uses android 4.4.4. even that have the exact same device, I am using Android 11 on my phone.
I recommend not wasting your time on a kernel for Android 4.4.4. And if you really want to make a kernel for this device I need one for Android 10 and above.
Also I think making a kernel for AOSPs like LineageOS or HavocOS or crDroid ETC is much easier.
A.M.2.K.M said:
Well, unfortunately today almost no one uses android 4.4.4. even that have the exact same device, I am using Android 11 on my phone.
I recommend not wasting your time on a kernel for Android 4.4.4. And if you really want to make a kernel for this device I need one for Android 10 and above.
Also I think making a kernel for AOSPs like LineageOS or HavocOS or crDroid ETC is much easier.
Click to expand...
Click to collapse
Thanks for your response I will look in to it. not sure if it will be easier because the files that needed to be changed are:
arch/arm/mach-msm/scm.c
arch/arm/mach-msm/include/mach/scm.h
drivers/misc/qseecom.c
SwAgLaNdeR said:
Thanks for your response I will look in to it. not sure if it will be easier because the files that needed to be changed are:
arch/arm/mach-msm/scm.c
arch/arm/mach-msm/include/mach/scm.h
drivers/misc/qseecom.c
Click to expand...
Click to collapse
Well, I don't know much about kernels.
I said it's easier because I thought it's a pure and raw operating system. But now according to your post it turns out it's not easier.
Plus almost no developers left for this now very old model .

Categories

Resources