[Q] How to push HTC_IME MOD to system app through Terminal Emulator - EVO 4G Q&A, Help & Troubleshooting

Peace all,
t
his is less of a bug and more of a question… i think. I'm trying to install a custom theme for the HTC_IME MOD keyboard.
Here goes: I downloaded Myn's RSL2--the ROM is GREAT!! However, the HTC_IME MOD he uses is MANUP's (all black keyboard w/ green highlights)--which looks great---but its difficult on my eyes and I need something a little lighter. So i downloaded the regular HTC_IME MOD and attempted to open it in ASTRO and it only gave me the options of "launch" or "uninstall". When i tried to uninstall it said i couldnt do it---so i went through Titanium Backup and un-installed it there---now i can't re-install from ASTRO.
can anybody assist me w/ Terminal Emulator commands to PUSH this to system app?
I think the problem is due to the fact that Myn's original keyboard is baked into the rom, but i don't know how to re-install or install over this. Any help is appreciated.
-ZDK-

Does anybody know?

easiest way would be through adb, but since you want to use emulator...
put the apk on the sdcard
go into terminal emulation
type 'su', it should give you a # prompt
Code:
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
#mv /sdcard/whateverthefileiscalled.apk /system/app/whateverthefileissupposedtobecalled.apk
#exit
reboot it. that should work. if not, it's probably because i've copied the wrong mount command. google it. keep in mind that system is on block four on evo

timothydonohue said:
easiest way would be through adb, but since you want to use emulator...
put the apk on the sdcard
go into terminal emulation
type 'su', it should give you a # prompt
Code:
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
#mv /sdcard/whateverthefileiscalled.apk /system/app/whateverthefileissupposedtobecalled.apk
#exit
reboot it. that should work. if not, it's probably because i've copied the wrong mount command. google it. keep in mind that system is on block four on evo
Click to expand...
Click to collapse
Peace timothydonohue
Followed your directions...got a little [email protected] #mv /sdcard/---i put HTC_IME_hi22.apk---but i didnt/dont understand what you mean when you say in the next part to put it as "whateverthefileissupposedtobecalled.apk"---wouldnt that be the same as HTC_IME_hi22.apk?
stuck...
-ZDK-
*EDIT* I got it working

cool
congrats. hope i was at least a little help

Related

Change G1 Boot Animation without abd

I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
After reading a little more i can see that this will never work for me and my ROM (I'm a donut)
So yea... anyone know if anything like this is possible in a donut build?
not like the animations from eclair . as far as i have been able to find this is only a eclair thing.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
adb push boot1.gif /system/media/bootscreen/
adb push boot2.gif /system/media/bootscreen/
adb push boot_animation.xml /system/media/bootscreen/
adb push boot_bg.gif /system/media/bootscreen/
adb push boot_bg.mp3 /system/media/bootscreen/
unzip the file
xile6 said:
adb push boot1.gif /system/media/bootscreen/
adb push boot2.gif /system/media/bootscreen/
adb push boot_animation.xml /system/media/bootscreen/
adb push boot_bg.gif /system/media/bootscreen/
adb push boot_bg.mp3 /system/media/bootscreen/
unzip the file
Click to expand...
Click to collapse
First of all, if you even read his request, he wants to know how to do it via terminal since he doesn't want to install adb drivers on his computer and I'm pretty sure .gif boots won't work on a cupcake/donut/eclair/ ROM unless they are a HTC SENSE ROM. Please read before posting some BS.
Dude you should just flash via Recovery.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
try
cat /sdcard/bootanimation.zip > /system/media/
Macrophage001 said:
try
cat /sdcard/bootanimation.zip > /system/media/
Click to expand...
Click to collapse
Not gonna work, 1) What the hack are you trying to do with that command and 2) He's on Donut, he needs eclair
Damn My eyes are terrible.
note to self:
READ BEFORE WRITE!!!!
on google donut builds, you're stuck with the android-logo-mask and android-logo-shine boot animations. on hero builds, you can use the animated gifs. on eclair builds, you can do the bootanimation zips. if you want to know how to do a standard google build boot animation without using adb, check the link in my signature. i made a full written + video tutorial on how to do it.
the other easy way to do it, is of course, metamorph. making the .thm files takes about 30 seconds and you can flash it without having to use adb, terminal OR recovery.
So how did Cyanogen make a custom boot animation for CyanogenMod?
exactly in the fashion shown in my video tutorial. its not hard.
CM=google build.
your signature
kusotare said:
exactly in the fashion shown in my video tutorial. its not hard.
CM=google build.
Click to expand...
Click to collapse
Dude I love your sig...its tight how you got everything you are running in the form of a link, so people who want the same can easily learn how to do it without asking questions(which they still will do anyway) by simply clicking your links.
thats what I call community contribution.
heh, thanks, i havent updated the links in a LONG damn time though, as you can see. I'm obviously not running CM 4.2.3.1 anymore.
Kudos for the Vibrant!
Gotta love that 4.0 amoled screen dislplay.
and I love how Klyentel has his "G1-BRICKED!"
in his signature, too funny.
ekeefe41 said:
I do most of my hacking from work. I am uncomfortable installing drivers for adb and such on a PC that i am not admin.
So I tried
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/bootanimation.zip /system/media/
reboot
Did not work....
Anyone know if it this possible?
Click to expand...
Click to collapse
yeah it is possible i do it all the time download terminal emulator form the market and enter the following commands
su
# cp /sdcard/bootanimation.zip /data/local/
# reboot
it works for me all the time

How to stop the OTA pop up?

I do not want it i'm perfectly fine with my phone the way it is I get great battery life my wifi tether works great and i have read up on all these forms there is no way of getting the update without losing something.Either root or wimax or something so i don't want the update yet everyday it keeps popping up how can i stop this? And is there anybody out there that is not running any rom that has got the update successfully and not lose anything preferable with unrevoked 2?
auau465121 said:
I do not want it i'm perfectly fine with my phone the way it is I get great battery life my wifi tether works great and i have read up on all these forms there is no way of getting the update without losing something.Either root or wimax or something so i don't want the update yet everyday it keeps popping up how can i stop this? And is there anybody out there that is not running any rom that has got the update successfully and not lose anything preferable with unrevoked 2?
Click to expand...
Click to collapse
This has been posted before but here's a quick rundown.
1. First, you need a root method that allows you to modify the /system directory. I prefer Toast's but I think Unrevoked2 allows this as well.
2. Download the android sdk. Open a command prompt, cd into the directory you extracted it in and type in the following:
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /system/etc/security
mv otacerts.zip otacerts.zip.old
Reboot and tada. You'll never see a popup again.
It would Be nice to find an answer for your question too.. (never mind "chuckhriczko" answered just before me posting )
But incase you care I also got the message on my phone and my wife's phone while running ROM OMJ 1.4r.. but only got it once no repeats I installed ROM Fresh 0.5.3 on both phones yesterday and I have not been asked to do the update on either phone and I have rebooted the phones multiple times..
Take care..
P.S.
chuckhriczko
Thank you for the info..
This has been posted before but here's a quick rundown.
1. First, you need a root method that allows you to modify the /system directory. I prefer Toast's but I think Unrevoked2 allows this as well.
2. Download the android sdk. Open a command prompt, cd into the directory you extracted it in and type in the following:
Code:
adb shell
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /system/etc/security
mv otacerts.zip otacerts.zip.old
Reboot and tada. You'll never see a popup again.
Click to expand...
Click to collapse
Thanks trying now
It would Be nice to find an answer for your question too.. (never mind "chuckhriczko" answered just before me posting )
Click to expand...
Click to collapse
yeah but thanks
Maybe I'm missing something, but why can't you just go into:
System Updates -> HTC Software Update
and uncheck "Scheduled Check"

[Q] advanced adb and terminal questions

ok, so i am a pretty advanced user, but i have some things that i need to know.
first of all, i am having trouble mounting /system in rw in the terminal emulator app. could somebody tell me the code?
my next question is for terminal (mac) in general. whenever i get a prompt to give a password, for example, when i am trying to run recovery-mac.sh (yes i am nand unlocked so i dont need this but it is helpful to do if i am already in recovery) i see
password:
and i am unable to type anything. could somebody please help me on this one bcuz i am stumped.
and finally, anybody know of a good mac alternative for notepad++? thanks.
dk
ok, so i answered two of my three questions. the passowrd: promt simply doesnt show what you type, so your password stays hidden. second, coda is a good notepad++ alternative, but i still dont know how to create a no-extension packadge.
plz answer my first question
Of what value is a password if it is echoed to the screen or (back in the day) printed on a hard copy terminal.
Once you've achieved root (the # prompt) it should be something along the lines of
# mount -o remount,rw /system
The various *nix flavors all vary somewhat but that should be about right. Try mount -? Or man mount for details on this specific implementation.
Not to be rude, but these are fairly rudimentary items that should be well within the knowledge of a "pretty advanced" user.
Swyped on my PC36100 using tapatalk.
thanks for answering john, but that isnt a very straightforward answer. first of all, these questions are totally unrelated. second, i want to know a good app to write no-ex files because i am just starting to make flashable zips. third, COULD YOU PLEASE JUST TELL ME THE COMMAND TO MOUNT READ-WEITE IN THE TERMINAL EMULATOR APP IF I HAVE SU PERMISSIONS. thanks
1) # mount -?
Has your answers, but since you are unwilling to RTFM, I suggest you try what I told you. It has a high degree of likelihood to work.
2) mount -o remount,rw /system
Im not big on spoon feeding the answer as it really doesn't teach.
Swyped on my PC36100 using tapatalk!
mount -o remount,rw -t yaffs2 /dev/mtdblock3 /system
Sent from the iPhone Assassin
fenixjn said:
mount -o remount,rw -t yaffs2 /dev/mtdblock3 /system
Sent from the iPhone Assassin
Click to expand...
Click to collapse
thanks fenixjn. i had no idea it was anything like that. i thought it was either the same command as an anb shell ( mount /dev/block/mtdblock4 /system) or mount -o -rw /system. thanks for giving me the correct info.

[GUIDE] Update CM without losing custom /system changes (ex Swype, keymap)

There's a really simple way to prevent CyanogenMod from overwriting your custom /system changes during an update. Create the file '/system/etc/custom_backup_list.txt' with a list of files within /system that you don't want to be overwritten.
For example, to prevent CM from wiping out Swype, open adb shell and type this:
Code:
mount -o remount,rw /system
cd /system/etc
echo lib/libSwypeCore.so >custom_backup_list.txt
echo app/Swype.apk >>custom_backup_list.txt
cd /
mount -o remount,ro /system
If you use teferi's custom keymap, do this:
Code:
mount -o remount,rw /system
cd /system/etc
echo lib/libSwypeCore.so >custom_backup_list.txt
echo app/Swype.apk >>custom_backup_list.txt
echo usr/keylayout/vision-keypad.kl >>custom_backup_list.txt
echo usr/keychars/vision-keypad.kcm.bin >>custom_backup_list.txt
cd /
mount -o remount,ro /system
Then the next time you flash CM, your changes to /system will still be there. If you want to see why this works, take a look at /system/bin/backuptool.sh
Hope this helps
Thanks! This is great; now I can easily keep my Email.apk that doesn't require me to enter a alphanumeric password every time I want to use the phone.
CM probably needs to overwrite build.prop but I've been changing the LCD density in this file. Is there a way to use a seperate file to override the lcd density so that i can let CM overwrite build.prop but still maintain lcd density after a flash?
Whatever commands you put in /data/local/userinit.sh will run at boot. So in adb shell, type this for a density of 215:
Code:
cd /data/local
echo setprop qemu.sf.lcd_density 215 >userinit.sh
awesome! thank you!
Don't suppose you would know how to get the CM update to not install/auto delete after installation apks like ADWLauncher and wifi calling?
Thank you!
This may be the long lost solution to my Swype and Cyan Problems. The new Release Candidates are destroying my swype and not liking it's return after installing the new Cyan. So, if this can basically help me update without losing much, it's a god send. Especially the LCD density.
You're a genius.
Thank you.
Hmm, seems the issue is still persistent. Thanks though.
Should userinit.sh and custom_backup_list.txt survive the upgrade or should they both be included in the backup list file?
Sent from my HTC Vision using XDA App
If you look at the actual script, it seems that it ignores the backuptool if .installscript exists, and in practice, I've noticed that nothing gets saved when flashing via ROM Manager. Is this, in fact, what's happening, and is there a way around it?
sundar2012 said:
awesome! thank you!
Don't suppose you would know how to get the CM update to not install/auto delete after installation apks like ADWLauncher and wifi calling?
Click to expand...
Click to collapse
You can put the following in /data/local/userinit.sh:
mount -o rw,remount /system
for apk in ADWLauncher.apk MS-HTCVISION-KNT20-02.apk
do
rm -f /system/app/$apk
done
for package in com.android.launcher
do
pm uninstall $package
done
mount -o ro,remount /system
exit 0
Click to expand...
Click to collapse
I haven't tried this for removing the Wifi Calling app, so ymmv. I remove a much larger set of apps myself (facebook, email, live wallpapers, amazon mp3 store, DSPManager, FileManager, Browser). http://wiki.cyanogenmod.com/index.php?title=Barebones has a list of apps that can be removed safely.
@cparekh -- what e-mail app is that? Or did you just use the pre-OTA's Email.apk app?
Rc4 has the trackpad wake fm radio and speaker led fixed its workng very smooth better than rc3
Sent from my HTC Vision using XDA App
sundar2012 said:
awesome! thank you!
Don't suppose you would know how to get the CM update to not install/auto delete after installation apks like ADWLauncher and wifi calling?
Click to expand...
Click to collapse
Just delete them from the cmupdate.zip before flashing. Cwm recovery doesn't require sig so u don't have to worry about resigning it.
OP: nice find, I'm sure ill use it at some point.
This is driving me crazy because I know I have used this command before but i cannot get it to work now... What is the deal?
Code:
$ mount -o remount,rw /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Rooted using gfree on this phone. On my previous phone I used wpthis and did not have a problem. Anyone know what I need to do to mount rw?
cparekh said:
Thanks! This is great; now I can easily keep my Email.apk that doesn't require me to enter a alphanumeric password every time I want to use the phone.
Click to expand...
Click to collapse
I need that apk
Sent from my HTC Vision using XDA App
Used this method to when going from stock to CM 6.1.1 and could not get it to work. I had to push/install manually from ADB.
Anyone had any luck? I did what the OP said then flashed. Was I supposed to do anything after flashing wiping and then flashing (CM & gapps)?
rraxda said:
This is driving me crazy because I know I have used this command before but i cannot get it to work now... What is the deal?
Code:
$ mount -o remount,rw /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
Rooted using gfree on this phone. On my previous phone I used wpthis and did not have a problem. Anyone know what I need to do to mount rw?
Click to expand...
Click to collapse
Make sure you have root in the shell by typing su.
cparekh said:
Thanks! This is great; now I can easily keep my Email.apk that doesn't require me to enter a alphanumeric password every time I want to use the phone.
Click to expand...
Click to collapse
IConrad01 said:
@cparekh -- what e-mail app is that? Or did you just use the pre-OTA's Email.apk app?
Click to expand...
Click to collapse
chubb16 said:
I need that apk
Sent from my HTC Vision using XDA App
Click to expand...
Click to collapse
I am also interested in that apk
How can I backup progress on Angry Birds? Drives me nuts starting back over when I reflash CM
Titanium backup. You can use it to restore the app and the data. Usually i just restore the data to a fresh install.

Swype Keyboard Issue

Well I was wondering if there was a way to get the original Swype Keyboard on a MIUI ROM. My friend told me about flashing it but I dont know how and where to get the file for it. Please help me, the Swype Keyboard BETA has issues and I want the original keyboard. Please post links..
If you got a nand back up you can use swype restorer
Or get one of the stock roms un zip it and take out the swype.apk and libswypecore.so and push them into the phone
I'll make it easy for ya:
adb shell
su
mount -o rw,remount /system
mv /sdcard/Swype.apk /system/app \\NOTE: use "cp" instead of "mv" if you want to keep the file on your sdcard as a backup for future use or whatever
chmod 644 /system/app/Swype.apk
mv /sdcard/libSwypeCore.so /system/lib \\NOTE: use "cp" instead of "mv" if you want to keep the file on your sdcard as a backup for future use or whatever
chmod 644 /system/lib/libSwypeCore.so
reboot
Click to expand...
Click to collapse
after your reboot, go to your language&keyboard settings, Swype should be available now.
EDIT: cleanup
pmcqueen said:
I'll make it easy for ya:
download attached files and push them to /sdcard/
(NOTE: before you move the libSwypeCore.so.zip, rename it to just libSwypeCore.so - I had to add .zip to be able to attach it here)
then run the following commands from ADB (or terminal emulator, you just don't need the adb shell command in that case):
after your reboot, go to your language&keyboard settings, Swype should be available now.
Click to expand...
Click to collapse
After " mv /sdcard/libSwypeCore.so /system/lib" I get the error " mv: can't rename '/sdcard/libSwypeCore.so': No such file or directory "
Please help!
I AM VS4 said:
After " mv /sdcard/libSwypeCore.so /system/lib" I get the error " mv: can't rename '/sdcard/libSwypeCore.so': No such file or directory "
Please help!
Click to expand...
Click to collapse
before moving libSwypeCore.so.zip from your PC to your phone, did you remove the .zip? sounds like it still thinks it's a zip to me.
how do I do that when it wont let me open the zip folder?
EDIT: cleanup
Thanks alot! It worked!! ;P
But the thing is that this Swype wont work! Everytime I swype a word a blue box flashes around it! Please help with this issue too!
did you reboot?
if so and it's still doing it, try clearing Swype data and rebooting again. if you're still having issues after that, let me know and I'll find a different apk for you to try.
yo im all for help and all but your really not allowed to distribute swype, its in the form rules, even if the phone had it, you would have to get it from your own phone, or as said get it from a stock rom,
Thanks for this post. My question no longer really has anything to do with Swype. Now its personal!! lol
When I copy and paste the
mount -o rw,remount /system​
command, it comes up showing the options for mount instead of executing the command. Is there by chance a syntax error in the typing or am I missing something?
Thanks
look in the market there is a app called remount you can use that to mount the system to read or read/write
Thank you!!!
Strange. Tried Remount app, no dice. Tried mount command, yet it still gives me a cross-link error when I try to run the "mv" command. I read that this error is due to the fact that it isn't mounted properly (I'm a complete noob at this stuff). The thing that puzzles me is I type
mount -o rw,remount /system and it always comes back with
Usage: mount [-r] [-w] [-o options] [-t type] device directory
which leads me to think there's some kind of syntax error.
It's to the point now that I just want to know why it isn't working as described in the post.
ok try this
mount -o remount,rw /dev/block/mtdblock3 /system
Thanks for the advice. I used the command you posted and it allowed me r/w access. But (there always seems to be a but...) when I tried to move files with the mv command I got a cross link error.
I ended up simply using the move function from root explorer (once I figured out what I was trying to do). Worked well.
ilostchild said:
yo im all for help and all but your really not allowed to distribute swype, its in the form rules, even if the phone had it, you would have to get it from your own phone, or as said get it from a stock rom,
Click to expand...
Click to collapse
Guess you didn't read the rules to well. If a custom rom is made for a device that has swype it can be included in rom
Just get swype from the website
Sent from my T-Mobile G2 using XDA Premium App
Spastic909 said:
Guess you didn't read the rules to well. If a custom rom is made for a device that has swype it can be included in rom
Just get swype from the website
Sent from my T-Mobile G2 using XDA Premium App
Click to expand...
Click to collapse
That's if them rom itself came from the stock kernal, not from asop kernal, think why cyanogen doesn't include it in his roms? But we are allowed to bring it back from our back up that has it,

Categories

Resources