[SOLVED] [Q] Kernel Compiling & Custom Recovery - Captivate Q&A, Help & Troubleshooting

So I've been messing around with compiling my own kernel (using Semaphore as a base) and CWM based recovery and have run into a bit of a snag. As far as I can tell the recovery compiles since I can built the update.zip and it'll flash yet I can't seem to figure out how to get it to compile into the kernel. I thought all I needed to do was replace the ramdisk.img and ramdisk-recovery.img, but that doesn't seem to work. I've tried searching for the answer but I've been unable to find it. Any assistance would be greatly appreciated.

You'll need to replace another file ("recovery") in the ram disk folder. Sorry I can't remember where it was, I'll tell you when I get home.
Sent from my SGH-I337M using Tapatalk 4 Beta
EDIT: Take a look at this, it might help you. https://github.com/stratosk/ics-ramdisk/commit/99a015857c9c74fd10b957ce48c5686261651036

Nick0703 said:
You'll need to replace another file ("recovery") in the ram disk folder. Sorry I can't remember where it was, I'll tell you when I get home.
Sent from my SGH-I337M using Tapatalk 4 Beta
EDIT: Take a look at this, it might help you. https://github.com/stratosk/ics-ramdisk/commit/99a015857c9c74fd10b957ce48c5686261651036
Click to expand...
Click to collapse
Never got the notice someone replied to this post... Thanks. I actually figured it out yesterday when I decided to update.

Related

[MOD] Battery Percentage Mod - alternative version

Hello,
I have made some modifications to MaliciousKen's mod of the battery percentage for stock rom:
Changes:
- the main change is to show the percentage even during charging; I based on MaliciousKen's graphic files and just made some changes in the xml
- based on v10d stock rom's framework-res.apk
- retain music notification in the status bar (i.e. same as stock version, you can disable it in Music's setting; there seems no problem in v10d version on this)
This is my first time modifying an apk! Please have a try and let me know if there is any problem
Any screenshots pls??
Will it work on mcr10?
No. This version is for stock ROM.
How do i install this ?
Read this thread:
http://forum.xda-developers.com/showthread.php?t=1007863
You'll install it as is (archive) with option "install zip from sd card".
It Just rebooted when i got to enter simcode..
MidNightRX said:
It Just rebooted when i got to enter simcode..
Click to expand...
Click to collapse
Same happened to me. Using V10b baseband.
Sent from my LG-P990 using Tapatalk
DO NOT INSTALL THIS !!
If you will make this mistake, do a backup first. In case you don't ,you must flash a new rom.
Just a warning, maybe you have anything else to do these days.
Thank you very much by the way..
Vidroid said:
Same happened to me. Using V10b baseband.
Sent from my LG-P990 using Tapatalk
Click to expand...
Click to collapse
Sorry if it has caused trouble. Now I have uploaded another one based on MaliciousKen's version directly. So hopefully this should work for v10a/b/c.
Do make a backup (at least copy out your original framework-res.apk) before you try.
cristian_seven said:
DO NOT INSTALL THIS !!
If you will make this mistake, do a backup first. In case you don't ,you must flash a new rom.
Just a warning, maybe you have anything else to do these days.
Thank you very much by the way..
Click to expand...
Click to collapse
You don't need to flash a new rom, just install MaliciousKen's version. That worked for me.
Sent from my LG-P990 using Tapatalk
dohanin said:
Sorry if it has caused trouble. Now I have uploaded another one based on MaliciousKen's version directly. So hopefully this should work for v10a/b/c.
Do make a backup (at least copy out your original framework-res.apk) before you try.
Click to expand...
Click to collapse
NO, same thing. Maybe you should try first!
cristian_seven said:
NO, same thing. Maybe you should try first!
Click to expand...
Click to collapse
hmm.... I did try before posting these files. I only have v10a and v10d stock rom and the above two mods work fine on my phone, so I'm running out of ideas now.
However, if either of the above works for anyone, please kindly let me know.
As said, it's the first time I modified an apk file, so when I found it successful (on my phone), I'm so excited to share here. Too bad if it only works on my phone
I have re-built the apks with another method and tested ok. Please have a try if you have time
dohanin said:
I have re-built the apks with another method and tested ok. Please have a try if you have time
Click to expand...
Click to collapse
which xml file should I edit in order to build a working apk ?
I tried to modify the stat_sys_battery.xml and stat_sys_battery_charge.xml
and I have also put the image file in correct place..
using APKmanager to compile and sign ...
I just got boot loop afterall -__-
Anything I have missed ?
the 1st xml is for the normal display of the icon while the other one is during charging (animation)
i used apktool 1.3.1
(note the latest apktool is 1.3.2 but this one appears buggy, i also had the boot loop with it)
Sent from my LG-P990 using XDA App
Hi
Can be used with the 29 Sep Gr3 WIP (V20i) MoDaCo Custom ROM?

nls_utf8.ko for Atrix 1.8.3

After searching this forum, doesn't seem to be able to find one for Atrix.
Spend sometime grabbed the kernel and compiled this module. Tested working with my wife's AT&T Atrix with 1.8.3 using cifsmanager.
Let me know how it goes for you guys.
it does what?
jimmao said:
After searching this forum, doesn't seem to be able to find one for Atrix.
Spend sometime grabbed the kernel and compiled this module. Tested working with my wife's AT&T Atrix with 1.8.3 using cifsmanager.
Let me know how it goes for you guys.
Click to expand...
Click to collapse
so what does this do!?!?!
EclipseX said:
it does what?
Click to expand...
Click to collapse
Maybe network file sharing since cifsmanger is being used
Sent from my MB860 using XDA Premium App
ricethief said:
Maybe network file sharing since cifsmanger is being used
Sent from my MB860 using XDA Premium App
Click to expand...
Click to collapse
If you do not know what it is for, then that means in most case you do not need it.
Basically what it does to me is it allows you to access network shares with non-ANSI folder/file names.
Thanks a lot,
It works.
I compiled the kernel twice but none of utf8.ko worked.
Could you please tell me the steps to compile it? Like to learn something.
jimmao said:
After searching this forum, doesn't seem to be able to find one for Atrix.
Spend sometime grabbed the kernel and compiled this module. Tested working with my wife's AT&T Atrix with 1.8.3 using cifsmanager.
Let me know how it goes for you guys.
Click to expand...
Click to collapse
heyhi said:
Thanks a lot,
It works.
I compiled the kernel twice but none of utf8.ko worked.
Could you please tell me the steps to compile it? Like to learn something.
Click to expand...
Click to collapse
You need to set nls_utf8=m (m means module) in .config file. =y will compile it into the kernel....
Err, if you got .ko file but it doesn't work, then I do not know why..., did you compile kernel against the one published by Moto?
Good work.
jimmao said:
You need to set nls_utf8=m (m means module) in .config file. =y will compile it into the kernel....
Err, if you got .ko file but it doesn't work, then I do not know why..., did you compile kernel against the one published by Moto?
Click to expand...
Click to collapse
The first time I used =m and make modules. It generated a .ko file slightly smaller than yours. The second time I used =y and it's still the same .ko file.
I downloaded the 1.2.6 kernel source from moto website.
Hi, guys, could anyone compile cifs and nls_utf8 for milestone 2? Dont know if it´s different from atrix compiling...
heyhi said:
The first time I used =m and make modules. It generated a .ko file slightly smaller than yours. The second time I used =y and it's still the same .ko file.
I downloaded the 1.2.6 kernel source from moto website.
Click to expand...
Click to collapse
That's interesting, basically, =y will not give you .ko file anyway, so you will see the results from the first time.
My one was compiled under OSX, while environment was setup using macport, that might be different than compiling under linux. But at this stage, I really could not tell what was the cause that you can get the .ko file but not able to use it.

[Q] Help on porting

I've been trying to port a rom.. Got the instruction from here http://forum.xda-developers.com/showthread.php?t=1908008. I followed everything but when I tried flashing it shows an error that says "Status7"..
After that when i try to boot it is stuck on bootloop..
any one knows what the problem is?
Thanks for the help!
Leeblitz said:
I've been trying to port a rom.. Got the instruction from here http://forum.xda-developers.com/showthread.php?t=1908008. I followed everything but when I tried flashing it shows an error that says "Status7"..
After that when i try to boot it is stuck on bootloop..
any one knows what the problem is?
Thanks for the help!
Click to expand...
Click to collapse
My friend just search through that thread, I'm sure someone has any error you will have. BTW the answer is copy meta-inf over from base rom. Best of luck
Sent from my Nexus 7 using xda app-developers app
now I'm stuck on bootloop.. :/
I did copy this file from lib folder just like what is in the instruction..
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
pls help.
Leeblitz said:
now I'm stuck on bootloop.. :/
I did copy this file from lib folder just like what is in the instruction..
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
pls help.
Click to expand...
Click to collapse
OK man you are getting there. Do you have adb setup? This is a very useful tool. What you do is plug in the phone and type adb logcat and look for the 'E' or error or 'F' for fatal this normally will give a good indicator to what you are missing.
Edit: I don't want to mess you up because those instructions are good but if you go to YouTube and search how to port a ROM . the first two videos are helpful. The lengths are like 16 and 4. Watch the 4 first and you might receive some insight into your problem.
Sent from my Nexus 7 using xda app-developers app
Will this work because I read on one of the comments in youtube (the 4 min video I think) that it can't be used to port paranoid..
I'm trying to port PAC by the way..
Leeblitz said:
Will this work because I read on one of the comments in youtube (the 4 min video I think) that it can't be used to port paranoid..
I'm trying to port PAC by the way..
Click to expand...
Click to collapse
It is entirely possible that it won't work that specific way because often framework and jars need to be decompiled. However you can probably use it as a good jumping off point to see if you did things correctly the first time. You can use it to mix tutorials and see if you can get it going. Porting takes some work and I am personally not a fan, although that's probably because my ported ROMs I've made aren't that good.
Sent from my Nexus 7 using xda app-developers app

[VIDEO] How To Flash Android 4.4 To Your Nexus 4

Hey everyone, me again! So with Android 4.4 out for the Nexus 4, I thought some folks might need a little help installing it, or maybe just need a visual aid to help. So I made a How To video. Hopefully it helps some people :fingers-crossed: If it does, maybe hit that "Thanks" button?
Thanks dude just what I was looking for!
Sent from my Nexus 4 using Tapatalk
Does this break anything? I am really tempted to do it!
Sent from my Nexus 7 using xda app-developers app
TheSmokingAndroid said:
Hey everyone, me again! So with Android 4.4 out for the Nexus 4, I thought some folks might need a little help installing it, or maybe just need a visual aid to help. So I made a How To video. Hopefully it helps some people :fingers-crossed: If it does, maybe hit that "Thanks" button?
Click to expand...
Click to collapse
Thanks, just what I was looking for. If I cant find a toolkit to do it with then I have no doubt with your video I can get it done. I don't want to wait! Welll done.
TheSmokingAndroid said:
Hey everyone, me again! So with Android 4.4 out for the Nexus 4, I thought some folks might need a little help installing it, or maybe just need a visual aid to help. So I made a How To video. Hopefully it helps some people :fingers-crossed: If it does, maybe hit that "Thanks" button?
Click to expand...
Click to collapse
I am getting a status 7 error. Any idea how i can fix that?
Seems to break root. I can't get back to cwm.
Sent from my AOSP on Mako using XDA Premium 4 mobile app
justibasa said:
Seems to break root. I can't get back to cwm.
Sent from my AOSP on Mako using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I have an easy root fix for once you update to 4.4 if you have Mac
I modified the Root.Nexus.4.zip file for Mac on here, updated it to CWM 6.0.4.3 image, and SuperSU 1.65 image. Just unzip, and run the Root.Nexus.4 terminal shell script with the N4 in fastboot with USB connected to the Mac, I think you can use a similar script for PC and prob need USB drivers if you don't have them already. Hope this helps
I'm unable to post a link on here since I'm a newb, PM if you want the link to the zip
Thanks
Another build available here : http://www.androidauthority.com/android-4-4-kitkat-nexus-4-nexus-7-download-unofficially-313352/.
Flashed this in CWM, everything, including root is absolutely fine. (I flashed SuperSu 1.65 zip). But for the proper google experience, have to wait for the factory images.
The lockscreen widgets functionality (except for the camera widget) seems to have been removed, can anyone find that option anywhere?
Edit: Lockscreen widgets can be enabled in Settings->Security.
aravindsagar said:
Another build available here : http://www.androidauthority.com/android-4-4-kitkat-nexus-4-nexus-7-download-unofficially-313352/.
Flashed this in CWM, everything, including root is absolutely fine. (I flashed SuperSu 1.65 zip). But for the proper google experience, have to wait for the factory images.
The lockscreen widgets functionality (except for the camera widget) seems to have been removed, can anyone find that option anywhere?
Edit: Lockscreen widgets can be enabled in Settings->Security.
Click to expand...
Click to collapse
that is PA AOSP which was built and posted hours ago, also has a thread in orig android dev.
as for lockscreen widgets. they're working fine. look into settings-lockscreen
gonemad02 said:
that is PA AOSP which was built and posted hours ago, also has a thread in orig android dev.
as for lockscreen widgets. they're working fine. look into settings-lockscreen
Click to expand...
Click to collapse
Yeah, just thought I would share this link as well, since for some people, it seemed to break root, but this build worked fine for me, including root.
aravindsagar said:
Yeah, just thought I would share this link as well, since for some people, it seemed to break root, but this build worked fine for me, including root.
Click to expand...
Click to collapse
sorry it's on Settings > Security > then turn it on from there bro! oh alright. enjoy kitktat, have a break!
Do you have some manual to downgrade to 4.3? Because when i do it i lose signal and wifi..
Sent from my Nexus 4 using xda app-developers app
I might wait
Well i was going to try but guess i hold off for official release.Thank you for the videos nice work.

anyone deodexed tmobile stock rom?

Has anyone deodex and successfully installed a stock system image yet? I haven't tried this yet but I am thinking of giving it a shot sometime soon. I was wondering if there were any potential issues of doing this such as wifi calling or what not. The reason I'm doing this is because I'm s-off'd and I'm hoping a deodexed system will allow xposed to successfully work.
minotauri said:
Has anyone deodex and successfully installed a stock system image yet? I haven't tried this yet but I am thinking of giving it a shot sometime soon. I was wondering if there were any potential issues of doing this such as wifi calling or what not. The reason I'm doing this is because I'm s-off'd and I'm hoping a deodexed system will allow xposed to successfully work.
Click to expand...
Click to collapse
well, i deodexed the arm64 system files using svadeodexer and flashed it to my phone. we'll see what happens...
minotauri said:
well, i deodexed the arm64 system files using svadeodexer and flashed it to my phone. we'll see what happens...
Click to expand...
Click to collapse
Any luck? A deodexed rom would be a huge help for the development community to work on this phone, especially with WiFi calling and voice over lte.
I made a flashable zip, but forgot to change permissions on the apk's on it. It still booted up into android and then android performed it's "upgrading" function at startup and then it rebooted into a bootloop. I had to go somewhere so I ended up flashing back my backup and have not gotten back to it since then as I just got home. I'll try it some more tomorrow or over the weekend.
Any luck on the deodex process? If you need a tester, I'd be glad to help.
jmwils3 said:
Any luck on the deodex process? If you need a tester, I'd be glad to help.
Click to expand...
Click to collapse
same here would love to help.
Hi,
No I haven't had time to work on it any further. I am using a mac so the deodex arm64 tools are all in windows so that's been one challenge, but I was able to do some of that work on my work laptop. The other issue is that I am having trouble getting my updater binary to work. It's failing in TWRP. I'm going to set up a linux environment and install archikitchen when I have more free time, but I've been pretty busy lately.
For whatever reason, I was able to get my original zip to install and reboot and even do the android upgrading function, but then it rebooted into a bootloop. I revised the script to set permissions properly, but then it just fails updating. Sighs.
I'm not sure what I'm doing wrong. I made a few different attempts at system images but all cause bootloops. I may have to try re-doing the deodex part again, but I used my own zip and script as well as one generated by ArchiKitchen and all caused bootloops, so it's probably my deodex files failing. Will try again when I have more free time.
minotauri said:
I'm not sure what I'm doing wrong. I made a few different attempts at system images but all cause bootloops. I may have to try re-doing the deodex part again, but I used my own zip and script as well as one generated by ArchiKitchen and all caused bootloops, so it's probably my deodex files failing. Will try again when I have more free time.
Click to expand...
Click to collapse
heres a link to a deodexed Tmobile stockish rom that we were working on for a bit, but havent had time to add to much to it. has just a few basic addons and has been fully optimized. based on the .33 tmo base.
https://www.androidfilehost.com/?fid=23991606952596069
steal25 said:
heres a link to a deodexed Tmobile stockish rom that we were working on for a bit, but havent had time to add to much to it. has just a few basic addons and has been fully optimized. based on the .33 tmo base.
https://www.androidfilehost.com/?fid=23991606952596069
Click to expand...
Click to collapse
Thanks! This took a long time to do an initial boot but it works and I didn't wipe data and kept stock kernel. Also xposed was installed without bootloop and s-off, though i waited to install it after initial boot. So big thanks!
Sent from my HTC One M9 using XDA Free mobile app
minotauri said:
Thanks! This took a long time to do an initial boot but it works and I didn't wipe data and kept stock kernel. Also xposed was installed without bootloop and s-off, though i waited to install it after initial boot. So big thanks!
Sent from my HTC One M9 using XDA Free mobile app
Click to expand...
Click to collapse
Yeah deodexed roms take considerably longer then odexed roms. I think I clocked 19minutes from the time I rebooted from recovery till android was done optimizing.
minotauri said:
Thanks! This took a long time to do an initial boot but it works and I didn't wipe data and kept stock kernel. Also xposed was installed without bootloop and s-off, though i waited to install it after initial boot. So big thanks!
Sent from my HTC One M9 using XDA Free mobile app
Click to expand...
Click to collapse
Did you ever get your deodexed rom to work, or did you give up on that after getting the one posted by @Steel25? I've deodexed mine using the same tool as you, but now I'm stuck on how to get it to install on my device. All of the info that seems to be out there for this pertains to 32 bit roms, and doesn't seem to work on this one. I really appreciate the one provided by @Steel25, but I also really want to accomplish this myself. If someone can help me do this please post or link or PM me. Thank you in advance.
jbfountain said:
Did you ever get your deodexed rom to work, or did you give up on that after getting the one posted by @Steel25? I've deodexed mine using the same tool as you, but now I'm stuck on how to get it to install on my device. All of the info that seems to be out there for this pertains to 32 bit roms, and doesn't seem to work on this one. I really appreciate the one provided by @Steel25, but I also really want to accomplish this myself. If someone can help me do this please post or link or PM me. Thank you in advance.
Click to expand...
Click to collapse
I am currently just using the ROM that @steal25 posted. I tried several things and for whatever reason, I couldn't get it working except for my initial time but that restarted into a bootloop. Archikitchen also doesnt have a deodexer for lollipop, so if there's a some info on what would work let me know.
A lot of things have happened in my personal life that has taken up a lot of my time so I dont have too much time to tinker around with this stuff lately.
I am currently using the one posted by @Steel25 with Xposed using Xtended settings, and everything is working well. My only complaint is that the cores 4-7 can only be clocked to a maximum of 1.5GHZ. However, I am still searching for a way to properly deodex the stock rom and make it installable.
I Truly Enjoy XDA-Developers.com with this Fabulous HTC One M9
steal25 said:
heres a link to a deodexed Tmobile stockish rom that we were working on for a bit, but havent had time to add to much to it. has just a few basic addons and has been fully optimized. based on the .33 tmo base.
Click to expand...
Click to collapse
Been running awesome, thanks. Any chance of updating this to the 5.1 update?
m9droid said:
Been running awesome, thanks. Any chance of updating this to the 5.1 update?
Click to expand...
Click to collapse
+1, would love to get xposed running on the latest T-Mo build.
I have deodexed the latest T-Mobile 5.1 build, but I don't know how to make it flashable yet. I'm still learning. If anyone who knows how is willing to give me some guidance please PM me. I'm kinda stuck getting a working update-binary and updater-script.
I Truly Enjoy XDA-Developers. Com with this Fabulous HTC One M9
jbfountain said:
I have deodexed the latest T-Mobile 5.1 build, but I don't know how to make it flashable yet. I'm still learning. If anyone who knows how is willing to give me some guidance please PM me. I'm kinda stuck getting a working update-binary and updater-script.
I Truly Enjoy XDA-Developers. Com with this Fabulous HTC One M9
Click to expand...
Click to collapse
Someone help the man out! I don't have a clue either, lol
Sent from my HTC One M9 using Tapatalk
5.1 de-odexed Rom
I built a stock 5.1 De-odexed Rom, If anyone wants to try it out PM me

Categories

Resources