Related
Hi guys,
Is it possible to change the kernel of a nand build at all?
I am an Extended Battery user and find only NAND builds with Hastarins kernel work at all..
Is there a way of mixing and matching Kernels with builds?
Ta
nutmegy said:
Hi guys,
Is it possible to change the kernel of a nand build at all?
I am an Extended Battery user and find only NAND builds with Hastarins kernel work at all..
Is there a way of mixing and matching Kernels with builds?
Ta
Click to expand...
Click to collapse
Yes
Just made something for you, note: haven't tested it:
Kernel Theiving
How to:
- Install Nand version which has the kernel you want.
- Run "extract_kernel.bat"
- Install Nand version you like, and want to keep.
- Run "install_kernel.bat".
- Et voila!
Now, you only have to use "install_kernel.bat" if you flash another rom.
Note: You need adb installed on your PC
Quickie on how to install adb:
Moon2 said:
You need adb:
-Get this installer: http://developer.android.com/sdk/index.html
-Go to Available Packages, Expand Third Party - Google - select USB Driver
-Update adb driver, if not already installed from: C:\Program Files\Android\android-sdk-windows\google-usb_driver
-Copy "adb.exe" and "AdbWinApi.dll" from "C:\Program Files\Android\android-sdk-windows\platform-tools" to "C:\Windows\System32".
-Run the batch file.
Click to expand...
Click to collapse
thank you very much!
I will give this a go!
Moon2 said:
Yes
Just made something for you, note: haven't tested it:
Kernel Theiving
How to:
- Install Nand version which has the kernel you want.
- Run "extract_kernel.bat"
- Install Nand version you like, and want to keep.
- Run "install_kernel.bat".
- Et voila!
Now, you only have to use "install_kernel.bat" if you flash another rom.
Note: You need adb installed on your PC
Quickie on how to install adb:
Click to expand...
Click to collapse
I read the batch file and
you have created a folder called boot under data folder and pasted the zimage
so everytime when we boot out Hd2s it going to replace the zimage with the one in boot folder, so i guess its going to delay the booting process (correct me if im wrong) so is it possible to delete that folder after booting our Leos?
agarp said:
I read the batch file and
you have created a folder called boot under data folder and pasted the zimage
so everytime when we boot out Hd2s it going to replace the zimage with the one in boot folder, so i guess its going to delay the booting process (correct me if im wrong) so is it possible to delete that folder after booting our Leos?
Click to expand...
Click to collapse
No, that's not what it does. it mounts the boot partition temporarily to /data/boot, and after it's mounted, adb copies over the zImage file, and overwrites the preexisting kernel image, after this, the partition is unmounted. So it's not repeated at each boot.
works a treat...
I just used Android commander..
made sure it was connected..
then ran the extract batch file
installed the nand build i wanted...
then ran the install Kernel.bat
and it works a treat!!!!
Moon2 said:
No, that's not what it does. it mounts the boot partition temporarily to /data/boot, and after it's mounted, adb copies over the zImage file, and overwrites the preexisting kernel image, after this, the partition is unmounted. So it's not repeated at each boot.
Click to expand...
Click to collapse
thnxx for the clarification, now i get it
nutmegy said:
works a treat...
I just used Android commander..
made sure it was connected..
then ran the extract batch file
installed the nand build i wanted...
then ran the install Kernel.bat
and it works a treat!!!!
Click to expand...
Click to collapse
Is all that done on the phone? It seems you installed the kernel on the phone somehow. I'm clueless about adb, I tried to use it before but was dumbfounded by it all.
Do I need Eclipse? Downloading the SDK stuff...installing JDA SE and it talks about Eclipse.
Moon2 the links dead it says file has been removed anybody re upload it????
Alright, guys, I decided to put a little binary together for you guys. It's called "flashpak", which stands for flash package. The usage is very easy, and I hope developers use this in they're apps.
Works on CWM, TWRP, AMON, and any other recovery ... erm... Let me rephrase that.. it works on all recoveries
Usage:
Code:
flashpak file.zip
^ If the file "file.zip" is in the root of your SDCARD, just type what's above
It will then reboot you into your recovery and begin to flash the package.
Please note:
*Only works on devices that use "reboot recovery".
*Must be ran under su.
*I'm not responsible for anything if any of you mess up... well.. I am, but I won't be available to fix your device right and then.
*Since I used the Android-9 toolchain, I'm assuming that it only for 2.3+... not sure.
*Package must be on your SDCARD!
Changelog:
v1.01 - Fixed errors with confusion of the external storage's.
What to add:
*Able to reboot to recovery on devices that can't do "reboot recovery".
How to install, just extract the "flashpak" binary from the zip provided.. Extract it somewhere and run it
I'll try my best to keep this updated as much as I can. School is gonna start soon, and it's my last year in HS, and I might not update it as often as I will throughout this week :\
Source code: https://github.com/Simran/adbNetScan
Like me on Facebook: https://www.facebook.com/SimranApps
Follow me on Twitter: http://www.twitter.com/SimranDevs
Add me on Google+: https://plus.google.com/114069302448745664287
Good one
Can I use this in my tool over at my signature?
Can you compile it with lower toolchain and add support for 2.1+ devices
There are large number of 2.1 and 2.2 devices.
And this sends the extended commandline to recovery right?
varun.chitre15 said:
Good one
Can I use this in my tool over at my signature?
Can you compile it with lower toolchain and add support for 2.1+ devices
There are large number of 2.1 and 2.2 devices.
And this sends the extended commandline to recovery right?
Click to expand...
Click to collapse
Sure! Just make sure whatever you're going to flash is on the SDcard. If it's in another folder on the sdcard... mm.. say folder "foo" and zip "bar.zip", then simple type in:
Code:
flashpak foo/bar.zip
It doesn't accept a backslash at the beginning, but I'll work on that.
Updated to v1.01. Please give results.. gonna update tomorrow!
First I want to say thank you to czechop for his patch and all his work and for telling me wich files to mod to have radio working.
I want to say thank you to fjfalcon and Mioze7Ae too for kernel sources and all their work for our phone.
Currently phone boot on 2ndboot kernel from OpenRecovery with a script.
It boot slow and with some bugs but it boot and ask for pin code and radio is working (I was abble to make a call)
So 2ndboot kernel sources are here : https://github.com/Zachary57/android_kernel/tree/kernel-mod
Kernel image is attached
To use (at your own risk) :
1-Download zip attached
2-Extract 2ndboot.zip to /system (2ndboot.zip is on attached zip so you need to unzip 2 zip) and 2ndboot_system.sh to /sdcard/OpenRecovery/scripts
You should now have /system/2ndboot folder on your phone and 2ndboot.sh in /sdcard/OpenRecovery/scripts
3-Reboot phone holding volume up to boot into OpenRecovery
4-Select run script / 2ndboot_system.sh
It will run script /sdcard/OpenRecovery/scripts/2ndboot.sh that call file in /system/2ndboot
Specifications :
-Kernel OC to 1GHz stock voltage
-SWAP
-Smartass V2 governor
Problems :
-It sometimes fail to boot.
-Sometimes 2ndboot stop to work (you have infinite reboot) so you need to erase files and download them again to make it working
Last post update : 23/02/2013
Now possible load custom core? without pc and after rebooting core works? and what in kern.zip? this is new core or old?
vadims746 said:
Now possible load custom core? without pc and after rebooting core works? and what in kern.zip? this is new core or old?
Click to expand...
Click to collapse
Yes it is possible to load custom kernel without pc. kern.zip contain custom kernel only.
Do you continue working and updating 2nbdoot for best working and what is functional of kern.zip?
vadims746 said:
Do you continue working and updating 2nbdoot for best working and what is functional of kern.zip?
Click to expand...
Click to collapse
For now I am learning kernel developpement but I will try to update this.
In kern.zip all work like with stock kernel. I just applied czechop patch on Mioze7Ae kernel sources and czechop tell me what line was wrong.
I don't know if swap work. I think it is on kernel but I can't make it working for now.
[UPDATE]
Swap not implemented on kernel. I will try to implement it.
How long need wait script installing 2ndboot in OR?
vadims746 said:
How long need wait installing 2ndboot in OR?
Click to expand...
Click to collapse
It doesn't install it just script and files that you copy to sdcard. Then you run script that load 2ndboot kernel. You have to do that on each reboot while we don't put a script that make that automatically at startup.
When you hit 2ndboot.sh in OpenRecovery/run script it take approximately 2minutes to start boot.
where put kern.zip,and where put core with swap support? for example boot3.img.I run script 2ndboot.sh and its install and reboot,but how use 2nbdoot?
vadims746 said:
where put kern.zip,and where put core with swap support? for example boot3.img.I run script 2ndboot.sh and its install and reboot,but how use 2nbdoot?
Click to expand...
Click to collapse
When you run 2ndboot script it run custom kernel that is provided in zip. kern.zip is already on other zip. It is kernel image.
You can't boot boot3.img you can only boot zImage (it is what is kern).
Kern is a zImage it contain custom kernel modded to keep radio working after 2ndboot.
how install kern.zip? and where put him?
Great job done man.
I will look at cm10 for xt720.
i had been working this and very happy you succed in 2ndboot working.
I will switch back to xt720 and try this.
Thanks for your work!!!
Sent from my SGH-T759 using xda premium
vadims746 said:
how install kern.zip?
Click to expand...
Click to collapse
Don't install it. Just extract files from 2ndboot.zip :
Extract 2ndboot to /sdcard and 2ndboot.sh to /sdcard/OpenRecovery/scripts
2ndboot.zip contain all files needed. kern.zip is for developpers that have 2ndboot module.
We can install .zip files,and we need .zip core
vadims746 said:
ok thanks,and how i can now install boot.img?
Click to expand...
Click to collapse
The only way to use boot.img is to use fastboot on each reboot : http://forum.xda-developers.com/showthread.php?t=990735
It suggests that we need .zip core?
vadims746 said:
It suggests that we need .zip core?
Click to expand...
Click to collapse
Yes or to implement missing function in kernel.
Hi
How long does reboot take and do put kernal main storage card ?
Sent from my SGH-T759 using xda premium
mchlbenner said:
Hi
How long does reboot take and do put kernal main storage card ?
Sent from my SGH-T759 using xda premium
Click to expand...
Click to collapse
Kerel reboot take about 2 minutes. It is long but it work everytime (with usb wire disconnected) I tried.
Can you explain more "do put kernal main storage card ?" I didn't understand that part of your sentence.
I use Mioze7Ae 2ndboot files from here : forum.xda-developers.com/attachment.php?attachmentid=1388600&d=1349812889
with zImage I compiled (zImage is kern) and source are available here : https://github.com/Zachary57/android_kernel/tree/kernel-mod
In fact custom kernel is kern (it's a zImage file) and is located in /sdcard/2ndboot.
2ndboot.sh script load it using 2ndboot.
Yes the kernel i downloaded were do i put it.
Also on italy sbf just let you know.
How long does take to load from 2ndreboot script.
Sent from my SGH-T759 using xda premium
mchlbenner said:
Yes the kernel i downloaded were do i put it.
Also on italy sbf just let you know.
Sent from my SGH-T759 using xda premium
Click to expand...
Click to collapse
Just download 2ndboot.zip and extract 2ndboot folder to /sdcard and 2ndboot.sh to /sdcard/OpenRecovery/scripts
Kern.zip is include in 2ndboot.zip it's file kern on /2ndboot
Go to Khaon's TWRP thread.
Iwill not make a long description for this for now.
If someone is looking TWRP for Mi2/s, it can be grabbed from
Here for 15-08-14
Here for 02-08-14
Downloads failed for both files so I'll put them here when I could get them. Also, I have tried this recovery coming from another source but I wasn't able to flash things on sys1 (system 2) and it wasn't told if it's 02-08 or 15-08.
Source code on git
Beyaz66 said:
I will not make a long description for this for now.
If someone is looking TWRP for Mi2/s, it can be grabbed from
Here for 15-08-14
Here for 02-08-14
Downloads failed for both files so I'll put them here when I could get them. Also, I have tried this recovery coming from another source but I wasn't able to flash things on sys1 (system 2) and it wasn't told if it's 02-08 or 15-08.
Source code on git
Click to expand...
Click to collapse
I will try to build that this afternoon
Man, you're evertwhere in my life hehe. Thanks.
Note that when I tested it, apart from the active sys selection menu, there wasn't (or I haven't found) a menu to select which system to manage.
Beyaz66 said:
Man, you're evertwhere in my life hehe. Thanks.
Note that when I tested it, apart from the active sys selection menu, there wasn't (or I haven't found) a menu to select which system to manage.
Click to expand...
Click to collapse
You need to TW_HAS_DUAL_STORAGE := true
Or at least, i could find this variable that seems related to the code handing dual partitions.
I prefer twrp over cwm so lets hope I can build that.
Even if I understand, You know what you're talking about better than me. How can I give you this thread's rights? Or create another when you're ready and we could ask for the deletion of this one.
Android Boot Manager (ABM), my goal is to make the procedure (Backup, Unpack, Edit, Repack and Flashe boot.img or recovery.img) so easy and accessible to all users without resorting to the command prompt , only a single click to get a quick and successful outcome at the same time .
This is the third version of the program.
Source (GITHUB SOURCE https://github.com/aToxyD/android_boot_image_manager_apk).
WHAT'S NEW
- Some optimization.
- Add new Text Editor with high syntax.
THANKS
* xiaolu, original author of boot.img tool(GITHUB SOURCE https://github.com/xiaolu/mkbootimg_tools).
* Modding.MyMind, for his heavily modification of boot.img tool.
* Tah Wei Hoon, for TextWarrior.
* Dmytro Tarianyk, for Android Floating Action Button.
* Anthony Restaino, for Grant.
IMPORTANT
- Root is only necessary for Unpacking boot patched by "superSu or Magisk" and Backup/Flash Operations, so if you want to unpack stock boot or you have your favorite flasher apk like "Rachr", if so you dont need to check "Root Access" in settings menu.
- Please uninstall any previous version of ABM before installing the newer.
I do not like people to coming here and take what they wanted and leave like a thief , at least leave a comment. . .
This work is for all, so help your self.
atoxyd said:
Android Boot Manager (ABM), my goal is to make the procedure (Backup, Unpack, Edit, Repack and Flashe boot.img or recovery.img) so easy and accessible to all users without resorting to the command prompt , only a single click to get a quick and successful outcome at the same time .
This is the second version of the program.
WHAT'S NEW
- Corrected some bugs related to compatibility with Android 6.
- Use xiaolu mkbootimg tools (GITHUB SOURCE https://github.com/xiaolu/mkbootimg_tools)
TODO
- add support to x86, mips arch.
- add support to put files to unpacked folder.
- add support to combinedboot , in Xperia device recovery ramdisk is combined with system ramdisk.
IMPORTANT
- The apk need root access to work.
- Note that make change by adding files to unpacked folder with root explorer, the owner will be root and the apk will not work, if you do this you must change the owner to ABM apk.
THANKS
* xiaolu, original author of boot.img tool(GITHUB SOURCE https://github.com/xiaolu/mkbootimg_tools).
* modding.MyMind, for his heavily modification of boot.img tool.
* @bigsupersquid for his support and motivate from the beginning.
Click to expand...
Click to collapse
mtk support?
lixia1998 said:
mtk support?
Click to expand...
Click to collapse
Certainly I am working on this , but you should help me.
New version won't install on Kit Kat
PiggyFlooper said:
New version won't install on Kit Kat
Click to expand...
Click to collapse
Okay my friend, try to uninstall the old version, and tell me.
atoxyd said:
Okay my friend, try to uninstall the old version, and tell me.
Click to expand...
Click to collapse
You were right, I'll start project tonight editing ramdisk on my LG Volt
Are extracted files accessible in file system? I can't find them
levone1 said:
Are extracted files accessible in file system? I can't find them
Click to expand...
Click to collapse
Unpacked to /data/local/ABM
PiggyFlooper said:
Unpacked to /data/local/ABM
Click to expand...
Click to collapse
But beware when you add new files to the unpacked folder , you must take into account that owner will be. root , so you must set owner to ABM apk.
atoxyd said:
But beware when you add new files to the unpacked folder , you must take into account that owner will be. root , so you must set owner to ABM apk.
Click to expand...
Click to collapse
So I tested with twrp IMG, and successful unpack to /data/local. Then I tried with my current kernel, and nothing's happening. I get a message that's not clear to me, (screenshot 2), and no output. Any ideas?
levone1 said:
So I tested with twrp IMG, and successful unpack to /data/local. Then I tried with my current kernel, and nothing's happening. I get a message that's not clear to me, (screenshot 2), and no output. Any ideas?
Click to expand...
Click to collapse
It seems that you delete the directory /data/local/ABM, So close the apk and open it again or wipe apk data and try again, if any problems tell me please :thumbup:
atoxyd said:
It seems that you delete the directory /data/local/ABM, So close the apk and open it again or wipe apk data and try again, if any problems tell me please :thumbup:
Click to expand...
Click to collapse
That was my original thought, so I wiped data and tries again, but no different... I'll just uninstall and reinstall, and probably be fine. Thanks
atoxyd said:
It seems that you delete the directory /data/local/ABM, So close the apk and open it again or wipe apk data and try again, if any problems tell me please :thumbup:
Click to expand...
Click to collapse
Same thing after reinstall. I tried with twrp file again, and works fine, but with kernel file, error msg...
It seems that the image you want to unpack it is not an android image.
atoxyd said:
It seems that the image you want to unpack it is not an android image.
Click to expand...
Click to collapse
It's the AOSP kernel from the ROM I'm currently using.
https://mega.nz/#!do51zAZS!QG5jTdpynPjNs7jrbERsdwRKjdac9tz-0SxUX6HyJsk
Try to edit devices.xml in /sdcard/ABM directory and backup kernel using ABM app, after try to unpack boo.img backed up, you find it in /sdcard/ABM/backup directory.
levone1 said:
It's the AOSP kernel from the ROM I'm currently using.
https://mega.nz/#!do51zAZS!QG5jTdpynPjNs7jrbERsdwRKjdac9tz-0SxUX6HyJsk
Click to expand...
Click to collapse
Well my friend, try to delete space in the name of image.
Linux ..........img will be
Linix_..........img
levone1 said:
It's the AOSP kernel from the ROM I'm currently using.
https://mega.nz/#!do51zAZS!QG5jTdpynPjNs7jrbERsdwRKjdac9tz-0SxUX6HyJsk
Click to expand...
Click to collapse
Well my friend, delete space in the name of the image.
Linux 3.10....img
will be
Linux_3.10....img
Well my friend @levone1, delete space in the name of the image.
Linux 3.10....img
will be
Linux_3.10....img