[Q] Technical questions about CyanogenMod ! - Defy Q&A, Help & Troubleshooting

Hi everyone,
I’m using CM7 for a month now and very appreciate it ! I’m a bit of a noob in the Android & Linux world and so I wanted to have more information about a few things that I’m reading regularly. I’m looking for papers, blog posts, wiki sources or your personal tips and tricks about :
- In what consist porting a ROM to a device ? I mean for instance in what consists the porting of the ICS sources to a mod as Cyanogenmod 9 for a specific device ? (I’m using the Motorola Defy)
- What is building a ROM? And what are Nightlies ?
- What are the main difficulties in porting sources to other devices?
- How does rooting of a device works? What is modified in the device?
- How is the bootmenu installed ? What is modified to have access to that menu during the booting ?
I’m asking because I was looking for technical information and found nothing !
So, if you could help with all kinds of information and sources, do not hesitate !
Thank you everyone !

Sorgue311 said:
Hi everyone,
I’m using CM7 for a month now and very appreciate it ! I’m a bit of a noob in the Android & Linux world and so I wanted to have more information about a few things that I’m reading regularly. I’m looking for papers, blog posts, wiki sources or your personal tips and tricks about :
- In what consist porting a ROM to a device ? I mean for instance in what consists the porting of the ICS sources to a mod as Cyanogenmod 9 for a specific device ? (I’m using the Motorola Defy)
- What is building a ROM? And what are Nightlies ?
- What are the main difficulties in porting sources to other devices?
- How does rooting of a device works? What is modified in the device?
- How is the bootmenu installed ? What is modified to have access to that menu during the booting ?
I’m asking because I was looking for technical information and found nothing !
So, if you could help with all kinds of information and sources, do not hesitate !
Thank you everyone !
Click to expand...
Click to collapse
For boot menu, the logwrapper binary is changed to a new file. That file is one of the first things run by the kernel, and this binary is used to hook in and light the blue LED, and listen for a button press. It then starts the boot menu for real if you press the down button, and displays it on the screen.
Rooting is exploiting of a vulnerability in the device, in order to gain root (superuser/administrator) access, and thus full control of the running system. You then leave a binary in place to allow further access as root without issues (su binary), and Superuser.apk to control root access on a per-app basis.

Thank you for answering.
Do you know what kind of vulnerability is exploited ?

Sorgue311 said:
Thank you for answering.
Do you know what kind of vulnerability is exploited ?
Click to expand...
Click to collapse
Yes. psneuter is the standard root exploit the one click tools use

Related

[Q] Creating a custom ROM

Hello. I am interested in building my own ROM. I have some computer knowledge, but I want to know, what tools and files do I need for creating one. So maybe someone can guide me or point me to a tutorials. I basically just want to try some things.
Is there a way to brick my phone by using a custom ROM?
Also, what is android 2.3.5? Google's latest is Android 2.3.3 .
Android Latest stable release
Tablets: 3.2 (Honeycomb)
Phones: 2.3.5 (Gingerbread) / 25 July 2011; 38 days ago
Latest Android release is 2.3.5 for phones
good new, should be more like you.
Latest android for smartphones is 2.3.5.
Regarding advices to build a new rom, nothing better than to speak to those that already did and have the knowledge (stcokwell, DZO, FFranco, Knzo, etc)
Search the posts of each rom and speak with respective developers.
Good luck and I waiting for your rom to test it
I'm interested too, but it requires more knowledge about linux. Kernels and so on.
So i'm thinkin is better to build kernels, there is sources, there is websites with how to and so o.. rom is more complex.
I'm bringing this thread up now.
I am currently downloading CyanogenMod's source, because of what I've read android.git.kernel.org is down. My first idea was to do a proper scene port of the latest Android. But well, this has better documentation anyway. So, I haven't got the source yet to browse, but is there a way to make a general build and if I understand correctly, it creates me a system.img? How to make it flashable by recovery? And if it fails to start, can I still get to the recovery? And about kernel, this has to be modified too, right?
And for last, if anyone has a good Android source code browsing/modifying e-book/video/whatever, can I have it?
-e-
I found that CyanogenMod can automatically make a signed .zip and on normal Android AOSP I can make it with "make otapackage". Is that right?
Any good read?
u8800,cm7,[email protected]
PlanDreaM said:
Any good read?
u8800,cm7,[email protected]
Click to expand...
Click to collapse
Start from here
http://forum.xda-developers.com/forumdisplay.php?f=613
Good luck!

[samsung i857(doubletime)]ROM devlopers and users of this phone

HI all , i lunched this thread after weeks of googling and usless search for a new stock or custom rom to update my phone (samsung sgh-i857 doubletime) it's a dual screen phone with querty built-in keyboard it's from at&t and it is stuck on android 2.2.2, i'm very sad that they and after years from lunching it didn't back it up with a single soft update -_- ... and i know that there are users who bought this phone like me and seek help.. i know that it's not this easy but if you are a devloper help us by creating a custom rom for it ....if you are a user of this phone please support this thread by commenting so we can get an update for it :good: ps: i attached informations for it's cpu
Hello good sir, I like you am a noobish Doubletime user who is struggling to update it to Gingerbread. So far I have been somewhat able to use the Cyanogenmod source code and I have built a CWM Recovery for the device but that seems to have hard bricked it... I ordered a new one off ebay for $15 and I'm ready to start cooking. You have my support!
Just an update.
I have a plan I have on how to get this runnin.
1. Port CWM to the DoubleTime through Cyanogemod 6.
2. Get a working version of Cyanogenmod 6 working on the DoubleTime to hopefully free up some space.
3. Find if Gingerbread can run on Froyos kernel.
From there I'll either be building a GingerBread compatable kernel or Cyanogenmod 7 depending on compatability. Any advice or help would be very appreciated.
Being new to ROM building I'm a little lost and hesitant on flashing things but here's what I know so far.
The DoubleTime uses a Qualcomm MSM7230 same as the HTC Vision. I forked it's Github respiratory and I'll be using it as a base as recommended by the Cyanogenmod porting guide.
The partitions sizes (as a accurately as I can estimate them) are:
/cache=21.05MB
/data=176.65MB
/system=194.38MB
I may need to know the recovery partition size but I'm not sure how to find that out.
I have the recovery.img and the boot.img as well as the zImage. So as soon as the repo sync is done I'll be on my way.
I'm back again today with somewhat mixed news, I can find most of the partitions and their names (I've learned a lot today) but I can not seem to find the boot, recovery or ramdisk partitions. I'm already boggled by the what seems to be unconventional naming setup for partitions. Put all of my "notes" in a text docement in the attachments section. Any help with this is very appertiated. I can type and post anything into the ADB shell you need me too.
I'm beginning to feel like I'm talking to myself, I probably am...
Upon reading forum rules and such it has come to my attension that this is the wrong forum for this kind of thread, So I have made a new thread in the Miscellaneous Android Developement Forum that will hopefully be more useful at getting more proffesional and opinionated help.
http://forum.xda-developers.com/showthread.php?t=2651728

REQ rooted kernel 5.1.1 for Sm-t235 (source was published a month or two back)

sometime back this was posted
http://forum.xda-developers.com/showpost.php?p=63556533&postcount=135
unfortunately moonbutt closed his thread just when I and another member posted boot image etc on the board..understand he may have moved on to better things
not knowledgeable here but appreciate if someone can take this up or redirect this to some dev who can make a rooted kernel since the source has been published
thanks
SM-T237P
Would love to root my 5.1.1 tab , so I too would be begging for another developer to step in to fill this need. I need a kernel with UVC video support.
OKAY so now I know my posts were getting deleted when I asked for T235 kernel root
zitomd said:
Would love to root my 5.1.1 tab , so I too would be begging for another developer to step in to fill this need. I need a kernel with UVC video support.
Click to expand...
Click to collapse
yesterday or may have been on Sat night, on the T533 thread I tried to catch moonbutt's attention by pointing to the T235 source (when apparently he was saying the T533 had no source but was addressing that kernel) and now that post has gone like on his closed thread (just when it seemed he was taking an interest thanking me for providing boot.img and other files)
anyway...need some dev who can volunteer to work on this and at least someone who would respond yes or no (deleting posts maybe to avoid a side conversation)
I pulled the source started to look it up and looked up on how to modify kernel..looked doable to a point but this is from a total novice (all i know is to mod some apk, compile/re-compile but no building stuff)
mac231us said:
yesterday or may have been on Sat night, on the T533 thread I tried to catch moonbutt's attention by pointing to the T235 source (when apparently he was saying the T533 had no source but was addressing that kernel) and now that post has gone like on his closed thread (just when it seemed he was taking an interest thanking me for providing boot.img and other files)
anyway...need some dev who can volunteer to work on this and at least someone who would respond yes or no (deleting posts maybe to avoid a side conversation)
I pulled the source started to look it up and looked up on how to modify kernel..looked doable to a point but this is from a total novice (all i know is to mod some apk, compile/re-compile but no building stuff)
Click to expand...
Click to collapse
mac,
i had your post removed because it was interfering in H's thread. I tried with this device a little while ago but testers seem to think they are at liberty to not follow instruction, or just change their minds mid-stream like they haven't just wasted my time and resources. . The upside would be if you have the source and the setup to compile it and thereby test your own work then, i can absolutely run you through what you need to do, The tricky part is knowing which tools you need for the packing/unpacking of the ramdisk.
If this is a qcom/msm device you will need AIK which is the best solution.
If this is a marvell variant you will need ketut's degas bootimg toolkit which is the best solution.
You need [likely] to apply the patch mentioned in my thread to security/selinux/selinuxfs.c
Be aware that samsung's source releases are usually incredibly sloppy and the defconfigs for devices are usually somewhat off, missing config settings.
Check for sdcardfs xattrs, virtual xattrs, etc . you need to make sure those are selected in order for your internal and external storage to mount.
Find the correct defconfig for your device and post it as a zipped attachment. or check my thread and look at my sources on git, specifically the commit history [msm devices mostly] to get an idea of what you need. You can get a linux os running in a virtual machine and compile just fine as long as you have all the pre-requisites installed. The getting started link in my signature is a rough/general guide to help get you up and running.
m
ps, my thread is just locked, not closed, i was getting too many OT/non-dev postings. I open it when/if i have something new and then close it again.
thanks moonbutt74...totally understand...appreciate the links in your signature and other resources...will start looking into it (long long journey but gotta try)
mac231us said:
thanks moonbutt74...totally understand...appreciate the links in your signature and other resources...will start looking into it (long long journey but gotta try)
Click to expand...
Click to collapse
mac,
no prob, recommended step 1, get your linux distro set up, stongly recoommend kali/debian 2.0, either in vm or better as 2nd os in a dual boot scenario.
m

Samsung Galaxy J5 - Any plans on developing PA for this device?

Hi there,
I own a Galaxy J500FN and have been unsuccessfully searching the web for a custom rom for my device.
I have used PA on both my S4 and S4 mini and would be very glad (so would many others) if somebody could dedicate some time on working on a build for this device?
It currently ships Lollipop 5.1.1 out of the box.
There is no CWM Recovery build for this device but there is a TWRP Recovery Build that CTxz has kindly developed for us.
I am more than happy to flash experimental builds onto my device to help develop a custom ROM for it.
Thanks a lot!
Kyle
P.S: As many others have found, all root methods currently known for this device will trip the knox security.
No plans as we don't dev for devices we don't own or have access to. It is not on our radar at all, as with most Samsung devices.
@Pirateghost i can provide you all the files of j5 that you needs.
Avigupta.1996 said:
@Pirateghost i can provide you all the files of j5 that you needs.
Click to expand...
Click to collapse
And what exactly does that do for us? That doesn't put a device in a developer's hand and they have ZERO way to test it. We know nothing about the device and we don't care to. It is not on the radar, it is not in the cards....
NO.
Not going to happen.
Please realize that developing for a device isn't easy. Even well documented ones bring along lots of hiccups along the way. There is no way in hell that we will take on a device request for a device that we don't own or plan on ever owning.
Here's a little FYI for you: we prefer Nexus devices or devices where the manufacturer/OEM is willing to allow/support bootloader unlocks, roms, development.
My advice to you: Learn how to bring up the device yourself, and build unofficials for yourself. This site was founded on being a resource BY developers FOR developers. Use the information available to you to build your own.

TWRP 3.5 - build android device

Hi everyone,
I was very excite when I saw this post on TRWP site: https://twrp.me/site/update/2020/12/31/twrp-3.5.0-released.html since it would add the so much missed support for native android 10 devices like my 1+7tp mclaren, but to build this twrp you need an android device specific for 7tp mclaren I belive (similar to the ones found in https://github.com/TeamWin/?q=android_device_oneplus) (the android 10 branch)
Are there any guides on how to do this? I'm more than willing to give it a go and share it back if i manage to get it working.
My whole point in getting a OnePlus device was that I could dual boot (it would be really nice to be able to dual boot nethunter for work since I constantly need to do simple security assessments on the fly. Having that possibility on my mobile would be a huge time saver for me)
Any help will be greatly appreciated!
And congratulations to all on this forum. It's always great to see the coding communities at work!
@ptspawn Don't know if these tutorials by @AlaskaLinuxUser are something you're looking for:
[Video Tutorials] XDA Etiquette, Compiling Custom Roms/Kernels
Praise God! A video tutorial about XDA etiquette! These videos express my personal opinion, and are not necessarily the opinion of XDA. I am not speaking on their behalf. This is just a video series that I put together based on a recommendation...
forum.xda-developers.com
[Guide][Video Tutorial] Intermediate to Advanced Custom Rom and Kernel Building
Hey everyone! There is also a telegram channel where you can drop in for some help: https://t.me/joinchat/HR_8JgyDBdw_DvmndPl0kg I really hope that you have enjoyed the series, and that it is helpful to you in your Android career! Praise God...
forum.xda-developers.com
[Guide][Video Tutorial] How to build Custom ROMs and Kernels![10,P,O,N,M,L]
Hey everyone! There is also a telegram channel where you can drop in for some help: https://t.me/joinchat/HR_8JgyDBdw_DvmndPl0kg I really hope that you have enjoyed the series, and that it was helpful to you in your Android career! Praise...
forum.xda-developers.com
And maybe the XDA University offers something for you?
do we have any TWRP version possible to stall ROMs ? I tried 3.4.0.2 and 3.4.0.12, none of them works

Categories

Resources