Kernel Flasher

benwaffle

Senior Member
Dec 26, 2011
170
101
0
This app allows you to use safestrap on certain devices running 4.4.4 and 5.0.

It basically runs
Code:
dd if=kernel.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
I am not responsible for anything that may happen to your device.
Post stack trace/logcat in this thread if it crashes.
If you get errors when updating, uninstall first.

Source code: https://github.com/benwaffle/AT-T-Note-3-Kernel-Flasher
AT&T Note 3 - NC2: this post
AT&T Galaxy S 4 - NC1
AT&T Galaxy S 5 - NCE

If you want to modify for your device, you can edit strings.xml

 

Attachments

Last edited:

corybucher

Senior Member
Dec 29, 2009
1,353
116
0
Installed this but it force closes everyone I open it

---------- Post added at 07:22 PM ---------- Previous post was at 07:22 PM ----------

Everytime*
 

kizzle4

Senior Member
Nov 5, 2010
94
16
0
Almost certain it doesn't but mostly just because we've always been stuck with one and never had this kind of option.. But I'm pretty sure we can't flash any non signed kernels with our locked boot loader.
 

carl1961

Senior Member
Dec 5, 2010
7,516
6,198
0
Tickfaw
no, it's the bootloader preventing custom kernels from actually booting
i can flash them though
we can flash modems with safestrap this. is your app? It would have been nice to have this to boot safestrap, and safestrap to install NJ5 kernel, then we would not need a computer all the time.

I will try and see if adb will install a kernel, if it fails then I would sat the bootloader is blocking any kernel
 
Last edited:
  • Like
Reactions: rawhide85

benwaffle

Senior Member
Dec 26, 2011
170
101
0
we can flash modems with safestrap this. is your app? It would have been nice to have this to boot safestrap, and safestrap to install NJ5 kernel, then we would not need a computer all the time.

I will try and see if adb will install a kernel, if it fails then I would sat the bootloader is blocking any kernel
I can make the app reboot to safestrap on flashing if you tell me how.
 
  • Like
Reactions: rawhide85

carl1961

Senior Member
Dec 5, 2010
7,516
6,198
0
Tickfaw
I can make the app reboot to safestrap on flashing if you tell me how.

@benwaffle you were absolutely right bootloader did not stop kernel install

putting nc2boot.img on internal sdcard then using adb

adb shell
su

dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14

reboot

it installed ns2 kernel and it booted to safestrap

here is the cmd windows readings


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\carl>adb shell
[email protected]:/ $ su
su
[email protected]:/ # dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14
dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14
20624+1 records in
20624+1 records out
10559760 bytes transferred in 1.450 secs (7282593 bytes/sec)
[email protected]:/ # reboot
reboot


your NC2Flasher.apk does FC and then Supersu popped so app has root

rebooted phone and app still FC

let me know what I can do to help
 

Attachments

  • Like
Reactions: rawhide85

benwaffle

Senior Member
Dec 26, 2011
170
101
0
@benwaffle you were absolutely right bootloader did not stop kernel install

putting nc2boot.img on internal sdcard then using adb

adb shell
su

dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14

reboot

it installed ns2 kernel and it booted to safestrap

here is the cmd windows readings


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\carl>adb shell
[email protected]:/ $ su
su
[email protected]:/ # dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14
dd if=/sdcard/nc2boot.img of=/dev/block/mmcblk0p14
20624+1 records in
20624+1 records out
10559760 bytes transferred in 1.450 secs (7282593 bytes/sec)
[email protected]:/ # reboot
reboot


your NC2Flasher.apk does FC and then Supersu popped so app has root

rebooted phone and app still FC

let me know what I can do to help
obviously `dd` works, that's what my app does
can you give me a stack trace?
 
  • Like
Reactions: rawhide85

carl1961

Senior Member
Dec 5, 2010
7,516
6,198
0
Tickfaw
ok how do I grab that "stack trace?"

here is log cat

line 69

01-20 06:53:18.221: V/ApplicationPolicy(1048): isApplicationStateBlocked userId 0 pkgname com.uubmub.nc2flasher



line 208

01-20 06:53:19.461: E/AndroidRuntime(27406): FATAL EXCEPTION: AsyncTask #1
01-20 06:53:19.461: E/AndroidRuntime(27406): Process: com.uubmub.nc2flasher, PID: 27406
01-20 06:53:19.461: E/AndroidRuntime(27406): java.lang.RuntimeException: An error occured while executing doInBackground()
 
Last edited:
  • Like
Reactions: rawhide85

carl1961

Senior Member
Dec 5, 2010
7,516
6,198
0
Tickfaw
obviously `dd` works, that's what my app does
can you give me a stack trace?
Got a idea. When you get your app to work I want to try and put nc2 on slot 1 run slot 1 which is nc2 to use your app to install nh1 kernel then hopefully it boots stock slot. If that works then we have a way to do things without odin. I already know that nc2 runs fine on Nl1 firmware except for kernel.


All attempts to install kernel from NC2 running on safestrap failed, and installing NH1 4.4.4 kernel with odin did not ignore safestrap being on slot1, so I had to use safestrap to set phone on stock slot to boot 4.4.4 rom

so even if you did a app to install NH1 successfully ,being in slot1 won't allow 4.4.4 rom to boot :( :(
 
Last edited:
  • Like
Reactions: rawhide85

sapps

Senior Member
Mar 17, 2007
1,226
1,269
0
@benwaffle

Awesome app. Thank you so much for creating it for us. One of my biggest problems with 4.4.4 was having to be tied to a computer for anything i wanted to flash. This has made life so much better.

One suggestion I would have is...I wonder if it would be possible to have your reboot method automatically boot into SS instead of having to choose it. I know that @RErick had created an option for the ATTNote 3 that when reboot to recovery was chosen from the Power Options that it automatically went to SS. Maybe you and he can get that together.
 
  • Like
Reactions: rawhide85