[DEV] TWRP images compiling but small size - Galaxy Note II, Galaxy S III Developer Discussion

I am in a state of despair. If you are willing to help I will be greatful.
Basically i have followed Cyanogenmod's official build guide to set up the working folder up to preparing the device specific code, and then started following the TWRP build guide made by @Dees_Troy and this guide made for the Samsung Galaxy S Plus with custom # TWRP in the BoardConfig.mk and also added the twrp.fstab and the line 'PRODUCT_COPY_FILES' in i9300.mk and also 'export LD_LIBRARY_PATH .:/sbin' in the custom init.rc found in my device tree, but i cannot get the right size for my recovery. If you can help you can find me on the official #twrp on Freenode as 'Alexander_the_B0'.

Did you try compiling with this commit https://github.com/NamelessRom/andr...mmit/bebcd6c956f140e162d03b29765e5e581f957153

Ivan_Meler said:
Did you try compiling with this commit https://github.com/NamelessRom/andr...mmit/bebcd6c956f140e162d03b29765e5e581f957153
Click to expand...
Click to collapse
Changed the files, wish me luck

Alexander_the_B0ss said:
That is for the kernel, i am talking about the TWRP recovery, but thank you anyway.
Click to expand...
Click to collapse
Then i guess you dont know that kernel is part of recovery image on our devices

Ivan_Meler said:
Then i guess you dont know that kernel is part of recovery image on our devices
Click to expand...
Click to collapse
Check the reply again, i was ignorant as always and didn't investigate. Compiling right now for a solid hour.

Alexander_the_B0ss said:
Check the reply again, i was ignorant as always and didn't investigate. Compiling right now for a solid hour.
Click to expand...
Click to collapse
Woah looks like its taking some time but it depands on pc, I am glad to hear its compiling inform me if you get any other issues with build

Related

Any complete tutorial on compiling android ?

Can someone point me to a complete tutorial on how to compile android and add required drivers (from an official build image) ?
StalkingKillah said:
Can someone point me to a complete tutorial on how to compile android and add required drivers (from an official build image) ?
Click to expand...
Click to collapse
Do you mean compile a kernel from source?
There are a bunch of tutorials on this, here is a very good one.
http://forum.xda-developers.com/showthread.php?t=1748297
orangekid said:
Do you mean compile a kernel from source?
There are a bunch of tutorials on this, here is a very good one.
http://forum.xda-developers.com/showthread.php?t=1748297
Click to expand...
Click to collapse
I mean the kernel and UI
StalkingKillah said:
I mean the kernel and UI
Click to expand...
Click to collapse
Use that thread for compiling and modifying a kernel, that is the hardest part. Once you get that part, you can start to mess with UI stuff like launcher and themes and stuff.

[Q] How to force legacy build type instead of .new.dat form of packaging a build?

I did find this: http://forum.xda-developers.com/showthread.php?t=2936721
however when I looked in the makefile, I found absolutely no flag, but still it builds in block form whenever I try to build something, and ends up failing to flash with a "can't execute updater binary/script" or whatever error. Any idea how to force it to build in a legacy manner, or is it just something that would require practically porting stuff to source code of kitkat to get that to work? I'm building from cm12 source from the cyanogenmod repos, with proprietary blobs pulled from the phone running a different cm build/some other repo at times, same thing both ways.
dreamwave said:
I did find this: http://forum.xda-developers.com/showthread.php?t=2936721
however when I looked in the makefile, I found absolutely no flag, but still it builds in block form whenever I try to build something, and ends up failing to flash with a "can't execute updater binary/script" or whatever error. Any idea how to force it to build in a legacy manner, or is it just something that would require practically porting stuff to source code of kitkat to get that to work? I'm building from cm12 source from the cyanogenmod repos, with proprietary blobs pulled from the phone running a different cm build/some other repo at times, same thing both ways.
Click to expand...
Click to collapse
Questions belong in Q&A, not the dev section.
You will have the option to build a block or file-based ROM zip when CM is ready.
upndwn4par said:
Questions belong in Q&A, not the dev section.
You will have the option to build a block or file-based ROM zip when CM is ready.
Click to expand...
Click to collapse
Sorry I posted in the wrong section
But I tried building from aosp source and got the same result
dreamwave said:
Sorry I posted in the wrong section
But I tried building from aosp source and got the same result
Click to expand...
Click to collapse
Search in the build folder for the ota_from_target_files then look for this line "OPTIONS.block_based" then set it to True.
Gnome said:
Search in the build folder for the ota_from_target_files then look for this line "OPTIONS.block_based" then set it to True.
Click to expand...
Click to collapse
Thanks you, I'm building now and will report back if it works. I was looking for literally hours for some way to modify something to make it work, can't believe I missed that.
upndwn4par said:
Questions belong in Q&A, not the dev section.
You will have the option to build a block or file-based ROM zip when CM is ready.
Click to expand...
Click to collapse
Might be better going in the dev discussion forum.
dreamwave said:
Thanks you, I'm building now and will report back if it works. I was looking for literally hours for some way to modify something to make it work, can't believe I missed that.
Click to expand...
Click to collapse
Set it to False sorry
dreamwave said:
Thanks you, I'm building now and will report back if it works. I was looking for literally hours for some way to modify something to make it work, can't believe I missed that.
Click to expand...
Click to collapse
I recently went back to a block based ROM zip because it flashes so damn fast. File based ROM will be slow...
Gnome said:
Set it to False sorry
Click to expand...
Click to collapse
it was false, already
Wakamatsu said:
Might be better going in the dev discussion forum.
Click to expand...
Click to collapse
That forum is for higher level discussions. This is just a question. But, the mods will decide.
OK, so I went into that file, changed the default flag inside to true and the lower part that defines what happens with an if/if not kind of thing, and (low and behold) it compiled with a legacy style. I now have a different problem, though the same as I had before. When I try to install it with the latest multirom (I'm backing up to try and flash as a main rom) it fails, saying that there was an error executing updater binary in zip "/tmp/mr_update.zip" and it doesn't install at all. Any ideas what may be the problem now?
Gnome said:
Set it to False sorry
Click to expand...
Click to collapse
I flashed it as a normal rom, and it flashed fine. Now I have a problem that it just doesn't boot. I power on the device and it shows the google logo for a while, then just reboots. Bootloop. I didn't get any errors compiling, it worked fine and flashed fine as a normal rom, but doesn't boot.
upndwn4par said:
That forum is for higher level discussions. This is just a question. But, the mods will decide.
Click to expand...
Click to collapse
You're right. Dev section is for ongoing project discussions and actual development. Any question, be that app, development, accessory etc all belong on q&a.
The rule, if its a question, q&a

Custom Rom for Galaxy J700T ??

Are there any custom roms or stock stripped roms out>??? PLOX post links!!!!!!!!!!
I've been wondering the same thing since June. Seems like all the ROMs are geared towards the F/H/M. I've have tried installing ROMs for other variants with messi2050's kernel. The only one I got to boot was the Note 7 ROM by Allosh. But WiFi did not work.
Hmmm... Any other issues? What about that ROM allowed for you to boot and function I wonder?
If we can get a bounty going for WiFi fix on that ROM we could possibly be on to something....!!!!!!!!!!!!!!!!!!!!!!!
carpenterethan said:
Hmmm... Any other issues? What about that ROM allowed for you to boot and function I wonder?
If we can get a bounty going for WiFi fix on that ROM we could possibly be on to something....!!!!!!!!!!!!!!!!!!!!!!!
Click to expand...
Click to collapse
Just copy the wifi files in /system/etc from a stock firmware with a root file manager to the same folder and give it the correct permissions in the N7 rom. The real problem is getting the Camara to work.
I just want a rom with an AOSP based system UI.
phoen1x74 said:
I just want a rom with an AOSP based system UI.
Click to expand...
Click to collapse
My best advice for you is to deodex your factory ROM and decompile your system framework apk(s). All of the ports you see are derived the same way. This device will never see CM/RR/Lineage ported over.
Is there any custom ROM for j700t?
Metabolic12 said:
My best advice for you is to deodex your factory ROM and decompile your system framework apk(s). All of the ports you see are derived the same way. This device will never see CM/RR/Lineage ported over.
Click to expand...
Click to collapse
Why do you think this phone will never see CM/RR/Lineage? I think its possible, but we would need is a good dedicated dev that can figure out how to port or build them.
vekenti said:
Why do you think this phone will never see CM/RR/Lineage? I think its possible, but we would need is a good dedicated dev that can figure out how to port or build them.
Click to expand...
Click to collapse
Actually it will be easy to port lineage for j700t, it only has different drivers and ram size than j700h
messi2050 said:
Actually it will be easy to port lineage for j700t, it only has different drivers and ram size than j700h
Click to expand...
Click to collapse
If you make one, I'd love to try it out. Despite the conflict that this community has had between you, you are our only dev and you are a good one.
I agree. I would LOVE to try out a good lineage port. This phone really needs a good ROM, because Touchwiz really sucks.
messi2050 said:
Actually it will be easy to port lineage for j700t, it only has different drivers and ram size than j700h
Click to expand...
Click to collapse
Heck Messi is easily the best dev we have. If you could spare some time I'd be willing to give it a shot.
phoen1x74 said:
If you make one, I'd love to try it out. Despite the conflict that this community has had between you, you are our only dev and you are a good one.
Click to expand...
Click to collapse
vekenti said:
I agree. I would LOVE to try out a good lineage port. This phone really needs a good ROM, because Touchwiz really sucks.
Click to expand...
Click to collapse
Metabolic12 said:
Heck Messi is easily the best dev we have. If you could spare some time I'd be willing to give it a shot.
Click to expand...
Click to collapse
thank u but unfortunately that won't be possible as i don't have the phone...
messi2050 said:
thank u but unfortunately that won't be possible as i don't have the phone...
Click to expand...
Click to collapse
I can go to git and setup the build environment, I've been following your work and aapav rather closely. I would just need your brain to help me change the ram and cache values and whatever else needs adjusted. Then once finished I could send you the files for upload.
Metabolic12 said:
I can go to git and setup the build environment, I've been following your work and aapav rather closely. I would just need your brain to help me change the ram and cache values and whatever else needs adjusted. Then once finished I could send you the files for upload.
Click to expand...
Click to collapse
Sweet i would like to help, Do you know how to cherry pick commits ?
messi2050 said:
Sweet i would like to help, Do you know how to cherry pick commits ?
Click to expand...
Click to collapse
Request new pull from another repo then another pull into said repo if I'm not mistaken?
Metabolic12 said:
Request new pull from another repo then another pull into said repo if I'm not mistaken?
Click to expand...
Click to collapse
No i meant to cherry pick other developers commits and apply it to your repo ( cherry pick ) if you don't know how to do that i can't help since the most difficult part will be to patch the kernel...
messi2050 said:
No i meant to cherry pick other developers commits and apply it to your repo ( cherry pick ) if you don't know how to do that i can't help since the most difficult part will be to patch the kernel...
Click to expand...
Click to collapse
I think I know what you're explaining. Can you give me a night to refresh my memory on kernel sourcing and setting up the environment? If it's too much for me I won't waste time, I'll just tell you it's out of my league.
Metabolic12 said:
I think I know what you're explaining. Can you give me a night to refresh my memory on kernel sourcing and setting up the environment? If it's too much for me I won't waste time, I'll just tell you it's out of my league.
Click to expand...
Click to collapse
You should check this thread first
https://forum.xda-developers.com/showthread.php?t=1877040
you can start a bounty thread too, i'm sure this way many developers not only me will be interested on doing it

[KERNEL]Looking for testers

I am working on a kernel for this device and I am looking for testers. I will be posting a build shortly, I cannot test on my device at this time as I do not have it.
here...one request vibration motor is very weak.. it'll be highly appreciated if u please add vibration strength on custom krrnels...i also faced this problem on 5t...after using custom kernel and set it to 100 it went fine..so looking forward for this feature.. #request
Heeere i am! Thank you for building your kernel, i loved them one my 6P :good:
Muntasir Mahmud Saif said:
here...one request vibration motor is very weak.. it'll be highly appreciated if u please add vibration strength on custom krrnels...i also faced this problem on 5t...after using custom kernel and set it to 100 it went fine..so looking forward for this feature.. #request
Click to expand...
Click to collapse
_MartyMan_ said:
Heeere i am! Thank you for building your kernel, i loved them one my 6P :good:
Click to expand...
Click to collapse
First build will just make sure the modules load properly and ensure all boots and include wakelock blocker. After that, the fun will begin.
Downloads: http://hunternott.com/darkroom/enchilada
Includes kcal?, thanks for you work
Mennpiko said:
Includes kcal?, thanks for you work
Click to expand...
Click to collapse
not yet, need to test if the first build works before I add anything else
DespairFactor said:
not yet, need to test if the first build works before I add anything else
Click to expand...
Click to collapse
Ok, when I get home to flash it, I never cast any mobile kernel with trebble and partitioned A / B, so I read it has a new toolchain, the commands to compile are the same as for x64 ?, thanks to beforehand, Salu2
DespairFactor said:
I am working on a kernel for this device and I am looking for testers. I will be posting a build shortly, I cannot test on my device at this time as I do not have it.
Click to expand...
Click to collapse
i'll be there for u
Maybe a telegram group ?
Mennpiko said:
Ok, when I get home to flash it, I never cast any mobile kernel with trebble and partitioned A / B, so I read it has a new toolchain, the commands to compile are the same as for x64 ?, thanks to beforehand, Salu2
Click to expand...
Click to collapse
It is an AnyKernel2 zip
Neil_Armstrong_ said:
i'll be there for u
Click to expand...
Click to collapse
Takumashii said:
Maybe a telegram group ?
Click to expand...
Click to collapse
I have a telegram group https://t.me/darkroomdev
What are the steps to install the Kernel? Coming from taimen and I'm Not familiar with the oneplus flashing commands.
Thanks in advance
Flashed fine, booted but no WiFi.
Had to go back to stock as I'm at work. Any logs you need pm me or telegram me.
mwilky said:
Flashed fine, booted but no WiFi.
Had to go back to stock as I'm at work. Any logs you need pm me or telegram me.
Click to expand...
Click to collapse
What were your steps in twrp?
blaze9090 said:
What were your steps in twrp?
Click to expand...
Click to collapse
Just flashed the zip in twrp then flashed magisk over the top
I dont get IT. I did exactly the same and the Phone soft bricked and booted to bl.
Flashed the kernel, for me it's bootlooping into the bootloader i think i missed something
EDIT: Flashed Magisk 16.4 over it, now it could boot. Got a message: " Internal problem with device, contact the phone manufacturer" or something like that. It's buggy as hell. First boot i could unlock without any issue, but after i locked and try to unlock it reboots.
_MartyMan_ said:
Flashed the kernel, for me it's bootlooping into the bootloader i think i missed something
EDIT: Flashed Magisk 16.4 over it, now it could boot. Got a message: " Internal problem with device, contact the phone manufacturer" or something like that. It's buggy as hell. First boot i could unlock without any issue, but after i locked and try to unlock it reboots.
Click to expand...
Click to collapse
Weird, I released R1, it is all working now, audio and wifi included.
Thread here: https://forum.xda-developers.com/oneplus-6/development/kernel-chewie-kernel-t3796965

Searching a volunteer to provide OmniROM 9.0 builds

Hello people!
After AOSP the OmniROM is now the second custom rom available on the XZ2, XZ2C and XZ3. (Needed to omnify the device files to build TWRP with it.)
Due of lack of my free time (plus I am providing AOSP and TWRP and don't have enough free space on my online storage), we need someone providing us builds for the XZ2, XZ2C and XZ3.
Of course it need to be a DualSim and a SingleSim build.
At the moment the omni device trees only offer a SingleSim variant, but it does only take 3-4 lines of code to offer a DualSim build option after lunching the device tree's.
You only need to adapt the code of the AOSP project.
PS:
They won't accept code changes at https://gerrit.omnirom.org, because they never actively support them.
Yes. I don't like this opinion, too.
PS0:
I can confirm from too people running OmniROM 9.0 on their XZ2C and XZ3 that it works.
At this moment I am running OmniROM 9.0 on my device as a test if it works.
PS1:
I can confirm, that you can directly integrate TWRP into the OmniROM (and maybe AOSP, I will test it on the next successful build).
Just build the entire ROM with "-userdebug", but the bootimage with "-eng".
Of course you need to replace the standard recovery with TWRP, while building.
This is a good place for an example how to modify the manifest files:
https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni/tree/twrp-9.0
Of course you should put your changes into the "local_manifest" folder and modify the omni manifest files.
Of course you can build an twrp installer, if you don't want to run an "-eng" bootimage.
But I can't execute "fastboot boot twrp.img" on my XZ2.
You you may need todo the same stuff like we are doing with out stock rom, to install TWRP. (TWRP thread).
Pictures :laugh:
A screenshot I forgott.
does camera work on this rom?
Faruk.ErdaL said:
does camera work on this rom?
Click to expand...
Click to collapse
Yes, as you can see in the screenshots.
The same like in Sony AOSP (the base for every custom ROM for our device).
Of course the implementation still needs Bugfixes and feature enhancements.
You can see the open tasks in the bugtracker linked in the AOSP topic in XDA.
If it's only the builds you need I can help but I probably won't be much help adapting the code.
LaputaCake said:
If it's only the builds you need I can help but I probably won't be much help adapting the code.
Click to expand...
Click to collapse
Yes
Same here.
But you would of course need to help answering questions and redirect the people to the bug tracker.
Thank you.
Without your message I would build it myself this or next month :silly:
MartinX3 said:
Yes
Same here.
But you would of course need to help answering questions and redirect the people to the bug tracker.
Thank you.
Without your message I would build it myself this or next month :silly:
Click to expand...
Click to collapse
I can help people to the best i can though it'll probably consist of them dirty flashing and everything being broken. Yeah i've got a server lying around I can throw mint on.
LaputaCake said:
I can help people to the best i can though it'll probably consist of them dirty flashing and everything being broken. Yeah i've got a server lying around I can throw mint on.
Click to expand...
Click to collapse
Nice.
I use Linux Mint, too.
I can assist you :silly:
@MartinX3 Maybe we can build the ROMs on AWS EC2 instance or similar service, then push them to S3 or similar service and have a nice effortless build env and maybe achieve some automation. It's pricy, tho...
nasko_spasko said:
@MartinX3 Maybe we can build the ROMs on AWS EC2 instance or similar service, then push them to S3 or similar service and have a nice effortless build env and maybe achieve some automation. It's pricy, tho...
Click to expand...
Click to collapse
Yes
But after the Omni support become "official" it will be build in the omnirom servers
can you provide the rom for me to test ?my computer is broken....... my aosp code will be all lost........:crying:
yangchenglei said:
can you provide the rom for me to test ?my computer is broken....... my aosp code will be all lost........:crying:
Click to expand...
Click to collapse
AOSP is already available in the AOSP thread.
MartinX3 said:
AOSP is already available in the AOSP thread.
Click to expand...
Click to collapse
what about omni?I know your good work ,yesterday when you upload it I had flashed it.good job my friend !
yangchenglei said:
what about omni?I know your good work ,yesterday when you upload it I had flashed it.good job my friend !
Click to expand...
Click to collapse
At the moment no time. After exams 10. February I have more time
MartinX3 said:
At the moment no time. After exams 10. February I have more time
Click to expand...
Click to collapse
Thank you Wish you have a good result
yangchenglei said:
Thank you Wish you have a good result
Click to expand...
Click to collapse
Thank you
I Volunter!!!
Sent from my Sony H9436 using XDA Labs
MurroFX said:
I Volunter!!!
Click to expand...
Click to collapse
Thx, but already tried since 1 February
MartinX3 said:
Thx, but already tried since 1 February
Click to expand...
Click to collapse
Hi
Don't you need hesters on every build to fix bugs? ?
And why is it not available to have a SDCard in XZ3 AKATSUKI when you put in double/2 Sim-Cards.? ? ?

Categories

Resources