Hello! What is kernel, mode, script, radio?
Ferrumlan said:
Hello! What is kernel, mode, script, radio?
Click to expand...
Click to collapse
The kernel is the core of the OS that allows software code to interface with hardware.
Don't know what you're talking about as far as "mode".
A script is something written in Linux command line to accomplish a VAST number of things. It can alter kernel settings (as I use one for that), or it can run various operations automatically and generate results... You can damn near program with a script.
The radio is the hardware that transmits and receives signals from other peripherals or a base station. In Android devices, the term "radio" typically refers to the firmware programmed into the hardware which allows the ROM to address the radio hardware.
loonatik78 said:
The kernel is the core of the OS that allows software code to interface with hardware.
Don't know what you're talking about as far as "mode".
A script is something written in Linux command line to accomplish a VAST number of things. It can alter kernel settings (as I use one for that), or it can run various operations automatically and generate results... You can damn near program with a script.
The radio is the hardware that transmits and receives signals from other peripherals or a base station. In Android devices, the term "radio" typically refers to the firmware programmed into the hardware which allows the ROM to address the radio hardware.
Click to expand...
Click to collapse
sorry not mode))) mod
MOD is a modification. Could be as simple as a different battery indicator for your status bar or a completely revamped UI. Some MODs add new functionality, like a 4-in-1 boot menu.
daj
thanks please give me link to great mods ?
Ferrumlan said:
thanks please give me link to great mods ?
Click to expand...
Click to collapse
That would be impossible. There's hundreds if not thousands to do all manner of things to your phone and many of them are ROM-specific.
one of the scripts that is friendly with all android phone is the v6 supercharger. its a memory mod that has been shown to increase phone performance. its working wonders on gingersense 3.5
how to install them all on PHONE?
Ferrumlan said:
how to install them all on PHONE?
Click to expand...
Click to collapse
Just do a search for "V6 supercharger" on XDA. Read the OP carefully. It's kind of an odd install, but it does tend to work. I believe he's optimized it for a deadline IO scheduler so it helps if your kernel supports that.
People have always asked me (and I've always asked people) what does * mean. * being the thing you are asking. Most of the time you will probably guess or ask. If you ask you could be making your self easily a noob.
I have made this in order to help. If you see a mistake or incorrect definition please tell me so I can correct it.
* - anything and everything possible. A good example would be "All my friends live at 10* Croxley Street." This is saying that they are all live at 100, 101, 102, 103, 104, 105, 106, 107, 108 and 109.
Dev - See developer.
Developer - A man or woman who has created (developed) software.
ROM - 1. A modified version of the Android operating system operating system. 2. Read Only Memory, a place where information is stored and can not be destroyed, modified or written to.
AOSP - "Android open source project" a project by Google Inc. to give android to developers and manufactures for free (see open-source)
Open-source - (not to be confussed with free) A peice of software that is free to edit, use, distribute and share with no charge.
CM - See cyanogenmod
Cyanogenmod - A free open-source project based on the AOSP. It is a modded (see modded) version of the Android firmware
Firmware - see ROM (1)
Stock - An unchanged version of something. Example: I just flashed stock sense
OTA - "Over the air" a term used to indicate software that was sent to phones directly through the internet to their phones.
FOTA - "Firmware over the air" this normally refers to ROM's but can refer to radio firmware (see OTA)
Firmware - a piece of software to make hardware function correctly. This can refer to Radio Firmware, but is normally used as another name for ROM (1)
Radio - (not to be confused with Radio Firmware) A piece of hardware that allows communication. There are 3 main radios in your phone. Bluetooth, WiFi and GSM/CDMA.
Radio Firmware - (see firmware) a type of software that allows correct communication with the radio and the operating system. A newer firmware would normally improve battery life and call quality. The radio firmware only applies to the CDMA/GSM radio.
CDMA/GSM - A type of network communication between phones and carriers. GSM phones normally are included with SIM Cards that authorize them onto the network. CDMA have this authorization built in and do not need a sim card.
Kernel - An important part of all operating systems that handles the CPU and other vital components. A modded kernel may be used for overclocking.
Overclock - (not to be confused with underclock) to exced the default maximum CPU speed. This could make a phone more powerful but may cause damage. Although no damaged has been reported so far it could still drain battery life.
Underclock - to change your phones maximum frequency to LOWER than the default to attempt to extend the phones lifespan and battery.
Mod - A modification to a part of the phones software. It is also POSSIBLE to mod the phones hardware but is not recommended.
Modding - To perform a mod
Modded - to have included mods
Modification - see mod
Governor - a system embedded into the kernel to automatically change the current working CPU frequency depending on the workload. It would only go up to what it is overclocked (or underclocked) to, this is called the maximum frequency. It would not drop bellow the (just as eaisly configurable) minimum frequency.
Library's/Libs - a set of instructions for applications to use to function. A functioning camera lib would allow the camera to be used.
WFS - "Wildfire S" an armv6 device made by HTC in 2011.
Logcat - A logging system built into the ADB
ADB - "Android Debug Bridge" a system that can be accessed using a computer where you can manage the device from. You need the Android SDK to use it.
SDK - "Software Development Kit" a set of tools used for software development.
WIP - "Work In Progress"
JDK - "Java Development Kit" an SDK for the java platform. It is needed to run the Android SDK.
JRE - "Java Runtime Environment" a collection of binarys and files to allow java software to execute.
Execute - To "run" or "start" a binary
Binarys - (sometimes called bin's) a group of executable files.
RAM - Could be one of three meanings: 1. Memory for the CPU to process processes. 2. Random Access Memory, a place where information can be used, executed from, modified, or deleted. 3. A type of sheep.
SD - Short term for MicroSD
Marvel - A gsm version of the phone
Marvelc - The cdma version of the phone
Marvelct - A rare Easten CDMA version of the phone.
Marvel* - all versions of the HTC Wildfire S (see *)
GB - Could mean one of two things. 1. Gingerbread or 2. Great Britain
Gingerbread - Android 2.3
Froyo - Android 2.2
Honeycomb - Android 3.x. it was never released or ported to the wildfire s because it was built for tablets.
Ice cream sandwich/ICS - Android 4.0. The latest version of Android.
CM9 - Cyanogenmod 9. A modified version of ICS. (see cm)
RUU - "ROM Update Utility" An automatic installer for Radio Firmware, ROM and HBOOT
HBOOT - The bootloader for all modern HTC Android phones.
Custom recovery - A o version of the stock HTC recovery to install unoffical ROMs.
AFAIK - "As far as I know"
KANG - The process of creating a code based of someone else's code.
Zipalligned - This is something that makes a ROM faster. If you can improve this please contact me!
Deodexed - Where ODEX files are moved into the actual applications
APK - "Android Package" an Android application
Cache - A temporary collection of files that are created to speed up an app. A cache/cached file can be cleared without any loss of important data.
Sent from my Wildfire S powered by .sense using my fingers.
Good idea !
Sent from my HTC Wildfire S A510e using XDA App
benjamingwynn said:
Developer - A man or women who has created (developed) software.
Click to expand...
Click to collapse
So, are you trying to say it takes only one man but more than one woman to develop software, or is that a typo?
CafeKampuchia said:
So, are you trying to say it takes only one man but more than one woman to develop software, or is that a typo?
Click to expand...
Click to collapse
Typo lol
Sent from my Wildfire S powered by .sense using my fingers.
benjamingwynn said:
* - anything and everything possible. A good example would be "All my friends live at 10* Croxley Street." This is saying that they are all live at 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 10a, 10A, 10X, 105083b, 10e3.4dq!3 ....
Asterisk can stand for every value like you say, but that includes nothing, characters, signs and multiple characters and/or numbers and/or signs
ROM - 1. A modified version of the Android operating system. 2. Read Only Memory, a place where information is stored and can not be destroyed, modified or written to.
operating system has been doubled
-- Firmware - see ROM (1)
Firmware - a piece of software to make hardware function correctly. This can refer to Radio Firmware, but is normally used as another name for ROM (1)
Firmware is doubled
Click to expand...
Click to collapse
Nice done, just a few changes i would recommend if i'm allowed to
I changed and marked it directly at the quoted text
Will add this to the index, thx for doing it
Awesome info appreciate it
Good one......I don't know if the moderator sees this but if you do.....STICKY PLEASE!!!!!
what does KANG means?
dream707 said:
what does KANG means?
Click to expand...
Click to collapse
I don't know, asked around and google didn't help.
I wana to know,too
来自我的HTC Wildfire S 使用XDA 高级版 发送
There is a definition here: http://wiki.cyanogenmod.com/wiki/Terminology
Sent from my HTC Wildfire S A510e using XDA App
Mazer.one said:
There is a definition here: http://wiki.cyanogenmod.com/wiki/Terminology
Sent from my HTC Wildfire S A510e using XDA App
Click to expand...
Click to collapse
Done.
This should be sticked
MrTaco505 said:
This should be sticked
Click to expand...
Click to collapse
I agree.
Sent from my Wildfire S powered by .sense using my fingers.
Really a good dictionary
Thankyou for helping us
Enviado desde mi HTC Wildfire S usando Tapatalk
MrTaco505 said:
This should be sticked
Click to expand...
Click to collapse
And so it has.
SomeDudeOnTheNet said:
And so it has.
Click to expand...
Click to collapse
I contacted an admin
Sent from my HTC Wildfire S using xda premium
benjamingwynn said:
I contacted an admin
Sent from my HTC Wildfire S using xda premium
Click to expand...
Click to collapse
That I know.
Sent from my HTC Wildfire S using xda premium
error...
alot of thanks man,,,
ah just in Kernel line, u hav wriiten nay instead of may...
AmAnzx said:
alot of thanks man,,,
ah just in Kernel line, u hav wriiten nay instead of may...
Click to expand...
Click to collapse
Thank you, fixed it.
Sent from my HTC Wildfire S using xda premium
Hi,
I wanted to ask some question so please we should keep this thread as short and qualitative as possible, so
1) I want to have a custom ROM (CM in this case) but without transforming my device in to a Xperia S especially without loosing the CPU power, normally - with what I know- the kernel should detect the processor as a 1.7 ghz but I read that if you put the Xperia S ROM it won't so (will see it as 1.5 which is STRANGE to me), is there any CM for xperia sl (It sounds rhetorical to me as I searched and didn't find - looked up also freexperia) so basically what should I edit/do to get one?
2) I saw some projects on hardening the kernel (with grsec, yeah spender did a "nice" job, although Ac1db3atch3s crashed gradm ), so what should I do to put a hardened kernel in to the above ROM? I'm not particularly interested in "paranoid-secure" kernel , but more in to a flexible / light / USEFUL / robust one , so which one you recommend (with what patches) and how do I build everything and put it on CM ? [I'm on Arch Linux but I have also Windows if that it's a MUST]
3) Even after installing busybox , the system is still far from Linux as there are missing options like for example, lsof it's just lsof with no options, netstat is without "-e or -p" although it is as an option but doesn't show the processes or details, ls is lacking of -h and -c , and this question maybe returns to #2 as maybe there is a ROM out there with already packed "correct" binaries.
What should I do to get those?
4) What are the best applications you recommend (I saw guardianproject but not particularly interested in tor sub applications) to have full control on what's going on the OS?
Thanks.
0fo said:
Hi,
I wanted to ask some question so please we should keep this thread as short and qualitative as possible, so
1) I want to have a custom ROM (CM in this case) but without transforming my device in to a Xperia S especially without loosing the CPU power, normally - with what I know- the kernel should detect the processor as a 1.7 ghz but I read that if you put the Xperia S ROM it won't so (will see it as 1.5 which is STRANGE to me), is there any CM for xperia sl (It sounds rhetorical to me as I searched and didn't find - looked up also freexperia) so basically what should I edit/do to get one?
2) I saw some projects on hardening the kernel (with grsec, yeah spender did a "nice" job, although Ac1db3atch3s crashed gradm ), so what should I do to put a hardened kernel in to the above ROM? I'm not particularly interested in "paranoid-secure" kernel , but more in to a flexible / light / USEFUL / robust one , so which one you recommend (with what patches) and how do I build everything and put it on CM ? [I'm on Arch Linux but I have also Windows if that it's a MUST]
3) Even after installing busybox , the system is still far from Linux as there are missing options like for example, lsof it's just lsof with no options, netstat is without "-e or -p" although it is as an option but doesn't show the processes or details, ls is lacking of -h and -c , and this question maybe returns to #2 as maybe there is a ROM out there with already packed "correct" binaries.
What should I do to get those?
4) What are the best applications you recommend (I saw guardianproject but not particularly interested in tor sub applications) to have full control on what's going on the OS?
Thanks.
Click to expand...
Click to collapse
Hello @0fo,
I'd try to be as qualitative as possible (As you mentioned)
1.) A Custom Rom won't affect the CPU speed of 1.7GHz, It is the Kernels that can give you other CPU speeds.
So after installation you need to edit the kernal using third party tweaks. And considering the research you have done This wont be so hard to overclock.
2.) About Hardened Kernals, You can not do anything right now. Only Stable Kernels Available Are For Nexus Devices. . For Building Your Own Kernal And ROM Please refer to Guides Available for The Same.
3.) Unable to Understand Completely, A little more feedback on your problem would help.
4.) For Complete Control on the OS. You dont need applications but a working compiler and modding shell, Not much can be done from phone itself.
Install Android kitchen and Cagywin. You would have complete control.
If my time given to you was helpful please press thanks button!
dwarkesh2492 said:
Hello @0fo,
I'd try to be as qualitative as possible (As you mentioned)
1.) A Custom Rom won't affect the CPU speed of 1.7GHz, It is the Kernels that can give you other CPU speeds.
So after installation you need to edit the kernal using third party tweaks. And considering the research you have done This wont be so hard to overclock.
2.) About Hardened Kernals, You can not do anything right now. Only Stable Kernels Available Are For Nexus Devices. . For Building Your Own Kernal And ROM Please refer to Guides Available for The Same.
3.) Unable to Understand Completely, A little more feedback on your problem would help.
4.) For Complete Control on the OS. You dont need applications but a working compiler and modding shell, Not much can be done from phone itself.
Install Android kitchen and Cagywin. You would have complete control.
If my time given to you was helpful please press thanks button!
Click to expand...
Click to collapse
Thank you for your reply,
1) When I mentioned ROM and not the kernel I was referring to http://forum.xda-developers.com/showthread.php?t=2245327 under "General" which says "Any ROM for S will Work for SL BUT you lose 1.7GH Speed" So what should I do, should I download the "nozomi" image and than tweak ? Even though I don't know were to tweak or how because I'm new to android and I rooted my phone just yesterday, but I have experience with Linux systems / also enterprise.
2) Yep
3) On Linux when I want to list files/dirs I run ls -aclh but -c and -h options are missing on the ls binary installed on my phone, also while using netstat and lsof some useful options are missing, it's like the system is build to not let you know which process is using X connection and you can't track which process has opened the socket , for example I see a socket communicating with a amazon cloud server constantly on port 4244 or similar but don't know what and why which makes me curious.
4) will try those out.
[SIZE=+3]Frequently Asked Questions[/SIZE]
[SIZE=+2]Samsung Galaxy Note 2
[/SIZE]
[SIZE=+1]This a short list of frequently asked questions in this device forum and the answers often given as a response. It should serve as a starting point for gathering knowledge and finding solutions to many common problems. Please only post in this thread with feedback on how to improve this document. Do not post "Thank you" type responses. If you have additional questions or require more help, try to find an existing thread or create your own. Do not use this as a general help thread.
[/SIZE][SIZE=+1]Q1: Which versions are available from Samsung Galaxy Note 2
[/SIZE][SIZE=+1][/SIZE]Without LTE: N7100
With LTE: N7105
[SIZE=+1]
[/SIZE][SIZE=+1]Q1: Is there a list for all ROMs, Kernels, Apps and Guides?
[/SIZE]For N7100: [INDEX] Note 2 - ROMs, Kernels, MODs, GUIDES
For N7105: [INDEX] Note 2 4G LTE/t0lte/N7105[SIZE=+1]Q3: What does "flashing" my phone mean?
[/SIZE][SIZE=+1][/SIZE]You are overriding the currect firmware with another ROM and Kernel. There are some AOSP or CyanogenMod based ROMs available, which are upgraded to Android Marshmallow, but you can also install a Samsung Stock based ROM, which is based on Android 4.3 or Android 4.4. You can flash your Note 2 with TWRP or ClockWorkMod. [SIZE=+1]Q4: Download Mode... What is this?[/SIZE]
In Download Mode you can flash ROMs or Recovery to your phone. If you want to flash the Stock-ROM back, you are forced to use Odin to flash the firmware. For flashing via Odin, you need to boot into Download Mode. To get into the download-mode, you must shut down your Note 2 and start it, while pressing Power, Volume Down and the home button.[SIZE=+1]
[/SIZE][SIZE=+1]Q5: How can I flash the Stock-ROM?[/SIZE]
[SIZE=+1][/SIZE]For flashing the Stock-ROM, you can visit this guide by @dr.ketan[SIZE=+1]Q6: How do I root my device?[/SIZE]
Another great guide by @dr.ketan:
[Root]How to Root Note2 [N7100] & keep flash counter 0[SIZE=+1]
[/SIZE][SIZE=+1]Q7: Can I install an OTA if I'm rooted/unencrypted?
[/SIZE][SIZE=+1][/SIZE]If you installed a Custom Recovery or rooted your phone, you are not able to install updates via OTA. You are forced to flash the upgrade via Odin then.[SIZE=+1]Q8: I'm trying to search for something specific but I'm having trouble. How do I use XDA Search?[/SIZE]
XDA Forum Moderator The_Merovingian has done a nice guide, how to use the search-feature: HERE[SIZE=+1]Q9: How can I install Android Marshmallow on Galaxy Note 2?[/SIZE]
You can have a look at this Thread by me. You will learn, how to install Android Marshmallow coming from Stock:
[GUIDE] How to install Android Marshmallow on Galaxy Note 2[SIZE=+1]Q10: How can I get out of a Bootloop?[/SIZE]
Doing a FactoryReset should solve this issue. You can do this by booting into Recovery.[SIZE=+1]Q11: Will Knox triggered, if I flash a Custom ROM or Custom Recovery?[/SIZE]
Yes, Knox counter will go to 0x1 and you will lost your warranty.[SIZE=+1]Q12: How can I enable MTP on CyanogenMod ROMs?
[/SIZE]You need to pull down the status-bar and enable MTP there. If there is not button, you need to go to the developer settings and enable it there.Some other helpful words:
ADB - "Android Debug Bridge" a system that can be accessed using a computer where you can manage the device from. You need the Android SDK to use it.
AOSP - "Android open source project" a project by Google Inc. to give android to developers and manufactures for free.
APK - "Android Package" an Android application
Bloatware - Software or 'apps' that you don't need, but come preinstalled to a device's /system partition, meaning that you cannot remove them unless the device has been rooted. Usually, these are apps are sponsored by a company and included by a carrier for profit
CDMA/GSM - A type of network communication between phones and carriers. GSM phones normally are included with SIM Cards that authorize them onto the network. CDMA have this authorization built in and do not need a sim card.
Custom recovery - A modified version of stock recoveries that allow you to do more things in the recovery mode.
Cyanogenmod (CM) - A free open-source project based on the AOSP. It is a modded version of the Android firmware
Dalvik-Cache - Holds all of the pre-compiled .dex files created from installed apps. These files are static and do not change unless the app is updated.
Deodexed - Where ODEX files are moved into the actual applications modded) version of the Android firmware.
Developer - A man or woman who has created (developed) software.
Firmware - a piece of software to make hardware function correctly. This can refer to Radio Firmware, but is normally used as another name for ROM.
Governor - A system embedded into the kernel to automatically change the current working CPU frequency depending on the workload. It would only go up to what it is overclocked (or underclocked) to, this is called the maximum frequency. It would not drop below the minimum frequency.
KANG - The process of creating a code based of someone else's code.
Kernel - An important part of all operating systems that handles the CPU and other vital components. A modded kernel may be used for overclocking.
Logcat - A logging system built into the ADB
Mod - A modification to a part of the phones software. It is also POSSIBLE to mod the phones hardware but is not recommended.
OTA - "Over the air" a term used to indicate software that was sent to phones directly through the internet to their phones.
Open-source - (not to be confussed with free) A peice of software that is free to edit, use, distribute and share with no charge.
Overclock - To exceed the default maximum CPU speed. This could make a phone more powerful but may cause damage. Although no damaged has been reported so far it could still drain battery life.
Radio Firmware - A type of software that allows correct communication with the radio and the operating system. A newer firmware would normally improve battery life and call quality. The radio firmware only applies to the CDMA/GSM radio.
Radio - (not to be confused with Radio Firmware) A piece of hardware that allows communication. There are 3 main radios in your phone. Bluetooth, WiFi and GSM/CDMA.
ROM -
1. A modified version of the Android operating system operating system.
2. Read Only Memory, a place where information is stored and can not be destroyed, modified or written to.
Stock - An unchanged version of something. Example: I just flashed stock sense.
Underclock - To change your phones maximum frequency to LOWER than the default to attempt to extend the phones lifespan and battery.
WIP - "Work In Progress"
Zipalligned - An archive alignment tool that provides important optimization to Android application (.apk) files. The purpose is to ensure that all uncompressed data starts with a particular alignment relative to the start of the file. Specifically, it causes all uncompressed data within the .apk, such as images or raw files, to be aligned on 4-byte boundaries. This allows all portions to be accessed directly with mmap() even if they contain binary data with alignment restrictions. The benefit is a reduction in the amount of RAM consumed when running the application.
INTL - International
Odex - Files that are collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application.
Recovery Mode - A special environment that you can boot into for troubleshooting and upgrading purposes
Thanks to @benjamingwynn for the glossary of terms
Forum Rules | New Users Guide | XDA Tour | Report PostsThis FAQ is part of a Recognized Contributor Group Initiative. Please look for a similar FAQ thread when visiting another device forum.
A special thanks to everyone who contributed to the production of this FAQ
This thread is an ongoing process. This will be a WIP for a period of time
http://forum.xda-developers.com/wiki/Bootloader
This is not a Q&A Thread
This is not a Q&A Thread This is not intended to be a Q&A help thread. Please only post suggestions for content that should be added to the OP. Post the relevant links to accompany your request.
If you need help or have a general question, consider using these links:
Question's please here: http://forum.xda-developers.com/shield-tablet/help
Or here: [NOOB FRIENDLY] Ask the question! [N7100 and other variants]
Trafalgar Square said:
This is not a Q&A Thread This is not intended to be a Q&A help thread. Please only post suggestions for content that should be added to the OP. Post the relevant links to accompany your request.
If you need help or have a general question, consider using these links:
Question's please here:http://forum.xda-developers.com/shield-tablet/help
Or here:[NOOB FRIENDLY] Ask the question! [N7100 and other variants]
Click to expand...
Click to collapse
I need your help pls help me
Sid76 said:
I need your help pls help me
Click to expand...
Click to collapse
Pls help me when I disconnect my phone from charger it stuck in boot image like icon of galaxy note 2 after that when I connect again it starts normally and I do disconnect this happen again pls help me our bootloop and I tried many ROMs but not able to fix help me
Hello PLZ someone help me. I searched for more than two weeks to solve my problem and did not find any results
I'm sorry in advance that I could not write English well.
I have a Samsung Galaxy Note 2 (N7100) phone with Android 9 custom ROM, which I charged quickly when it finished charging, but it doesn't turn on now.
The mobile stops on the Samsung logo or lineage logo or mobile Battery animation when I charge it and I can only go into recovery mode and download mode
After this incident, I wanted to factory reset it with the custom recovery twrp that I installed on my mobile phone or wipe all the memory, but I got the error "Unable to mount storage".
Even when I wanted to install the official ROM with micro sd memory, twrp displays zero for mobile memory, sd memory and otg.
I also wanted to flash it with Odin with four official files and a pit file, which was unsuccessful and show erorr at the end the message "re-partition operation failed" was announced.
I tried to flash files again with the Miracle tool without a box. Some partitions were burned, but due to the inability to burn some partitions, I received a wrong reply error (0).
Also, after flashing the recovery file with the official recovery and new version of twrp, Miracle displayed a successful message, but in practice, there was no change in my custom recovery.
So I'm looking for a way to repair emmc with just a usb cable and no box or any other way to repair my mobile
Modesty - a modest custom kernel for the Samsung Tab S4
Modesty aims to provide a mildly appealing and reasonable alternative to the stock 4.4.78 kernel that comes with The Tab S4. In its pursuit of being both mildly appealing and reasonable, it will eschew features that could compromise device stability, whilst gleefully embracing low-risk, self-contained enhancements. In other words, your lowest expectation should be that this kernel will be at least as stable as the stock kernel.
Since there are currently no other custom kernel projects supporting the Tab S4, there isn't really any previous device-specific work to build on. Development of this kernel is therefore likely to be slow and steady.
"Why is this kernel called Modesty? That's crap! Why not Wolverine, Intrepid or Jupiter?"
Because it's just a operating-system kernel, not a turbo-charged supercar or a mission into outer space. Even as operating-system kernels go, this one is pretty dull. Besides, I'm a weary curmudgeon in his fifties, not a teenager.
This project has the modest aim of modestly enhancing the pleasure you derive from your Tab S4 and is therefore modestly named Modesty.
Key characteristics
Supports both the wi-fi only (T830) and wi-fi/LTE (T835) models.
Forked from Samsung's pristine kernel source code (Linux 4.4.78 for ARGH firmware at time of launch).
Regular merging of the upstream Linux kernel's linux-4.4.y branch (4.4.161 at time of public launch).
Regular merging of Samsung's updates to its modified kernel source as they are made available.
Includes @savoca's KCAL advanced colour/gamma control driver.
Includes @flar2's sound control driver to manage headphone and microphone gain.
Disables a huge amount of tracing and logging features inexplicably left enabled by Samsung in the stock release kernel. These debugging features have no place outside engineering builds.
Packed into a boot.img (boot image) taken directly from Samsung's latest stock firmware and kept as close to the original as possible. No obscure boot-time kernel configuration is stashed away here, and no changes are made to any other part of the file system at either install time or run time.
Provides a fully automated installer, with the option of interactive installation to allow manual selection of features and the ability to automatically root the device with Magisk in the post-installation phase.
Includes WireGuard VPN support (version 0.0.20180818 at the time of public launch), which will be updated as available.
Includes @Lord Boeffla's generic kernel wakelock blocker. The conservative default block-list is: qcom_rx_wakelock and NETLINK.
Utilises Westwood+ TCP congestion algorithm by default.
Includes Veno TCP congestion algorithm.
SELinux operates in enforcing mode and cannot be dynamically switched to permissive mode.
FAQ
Q. Is this kernel still actively developed?
A. No. The final ianmacd release was v1.0.0 on 21st November 2019 and no-one else has picked up maintenance of the project.
Q. Will this kernel also run on Android 9.0 (Pie) devices?
A. No. Modesty targets Android 8.1 (Oreo) and there was never an intention to update it for 9.0 (Pie).
Q. Can I overclock or underclock the CPU using this kernel?
A. No.
Q. How does interactive installation mode work?
A. If the ZIP file name contains the string _interactive or a dot-file called .modesty_interactive is present in the root of the external SD card, interactive installation mode is triggered. Please note that this mode overrides any selections implied by the archive name or the presence of dot-files on the file-system.
In interactive mode, you will be asked whether to root the device afterwards with Magisk. Selections are made using the Volume buttons. Just follow the on-screen prompts.
Q. Can I safely block wakelock X?
A. Perhaps. However, unless you know what a particular wakelock does and are certain that it is causing an actual problem on your device, I suggest you leave it alone.
Q. Why is this kernel labelled beta? Is it safe to use? And who are you, anyway? Can you be trusted?
A. My T830 has been running this kernel every day since I first rooted it, and I can therefore personally vouch for its stability on this model.
A couple of users have reported Modesty running well on the T835. Initially, it was reported that the kernel did not boot on this model, but after trying several test kernels, the user in question discovered that his machine had a non-standard firmware installation. Once this situation was remedied, Modesty booted and worked as designed.
As the person who built the kernel, I know exactly what's in it, and therefore the only risk I'm exposing myself to when I run it is that of my own incompetence. That's not true for you, however, and you should exercise due caution and at least pause for a moment to consider what you are installing, and the far-reaching powers you are about to grant this unaudited code over your device. Although I link to the source code below, you have only my word for it that this bears any resemblance to the kernel actually provided in the installer.
There are likely to be many iterations of this kernel before it sees a 1.0 release. Features may be added or removed along the way, although there is no clear roadmap at this point in time. Development will go where the needs of the users take it.
Please see the Installation section below for an important note regarding the use of this kernel in combination with stock (i.e. unmodified) Samsung firmware.
Q. Can I safely root this kernel?
A. Of course. What use would it be if you couldn't? I recommend Magisk for the task. It has a few minor issues, but as a project is very much alive, something that cannot be said about its peers. Magisk has arguably now established itself as the de facto root solution for Android devices.
It just so happens that I also produce my own builds of Magisk, which you are welcome to use. These are release builds (as opposed to debugging builds), produced from my own fork of @topjohnwu's original source, often augmented with patches. You can use anyone's builds, though.
Again, these builds work for me on various Samsung devices, but they are unofficial and you should approach them with fitting caution.
Q. Can I install Magisk at the same time as Modesty?
A. Yes. The Modesty installer allows you to automatically root your device with Magisk following installation of Modesty..
To make use of this facility, either rename the Modesty zip file to contain the string _magisk or create a file called .modesty_magisk in either the root of your external SD card or in the standard Download directory of the internal SD card. Alternatively, you can utilise interactive installation mode. See above for details.
If any of these trigger conditions is met, the installer will look in the standard internal Download directory as well as in ./Magisk (if present) on the external SD card (if present) for a suitable Magisk zip file to install. Preference is given to versioned files matching the glob Magisk-v*, in which case the latest according to lexical sort order will be used. If none is found, the installer then looks for unversioned release builds (e.g. official Canary channel release builds) called magisk-release.zip in the same locations, selecting the one with the most recent timestamp. If none is found, the installer will then try to find unversioned debug builds (e.g. official Canary channel debug builds) called magisk-debug.zip, again picking the one with the most recent timestamp. Finally, the installer falls back to looking for the most recent file called Magisk.zip or magisk.zip. If still no files have been found by this stage, chaining of Magisk is abandoned.
For example:
Code:
star2lte:/ $ ls -l /storage/0000-0000/.modesty_magisk
-rwxrwx--x 1 root sdcard_rw 0 2018-09-15 14:31 /storage/0000-0000/.modesty_magisk
star2lte:/ $ ls /storage/0000-0000/Magisk/Magisk-* | tail -n 3
/storage/0000-0000/Magisk/Magisk-v17.2-2018091001-ianmacd.zip
/storage/0000-0000/Magisk/Magisk-v17.2-2018091201-ianmacd.zip
/storage/0000-0000/Magisk/Magisk-v17.2-2018091501-ianmacd.zip
When you flash the Modesty archive in TWRP, the most recent version of Magisk that could be found will now be used to automatically root your kernel, i.e. Magisk-v17.2-2018091501-ianmacd.zip in this example.
Q. Why doesn't Modesty have its own Telegram group?
A. Because my experience of Android-themed Telegram groups is that they invariably degenerate into seething cesspits of rudeness, ignorance, superstition and — on a good day — pseudo-science. I don't wish to police such a den of iniquity. Of course, it's a free world (or so I still like to kid myself), so you are at liberty to create your own Telegram group for Modesty if you wish. Just please don't invite me to it.
Building
Building the kernel from source is beyond the scope of this document. If you want to build this kernel from scratch, for example to change its configuration, start with this handy reference tailored to building kernels for Android.
Download
See posting #2 in this thread for links to the latest and all previous versions.
Known Issues
Bluetooth HID (input) devices do not work.
Versions 0.99.11 to 0.99.22 contained a bug that caused Bluetooth HID (input) devices, such as mice, keyboards and gamepads, not to function. They could be paired with the tablet, but their input was not recognised. This bug was finally traced and fixed in 0.99.23.
Installation
Make a back-up of your existing boot partition using the custom recovery environment provided by TWRP. If your device doesn't yet have TWRP, you will need to install it first. Then, use it to flash the Modesty ZIP file. The boot image will automatically be installed in the boot partition of your device.
If your device has unmodified Samsung firmware, you will encounter problems with Bluetooth (namely delayed initialisation and forgotten pairings) after installing this or any other custom kernel. To remedy this, you will need to patch your system with modified libsecure_storage.so libraries. Some custom kernel installers actually install these without telling you, overwriting your system libraries and transparently circumventing the problem before you can run into it. This approach necessarily modifies your device's file-system, however, and that may not be what you want. At the very least, the user should be made aware what is happening to his device.
For this reason, I have instead prepared a companion Magisk module that achieves the same goal without modifying the file-system. This will allow you to run a custom kernel (not just this one, but any custom kernel) on pristine stock firmware without any Bluetooth issues. The module can be found in the official Magisk module repository, accessible from Magisk Manager on your tablet. If you install this Magisk module, you may wish to also disable the secure_storage_daemon by editing /system/etc/init/secure_storage_daemon.rc (change start to stop), as it no longer serves a purpose.
In a similar vein, you may encounter authentication errors when connecting to wireless networks after installing this or any other custom kernel. This problem is not serious and easily remedied by re-entering your passphrase for the networks you use.
Finally, if SecurityLogAgent notifies you that unauthorised actions have been detected, do not be alarmed. This is a normal consequence of having installed a custom kernel. You may wish to disable SecurityLogAgent to avoid being repeatedly notified..
Whilst the above issues are the only ones you can expect to encounter when running this kernel vs. the stock Samsung kernel, they may sound like more trouble than they're worth. In that case, you might be happier just sticking to Samsung's stock kernel. The company supplies a perfectly good kernel straight from the factory.
Configuration
You are encouraged to use either @morogoku's excellent MTweaks (a modified version of Kernel Aduitor) or @flar2's EX Kernel Manager to manage the features provided by this kernel.
Source code
Modesty's GitHub repository.
References
A useful guide to CPU governors, I/O schedulers (and more).
For more information on the some of the individual schedulers included in this kernel, you can also look under Documentation/block in the kernel source.
The WireGuard user guide, control app, home page and source code.
Credits
Thank you to everyone in the Linux kernel universe for getting us this far. Within the Android development community, I am grateful to the following people for their time-saving contributions:
@osm0sis for Android Image Kitchen, which has saved me a huge amount of work in packing and unpacking boot images.
An honorary mention must go to @Chainfire, the extent of whose benefaction to the Android community is still not fully understood or appreciated in some quarters.
Change log
v1.0.0 (final ianmacd release) (2019-11-21)
Kernel proclaimed stable. Version number incremented. No code changes since v0.99.49.
v0.99.49 (2019-11-16)
Updated to Linux 4.4.202.
v0.99.48 (2019-11-13)
Updated to Linux 4.4.201.
v0.99.47 (2019-11-11)
Updated to Linux 4.4.200.
v0.99.46 (2019-11-06)
Updated to Linux 4.4.199.
v0.99.45 (2019-10-31)
Updated to Linux 4.4.198.
v0.99.44 (2019-10-19)
Updated to Linux 4.4.197.
v0.99.43 (2019-10-08)
Updated to Linux 4.4.196.
v0.99.42 (2019-10-07)
Updated to Linux 4.4.195.
v0.99.41 (2019-09-22)
Updated to Linux 4.4.194.
v0.99.40 (2019-09-16)
Updated to Linux 4.4.193.
v0.99.39 (2019-09-11)
Updated to Linux 4.4.192.
Fixes unavailability of external SD card in Modesty 0.99.38.
v0.99.38 (2019-09-08) Release withdrawn (External SD card unavailable)
Updated to Linux 4.4.191.
v0.99.37 (2019-08-26)
Updated to Linux 4.4.190.
v0.99.36 (2019-08-12)
Updated to Linux 4.4.189.
v0.99.35 (2019-08-07)
Updated to Linux 4.4.188.
v0.99.34 (2019-08-05)
Updated to Linux 4.4.187.
v0.99.33 (2019-07-23)
Updated to Linux 4.4.186.
v0.99.32 (2019-07-12)
Updated to Linux 4.4.185.
v0.99.31 (2019-06-28)
Updated to Linux 4.4.184.
v0.99.30 (2019-06-22)
Updated to Linux 4.4.183.
v0.99.29 (2019-06-18)
Updated to Linux 4.4.182.
v0.99.28 (2019-06-12)
Updated to Linux 4.4.181.
v0.99.27 (2019-05-17)
Updated to Linux 4.4.180.
v0.99.26 (2019-04-28)
Updated to Linux 4.4.179.
v0.99.25 (2019-04-07)
Updated to Linux 4.4.178.
v0.99.24 (2019-03-26)
Updated to Linux 4.4.177.
Build only the latest revision of the DTB.
v0.99.23 (2019-03-02)
Fixed bug, introduced in v0.99.11, that caused input from Bluetooth HID devices, such as keyboards, mice and gamepads to be ignored.
v0.99.22 (2019-02-23)
Updated to Linux 4.4.176.
v0.99.21 (2019-02-20)
Updated to Linux 4.4.175.
v0.99.20 (2019-02-11)
Updated to Linux 4.4.174.
v0.99.19 (2019-02-08)
Updated to Linux 4.4.173.
v0.99.18 (2019-01-26)
Updated to Linux 4.4.172.
v0.99.17 (2019-01-17)
Updated to Linux 4.4.171.
v0.99.16 (2019-01-13)
Updated to Linux 4.4.170.
v0.99.15 (2018-12-30)
Rebased on ARK4 kernel source code and boot images.
v0.99.14 (2018-12-23)
Updated to Linux 4.4.169.
Merged four more UPSTREAM commits from android-4.4 kernel branch.
v0.99.13 (2018-12-13)
Updated to Linux 4.4.167.
Merged selected BACKPORT and UPSTREAM commits from android-4.4 kernel branch.
v0.99.12 (2018-12-05)
Updated to Linux 4.4.166.
Realtek USB Ethernet driver upgraded from v2.08.0 to v2.10.00.
v0.99.11 (2018-11-29)
Updated to Linux 4.4.165.
KCAL advanced colour/gamma control driver optimisation.
Added @flar2's sound control driver for controlling headphone and microphone gain. (Configure with MTweaks or EX Kernel Manager).
v0.99.10 (2018-11-21)
Updated to Linux 4.4.164.
Added KCAL advanced colour/gamma control driver. (Configure with MTweaks or EX Kernel Manager).
Lots of tracing and debug logging disabled, further reducing kernel size.
CONFIG_DISPLAY_USE_INFO
CONFIG_SEC_DISPLAYPORT_LOGGER
CONFIG_FB_MSM_MDSS_XLOG_DEBUG
CONFIG_SEC_FILE_LEAK_DEBUG
CONFIG_SEC_DEBUG_USER
CONFIG_SEC_DEBUG_SUMMARY
CONFIG_SCSI_UFSHCD_CMD_LOGGING
CONFIG_MSM_SMEM_LOGGING
CONFIG_PROFILING
CONFIG_DEBUG_INFO
CONFIG_SCHED_DEBUG
CONFIG_SEC_PM_DEBUG
CONFIG_CORESIGHT
Built as monolithic kernel (i.e. without CONFIG_MODULES).
Built as relocatable code (CONFIG_RELOCATABLE_KERNEL).
Assembler symbols stripped (CONFIG_STRIP_ASM_SYMS set).
Embedded kernel config (reported via /proc/config.gz) now falsely reports stock settings to allow disabling of superfluous kernel features that otherwise cause grave Android System warning on boot.
v0.99.9 (2018-11-13)
Rebased on ARJ3 kernel source code and boot images.
v0.99.8 (2018-11-10)
Updated to Linux 4.4.163.
More than 100 fixes applied from upstream AOSP android-4.4 and android 4.4-o branches.
Lots of tracing and debug logging disabled:
CONFIG_IPC_LOGGING (debug logging for IPC drivers)
CONFIG_QCOM_RTB (register tracing)
CONFIG_TRACER_PKT (for tracing IPC protocols)
CONFIG_FTRACE (kernel tracing infrastructure)
CONFIG_CPU_FREQ_SWITCH_PROFILER (CPU frequency switch profiler)
CONFIG_TRACING_EVENTS_GPIO (traces GPIO subsystem)
Fixes to allow kernel to build when above logging and tracing options are disabled.
v0.99.7 (2018-10-30)
Rebased on ARH5 kernel source code.
Reworked the v4l2 fix that restores liboemcrypto-dependent apps to working state.
v0.99.6 (2018-10-28)
v4l2 fixes to restore liboemcrypto-dependent apps to working state.
v0.99.5 (2018-10-21)
Updated to Linux 4.4.162.
v0.99.4 (2018-10-19)
Initial public release, based on Linux 4.4.161.
v0.99.3
Internal build, based on Linux 4.4.160.
v0.99.2
Internal build, based on Linux 4.4.159.
v0.99.1
Initial internal build, based on Linux 4.4.78.
It begins! Awesome to finally see a custom kernel for the Tab S4.
I want to test for you once I can get root back
ianmacd said:
Change log
v0.99.4 (2018-10-19)
Initial public release, based on Linux 4.4.161. Caution: This kernel remains completely untested on the T835.
v0.99.3
Internal build, based on Linux 4.4.160.
v0.99.2
Internal build, based on Linux 4.4.159.
v0.99.1
Initial internal build, based on Linux 4.4.78.
Click to expand...
Click to collapse
Flashed on T835 device doesnt even get past the Boot (custom device) screen is there a way to get logs without using a computer?
Sent from my Samsung SM-G950F using XDA Labs
dr460nf1r3 said:
Flashed on T835 device doesnt even get past the Boot (custom device) screen is there a way to get logs without using a computer?
Click to expand...
Click to collapse
I'll look into it this evening. I'm just about to get off a plane.
Were there any errors when installing? Was your device properly detected as a T835?
Sent from my SM-G965F using XDA Labs
ianmacd said:
I'll look into it this evening. I'm just about to get off a plane.
Were there any errors when installing? Was your device properly detected as a T835?
Click to expand...
Click to collapse
Installing just fine, correctly detected as well.
Sent from my Samsung SM-G950F using XDA Labs
dr460nf1r3 said:
Installing just fine, correctly detected as well.
Click to expand...
Click to collapse
I've gone through the ramdisk of the T835's boot image with a fine-tooth comb and can find nothing untoward. I also verified that I properly removed the dm-verity flag from the T835's device tree.
There are actually very few source code differences between the T830 and T835. Both can be built from a single tree. The only differences lie in the kernel config file and the device tree, but I am building with the default T835 configuration, and with the proper device tree for that device.
Let's try at least ruling out my installer code. Please image-flash this new boot image[/i] to your device and tell me if it boot-loops. If it does, my installer isn't the problem, because it's only used for a ZIP flash. I've already checked the installer code and can't see any bugs, so I don't think the issue lies there.
Can you also please tell me which version of the firmware your device is running? Possibly there's an issue there, too. Samsung has so far released the source to the ARGH kernel only. This seems to work fine on my ARH5 firmware, but it's uncertain whether it would still work on something based on ARI*, and I've seen that a couple of countries do now have ARI firmware available. Mind you, even if it wasn't compatible, it should still get as far as booting.
Anyway, please test that boot image and let me know your firmware version.
While I soldier on with the issues afflicting the T835 build, can anyone else verify the T830 build as working for them?
Don't be shy; I'm running it on my own device, so I'm certain that build boots.
ianmacd said:
While I soldier on with the issues afflicting the T835 build, can anyone else verify the T830 build as working for them?
Don't be shy; I'm running it on my own device, so I'm certain that build boots.
Click to expand...
Click to collapse
Sorry for the noob question if i flash this kernal on my SM-T835 will i lose DEX ? Sorry i'm not quite understanding what KERNEL does ? Thanks in advance!
N1NJATH3ORY said:
Sorry for the noob question if i flash this kernal on my SM-T835 will i lose DEX ? Sorry i'm not quite understanding what KERNEL does?
Click to expand...
Click to collapse
When the kernel is working as intended, you won't lose DeX, but it currently isn't even booting on the T835.
Only those who are able to assist in debugging the current boot failure should install the T835 build at this time.
The T830 build, on the other hand, is rock solid for me, and I encourage anyone who is capable of recovering from an unexpected bootloop to try it out.
Version 0.99.5 released.
This release updates the kernel to the latest upstream Linux.
T830 owners, install at will. T835 owners, beware: The previous release has been reported unbootable on this model, and this release is likely to be similarly afflicted. Investigations are ongoing. Until this issue is resolved, the whole project has been downgraded to alpha status.
Change log
Updated to Linux 4.4.162. Caution: This release is likely to cause a bootloop on the T835.
ianmacd said:
I've gone through the ramdisk of the T835's boot image with a fine-tooth comb and can find nothing untoward. I also verified that I properly removed the dm-verity flag from the T835's device tree.
There are actually very few source code differences between the T830 and T835. Both can be built from a single tree. The only differences lie in the kernel config file and the device tree, but I am building with the default T835 configuration, and with the proper device tree for that device.
Let's try at least ruling out my installer code. Please image-flash this new boot image[/i] to your device and tell me if it boot-loops. If it does, my installer isn't the problem, because it's only used for a ZIP flash. I've already checked the installer code and can't see any bugs, so I don't think the issue lies there.
Can you also please tell me which version of the firmware your device is running? Possibly there's an issue there, too. Samsung has so far released the source to the ARGH kernel only. This seems to work fine on my ARH5 firmware, but it's uncertain whether it would still work on something based on ARI*, and I've seen that a couple of countries do now have ARI firmware available. Mind you, even if it wasn't compatible, it should still get as far as booting.
Anyway, please test that boot image and let me know your firmware version.
Click to expand...
Click to collapse
Firmware Version ist arh5 and after flashing your img the device still constantly reboots on the start screen and doesnt even get to the boot Screen
Sent from my Samsung SM-G950F using XDA Labs
dr460nf1r3 said:
Firmware Version ist arh5 and after flashing your img the device still constantly reboots on the start screen and doesnt even get to the boot Screen
Click to expand...
Click to collapse
Thanks. That absolves the installer of any wrongdoing, at least.
Something is fundamentally wrong with the kernel for the T835.
The boot image is taken from stock firmware, and modified just enough to allow a custom kernel to boot. I very much doubt the problem lies there. A virtually identical image works for the T830.
The kernel config used is the one supplied by Samsung. The only modifications made to it are the same ones I made to the T830's.
I think my next step will be to produce a kernel built without downstreaming the 4.4.y Linux branch, so back to 4.4.78. If that works, it will indicate that an error affecting only the T835 was introduced during all of my merging of the upstream kernel.
I'll post again when I've built the kernel, which won't be for a few hours, as I'm on holiday at the moment.
Sent from my SM-G965F using XDA Labs
ianmacd said:
I think my next step will be to produce a kernel built without downstreaming the 4.4.y Linux branch, so back to 4.4.78. If that works, it will indicate that an error affecting only the T835 was introduced during all of my merging of the upstream kernel.
Click to expand...
Click to collapse
OK, @dr460nf1r3, please try this new T835 build.
This is rewound to 4.4.78, with just a few extra cherry-picked commits to enable it to build cleanly and boot without triggering dm-verity.
In other words, this kernel should be 99% identical to the one that shipped with the machine. This assumes that the source as supplied by Samsung was actually used to build the stock kernel.. They have been known to publish sources that don't match what's on the machine.
ianmacd said:
OK, @dr460nf1r3, please try this new T835 build.
This is rewound to 4.4.78, with just a few extra cherry-picked commits to enable it to build cleanly and boot without triggering dm-verity.
In other words, this kernel should be 99% identical to the one that shipped with the machine. This assumes that the source as supplied by Samsung was actually used to build the stock kernel.. They have been known to publish sources that don't match what's on the machine.
Click to expand...
Click to collapse
Thanks, flashing now will report back in a few minutes
Sent from my Samsung SM-G950F using XDA Labs
---------- Post added at 05:44 PM ---------- Previous post was at 05:17 PM ----------
ianmacd said:
OK, @dr460nf1r3, please try this new T835 build.
This is rewound to 4.4.78, with just a few extra cherry-picked commits to enable it to build cleanly and boot without triggering dm-verity.
In other words, this kernel should be 99% identical to the one that shipped with the machine. This assumes that the source as supplied by Samsung was actually used to build the stock kernel.. They have been known to publish sources that don't match what's on the machine.
Click to expand...
Click to collapse
Did not work still the same issue.. flashed via twrp to boot partition. Noob question, the boot backup i got is 64mb while your kernel hardly has 25.. whats going on here?
Sent from my Samsung SM-G950F using XDA Labs
dr460nf1r3 said:
Did not work still the same issue.. flashed via twrp to boot partition.
Click to expand...
Click to collapse
Well, that's disappointing. I was hoping that it was my screw-up, rather than Samsung's, but at this point almost everything I've done has been backed out and it still won't boot.
Noob question, the boot backup i got is 64mb while your kernel hardly has 25.. whats going on here?
Click to expand...
Click to collapse
Good question.
Your back-up is of the entire partition, including the area with no data on it, so you're getting a file the same size as the partition itself. My boot image contains just the data segment, so it's smaller.
If you pull the stock boot image from the AP file of Samsung's firmware, you'll see that it's a very similar size to mine (slightly smaller, actually):
Code:
$ unzip -p T835XXU1ARH5_T835OXM1ARH5_PHN.zip AP_T835XXU1ARH5_CL14008523_QB19263559_REV00_user_low_ship_MULTI_CERT_meta.tar.md5| tar xf - -O boot.img.\*lz4 | lz4 -dc > boot.img
$ ls -l boot.img
-rw-rw-r--. 1 ianmacd ianmacd 23593232 Oct 21 22:01 boot.img
$ file boot.img
boot.img: Android bootimg, kernel (0x8000), ramdisk (0x2000000), page size: 4096, cmdline (console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_le)
So, what now?
I'll see which other minor changes I can back out, in an effort to arrive at a kernel built from source that is as close to stock as possible. If you're wondering Why doesn't he just build from pristine sources?, the answer is: Because Samsung's source code won't even build out of the box. Many of the kernel header files are simply not in the expected locations. Alas, this is a fairly common problem with Samsung's kernel source code releases.
I suspect the solution to this problem may actually lie in changes that have yet to be made, rather than changes made that need to be reverted. In other words, the T835 may require some kernel modifications or configuration that the T830 doesn't. Theoretically, a kernel compiled from Samsung's pristine sources should just work, but that's starting to look unlikely now.
I'm hoping that I can enable/disable a few further options in the kernel config, rebuild and produce a kernel that works for you. If, however, the problem is that the source itself is faulty, we may have to wait for a future release by Samsung to give us something that compiles into a working kernel.
But I don't intend to throw in the towel on the T835 just yet. There are still a few more things we can try.
ianmacd said:
Well, that's disappointing. I was hoping that it was my screw-up, rather than Samsung's, but at this point almost everything I've done has been backed out and it still won't boot.
Good question.
Your back-up is of the entire partition, including the area with no data on it, so you're getting a file the same size as the partition itself. My boot image contains just the data segment, so it's smaller.
If you pull the stock boot image from the AP file of Samsung's firmware, you'll see that it's a very similar size to mine (slightly smaller, actually):
So, what now?
I'll see which other minor changes I can back out, in an effort to arrive at a kernel built from source that is as close to stock as possible. If you're wondering Why doesn't he just build from pristine sources?, the answer is: Because Samsung's source code won't even build out of the box. Many of the kernel header files are simply not in the expected locations. Alas, this is a fairly common problem with Samsung's kernel source code releases.
I suspect the solution to this problem may actually lie in changes that have yet to be made, rather than changes made that need to be reverted. In other words, the T835 may require some kernel modifications or configuration that the T830 doesn't. Theoretically, a kernel compiled from Samsung's pristine sources should just work, but that's starting to look unlikely now.
I'm hoping that I can enable/disable a few further options in the kernel config, rebuild and produce a kernel that works for you. If, however, the problem is that the source itself is faulty, we may have to wait for a future release by Samsung to give us something that compiles into a working kernel.
But I don't intend to throw in the towel on the T835 just yet. There are still a few more things we can try.
Click to expand...
Click to collapse
Thanks for explaining everything for me. Id like to help you were i can but i dont have a computer by my hands right now for the next time
Sent from my gts4llte using XDA Labs
dr460nf1r3 said:
Thanks for explaining everything for me. Id like to help you were i can but i dont have a computer by my hands right now for the next time
Click to expand...
Click to collapse
Here's a new build to try. This one reverts the last few changes I originally made to the T835's kernel configuration before building. This is as close to stock as possible, whilst still being able to build.
If this doesn't boot, it pretty much means that Samsung has supplied code for the T835 that simply will not compile into a working kernel. At that point, we'll probably have to wait for updated sources. I already have a request pending with Samsung for the release of the BRI sources.
Just to be clear, the current status quo as I understand it is that the Samsung logo never starts to be written from left to right. You never get past the static screen with the device name and the word Custom. Is that correct?
ianmacd said:
Here's a new build to try. This one reverts the last few changes I originally made to the T835's kernel configuration before building. This is as close to stock as possible, whilst still being able to build.
If this doesn't boot, it pretty much means that Samsung has supplied code for the T835 that simply will not compile into a working kernel. At that point, we'll probably have to wait for updated sources. I already have a request pending with Samsung for the release of the BRI sources.
Just to be clear, the current status quo as I understand it is that the Samsung logo never starts to be written from left to right. You never get past the static screen with the device name and the word Custom. Is that correct?
Click to expand...
Click to collapse
Im sorry to tell you but this doesnt boot either in fact it doesnt even reboot the static screen. Your right about the current status quo sadly.
Sent from my Samsung SM-G950F using XDA Labs