[Q] Need help making custom haptic feedback - T-Mobile Samsung Galaxy S 4

I really like strong haptic feedback with pressing the captivate buttons. I've made custom mods before for increasing the haptic feedback, but I seem to be stumped on how to get it working right on the S4.
Previously I've always followed instructions from this thread modifying the framework-res.apk, and adapting it for whatever phone I was on. Most recently this was the Tmobile G2 phone, and it worked great. I was able to give myself super strong haptic feedback with no issue.
Now with the S4 I've run into an issue. I follow all the instructions from the guide, and get the framework-res.apk compiled with no issues. I made a flashable zip file to install it. I'm able to flash the zip from recovery and it successfully flashes, but when looking in the file manager I notice that the framework-res.apk date has not changed. I also have the same weak haptic feedback that I've been using since I got the phone.
I don't think the date is really an issue or indication that the file was not changed, due to the fact that I used the same process for making a flashable zip for my old phones, as well as the AOSP browser for this phone. They all always never changed the date.
My question really is this, is there an easier way to do this that I'm just overlooking, or is it not possible to do this because of the samsung touchwiz stuff?
currently my updater-script looks like this:
Code:
ui_print("Installing");
show_progress(1, 15);
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
run_program("/sbin/busybox", "mount", "/dalvik");
package_extract_dir("system", "/system");
ui_print("Installing complete");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/dalvik");
run_program("/sbin/busybox", "umount", "/sdcard");
ui_print("All Done");
And the values in the arrays.xml are as follows:
Code:
<integer-array name="config_longPressVibePattern">
<item>50</item>
<item>50</item>
<item>140</item>
<item>140</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>50</item>
<item>120</item>
<item>140</item>
<item>160</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>160</item>
</integer-array>
<integer-array name="config_safeModeDisabledVibePattern">
<item>50</item>
<item>51</item>
<item>140</item>
<item>141</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>50</item>
<item>51</item>
<item>140</item>
<item>141</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>50</item>
<item>70</item>
<item>120</item>
<item>120</item>
I've tried using smaller numbers like I usually do. I normally don't have anything above 70 when I've done the mod before, and can physically feel a big change. Even with the numbers pumped like these I'm still feeling very weak haptic feedback.
Any help on this would be greatly appreciated. I know this type of mod is normally per ROM and currently I'm using the WICKED™ v2 [ 5-15-13 ] Deviant Development -MDL- 4.2.2 from evil1art to try get the mod working.

I think I may have found another way to try things. Want to say thanks to elesbb for commenting on this thread.
His signature has links to some other tool I'm going to have a go with. Will be a few days before I get a chance to try again though.
Still open to suggestions / directions on if I'm doing something wrong or if this is even possible with the TouchWiz stuff. Really want to get stronger haptic feedback.

Related

[DEV Q] updater-script and edify

can someone smarter than me help me or point me in the right direction to convert my updater-scripts to edify. i think im sort of getting it but i want to make sure because i'm not a programmer. for instance, is the update-binary file required or just updater-script? also, the code posted below, it what i've come up with for flashing my themes, is it correct? and will it work with the new recoveries?
Code:
ui_print("Preparing system for istallation...");
ui_print("Wiping Cache / Dalvik...");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
i am unsure whether or not i will have to mount the specific partitions for data and cache for this to work. i can always leave that part out but the less the person flashing needs to do the better. if i do have to mount in the script will the code below work for just a simple theme flash.
Code:
ui_print("Preparing system for installation...");
run_program("/sbin/mount", "/dev/block/mtdblock4", "/system");
ui_print("Installing Project_Bliss HD...");
show_progress(0.100000, 60);
package_extract_dir("system", "/system");
show_progress(1.000000, 0);
Anyone?
10 char
No one? Hmmmm?
I'm still not too too familiar but I have played around with them a little. From what I understand so far the binary is what the recovery actually uses. dsixda's kitchen will make them and you can have it convert update to updater scripts automatically.
Usually I just look at how others have done it and go from there.
[KITCHEN][DEC. 7 '10] HTC Android Kitchen, v0.110 [Linux / Mac / Windows]
I had another link somewhere that gave all of the different commands and their syntax but I can't find it for nothing atm.
git hub - android edify readme
Not sure that link (edify readme) is working--- is this the same one you were referring to?
https://github.com/koush/android_bootable_recovery/blob/eclair/edify/README
try this bro...
http://forum.xda-developers.com/showthread.php?t=936175

[Q] PLEASE HELP with Integrating Data Apps to CM7 Rom Zips for flashing purposes

Hi all,
I was just wondering whether there is someone here can help with my problem trying to integrate data apps into any and all future custom rom zips... A couple of good people at Modaco helped me with the coding to add into the updater-script file so that I can modify the CM7 custom rom zips so that after flashing this modified rom zip it will install additional apps into the data apps storage, however, in my current progress to flashing my modified cm7-buzz-rom-247.zip, none of the data apps will install, I found they just get extracted into the data/app folder!!!...
Here below is the coding in red that was given to me to add into the updater-script file so that I can add data apps to the phones internal app data storage, can someone here please help me with this problem and correct any of the coding below... I have very little coding experience, so can not see what the problem is that is causing the data apps to just be extracted into the data/app folder instead of installing them!!!...
Thanks in advance! ^_^
|
|
|
|
show_progress(0.200000, 0);
format("yaffs2", "MTD", "system");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("recovery", "/system");
package_extract_file("check_data_app", "/tmp/check_data_app");
set_perm(0, 0, 0777, "/tmp/check_data_app");
run_program("/tmp/check_data_app");
format("yaffs2", "MTD", "userdata");
mount("yaffs2", "MTD", "userdata", "/data");
delete_recursive("/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
delete_recursive("/system");
package_extract_dir("system", "/system");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
|
|
|
|
unmount("/system");
unmount("/data");
Click to expand...
Click to collapse
UPDATE!!!
Problem should sorted... So yeah!... THANKS for all the help and replies to this post and problems

help with uot

i m cooking rom..
i cooked flashable zip in uot .
now how can i integrate that flashable zip in my rom zip?
should i just paste it some where and then in updater-script i should add that code (will search on what code to write) to flash it after instalation of my rom [but will this work cuz its writen on the uot kitchen webpage that do not flash on the first boot]
plz help
i did one thing..
i read the update-script
and it was
Code:
ui_print("Applying UOT framework");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/framework/framework-res.apk");
package_extract_dir("framework", "/system/framework");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "mount", "/system");
delete("/system/app/SystemUI.apk");
package_extract_dir("app", "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying UOT fonts");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fonts", "/system/fonts");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Applying UOT bootanimation");
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
i removed the framework-res.apk from my rom zip file
and then pasted the one from the zip i got from uot
then i removed systemui.apk
and pasted from the one i got from uot in to my roms zip file..
and then took the zip file and pasted in my cell,
flashed the rom.zip in via cwm recovery ..
unforrtunately i dont have a status bar :O plz some one gimme a hand and guide a lil to integrating uot and my rom .. and making one flashable zip
ny one der to help ? :'(
will someone help me plzzzz??/
sorry, i just replied on your other thread, lol. After you have cooked up your uot theme, download it and copy it to your sd card. then just go into cwm recovery and flash the .zip of the theme u built, any mods you made in the uot kitchen will be applied to your rom. Thats the simplest way to do it.

[Q] CWM Edify? Help please

Right How would I create a updater-binary I know how to for Updater-script.
And many thanks in advance I l give you thanks if you can answer?
You can extract the binary from any update.zip script, you don't need to build your own.
Can you take a look at my Theme Im making If i upload it to mediafire Its Getting installation aborted status 6 but im using notepad++?
edit:
Really need help and Can You Recomend any lockscreens?/
ui_print("-Checking Model ID");
ui_print("-Success!");
ui_print("Please be patient");
ui_print("1st boot may take a few minutes");
ui_print("Welcome to My Xperia S packet ");
ui_print("By Installing this You herby take full");
ui_print("Responsibillity of your device and what");
ui_print("you do with it no one can be held of ");
ui_print("Bricks or Death to your device");
set_progress(0.1)
format("MTD", "cache");
ui_print("Warning this Formats Your data Meaning your Apps are wiped!");
format("yaffs2", "MTD", "system");
format("yaffs2", "MTD", "userdata");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
run_program("/sbin/busybox", "rm", "-rf", "/sd-ext/*");
run_program("/sbin/busybox", "rm", "-rf", "/sdcard/.android_secure/*");
run_program("/sbin/busybox", "umount", "/sd-ext");
run_program("/sbin/e2fsck", "-pv", "/dev/block/mmcblk0p2");
set_progress(0.2)
format("MTD", "userdata");
mount("MTD", "system", "/system");
set_progress(0.9)
ui_print("Cleaning up enjoy This In a few ");
ui_print("~Starting Clean~");
ui_print("Finished Clean");
unmount("/system");
ui_print(";"X");
ui_print(";"~P");
ui_print(";"~~E");
ui_print(";"~~~R");
ui_print(";"~~~~I");
ui_print(";"~~~~~A");
ui_print(";"~~~~~~4");
ui_print(":"~~~~~~~L");
ui_print(";"~~~~~~~~I");
ui_print(";"~~~~~~~~~F");
ui_print(";"~~~~~~~~~~E");
ui_print("Finished Process Reboot & enjoy");
Can you tell me whats wrong? Idk what ive done wrong

[Q] My flashable mods

What am I doing wrong? I get "error in /tmp/sideload/pkg" when I flash. here is my script:
#BiteBlaze updater scriptui_print("Welcome to mod installer for ReloadedROM")run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");ui_print("Installation Succesful!");
help please!
I also Attached an example of a Win7 SoftKey Mod for more info. I just can't see what I'm missing/doing wrong!
And by the way, this is for my thread as I am testing v1.2 right now and I'm going to release it and the mods to testers once these work... so, motivation!
I can't figure it out ether I read it could be a signature issue .... if you figure it out i can be one of you testers
Sent from my HellfireKindle using Tapatalk 2

Categories

Resources