[MOD] Disable system write protection on stock kernel - HTC One SV

This module will disable system write protection on the stock HTC One SV kernel.
To make /system writeable, you must install the module and then remount /system as rw.
For example:
insmod /system/lib/modules/wp_mod.ko
mount -o remount,rw /system
Click to expand...
Click to collapse
You can make an init.d script to load it, or add it to the boot.img. Either way will work, but it's important that this is loaded at boot, as attempting to make changes to /system and then installing this module could corrupt the partition.
This is mainly for devs, who are free to incorporate it into their ROMs.
Unless you are an advanced user, I would wait for it to be included in your favourite ROM.
A credit and a link here so people can thank me in the OP would be much appreciated.
Download:
wp_mod_3.4.10-g6d8dbef.ko
NOTES:
- This is freshly compiled from HTC One (m7) source code for our device.
- Don't say it's not working if you have different kernel name.
- If you want it for your kernel name, give me it and I will make one for you.
Credits: @flar2 for source code
xpirt

Its not tested? Hmm, I am one for testing stuff, but a recommendation would be to test it on your device before presenting it to others and taking the chance of something going wrong for them. Otherwise, just dancing on a thin line.
For example, my Rom port... russellvone knew in advance that I was going to start on it. However, I refused to present it to others until I was confident there would be no harm. Last thing I want is to be responsible for someone else's device because I didn't care to see to them for myself.
Anyways, my point is that I recommend you test this (with responsibility) and then present it to the masses with the updates on what you are aware of in regards to your findings and/or experience.
Maybe it is just me, but that's how I do things.
Not stirring up anything. Just making an opinionated recommendation is all.
--- Happy Hunting!
Sent from my K2_CL using Tapatalk

Hehe I think you are in the wrong place because seems you don't know what is a module.
A module it's very different from a Rom or a kernel. This will not break anything in your phone, it's just a module. If it doesn't work you cannot remove files from system like always, if it works the system is writeable.
How you can see the thread it's in General section, too. If it was in Development section was another thing. I know how to post things, I think I have enough experience on xda.
And of course I test things, but didn't have time to test this, if someone doesn't test it until I have some time I will test it.
Plus I think flar2's module is very useful for people uses stock kernel, if you don't need it just ignore the thread
Oh don't think I'm rude, this is how I speak with all people
xpirt

No worries bro. Just gave my two cents. A means of good practice when generally speaking
Sent from my K2_CL using Tapatalk

Ok. As hTC made some new protections, I didn't want to continue hex-editing as also source code is out, so I compiled from source and I got it working at first! It will be moved to Development Section as soon as mods are free.
So.. updated link on OP! If you people want one for your kernel name, write it here and I will make it for you too.
Enjoy!
xpirt

I just hex edited the kernel version no problem.
Sent from my K2_CL using Tapatalk

Modding.MyMind said:
I just hex edited the kernel version no problem.
Sent from my K2_CL using Tapatalk
Click to expand...
Click to collapse
It works fine? Btw you can post it here if you want so it will be useful for people who have your kernel name.
xpirt

Works fine, but I have no use for it. Just wanted to try it out lol. I'm running on stock boot, stock kernel, etc, etc, but I still have write permission in /system. For example, I can edit the build.prop file right from its location and they stick after reboot. In addition I took the lines from the default.prop file and added them to the build.prop which now allows me to edit the default.prop but I'm still looking at how to keep the changes in the default.prop after reboot. If I can get that, then my accomplishments are complete lol. Anyways, I don't have my pc on me at the moment but I will hopefully upload it soon. May be after the holidays.
Sent from my K2_CL using Tapatalk
---------- Post added at 12:15 PM ---------- Previous post was at 12:12 PM ----------
If someone doesn't want to wait on me, just hex edit the kernel version and it will work . Pretty simple actually.
Sent from my K2_CL using Tapatalk

Exactly but pay attention to don't remove and rewrite the numbers but replace them only
xpirt

Tutorial please
A tutorial would be nice...
My device is still on S-on.. What fastboot commands do I use?
Do I just fastboot this-
insmod /system/lib/modules/wp_mod.ko
mount -o remount,rw /system ???

Hello
HTC OneSV Android: 4.1.2 kernel: 3.4.10-gf43d146
Please send me "wp_mod.ko" kernel module, thank you.

3.4.10-g47d5073 ?
xpirt said:
- If you want it for your kernel name, give me it and I will make one for you.
Click to expand...
Click to collapse
Could You do this for k2ul kernel-3.4.10-g47d5073?
Thank you in advance.

Related

[Q] cook rom with dsixda htc kitchen

i want to cook an own rom with htc kitchen.I tried many times but failed all of these.I based SAGA_MDJs_ViVO_Sense_v.1.2. Those i cooked rom can't flash into my phone.who can help me out
It's be easier to help you if you posted why you can't flash, what errors you get etc
This is not a place to ask questions Thanks!
(mods please move it elsewhere)
ok,i just want to learn and try how to cook a rom.and maybe i can post my rom here someday
i think may the kitchen not support desire syet~ just wait for update
zk7513153 said:
i think may the kitchen not support desire syet~ just wait for update
Click to expand...
Click to collapse
maybe.i had logcat and it said "/system/bin/sh no such dir/file" .also maybe some mistikes with update-script but i don't know how to fix it.
zk7513153 said:
i think may the kitchen not support desire syet~ just wait for update
Click to expand...
Click to collapse
Nor does it support galaxy s abd still there are many features of it you can use. Zipaligning, deodexing etc
Enviado desde mi GT-I9000 usando Tapatalk
zk7513153 said:
i think may the kitchen not support desire syet~ just wait for update
Click to expand...
Click to collapse
this kitchen is supporting the desire s since weeks
i use it to cook saga lbc mod
regards
loveboatcaptain said:
this kitchen is supporting the desire s since weeks
i use it to cook saga lbc mod
regards
Click to expand...
Click to collapse
Could u give me some guide?I want to try add app2sd(with ext partition) base on your rom.because i like a rom with app2sd and i think your rom is a good job.
Thanks very much.
And the update_script maybe have some mistake that I cooked with kitchen.
It abort when I flash it,so I make logcat with adb.logcat show the error is /system/bin/sh there is no such dir or file.I found a file named sh0 in /system/bin/ when I check the rom.zip.I don't know these reason
monswag said:
Could u give me some guide?I want to try add app2sd(with ext partition) base on your rom.because i like a rom with app2sd and i think your rom is a good job.
Thanks very much.
And the update_script maybe have some mistake that I cooked with kitchen.
It abort when I flash it,so I make logcat with adb.logcat show the error is /system/bin/sh there is no such dir or file.I found a file named sh0 in /system/bin/ when I check the rom.zip.I don't know these reason
Click to expand...
Click to collapse
sorry i can´t help with apps2sd cause i don´t see the need for it on this device for now. i have over 500MB free Memory. if i need that space completly i will have a look on apps2sd
wich version of this kitchen are you using, which settings do you made? some more details would be good.
i only can say that my scripts are working very wel since 1.6.0 of this kitchen i think. before that i wrote them myself.
regards
LBC, I'm trying to cook my own ROM and so far I have been successful and I have a fully bootable working ROM but when I tried to add full SENSE 3.0 Packages (locksceen, weather, SMS, Taskmanager) to the ROM through the kitchen, I get a bootable ROM but no GSM network and force close on the com.htc.phone service, but when i flash the SENSE 3.0 package "update.zip" separately it works ok and no issues at all. Can you assist please?!
loveboatcaptain said:
sorry i can´t help with apps2sd cause i don´t see the need for it on this device for now. i have over 500MB free Memory. if i need that space completly i will have a look on apps2sd
wich version of this kitchen are you using, which settings do you made? some more details would be good.
i only can say that my scripts are working very wel since 1.6.0 of this kitchen i think. before that i wrote them myself.
regards
Click to expand...
Click to collapse
Thank u. I will try to make a rom without app2sd whether I can flash it or not.
I chose 1. to unpack the rom.then I use 2. to update the su.I use advance options 17 to add app2sd.then I chose 99. to build the rom.
I would also like to see how this works and then maybe we could have a stock WWE pre rooted Rom added to the listings
Sent from my HTC Desire S using XDA App
monswag said:
And the update_script maybe have some mistake that I cooked with kitchen.
Click to expand...
Click to collapse
You need to go to the advanced option menu and use option 23 - "Convert update-script or updater-script" I think, from the description of your error.
The DS requires an updateR-script, but you must make any changes, mods etc before you change this script because the current build can't work with updateR scripts.
All these answers - and many more! - are contained in the thread for dsixda's kitchen.
Peace
chris5s said:
You need to go to the advanced option menu and use option 23 - "Convert update-script or updater-script" I think, from the description of your error.
The DS requires an updateR-script, but you must make any changes, mods etc before you change this script because the current build can't work with updateR scripts.
thx. now i had made a rooted stock rom.next step i want to make it stable, fast, small,and looks nice base on other developers' work,maybe without sense
Click to expand...
Click to collapse

[Ubuntu on EMMC] Automatic Kernel Updater

This script, when called, will download lilstevie's kernel source, build the default configuration, and flash it.
Thanks to lilstevie for the whole Ubuntu on emmc.
Let me know how it works
UPDATES:
12.4.2011
-Updated to ver. 4
-Added update checking feature...
11.30.2011
-Update to ver. 1.0.1
-Fixed Grammatical Error
-Added git dependency in apt-get line.
11.28.2011
-Initial release
link:
austinconn(dot)us(dot)to/repository/kernelupdater.sh
(Reason I have to post link like this is because I haven't posted enough. Will change when able...)
atc3030
Thanks, makes life a little easier.
Actually, i have some commands which come in really handy when you use ubuntu on a tab.
sudo apt-get remove appmenu-gtk indicator-appmenu overlay-scrollbar liboverlay-scrollbar-0.1-0
This will remove the global menus and that annoying scrollbar so you have to use your mouse/trackpad less often.
*edit: Hard reboot right after the install-part.
*edit2 git was missing on my ubuntu-install. I'd suggest you to add it to your apt-get line.
looked at the script, nice
Although not that i think you care but you might:
echo "If all was done correctly, your kernel shoudl be upto date"
Click to expand...
Click to collapse
should
up to *two words*
Gonna update the script. what else do you guys want to see in it??? let me know what else would be useful and ill see about adding them
atc3030 said:
Gonna update the script. what else do you guys want to see in it??? let me know what else would be useful and ill see about adding them
Click to expand...
Click to collapse
Great work! It would be good if it could build the CIFS, TUN and NFS modules
mitchelln said:
Great work! It would be good if it could build the CIFS, TUN and NFS modules
Click to expand...
Click to collapse
If you can get me like a guide or something to do that, i would love to. im working on something else right now, but should be able to do that really quick. next update will have an update feature to automatically check for updates.
i know this is a noob question (i think you wil get more off them since the one-click installer for windows)
- how to correctly use this script
- will this affect the working off my dualboot configuration (for one click installer)
very excited for this. is there a guide for this script or can we just execute?
download the script, right click on the file and mark it as an executable under properties.
open a terminal, ch to the folder you´ve downloaded the script and run
$sudo ./kernelupdater.sh
I would love to get Linux Mint (any flavor, but considering our hardware, prob LMDE or LXDE is most realistic, although IDK if any debian flav is compiled for ARM?) built into a flashable image. Ubuntu is wasted on a machine with limited RAM and a non-standard file system.
I am not a developer, but I certainly would help as much as possible any person who would like to get moving and use our hardware to its fullest extent!
Like I said, any interested parties, please PM me.
Sent from my Transformer TF101 using xda premium
atc3030 said:
This script, when called, will download lilstevie's kernel source, build the default configuration, and flash it.
Thanks to lilstevie for the whole Ubuntu on emmc.
Let me know how it works
UPDATES:
12.4.2011
-Updated to ver. 4
-Added update checking feature...
link:
austinconn(dot)us(dot)to/repository/kernelupdater.sh
(Reason I have to post link like this is because I haven't posted enough. Will change when able...)
atc3030
Click to expand...
Click to collapse
This link yields not (even without the "(dot)" and all I can find on his site is html and a couple android APKs and zips. Can someone please repost the most recent kernel update/build script? Muchos Gracias
If anyone has this script lying around. Please pm me. I must have lost it in a data transfer
Sent from my DROID2 GLOBAL using Tapatalk
Here is a link to the file. I take no credit for the work, just reuploading it since the original version has been missing for a while now.
http://dl.dropbox.com/u/6990784/kernelupdater.sh

[TOOL][ANDROID]Dark_Multitool-CyanogenMod building.kernel developMent.ADB tool..etc..

******* Hi all ********​I have developed this little tool containing a few utilities that should help anyone do a host of stuff like building Cyanogenmod..Compiling kernels..Play with ADB..GIt tools..etc​
DARK_Multitool1.0​
My tool is divided into five Modules(More to come in future if people find it useful)​
Module 1 : CyanogenMod Tools
- Installing the necessary libraries for compiling Cyanogenmod
- Initializing your repository and getting the Cyanogenmod source code
- Getting prebuilt apps/Device proprietary blobs
- Building Cyanogenmod for your device
Module 2 : ADB tools
- Creating logcat to debug your phone
- Installing apps via ADB
- Push/Pull stuff to/from your android device
Module 3 : Kernel tools
-Sony Kernel
Unpack Kernel Source
Create zImage of various devices(any Xperia)
Extract kernel.sin from ftf file
Unpack kernel.sin(to get zImage and ramdisk)
Make dt.img(For Xperia Z1 and Z ultra)
Make kernel.elf or boot.img depending on device
Test your kernel.elf/boot.img without flashing fully(Test run)
-Nexus Kernel
Getting the source code
Checkout the source code
Building zImage
-Samsung kernel
(Is under development as i develop for Xperia devices and not too familiar with samsung atm)
-Download toolchains
-Unpack boot.img to get zImage and Ramdisk
pearl script unpack or umkbootimg unpack
-Unpack or Repack ramdisk
-Build zImage for a generic kernel(Experimental)
-Take kernel log : Thanks @ricky310711 for the commit
Module 4 : Backup TA partition for Sony or EFS partition on samsung
-Backup TA partition for Sony(By dd Method only)
-Backup or restore efs partition for Samsung(tar or dd method)
Module 5 : GIT tools
-Download GIT package on your linux
-Change directory where you want to initialize git
-Git repository setup(New git setup/Changes to old git setup)
-Update your local and remote git repository
-Commit your additions/deletions
-Push/Pull to/from your github repository
-Automatic push commits to your repository(After git setup is done)
-Download any repository using GIT
Download link
Dark_multitool1.0(With Update 1)
Update 2 added...Will upload soon..You can download this and update via tool to the latest version
Its better to download from XDA DevDB. You can either use the link above or click on downloads on top of the thread to download
How to install??
Download the tar.gz file from the link above..Place it in your home directory and run the following command in your terminal
tar -xjvf dark_multitool1.0.gz
How to run it??
cd to the folder dark_multitool1.0 and type ./menu in your terminal and execute
This tool is only for any linux based distro(Ubuntu,fedora etc) atm and i dont know if it will work in cygwin(Tested on Cygwin by kevinrus123 : Some utilities are working)
You can install vitualbox and install ubuntu or any other linux based distro to use the tool if you are running windows
Credits
-xda and its wonderful devs for teaching me everything
-Doomlord for his exceptional threads and tutorials on Xperia devices
-Rickwyatt and Rekoil for Ta partition backup tutorial for Xperia
-Google.com
If i have forgotten anyone then please let me know
Donations
Running a 512 mb laptop with a semi crashed hard disk.....So any kinds of donations are welcome if you like the tool
>Just donate to my email ID : [email protected]
>I am from India..so personal payment wont work
>Select buy me goods/services and it should work
>You can donate via tool as well.....
Sources
My github source : https://github.com/Smk1989/dark_multitool1.0
Mods : Please Move the thread if its in the inappropriate section
Updates
Latest update = Update 1
-I will keep the thread updated with the latest tool and you can also update the tool through the tool itself
FAQs in the second post
Changelogs in the third post
XDA:DevDB Information
[TOOL][ANDROID]Dark_Multitool-CyanogenMod building.kernel developMent.ADB tool..etc.., a Tool/Utility for the Android General
Contributors
Dark Wraith
Version Information
Status: Alpha
Created 2013-12-11
Last Updated 2014-01-03
FAQs
>Why is it giving errors while compiling zImage for Xperia devices????
Answer : You need to add the various makefile and defconfig fixes for the toolchain to work properly
Please refer to this excellent thread by doomlord for various fixes
http://forum.xda-developers.com/showthread.php?t=2447310
>TA partition and EFS partition backup doesn't work properly
Answer : Please remember to specify the memory block correctly. If you still get an error then please tell me the error so that i can check if the error is from the tool's end
>How to add a toolchain????
Answer : Add it under android_toolchains folder in your home directory
Open the tool and navigate to toolchain_selector script under scripts folder
Add the toolchain name and the correct path as given there in the following format
toolchain_name[the number after the last toolchain name]=
toolchain_path[the number after the last toolchain path] =
>How to clean your kernel or Cyanogenmod work directory?
Answer ; Navigate to the kernel or Cyanogenmod work directory and type in Terminal : make clean
I will incorporate this in the next release
>Download toolchains or update tool doesnt work
Answer : make sure you have the git package installed. You can install from the tool itself under GIT tools
>Libraries missing while compiling kernel or cyanogenmod build errors on 64 bit machine??
Answer : Download libraries from cyanogenmod import libraries option( I will incorporate this in the next release) and for 64 bit compile error type : BUILD_HOST_32bit=1(Fixed and added in update 1)
Bugs and Suggestions
Please let me know
Changelogs
Update 2
>Added Xperia J in the build list of the tool
>Added Take kernel log in kernel options..Thanks @ricky310711 for the commit
>Added dry run option for Sony
-Lets you test your kernel.elf/boot.img(In case the kernel doesnt boot up..just restart phone and try again)
Update 1
>Cm-11.0 branch added while initializing repo(thanks mithun shanoj for the commit)
>Added umkbootimg unpack method
>Added import libraries option
>Added BUILD_HOST_32BIT=1 for 64 bit machines
Last one
No one tried??
Sent from my Micromax A110 using xda app-developers app
Maybe I am blind but where do I get the download?
Download Link?
Dude where is the download link???
I had always been waiting for a tool like this one. Great job :good:
---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------
Dovidhalevi said:
Maybe I am blind but where do I get the download?
Click to expand...
Click to collapse
adityak74 said:
Dude where is the download link???
Click to expand...
Click to collapse
To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal
Well well well.:beer: cheers.
Dovidhalevi said:
Maybe I am blind but I'll alwhere do I get the download?
Click to expand...
Click to collapse
rhar**** said:
I had always been waiting for a tool like this one. Great job :good:
---------- Post added at 04:51 PM ---------- Previous post was at 04:50 PM ----------
To download, sync this repository
https://github.com/Smk1989/dark_multitool1.0
Thats it. navigate to the local repository and run run menu from terminal
Click to expand...
Click to collapse
adityak74 said:
Dude where is the download link???
Click to expand...
Click to collapse
Guys see the download tab on top of the thread.. I'll also add a download link if u want
Edit: Added a download link to the post
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Sent from my Nexus 4 using Tapatalk
welcome to the world of kitchen creators goodjob!
Nice job man ?
Sent from my Nexus 7 using Tapatalk
Daniel_GT said:
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Dark Wraith said:
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..
i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Click to expand...
Click to collapse
actually i learnt alot by viewing the content of tools, viewing it in raw format and learning how things work.
it encouaged me to find a way to make a kitchen for windows users and noobs.
so i guess im the perfect example
Daniel_GT said:
I'm sorry @Dark Wraith, but is this not another nail in the coffin that was a developer's community? I'm not cheapening the hard work you've obviously put in creating this tool, it's an achievement for sure but to what end? I know this toolkit argument has been had many times before (and someone has to say it first here), but how does this actually help anyone learn the basics? Xda is full of people who just want the results without the work and surely this only encourages more of the same?
Click to expand...
Click to collapse
You have every right to express your opinion, but that being said, your post makes you sound like a real elitist, one who's upset that his elevated place in the exclusive club is about to be disrupted by those "filthy ruffians" who didn't earn their developer's chops by clawing their way up from the gutter. In my opinion, anything that brings in more developers to the community is a good thing. Sure, there are going to be plenty who use this tool as a shortcut to doing any hard work, but there are going to be those who use it as a starting point to further their knowledge of ROM building and modifying. Everyone needs a place to start, after all, but implying they'll never be "one of the boys" without beating their head bloody against a desk isn't at all helpful. Dark Wraith should be commended for creating a tool that will help bring new blood into the community.
Dark Wraith said:
No need to apologize.You have every right to criticize. In my defense i would say that when i wanted to make a kernel..i used championswimmer's kernel tools..i used dxdia's kitchen to work on Roms but that doesnt mean i took a shortcut..i used a toolkit out there to get started. I still had to learn stuff to make changes to a kernel/Rom and i was intrigued by the idea of how the tool was working. And while studying Dxdia's sources i actually came to know about a lot more than i would have done myself. many people want to know how to build a kernel and then they get discouraged if they feel its tough..yes..there will be people who will use it as a shortcut..but there will also be people who would start kernel building because a tool is out there to help them or atleast get them started.
p.s.Sorry for no punctuation marks..comma doesnt work on my laptop...:silly:
Click to expand...
Click to collapse
That's one side of the argument, if you re-read the first several pages of @championswimmer's kernel kitchen thread you'll be reminded just how strongly some people feel about this... I'm not in either camp by the way.
My point is that xda is not what it was, if we continue to post toolkits here it will only dilute the pool of serious development further. You just have to dive into an official CM Dev thread (N4 is a good example) at any point and browse, say, 25 pages to see exactly what I'm talking about...
For every one person that takes your tool, pulls it to bits to figure out how it works and goes on to do their own original work and contribute back, I feel sure that there'd be many more that just go ahead without any real understanding of what they're doing, expecting you and I to bail them out when it goes wrong... I hope that's overly cynical but, ironically, from evidence I don't think that is.
Your toolkit might have a place, and again all credit to you for putting it together. Personally I believe it's more hand holding (even more so than ROM or kernel kitchen) which ultimately helps no one.
Sent from my Nexus 4 using Tapatalk
hey dude., i have a question
* (my device doesn't support CM) can i use this tool for building CM for my device?
Thanksssss
Good stuff
Sent from my Nexus 5 using Tapatalk
Marsealdelo said:
hey dude., i have a question
* (my device doesn't support CM) can i use this tool for building CM for my device?
Thanksssss
Click to expand...
Click to collapse
no bro..its not about support. Cm11 can run on ur device and you can build for it provided that you have the kernel source of your device available..For officially supported devices you will have the kernel source in cyanogenmod repository. For a device with no kernel source you cannot build cyanogenmod. What you are talking about is cyanogenmod porting to an unsupported device. Take a look around in cyanogenmod's wiki. I might add porting options in the tool in future but atm you can build only for offcially supported devices

[XT1033][Trying]One Sim Working On All Roms [Implementing EPRJ RIL]

Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/showthread.php?t=2496075
Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.
Happened with me on every rom except with Paranoid android and Cm11 for xt1033
So what to do?
In the thread mentioned above are the simple steps for doing it
(Now please read the full thread before reading down)
C. How to change RIL?
Steps:
1. First step is to open the .zip of your custom ROM you want to edit, and search for system/framework/telephony-common.jar
2. Extract it to AndroidMultitool/Files, and after extract is done, delete it from .zip
3. Open Android Multitool, under Decompiling select .jar, then select telephony-common.jar in AndroidMultitool/Files, click "decompile"
4. After you're done, check if there were any errors in the Log, in AndroidMultitool main window
5. Head over to AndroidMultitool/Decompiled_jar/telephony-common/com/android/internal/telephony and look for X3RIL.smali. This is CM's RIL implemented in custom roms, which we dont need anymore, so delete it
6. Now, you need to decide wether to use X3RIL_old.smali, which is RIL from EPRJ CM10.2 built on 20130813, or X3RIL_new.smali which is RIL from EPRJ CM10.2 built on 20131007. I'm using 20131007 atm, and it's working without issues
7. When you've decided, move it back into AndroidMultitool/Decompiled_jar/telephony-common/com/android/internal/telephony and rename it to X3RIL.smali
8. Back in AndroidMultitool, under Compilin, select jar, and for folder select AndroidMultitool/Decompiled_jar/telephony-common, press "compile", and check for errors in Log
9. Output should be classes.dex file under AndroidMultitool/Compiled_jar
10. Open telephony-common.jar in AndroidMultitool/Files with WinRar - you should see META-INF folder, with classes.dex file
11. Delete classes.dex file in WinRAR
12. Move classes.dex file from AndroidMultitool/Compiled_jar to telephony-common.jar opened in WinRAR
13. Paste telephony-common.jar into system/framework inside the custom rom .zip file
14. You now have modified ROM ready to flash on our device!
I wanted pacrom to work and there was no
X3RIL.smali so i used RIL.smali from the cm11 made doubleprank's telephony-common.jar
On decompiling there was also an org folder so i pasted that as well
Done all the steps and i got a phone fc
Now what should i do ahead
Anyway i have attached all the telephony.jars of all roms i have for testing
atb !!
@dhacker @Doublepranks
Sent from my MotoG using Tapatalk
What exactly do you want? I mean if PACROM is all you want i will be more than glad to build it for you with the minimal hassle of installing over the en.GB firmware.
not that
Doublepranks said:
What exactly do you want? I mean if PACROM is all you want i will be more than glad to build it for you with the minimal hassle of installing over the en.GB firmware.
Click to expand...
Click to collapse
pacrom was just an example
I was just looking what else could be done instead of building?(because there are so may roms) but i sort of gave up and will build now if i figure it out
rr46000 said:
pacrom was just an example
I was just looking what else could be done instead of building?(because there are so may roms) but i sort of gave up and will build now if i figure it out
Click to expand...
Click to collapse
Take a look at sources on my thread, you'll get exactly what you need.
Commit MessagePermalink
p880: Solve IMEI and mobile data problems. Implement baseband recovery.
I don't like the old RILJ, at all. It is unstable and contains just the
necessary code to make RIL to work.
In the old one, there wasn't any baseband recovery management and no quirks
at all.
EternityProject's version instead, contains baseband recovery, that solves
the ugly and bad problem that happens when the radio goes to UNAVAILABLE
state by restarting it completely, avoiding to lose calls and SMS'es.
Also, it contains rawip insmod/rmmod that, on some modern kernels, like
3.4.37 by EternityProject, isn't working like expected.
It also has a better and proper implementation of
RIL_UNSOL_LGE_SELECTED_SPEECH_CODEC management. The reply has to be
an integer value, so that lge-ril.so will handle that correctly.
Moreover, RIL_UNSOL_LGE_PBREADY was not implemented at all and it was
needed to tell the radio to go into AT READY state.
The reason why we need this is because this will actually allow us to
use modern kernels and to (in future) probably get rid of some proprietary
libraries to switch, instead, to opensource code.
Click to expand...
Click to collapse
That's probably a very good reason to marge this into CM, i wonder why it never happened.
Doublepranks said:
Take a look at sources on my thread, you'll get exactly what you need.
Click to expand...
Click to collapse
check ur pm
Awesome!
rr46000 said:
Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/showthread.php?t=2496075
Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.
Happened with me on every rom except with Paranoid android and Cm11 for xt1033
Click to expand...
Click to collapse
Awesome! LOVE U BRO! YOU RESPONDED VERY QUICKLY!!! I'M REAL HAPPY!:fingers-crossed::fingers-crossed::fingers-crossed::fingers-crossed::highfive::highfive::highfive::laugh::laugh::laugh::laugh:
---------- Post added at 10:35 AM ---------- Previous post was at 10:29 AM ----------
rr46000 said:
Now what should i do ahead
Anyway i have attached all the telephony.jars of all roms i have for testing
Click to expand...
Click to collapse
Bro, I ques, the telephony.jar of pac rom that you attached, is fully gone through all the processes that u mentioned here????
Answer me cause I don't have patience and I know you're online now!
Whoa!
[email protected] said:
Awesome! LOVE U BRO! YOU RESPONDED VERY QUICKLY!!! I'M REAL HAPPY!:fingers-crossed::fingers-crossed::fingers-crossed::fingers-crossed::highfive::highfive::highfive::laugh::laugh::laugh::laugh:
---------- Post added at 10:35 AM ---------- Previous post was at 10:29 AM ----------
Bro, I ques, the telephony.jar of pac rom that you attached, is fully gone through all the processes that u mentioned here????
Answer me cause I don't have patience and I know you're online now!
Click to expand...
Click to collapse
Bro chill out!
See the heading it is saying trying
The attached jars are the original ones(not edited)
Currently the procedure is not working
I thought of sharing it so the people with knowledge in thus could discuss then we could finally make sim available
But that didn't work out as no one know what to do ahead in this procedure
The only solution now is to build the rom with xt1033 which i am trying ans as i earlier told you if i figure it out ,i will share it
Doesn't work
rr46000 said:
Was looking around how to make atleast one sim working on all roms and then i saw this thread
http://forum.xda-developers.com/showthread.php?t=2496075
Turns out the problem he mentioned was the same as every rom(except 2 made for xt1033) on xt1033
1.Rom taking time to set up network
2.Not able to receive call even when the ring is going.
Click to expand...
Click to collapse
Doesn't work on PACman ROM. Neither on others. CM AND PA Both already have it working.
I'm really disappointed today as my excitement is totally shattered.
---------- Post added at 11:00 AM ---------- Previous post was at 10:57 AM ----------
rr46000 said:
Bro chill out!
See the heading it is saying trying
The attached jars are the original ones(not edited)
Currently the procedure is not working
I thought of sharing it so the people with knowledge in thus could discuss then we could finally make sim available
But that didn't work out as no one know what to do ahead in this procedure
The only solution now is to build the rom with xt1033 which i am trying ans as i earlier told you if i figure it out ,i will share it
Click to expand...
Click to collapse
Alright brother!
ALL THE BEST! EVEN I'M WORKING OVER PACman rom. I'm new to develop aosp based roms. Iused todevelop samsung galaxy y stock roms as it only had cm7.2 which was damn old. I'll have to learn a lot.
Oic
[email protected] said:
Doesn't work on PACman ROM. Neither on others. CM AND PA Both already have it working.
I'm really disappointed today as my excitement is totally shattered.
---------- Post added at 11:00 AM ---------- Previous post was at 10:57 AM ----------
Alright brother!
ALL THE BEST! EVEN I'M WORKING OVER PACman rom. I'm new to develop aosp based roms. Iused todevelop samsung galaxy y stock roms as it only had cm7.2 which was damn old. I'll have to learn a lot.
Click to expand...
Click to collapse
lets divide our work
I'll work on mokee open source and u on pac
fine?
Lets see.
rr46000 said:
lets divide our work
I'll work on mokee open source and u on pac
fine?
Click to expand...
Click to collapse
I've recently started ****STUDYING**** on how to develop a PAC ROM. I wrote before that I had only worked on Samsung official ROM modding and stuff. But sounds a good idea. We'll double team this PAC ROM. If doublepranks could help us in this then it would be better. Give me 2 days time or you yourself can help me out on how to start up with this stuff.
It would be better if you could help me in somewhat teaching me this stuff. I've already read some stuff on PAC's official website.
E-Mail me at my username - (Check my profile name)....
Rgds
Yash
By the way, what's mokee? I'm a fast learner especially in dev stuff. I'll surely catch-up with you.It would be good if you could help me out.
Lets open a DEV-DB page on this.:highfive:
bro cybojenix had made a patch for cm11 in moto e development , using it he enabled single sim working in dual sim mobile
have a look at this thread http://forum.xda-developers.com/showpost.php?p=53747040&postcount=3

[DEV] Anykernel installer on the Tab3

Hey guys, I have been working on this for quite some time now, and it finally has reached a working state :victory:
First of all, "Anykernel installer", what does this mean?
Well, simply put: It allows you to install (almost) every kernel on every ROM, regardless of the used ramdisk.
Now, for those wanting some more detail on this:
Anykernel has been developed by Koush quite some time ago, and since I know about it, I personally am a huge fan of it.
What it does, is it dumps the currently installed boot image to a temporary file and unpacks it into the ramdisk and the zImage (the kernel). It then replaces the zImage with the new one (the one included in the zip) and finally repacks the boot image with the old ramdisk and new kernel. The new boot image is then being flashed onto the boot partition and modules are being copied to the system partition like any other kernel installer.
BUT, on our device (even worse on stock 4.4) it's not that easy, as we also need to modify the ramdisk when replacing the zImage (in KK we also need to change the modules inside the ramdisk). Therefore I wrote a script that is being executed after unpacking the boot image to do exactly that.
This way, you can change anything inside the ramdisk "on the go" (for example via sed). When everything is done to the ramdisk, the ramdisk is then being repacked and the normal boot image repacking takes place.
I am using the Anykernel installer on my 4x HD as well, which makes it possible to flash one kernel zip on stock, 4.1, 4.2, 4.3 and 4.4 based ROMs. All minor changes to the ramdisk can then be done using the ramdisk-editing-script.
What does this mean for kernel devs?
Way less work!
You can let the installer do all the repacking work for you, just throw the zImage and modules into the zip and you're good to go
If you're interested, I can provide you with all the scripts I am using to build the kernel and then to create the anykernel installer (all the contents are being zipped and signed automatically via script)
I suppose you want to examine the installer yourself, right? I have added it as an attachment including a 4.4.2 kernel for the T210.
For GPL reasons, THIS is the used source
Special thanks go to @gr8nole and @moonbutt74 for their testing
This zip is currently made for the T210(R), but can be used on any Tab3 variant pretty easily with just a few modifications.
I have shared this so it can be used by anyone who wants to, no need to ask for permission. All I am asking is for you to give proper credit.
If you have any questions regarding Anykernel, feel free to ask.
@kernel devs, in case you need some help, don't hesitate to contact me
Disclaimer: I cannot be held responsible for any possible damage to your device caused by this project. Whatever you do, do it on your own risk.
Due to the fact that I got asked to share my script for packing the anykernel zip, I decided to push all needed files to my github.
You will find some folders there withh scripts for all kinds of stuff, but we only need two folers: kernel and anykernel. The kernel foler contains the script to compile the kernel, and the anykernel folder contains all files needed to create a flashable anykernel zip, including the updater script, scripts to manipulate the ramdisk while flashing,...
The kernel script automatically executes the anykernel script, so all you have to do (once you've set everything up of course) is execute one command and you'll get a flashable anykernel zip.
I guess I don't have to explain how to edit the scripts so they match your setup/system, but in case you have questions, just ask
Should also check any kernel 2.0 by osmosis in the gnex community, such a beautiful thing , o and I'm bout to install this brb wit info
Sent from my SM-T210 using XDA Free mobile app
---------- Post added at 07:16 PM ---------- Previous post was at 07:08 PM ----------
Lost boot animation, b back in a couple hours with more
Sent from my SM-T210 using XDA Free mobile app
Thanks for your great job werewolf, apparently its core is well balanced in terms of performance, the problem is I have no boot animation.
Sik-1 said:
Should also check any kernel 2.0 by osmosis in the gnex community, such a beautiful thing , o and I'm bout to install this brb wit info
Sent from my SM-T210 using XDA Free mobile app
---------- Post added at 07:16 PM ---------- Previous post was at 07:08 PM ----------
Lost boot animation, b back in a couple hours with more
Sent from my SM-T210 using XDA Free mobile app
Click to expand...
Click to collapse
Andromeda 90 said:
Thanks for your great job werewolf, apparently its core is well balanced in terms of performance, the problem is I have no boot animation.
Click to expand...
Click to collapse
Could you guys please grab me some logs? (both logcat and kmsg)
laufersteppenwolf said:
Could you guys please grab me some logs? (both logcat and kmsg)
Click to expand...
Click to collapse
Sorry, I can not send any records from your core for now since I'm not in a ROM with KitKat, and jelly bean does not work.
Andromeda 90 said:
Sorry, I can not send any records from your core for now since I'm not in a ROM with KitKat, and jelly bean does not work.
Click to expand...
Click to collapse
It's all right, I fixed it, new kernel is uploaded in the t210 CM11 thread
laufersteppenwolf said:
It's all right, I fixed it, new kernel is uploaded in the t210 CM11 thread
Click to expand...
Click to collapse
Excellent werewolf, I immediately try your kernel.
Alright guys, as I have been asked to share the anykernel build script, I have added it to my 2nd post

Categories

Resources