Can I prevent the levitator exploit on my Defy with CM9? - Defy Q&A, Help & Troubleshooting

The xray app (http://www.xray.io/) claims that the Levitator exploit works on my defy with CM9. Is there a way to change that?

TheJH said:
The xray app (http://www.xray.io/) claims that the Levitator exploit works on my defy with CM9. Is there a way to change that?
Click to expand...
Click to collapse
Idiot me figured I'd just put
Code:
chmod o-rw /dev/pvrsrvkm
into an init script... sadly, that ****s up the whole system. So, can I somehow update my kernel to one from android >=2.3.6 or do we have to figure out a way to patch the kernel on the fly?

Phew. Took me two days of work, but I fixed the vuln. Here are instructions on how to install the patch:
https://github.com/thejh/dislevitate/blob/master/INSTALLING

All posts about this topic should go to http://forum.xda-developers.com/showthread.php?p=29323669#post29323669 now.
@Mod: Could you please close this thread?

Related

[APP] Milestone - Overclock (requires root)

Hi all,
I realize this is a post about a Motorola phone but please bear with me.
As you might know, the Milestone firmware is firmly locked, unlike its cousin Droid. Among many things, this forbids overclocking because we can't change the kernel and unlock new frequencies.
However I developed a solution that allows overclocking by changing key structures directly in the kernel memory in runtime. All you need is a rooted phone; no flashing involved. For this to work, the module must know two memory addresses that are specific to each kernel. Fortunately, Motorola appears to have reused its kernel on most 2.1 firmwares, and I've yet to come across a firmware where it doesn't work by default. Confirmed working are Central Europe, Telus and Brazilian firmwares. Testers are welcome to give it a try.
Now for the relevant part for XDA: in theory this can be applied to any kernel on any other phone. You may say it's unneeded because you can already overclock; but you must flash a specific kernel to get a particular speed. It would be much better to be able to set any maximum frequency/voltage on the fly without flashing or rebooting. For instance, you could overclock to 1.0 GHz before a browsing or gaming session and then return to a lower frequency like 600 MHz, though still overcloked, for battery savings and safety. It's up to you.
Milestone users can try it out now:
http://code.google.com/p/milestone-overclock/
For the rest of you, what do you think?
sounds fantastic, I'd love to check it out but for the life of me I can't find the page.
If you want to pm it to me, I'll post it.
Nice. Telus Milestone User here. Would love to learn how to do this for mine.
Here is the project link:
http://code.google.com/p/milestone-overclock/
found it. looks like a fantastic idea.
How can we help get the addresses?
awesome .....wht there is no milestone/droid section here is beyond me ....wtf
Because it was decreed months ago by someone and no one seems to like changing their mind once they make a decision in this day and age.....
but it's need to root, could you fix it?
stevecai said:
but it's need to root, could you fix it?
Click to expand...
Click to collapse
what's the problem with rooting the milestone? There's plenty of solutions for that. Just no custom kernel/ramdisk, which this works around by using a kernel module.
hi,
i use the 2.1-reu version on my milestone,
but in order to prevent the 2.1 introduced alarm bug,
i have updated the kernel (only) to the 2.1-telus
(via a sbf).
is possible to use this mod to overlock my phone?
how?
if not, how help you to obtain the addresses?
thank's and continue your great work!
robert
gemini002 said:
awesome .....wht there is no milestone/droid section here is beyond me ....wtf
Click to expand...
Click to collapse
XDA is a HTC developer forum, not an Android forum. Google some moto modding sites, i know modmymoto.com is pretty good, found out how to root the Cliq (garbage) there.
staticshadow said:
XDA is a HTC developer forum, not an Android forum. Google some moto modding sites, i know modmymoto.com is pretty good, found out how to root the Cliq (garbage) there.
Click to expand...
Click to collapse
I have read this explanation several times.
I do not mind, but then because there are subforums dedicated to sonyericsson, hp, etc in xda.
modmymoto is good but the best developers site is, withous any doubt, xda-developers!
Re: milestone-overclock
Xda-developers is for htc and android is for porn.
Welcome to xda btw and great job. Now prepared to be flamed for uttering the M word.
-------------------------------------
sent via xda app from my milestone
ady said:
android is for porn.
Click to expand...
Click to collapse
are you Steve Jobs ?
miragu said:
Hi all,
Now for the relevant part for XDA: in theory this can be applied to any kernel on any other phone.
Click to expand...
Click to collapse
Will the method to find the right address that will be posted at /wiki/Disassembly work with every phone and kernel,too?
Has the app something like a setting where you can just change the address to the one you found with the method above?
Would really love an overclocked 2.1 on the HTC HERO. There is no oc-2.1-kernel for the Hero, yet.
Thanks for the great work, til now!
this is a good via to mod any application.
please, publish the source code of your applicacion ASAP.
thx
Source code for the kernel module released
Hi all,
Thank you for your support. I've just uploaded the source code for the kernel module and also the standalone module itself (it's included in the apk but still). Will write the Disassembly section soon, stay tuned.
miragu said:
Hi all,
Thank you for your support. I've just uploaded the source code for the kernel module and also the standalone module itself (it's included in the apk but still). Will write the Disassembly section soon, stay tuned.
Click to expand...
Click to collapse
hi,
i'm interested on include this in my system applications directory,
in order to prevent your deletion on hardreset, and in order to make it available FOREVER
the instructions are that:
cp OverClock.apk /system/app
cp OverClock.ko /system/lib
????
thx
The overclock.ko is created automatically when you press the "Load module" button in /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko. You don't need to copy it. I'm providing it separately so that people can load/bundle it without ever running the apk.
bartito said:
hi,
i'm interested on include this in my system applications directory,
in order to prevent your deletion on hardreset, and in order to make it available FOREVER
the instructions are that:
cp OverClock.apk /system/app
cp OverClock.ko /system/lib
????
thx
Click to expand...
Click to collapse
ok,
if i'm interested on have overclocking on my milestone after boot the system, and don't interested on manually execute the apk on each reboot, i need only to copy the OverClock.ko to /data/data/pt.com.darksun.milestoneoverclock/files/overclock.ko on boot time ?
but in your wiki page says to execute "insmod overclock.ko max_rate=800000 max_vsel=62"
please, provide me instructions to set overclock in boot time
The module created by the apk is preserved across reboots. However, if you want to run the module completely standalone I recommend you put it in /data/local/overclock.ko and run insmod /data/local/overclock.ko max_rate=800000 max_vsel=62

G2 rooted, next myTouch4g???

http://forum.xda-developers.com/showthread.php?t=803208&page=39
I think that once their root method uss finally released we will be able to use it in the htc glacier
Sent from mai HTC AntiTitanic
Root Guide:
http://forum.xda-developers.com/showthread.php?p=9109921
So who's gonna do it first? You can always claim stupidity and bring it back to t-mobile for a replacement. Personally, I can't afford the downtime because I'm on call. :-/
If no one tries it by tomorrow I will do it. At work right now and have the kids tonight.
InGeNeTiCs said:
Root Guide:
http://forum.xda-developers.com/showthread.php?p=9109921
So who's gonna do it first? You can always claim stupidity and bring it back to t-mobile for a replacement. Personally, I can't afford the downtime because I'm on call. :-/
Click to expand...
Click to collapse
I would suggest not tryin to perm root until we have specific directions for our phone. It won't be too long until that happens so just be patient.
Good news and great work to the G2 team. Shouldn't take too long for us!
I am not 100% sure about this but we may need the kernel source for this. If I understand they way they got WP off was by using a kernel module to power down the emmc and then another to reinitialize it, we could need espresso source to make it work. I may be wrong though and someone may have it done by tomorrow.......
i'll wait for a script to be released to the market
double post
Don't try this with the G2 method. They're loading a kernel module that's kernel specific if I'm not mistaken. We need a specific module for the MT4G.
Sent from my HTC Glacier using XDA App
They did a awesome job!! Now everyone with the MT4G needs to bug HTC for the Kernel source code for our phones! Then we can recompile this the day its released and have S-Off on the MT4G. This will also let us create the overclock module for non rooted people. I cannot wait to see what this phone can really do!
Thanks to everyone in #G2root!!
Alright, I developed the effit attitude and figured if I screwed it up I would just play stupid. (I'm from Kentucky so the stereotype and accent work in my favor sometimes. )
I tried both kernel modules (wpthis-pre-ota.ko and wpthis-ota.ko) and both gave me an EXEC FORMAT ERROR. I ignored the errors and drove on with the instructions. DD'ing the hboot-eng.img went flawlessly and sync appeared to work b/c it just gave me a prompt waiting for the next command.
After reboot everything stayed the same S=on was still laughing at me. Sooooo, nogo.
All I got from this was the errors. No brick!
Gr8gorilla said:
I am not 100% sure about this but we may need the kernel source for this. If I understand they way they got WP off was by using a kernel module to power down the emmc and then another to reinitialize it, we could need espresso source to make it work. I may be wrong though and someone may have it done by tomorrow.......
Click to expand...
Click to collapse
I read a post saying they reversed engineered it before HTC released the kernel source. One way or another we'll get it.
grankin01 said:
Alright, I developed the effit attitude and figured if I screwed it up I would just play stupid. (I'm from Kentucky so the stereotype and accent work in my favor sometimes. )
I tried both kernel modules (wpthis-pre-ota.ko and wpthis-ota.ko) and both gave me an EXEC FORMAT ERROR. I ignored the errors and drove on with the instructions. DD'ing the hboot-eng.img went flawlessly and sync appeared to work b/c it just gave me a prompt waiting for the next command.
After reboot everything stayed the same S=on was still laughing at me. Sooooo, nogo.
All I got from this was the errors. No brick!
Click to expand...
Click to collapse
The EXEC FORMAT ERROR was because of mismatching kernel versions! We have to have one made against the HTC Glacier(MyTouch 4G) kernel source, which has not been released by HTC.
Also, the Engineering HBoot is specific to the G2. You could've bricked if you weren't careful.
travisjames said:
The EXEC FORMAT ERROR was because of mismatching kernel versions! We have to have one made against the HTC Glacier(MyTouch 4G) kernel source, which has not been released by HTC.
Also, the Engineering HBoot is specific to the G2. You could've bricked if you weren't careful.
Click to expand...
Click to collapse
Just figured I'd give it a shot. Nothing ventured nothing gained right.
Anyway, I figured it wouldn't work before I tried it due to different kernel builds. If I am looking at the two phones correctly they both have 2.6.32 kernels just different builds of it. And the architecture of the phones should be very similar based on the use of the qualcomm chips.
Could have bricked the phone, yes, but also could have (slight chance) worked without having to recompile anything.
grankin01 said:
Just figured I'd give it a shot. Nothing ventured nothing gained right.
Anyway, I figured it wouldn't work before I tried it due to different kernel builds. If I am looking at the two phones correctly they both have 2.6.32 kernels just different builds of it. And the architecture of the phones should be very similar based on the use of the qualcomm chips.
Could have bricked the phone, yes, but also could have (slight chance) worked without having to recompile anything.
Click to expand...
Click to collapse
attaboy
grankin01 said:
Just figured I'd give it a shot. Nothing ventured nothing gained right.
Anyway, I figured it wouldn't work before I tried it due to different kernel builds. If I am looking at the two phones correctly they both have 2.6.32 kernels just different builds of it. And the architecture of the phones should be very similar based on the use of the qualcomm chips.
Could have bricked the phone, yes, but also could have (slight chance) worked without having to recompile anything.
Click to expand...
Click to collapse
For sure. Someone has to be the first try it. Thanks for being the guy to put your balls together and do it.
InGeNeTiCs said:
attaboy
Click to expand...
Click to collapse
dwilson88 said:
For sure. Someone has to be the first try it. Thanks for being the guy to put your balls together and do it.
Click to expand...
Click to collapse
LOL, no prob! Just as eager for root and some cyanogen love (among other things) as anyone else.
Question: The desire HD is a different kernel correct?
grankin01 said:
LOL, no prob! Just as eager for root and some cyanogen love (among other things) as anyone else.
Click to expand...
Click to collapse
Haha...I'd settle for the battery percentage mod. I can't understand why this isn't standard....ugh

[Q] CM7 built from source wont boot

I got brave and decided to try and build cm7 from source. Everything seemed to work just fine, copied the created update.zip to my sdcard, flashed, wont boot.
If I post it, could someone help figure out why that is?
Grankin01 is testing Zinx GB CM7 now.. almost there have some patients or you could join irc. Freenode.net #HTC_Glacier
Sent from my HTC Glacier using XDA App
CM7??? Hope we get new and improved features! Is there a change log list?
Sent from my HTC Glacier
option94 said:
I got brave and decided to try and build cm7 from source. Everything seemed to work just fine, copied the created update.zip to my sdcard, flashed, wont boot.
If I post it, could someone help figure out why that is?
Click to expand...
Click to collapse
Look in the out/target/product/glacier directory that you found the update.zip file in and get the recovery.img file. This is CWM recovery 3.0.0.0 and it is required for GB to work. Won't work with froyo though so make sure you take a backrup of your existing recovery.
grankin01 said:
Look in the out/target/product/glacier directory that you found the update.zip file in and get the recovery.img file. This is CWM recovery 3.0.0.0 and it is required for GB to work. Won't work with froyo though so make sure you take a backrup of your existing recovery.
Click to expand...
Click to collapse
Awesome. Thanks. I'll try it now.
Edit: That worked. Thanks. But all it does is FC and reboot. Oh well, guess I just have to wait.
option94 said:
Awesome. Thanks. I'll try it now.
Click to expand...
Click to collapse
Did you check r.cyanogenmod.com for open commits? There are a lot of patches to the source up. Some are for all devices, some are for ours, and some don't apply to our device at all but you would benefit from patching your repo.
Mine boots fine. Try patching the repo and building again if you have the patience.
grankin01 said:
Did you check r.cyanogenmod.com for open commits? There are a lot of patches to the source up. Some are for all devices, some are for ours, and some don't apply to our device at all but you would benefit from patching your repo.
Mine boots fine. Try patching the repo and building again if you have the patience.
Click to expand...
Click to collapse
makes me wanna build i so wanna try it out
cdw9800 said:
makes me wanna build i so wanna try it out
Click to expand...
Click to collapse
Same here! wish i had some help on training on this...
I've been trying since last week keep running into snags because I'm not familiar with Linux os or maybe my PC is messed up gonna start from scratch tomorrow with a new distribution of Linux see if that helps
Sent from my HTC Glacier using XDA App
grankin01 said:
Did you check r.cyanogenmod.com for open commits? There are a lot of patches to the source up. Some are for all devices, some are for ours, and some don't apply to our device at all but you would benefit from patching your repo.
Mine boots fine. Try patching the repo and building again if you have the patience.
Click to expand...
Click to collapse
I didn't. I'll try that today. Thanks again.
Sent from my HTC Glacier using XDA App
hawaiianboi said:
Same here! wish i had some help on training on this...
Click to expand...
Click to collapse
I didn't, and before last night never really thought of trying it. Just started googling and reading everything I could. Worked out ok considering its my first time.
hello
im on cm7 mt4g no problems
teamsilence said:
im on cm7 mt4g no problems
Click to expand...
Click to collapse
Anyone mind helping me with patching? I have no idea how to use gerrit. I feel like a total n00b.
Merry Christmas
Found the answers i was looking for. Thanks everyone for the help.
Would you mind at least sharing what worked for you?
Sent from my HTC Glacier using XDA App
Please post questions in Q&A section.

[DEV] CM7 (CyanogenMOD 7, Gingerbread) on Captivate, for Developers only

For developers only!! We are not supporting users yet
The instructions to build Gingerbread are on http://cmsgs.com
If you intend to develop for Captivate, you are welcome to use the instructions to build from source and test/debug/fix. This is not for the average user right now and we ask that you do not post binaries for users because things are unstable and we'd really rather not be dealing with users who've managed to screw up their phones.
There are two steps initially - first is to flash and convert filesystems, update recovery, kernel and CM7, but after that you can just install the CM7 zip if you have done another rebuild as you do development.
There is no easy way of going back to froyo - you would have to flash to stock via Odin one-click and let it blow away the filesystem etc. This is why it is for developers only - it is very alpha and you will find yourself going back and forth a lot.
Warning - this will eat your kitties and possibly your doggies and goldfish too!
-Atin
I dont mean to ruin the thead but, just want to say thanks to all devs working on cm7! And look foward to running cyanogen again after using on my htc magic a couple years ago!
Building right now...I am the excite.
good stuff.
can't wait to see the first gingerbread rom on captivate.
Trusselo said:
i hope your ROM building is better than your sentence building
Click to expand...
Click to collapse
Why the hate? Take a chill pill.....
shawn122 said:
Why the hate? Take a chill pill.....
Click to expand...
Click to collapse
Because he likes to act like a little kid in just about any thread that he can.
There's always gotta be one douchebag.
Anyways, let's keep this thread clean.
That **** isn't needed here. Building now and pretty stoked. Thanks!
I am the excite.
Im interested in trying to impliment voodoo sound. Ive been following this http://code.google.com/p/cyanogenmod7-for-samsung-galaxys/issues/detail?id=16 and it looks like it wouldnt be too hard. Any ideas on how easy or hard this really is or what i could try to do on my end to try to add from supercurio's repo? *see his nexus S thead from the link above*
Thanks in advance for all those who cook up some GREAT ROMS!!!
atinm said:
For developers only, the instructions to build Gingerbread are on http://cmsgs.com
If you intend to develop for Captivate, you are welcome to use the instructions to build from source and test/debug/fix. This is not for the average user right now and we ask that you do not post binaries for users because things are unstable and we'd really rather not be dealing with users who've managed to screw up their phones.
Warning - this will eat your kitties!,
-Atin
Click to expand...
Click to collapse
Getting errors on sync. 'Bad head' not at my computer so can't get exact error
cchant said:
Getting errors on sync. 'Bad head' not at my computer so can't get exact error
Click to expand...
Click to collapse
Try again - seems to be working here.
bamonkey said:
Im interested in trying to impliment voodoo sound. Ive been following this http://code.google.com/p/cyanogenmod7-for-samsung-galaxys/issues/detail?id=16 and it looks like it wouldnt be too hard. Any ideas on how easy or hard this really is or what i could try to do on my end to try to add from supercurio's repo? *see his nexus S thead from the link above*
Click to expand...
Click to collapse
Since all the code is on github, both for voodoo sound and for CM7, you just need kernel/android smarts to pull in the changes. Clone the repos, take what you need . . . sorry I can't help more, I haven't looked at voodoo sound but there are others who have that could help I'm sure.
cchant said:
Getting errors on sync. 'Bad head' not at my computer so can't get exact error
Click to expand...
Click to collapse
Error in line 1380 of project.py, in GetHead fd = open(path, 'rb')
I got this error.
Code:
error: revision refs/heads/master in manifests not found
I got both of those. Clean repo
ballz0iron said:
Error in line 1380 of project.py, in GetHead fd = open(path, 'rb')
Click to expand...
Click to collapse
this is an error with repo/your machine, not CM7. try syncing again after a while (possibly after a reboot) or clearing out the folder (including your .repo folder) and trying again
ih4ckback said:
I got this error.
Code:
error: revision refs/heads/master in manifests not found
Click to expand...
Click to collapse
Actually I should clarify, I got that error trying to init the GB initial flash repo. Any assistance? I need to start there since I don't have it or do I not really need it?
ih4ckback said:
Actually I should clarify, I got that error trying to init the GB initial flash repo. Any assistance? I need to start there since I don't have it or do I not really need it?
Click to expand...
Click to collapse
Sorry guys - there should be a -b gingerbread on the repo init -u git://github.com/teamhacksung/android.git -b gingerbread, I've fixed the wiki page with the instructions for the initial flash.
atinm said:
Sorry guys - there should be a -b gingerbread on the repo init -u git://github.com/teamhacksung/android.git -b gingerbread, I've fixed the wiki page with the instructions for the initial flash.
Click to expand...
Click to collapse
I seeeeeee. Syncing now lol.

Fix for Superuser (confirmed by chainsdd)

Update to binary 3.0.2 from within SU.
Update SU to 3.0.6 via market. or download
http://downloads.androidsu.com/superuser/Superuser-3.0.6-efgh-signed.zip and flash
clear the data from SU if your still getting FC's
Credits go to HomerSP for coming up with the fix!!
Edited post #1 because 3.0.6 SU update
I searched for it. Thank's.
Sent from my IDEOS S7 Slim using XDA App
Yeah....it's WAY better to release an add-on fix and make everyone try to figure out how to fix the dev's **** up than it is for the dev to just release a WORKING VERSION!!!!
hp420 said:
Yeah....it's WAY better to release an add-on fix and make everyone try to figure out how to fix the dev's **** up than it is for the dev to just release a WORKING VERSION!!!!
Click to expand...
Click to collapse
Chainsdd is a busy person, and the su issues don't affect everyone. I haven't had a problem with it since 3.0.2. You should be happy that he even works on this at all instead of acting like an ungrateful twit.
Drunk texted from my CM7 Bolt
hp420 said:
Yeah....it's WAY better to release an add-on fix and make everyone try to figure out how to fix the dev's **** up than it is for the dev to just release a WORKING VERSION!!!!
Click to expand...
Click to collapse
Read this:
http://androidsu.com/2011/10/status-update/
ChainsDD is not a team. don't flame him
theraver said:
Read this:
http://androidsu.com/2011/10/status-update/
ChainsDD is not a team. don't flame him
Click to expand...
Click to collapse
Exactly, don't flame a developer for creating an awesome application that contains 1 bug in an update.
I also had the bug, I updated to 3.0.1, but the update failed, and I lost my root access. But c'mon, just download the su-update zip file, flash it, reboot and you're done.
As the developer said, it's impossible to test about 700 devices every single update. SuperUser is the most important application for rooted users if you think about it, don't flame the developer for making 1 fault.
thanks for the fix, glad to get rid of the SU binary outdated msg.

Categories

Resources