Jump to content

Modifying a kernel installer for SWITCH


Guest Edubyah

Recommended Posts

Guest Edubyah

This is just a thread to discuss modding updater-scripts so we can use mods on our newly found love "SWITCH ROM".

I will update this as we make progress and recommend it's deleted when SWITCH mods are mainstream. Please use this thread for things that would be "off-topic" in the Beta thread.

BE CIVIL

NO FLAMING

ANYONE WANTING TO TRY P.M. ME FOR A LINK BULLETPROOF KERNEL FOR SWITCH ROM

LOST AFTER SWITCHING TO EACH ROM

NEW LINK NEEDS TESTING MORE BUT SO FAR SO GOOD. http://www.mediafire.com/download/ub19h5cwe4lsrua/Bulletproof-SWITCH2.zip

HAS SURVIVED SWITCHING

Edited by Edubyah
Link to comment
Share on other sites

Guest descenpet

That's still an AROMA installer.

We should make a new thread for this. I'm not going to clutter this one anymore mods delete as neccessary. PLEASE USE THIS THREAD FOR THIS DISCUSSION http://www.modaco.co...ler-for-switch/

quoting you from switch thread, yes, you can edit updater-script from aroma zip too. it is not much different from editing a normal update.zip.

Link to comment
Share on other sites

Guest Edubyah

quoting you from switch thread, yes, you can edit updater-script from aroma zip too. it is not much different from editing a normal update.zip.

quoting you from switch thread, yes, you can edit updater-script from aroma zip too. it is not much different from editing a normal update.zip.

Alright I've done the Bulletproof kernel, it's working.

LOST AFTER SWITCHING TO EACH

Edited by Edubyah
Link to comment
Share on other sites

Guest descenpet

IF SOMEONE WANTS TO LOOK THIS IS IT http://www.mediafire...-SWITCH-4.3.zip

DOESN'T SURVIVE 100% AFTER SWITCHs

because you didn't copy boot.img to /system/SWITCH/gpe/boot or /system/SWITCH/sense/boot

after this line

run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p33");

add something like

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/gpe/boot/boot.img");

or

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/sense/boot/boot.img");

or add both lines if yo want to install the same to both gpe and sense.

Edited by descenpet
Link to comment
Share on other sites

Guest Edubyah

because you didn't copy boot.img to /system/SWITCH/gpe/boot or /system/SWITCH/sense/boot

after this line

run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p33");

add something like

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/gpe/boot/boot.img");

or

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/sense/boot/boot.img");

or add both lines if yo want to install the same to both gpe and sense.

OKAY IT SEEMS TO BE WORKING NOW. NEW LINK http://www.mediafire.com/download/ub19h5cwe4lsrua/Bulletproof-SWITCH2.zip

Link to comment
Share on other sites

Guest illmatic416

because you didn't copy boot.img to /system/SWITCH/gpe/boot or /system/SWITCH/sense/boot

after this line

run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p33");

add something like

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/gpe/boot/boot.img");

or

run_program("/sbin/busybox", "cp", "/tmp/boot.img", "/system/SWITCH/sense/boot/boot.img");

or add both lines if yo want to install the same to both gpe and sense.

This helped with getting ElementaX to install without borking wifi after switching back and forth on either ROM. However my settings that I setup in Aroma do not activate. Any tips? THanks

elementalx.conf installs into system/SWITCH/gpe/etc with all my settings, but it appears those settings are not being activated during the install. I checked the data/local directory which is suppose to have a log if the settings were installed correctly, but there is no log file.

Edited by illmatic416
Link to comment
Share on other sites

Guest Edubyah

This helped with getting ElementaX to install without borking wifi after switching back and forth on either ROM. However my settings that I setup in Aroma do not activate. Any tips? THanks

elementalx.conf installs into system/SWITCH/gpe/etc with all my settings, but it appears those settings are not being activated during the install. I checked the data/local directory which is suppose to have a log if the settings were installed correctly, but there is no log file.

Set up your options you want enabled in TricksterMod.apk. That's what I had to do. In both roms.

Link to comment
Share on other sites

Guest illmatic416

Set up your options you want enabled in TricksterMod.apk. That's what I had to do. In both roms.

Thanks for the suggestion..i've never used TricksterMod. It works pretty well so far, but doesn't let me configure the other options like logo2sleep, and turnoff swipe2wake, etc. If the updater-script can be modified to install as usual, I figure there has to be a way to implement the configuration. With elementalX, you can change the settings in the elementalx.conf in /etc, but apparently the process which tells the device to use this conf file isn't being implemented during install. So the file is being created, but not being called for use.

Edit: My stupid-ass didn't see the screenwake control in TricksterMod! Thanks for the tip again

Edited by illmatic416
Link to comment
Share on other sites

Guest Clselfridge

Is it necessary to do the install from the sense side? I ran the installer while in gpe and when I switched back my home button was all sorts of messed up. Along with vibration and maybe other stuff that I didn't pick up on before dirty flashing to get back to stock.

Link to comment
Share on other sites

Guest robt772000

I can say everything works except on the GE rom the home button doesn't do anything. And sometimes the camera crashes. Wifi works though.

Link to comment
Share on other sites

Guest Edubyah
Is it necessary to do the install from the sense side? I ran the installer while in gpe and when I switched back my home button was all sorts of messed up. Along with vibration and maybe other stuff that I didn't pick up on before dirty flashing to get back to stock.

I think it's something to do with this kernel in going to repack another one today.

Link to comment
Share on other sites

Guest Clselfridge

I think it's something to do with this kernel in going to repack another one today.

Ok cool I will keep an eye out for it. :-)

Link to comment
Share on other sites

Guest Edubyah

I've done some more testing and come to the conclusion we should probably make two installers. Even if we want to use the same kernel I think it will work better to pack a sense version and a gpe version. Sorry I can't update quicker but I have too many kids.

Link to comment
Share on other sites

Guest descenpet

I've done some more testing and come to the conclusion we should probably make two installers. Even if we want to use the same kernel I think it will work better to pack a sense version and a gpe version. Sorry I can't update quicker but I have too many kids.

that's what I did. Easier to edit and I can have different kernel or different config that way.
Link to comment
Share on other sites

Guest illmatic416

I also did two separate installers and never had an issue. Have you guys figured out any part of the script that allows for elementalx.conf to be implemented during install so you wouldn't have use TricksterMod? I've been trying to edit different lines in the script, but haven't figured it out.

Here is my base updater-script if anyone wants to throw it into their elementalx installer. I didn't do much other than change the directory locations to the proper ones.

http://www.mediafire.com/download/fv332jho3y7ylag/updater-script

Link to comment
Share on other sites

Guest descenpet

I also did two separate installers and never had an issue. Have you guys figured out any part of the script that allows for elementalx.conf to be implemented during install so you wouldn't have use TricksterMod? I've been trying to edit different lines in the script, but haven't figured it out.

Here is my base updater-script if anyone wants to throw it into their elementalx installer. I didn't do much other than change the directory locations to the proper ones.

http://www.mediafire.../updater-script

mine works fine including elementalx.conf. let me take a look at yours.

edit: you didn't change/add 1 more line to

package_extract_dir("system", "/system");

at line 523

Edited by descenpet
Link to comment
Share on other sites

Guest illmatic416

mine works fine including elementalx.conf. let me take a look at yours.

So my script creates elementalx.conf, but it doesn't use the settings. I disable swipe2wake and doubletap2wake, but they are always present until i use Trickstermod to disable.

Link to comment
Share on other sites

Guest descenpet

So my script creates elementalx.conf, but it doesn't use the settings. I disable swipe2wake and doubletap2wake, but they are always present until i use Trickstermod to disable.

see my reply above. try changing that.

i didn't select any wake option and they are not active. and i tried activating some through elementalx.conf and reboot, then they works. i disabled them in conf then they are gone again.

Link to comment
Share on other sites

Guest illmatic416

see my reply above. try changing that.

i didn't select any wake option and they are not active. and i tried activating some through elementalx.conf and reboot, then they works. i disabled them in conf then they are gone again.

I changed line 523 back to package_extract_dir("system", "/system"); still no go on my end...I even disable all wake functions too, but device still boots with dt2wake and sweep2wake on. Would it be possible to have a copy of your elementalX updater-script? Thanks for the help

Edit: Looks like i didn't modify that line on the file i uploaded, but I did after and still no changes. What is the proper code to add to that line? just /SWITCH/sense or gpe?

Edited by illmatic416
Link to comment
Share on other sites

Guest descenpet

I changed line 523 back to package_extract_dir("system", "/system"); still no go on my end...I even disable all wake functions too, but device still boots with dt2wake and sweep2wake on. Would it be possible to have a copy of your elementalX updater-script? Thanks for the help

Edit: Looks like i didn't modify that line on the file i uploaded, but I did after and still no changes. What is the proper code to add to that line? just /SWITCH/sense or gpe?

want to take a look at mine? https://www.dropbox.com/s/l8n5c01sy0jhs1w/ElementalX-m7-3.4%20-%20switchsense.zip

mine doesn't flash boot.img and some parts of /system directly so do a switch after flashing.

Link to comment
Share on other sites

Guest illmatic416

want to take a look at mine? https://www.dropbox....switchsense.zip

mine doesn't flash boot.img and some parts of /system directly so do a switch after flashing.

Thanks for helping me out. I flashed your file and the elementalx.conf file still doesn't seem to be implemented on my One. I checked etc/init.d to make sure there wasn't any script conflicting and even uninstalled TricksterMod and wiped cache and dalvik, but nothing. Maybe I'll try from a clean install again.

Here is my updater-script for the GPE side of things: http://www.mediafire.com/download/fv332jho3y7ylag/updater-script

Link to comment
Share on other sites

Guest descenpet

Thanks for helping me out. I flashed your file and the elementalx.conf file still doesn't seem to be implemented on my One. I checked etc/init.d to make sure there wasn't any script conflicting and even uninstalled TricksterMod and wiped cache and dalvik, but nothing. Maybe I'll try from a clean install again.

Here is my updater-script for the GPE side of things: http://www.mediafire.../updater-script

you did switch after installing mine right? if you did, i guess maybe your previous installs screwed up something.

Link to comment
Share on other sites

Guest descenpet

So which download is currently working correct? the on in OP or the one a few post above? TIA for the reply

mine is working at least for me.
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.