Hello!
Since the most sites I'm surfing to have the ".de" TLD I would like to change the ".com" button to a ".de" button!
So far I managed to change the popup keys of this key fom [.net .com .org .de] to [.net .de .org .com]. This was done through Hex editing the file "resources.arsc" in HTC_IME.apk. This is nice because now i get the ".de" by somply holding the key...
Now I am searching for a possibility to change the whole key.
In "land_qwerty_de.xml" I found the following:
Code:
<key
codes="-7"
label=".com"
hgap="-144.0px"
width="73.0px"
splitSet="3"
splitLeft="true"
textScale="0.79999995%p"
popupCharacters="@7F090090"
feedbackBG="3"
accentType="1"
alignIndex="1"
>
</key>
Thet means, this key has the key code "-7".
I found this code in the binary version of the xml file. And i found all the other values too. (Thanks for the great xml editing how to!)
The part for "label" is the following:
Code:
08 00 00 03 B9 00 00 00
03 means this is a reference to a string in the string table of the ressources.
But I don't know what to do with the data "B9 00 00 00"
So my question is: Where to find the referenced Data in the Ressource file?
And: Is it enough to change the Label, or is there another keycode for .de?
EDIT: The label has to be somwhere in the .xml since AXMLPrinter2 can read it... But i cant find it...
EDIT2: Found it. But changing the label isnt enouhg, i need to find the keycode for .de...
would you share the .apk with us? i'm interested in this also
Maybe it's in the compiled code.. Try to smali the classes.dex
Thx for the tip, i'll try this.
I attached the HTC_IME.apk with ".de" on second position in the popup keys. Just push it to /system/app/ after unpacking.
I'll update here if I get any progress...
langer hans said:
Thx for the tip, i'll try this.
I attached the HTC_IME.apk with ".de" on second position in the popup keys. Just push it to /system/app/ after unpacking.
I'll update here if I get any progress...
Click to expand...
Click to collapse
does not work for me, extracted it to /system/app/HTC_IME.apk but also after rebooting the second key remains .com (.de on fourth). does it work for anyone?
felikz said:
does not work for me, extracted it to /system/app/HTC_IME.apk but also after rebooting the second key remains .com (.de on fourth). does it work for anyone?
Click to expand...
Click to collapse
Hmm, I just pushed this apk to my device and got this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
langer hans said:
Hmm, I just pushed this apk to my device and got this:
Click to expand...
Click to collapse
are you sure you didnt modify any other thing during testing and finding things out?
would be nice to know if u are the only one for which it works or i'm the only one for which it does not work :-D
felikz said:
are you sure you didnt modify any other thing during testing and finding things out?
would be nice to know if u are the only one for which it works or i'm the only one for which it does not work :-D
Click to expand...
Click to collapse
I'm going to test this again on another device.
Progress Update:
I'm pretty sure now that it has to be in the resource file.
In the file Keyboard$Key.smali i couldn't find anything looking like a keycode table but i found the function for getting the keys. For example it gets the popup keys like this:
Code:
Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
So, now i have to find the right occurance of ".com" in the resource file...
29 times i found .com in this file...
@felikz:
I just did an nandroid restor to a backup I made two days befor I started to investigate on this. After that I just pushed the apk to /system/app/ an i have the same result as before (.de on second place)...
I really don't know why it's not working for you...
ah okay i found out what happened:
i booted the phone into recovery mode, then adb push HTC_IME.apk /system/app/HTC_IME.apk, it said "upload okay"
now i realized, that the hero replaced your modified file with the original (or it just said "upload okay" but it was not really uploaded)..
how did you upload your file? with adb push in recovery or when running the phone in normal mode?
I copied it in normal mode.
Code:
adb remount
adb push HTC_IME.apk /system/app/
And then it works without rebooting.
langer hans said:
Thx for the tip, i'll try this.
I attached the HTC_IME.apk with ".de" on second position in the popup keys. Just push it to /system/app/ after unpacking.
I'll update here if I get any progress...
Click to expand...
Click to collapse
works fine, thanks!
UK
Could you modify the APK to have a .co.uk option please?
volatile_ink said:
Could you modify the APK to have a .co.uk option please?
Click to expand...
Click to collapse
For this i have to know how your current setting is. And even if I can add it, I'm not sure if it will work correct, since i will change the filesize. I dont' know how android android gets the ressources of this file...
when i enter adb remount i get: "remount failed: Operation not permitted"
felikz said:
when i enter adb remount i get: "remount failed: Operation not permitted"
Click to expand...
Click to collapse
I think you need a rooted phone for doing this...
Sorry.
unfortunately my phone is rooted ^^ ****..
does anyone has an idea about this issue?
felikz said:
unfortunately my phone is rooted ^^ ****..
does anyone has an idea about this issue?
Click to expand...
Click to collapse
And USB Debugging is set to On in settings? I think it has to be...
langer hans said:
And USB Debugging is set to On in settings? I think it has to be...
Click to expand...
Click to collapse
yes it is, and when for example entering
adb shell
su
i get root rights.. however, only in recovery mode i can push the file to the phone (i dont think that the push works, because actually the file is not replaced)
felikz said:
yes it is, and when for example entering
adb shell
su
i get root rights.. however, only in recovery mode i can push the file to the phone (i dont think that the push works, because actually the file is not replaced)
Click to expand...
Click to collapse
you have to adb shell mount system
Related
I've been poking around HTC's key.apk and HTC_CIME.apk in the hopes of somehow finding a way to activate the XT9 functionality (aka "Compact qwerty" and "20-key"). Still working on that. In the process, I found a neat little java app called AXMLPrinter2 which as the title suggests, converts Android's binary XML files back to human-readable XML. Take a look:
Code:
c:\and_test\java -jar AXMLPrinter2.jar p1220_symbol_sip.xml > p1220_symbol_sip.txt
Contents of p1220_symbol_sip.txt said:
<?xml version="1.0" encoding="utf-8"?>
<keyboard
width="53.0px"
hgap="0.0px"
vgap="0.0px"
height="55.0px"
keyTextSize="24.0px"
popupTextSize="32.0px"
accentPage="4"
keyboardBackground="@7F020074"
keyboardPadding="0,2,0,4"
functionKeyBackground="@7F020032"
commonKeyBackground="@7F020031"
pageKeyBackground="@7F02008A"
>
<row
>
<key
codes="0x0028,0x0040,0x005E,-14"
label="("
hgap="1.0px"
leftEdge="true"
popupCharacters="@7F08006B"
popupDelay="0"
accentType="3"
alignIndex="0"
>
</key>
...
Click to expand...
Click to collapse
Edit: there's supposed to be tabbing but xda forum code stripped em.
Well,
Now I can read the .xml but how can I edit it. I have the hex editor but the strings seem different.
beagz said:
Well,
Now I can read the .xml but how can I edit it. I have the hex editor but the strings seem different.
Click to expand...
Click to collapse
Hex editors are for modifying BINARY files, not plain text xml files. Use notepad, or something. But you'll need to rebuild the xml files after modifying for them to be of any use.
No I meant I can find the corresponding code in notepad using the .txt output and then I can change it in the hex editor. But I am trying to figure out what values to change.
.txt
text color="@7F050000"
.xml (hex)
00 00 05 7F
I can find the value but what part should be changed? in hex I know from stericson that values = BGR but which 6 of 8 should be changed?
OK, I found the problem. The ones that control color all have #FFFFFFFF as the format not @FFFFFFFF
thanks.
beagz said:
No I meant I can find the corresponding code in notepad using the .txt output and then I can change it in the hex editor. But I am trying to figure out what values to change.
.txt
text color="@7F050000"
.xml (hex)
00 00 05 7F
I can find the value but what part should be changed? in hex I know from stericson that values = BGR but which 6 of 8 should be changed?
Click to expand...
Click to collapse
Looks like its just different endianness.
This app isn't particularly useful if you just want to alter color values in a hex editor. It's more for a situation where you want to completely alter ui elements in an app without source code.
So then is there a way to convert back to binary?
anyone ever find a way to convert them back?
wow .. wrong thread lol
xile6 said:
anyone ever find a way to convert them back?
Click to expand...
Click to collapse
good question. anyone?
temporizer said:
good question. anyone?
Click to expand...
Click to collapse
yea i answered this in another thread .. lemme go look for my answer
EDIT: they talk about it here
Once you get xml element in notepad then how to convert it back to binary XML file
@above
valid question. im still searching for this answer myself.
im kinda out of place here but have been theming for a little while...but wanted to post this. its the axmlprinter2 and also amlprinter. the second file is an app that opens the xml inside of windows with out having to type in anything in cmd
from what i know you cant change anything in the file this way but at least it cuts a step or two out. enjoy
i prob wont see this thread again so pm me if u have questions
Why dont you guys just use apktool ? it allows you to read the xml, edit it and compile it back.
Apk tool is having issues with apps for 2.2. It is dependent upon smali, which JF will update soon. Other than that, it is probably your quickest way to edit xml.
Hi, I just tried to use AXMLPrinter2 to decode the status_bar.xml extracted from a 2.2 distribution. I get java.lang.ArrayIndexOutOfBoundsException.
If possible, can you confirm if this utility works with 2.2?
Thanks!
I'm getting the same problem, I cannot open XML files. I get an error. Any assistance?
Bump, same problem
What is wrong there:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ZduneX25 said:
What is wrong there:
Click to expand...
Click to collapse
I'm getting the same problem
made it easier to change the lockscreen wallpaper for you lot
image has to be 320x480 for it to look normal and has to be a .jpg
you have to have adb set up
instructions:
1. download and unzip the lock screen folder to anywhere you want
2. place your desired image into the lockscreen folder (make sure theres only one image here)
3. double click lockscreen.bat
4. wait for your phone to reboot with your new lockscreen image
http://www.zshare.net/download/61708386e89ec17c/
thanks to xidominicanoix image name doesnt have to be limited to 18 characters
Donate
this WORKS
my steps were:
1. download the file... unzip and open lockscreen folder
2. place an image 320x480 in this folder (The name does not matter, will be renamed in process)
3. Connect phone (ADB is required)
4. Run .bat file (ADB remount, rename, and cp to default_lockscreen land/port)
5. It will reboot on its own
6. SEE ATACHMENT.. Youre all done..
Is this a straight rip of it? Meaning it displays calendar, music and message notifications while locked?
this is for the hero rom only, as when you try and change your lock screen wallpaper the gallerly crashes. the only way to do it is through adb or terminal
i just made this to make things easier when i wanted to change my wallpaper and id thought i share it
That's what I figured, just wasn't clear. Thank you for clearing that up for me.
dpgc213 said:
this is for the hero rom only, as when you try and change your lock screen wallpaper the gallerly crashes. the only way to do it is through adb or terminal
i just made this to make things easier when i wanted to change my wallpaper and id thought i share it
Click to expand...
Click to collapse
How exactly do you change the wallpaper manually? I have a 320x480 jpg that I want to use for my lockscreen wallpaper and named it Default_lockscreen.jpg and put it on the root of my sd. This is what I did:
Code:
# rm -r /system/etc/lockscreen/port/Default_lockscreen.jpg
# cp /sdcard/Default_lockscreen.jpg /system/etc/lockscreen/port/Default_lockscreen.jpg
Then rebooted. But it didn't work, it just shows no wallpaper when it should show the lockscreen wallpaper. What do I need to do?
just use the bat file i posted its quicker, if you want to do it manually you need to add the lock screen image to the landscape folder in /system/etc aswel
damn so easy, love it, good work...
matt_stang said:
How exactly do you change the wallpaper manually? I have a 320x480 jpg that I want to use for my lockscreen wallpaper and named it Default_lockscreen.jpg and put it on the root of my sd. This is what I did:
Code:
# rm -r /system/etc/lockscreen/port/Default_lockscreen.jpg
# cp /sdcard/Default_lockscreen.jpg /system/etc/lockscreen/port/Default_lockscreen.jpg
Then rebooted. But it didn't work, it just shows no wallpaper when it should show the lockscreen wallpaper. What do I need to do?
Click to expand...
Click to collapse
check out my post, post 2 for a step by step which might be alittle more clearer... its what i did, n is exactly the same as the instructions
worked like a charm
if anyone needs 320x480 pictures interface lift has some really nice ones
check this one out
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i'll try that now thanks
hmmmmmmmm....
this is not working for me,,,,,,
damn idk....
I dont know if I did it correctly... the cmd prompt only popped up for a split second it renamed the picture but did not reboot the phone...
Yes I have adb installed correctly. I use it all the time.
Does it matter where I extract the lockscreen folder? edit: ANSWER: it can be extracted anywhere. I have it on my desktop.
EDIT:
Fixed... for people with the same problem try rebooting your phone before you try this process. It works.
i posted how to fix this a few days ago...
http://forum.xda-developers.com/showthread.php?p=3882370#post3882370
i think i know y. i have adp1.5 and not hero duhhhhhhhhhhhh
Bumped for everyone using SuperHERO rom and complaining about Lockscreen wallpaper.
I've searched and i cant find a way to switch the hero lock screen through terminal emu. I know that for the method posted on the OP u need ADB but is there a way to do it on terminal? and if so could some one post the coding...
Thanks in advanced..
qnzmental said:
I've searched and i cant find a way to switch the hero lock screen through terminal emu. I know that for the method posted on the OP u need ADB but is there a way to do it on terminal? and if so could some one post the coding...
Thanks in advanced..
Click to expand...
Click to collapse
There's a way but I'm not too sure of the codes. If you have ADB working for you on your pc this would be easiest. It runs all the commands for you then reboots your phone.
Hey, can someone post a nice little image so I don't have to go about making my own? Thanks!
Here is the lock-screen from the 1st 'superhero' build..as well as others. I will update as I get time and also I do not take any credit for these as they are not my creations.
Well I am now finally going to create my first theme and I am getting myself pretty familiar with everything but I had a question...
I know the stuff that cannot be messed with and all seeing as how I am working with the cm builds but would anyone know where I could find the terminal stuff. I wanted to change up that icon if I could to something a little more theme filling?
Thanks in advance and as soon as I get something going I will posts images.
brilliant - i for one look forward to seeing you work.
but sorry, can't help you with your Q.
APEX.7 said:
brilliant - i for one look forward to seeing you work.
but sorry, can't help you with your Q.
Click to expand...
Click to collapse
Terminal stuff?
/apps/term.apk has the terminal app 'stuff'
All you can change images wise is the terminal icon basically.
Are you just wanting to change the terminal icon (such as in the drawer?)
If thats the case, open the apps folder in your ROM and find the term.apk and open that. navigate to the drawable folder and the icon is in there.
Thats cool. Thanks for the confidence boost on creating...
Yeah pretty much just the icon...And thanks all for the help
Question...yet again...
I am using the auto signing program and am signing my little beta theme for testing and when I am loading it via the recovery mode I get E:Can't find update script. I am still new so if any help I would appreciate much.
Also should I include the fonts folder just as a precaution. I am not including that in my theme as I know there is the font chooser program out there as well so I figure let people have there own choice in font...again thanks
Yeah you need an update script, which will be found at /META-INF/com/google/android/update-script
and should look like this:
Code:
copy_dir PACKAGE:framework SYSTEM:framework
copy_dir PACKAGE:system SYSTEM:
or something along those lines.
This script is assuming your zip file contains the following structure:
/framework
/system
/system/app
There is a simpler one that only needs to contain the second line and has the structure like this:
/system
/system/app
/system/framework
daveid said:
Yeah you need an update script, which will be found at /META-INF/com/google/android/update-script
and should look like this:
Code:
copy_dir PACKAGE:framework SYSTEM:framework
copy_dir PACKAGE:system SYSTEM:
or something along those lines.
This script is assuming your zip file contains the following structure:
/framework
/system
/system/app
There is a simpler one that only needs to contain the second line and has the structure like this:
/system
/system/app
/system/framework
Click to expand...
Click to collapse
Ah ok...Any idea where I can get that file or folder by chance?
holmes901 said:
Ah ok...Any idea where I can get that file or folder by chance?
Click to expand...
Click to collapse
Here is a completely blank update.zip that has a proper update script in it, drop your files in re-sign, and go.
daveid said:
Here is a completely blank update.zip that has a proper update script in it, drop your files in re-sign, and go.
Click to expand...
Click to collapse
Thanks so much for the download and the help.I should be good to go now so no more worries.
So far what I have for my first
So the screen below shows what I have so far...I am still working on it and hoping I can get the blur transitions into the mix as well as maybe more or better icons...If anyone has a link where I could get the blur transitions from feel free to send my way.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
holmes901 said:
Question...yet again...
I am using the auto signing program and am signing my little beta theme for testing and when I am loading it via the recovery mode I get E:Can't find update script. I am still new so if any help I would appreciate much.
Also should I include the fonts folder just as a precaution. I am not including that in my theme as I know there is the font chooser program out there as well so I figure let people have there own choice in font...again thanks
Click to expand...
Click to collapse
Same problem. Even with the update script in there from the template update folders, I still get this error. I seem to have the resigning working. Any idea how to fix this error?
Opening this new thread, because the other one got way too crowded with many different files and modifications.
It's only a small mod and is based on pendos gingerbread battery modification, which he posted here: http://forum.xda-developers.com/showpost.php?p=13659496&postcount=71
Thanks for providing them.
So this is basically a stock-battery-indicator with the percentage numbers added and the charging animation being smoother. No CRT effect, no other icons changed.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note: THIS IS FOR KE7 ONLY!
Note 2: Backup the old file and activate USB-Debugging. Just in case ...
Install instructions
with ADB:
Code:
adb remount
adb shell stop
adb push framework-res.apk /system/framework/
adb shell chmod 644 /system/framework/framework-res.apk
adb shell start
with root explorer:
Code:
1. copy new framework-res.apk to /system/
2. change file permissions to rw-r--r-- (should be the same as for all files in system/framework -> check it!)
3. move new framework-res.apk to /system/framework/ and replace the old one
4. reboot
Copy your old framework-res.apk before doing anything, so you can go back if something goes wrong. You might encounter 2 or 3 force closes when replacing the framework. Click them away, finish the process (if you havn't already) and reboot the device. Everything should be fine from there on.
For me it works. Thank you!!
did not work on me,could not install it,got KE7
possible to integrate the crt effect as well? Thanks..
Thanks man it worked for me
How to install it???
I run it from "Root Explorer" and it says "application not installed"...
Do i have to copy it over the original "framework-res"???
Great thread, the other one "Greener SystemUI.apk" got way too messy. This could be a lot easier thread to look out for, given that people keep this strictly for the battery mods.
Any chance we could get a step by step guide for installing these mods in the first post?
jokuvuan said:
Great thread, the other one "Greener SystemUI.apk" got way too messy. This could be a lot easier thread to look out for, given that people keep this strictly for the battery mods.
Any chance we could get a step by step guide for installing these mods in the first post?
Click to expand...
Click to collapse
Totally agree!!! Please, give us a step by step instructions!!!
I will post a step by step guide tomorrow ... need to go to bed now.
enkkei said:
How to install it???
I run it from "Root Explorer" and it says "application not installed"...
Do i have to copy it over the original "framework-res"???
Click to expand...
Click to collapse
I use Root Explorer to do all of this. Make sure you give yourself R/W to /system/framework & don't use the " "'s.
1. Copy Chalid's file to MicroSD card (you don't have to copy to your MicroSD, you can copy to sdcard if you want)
2. go to /system/framework & rename "framework-res.apk" to "framework-res.apk.old" (don't panic if you get some FC for some running apps)
3. go to /sdcard/eternal_sd & move "framework-res.apk" to /system/framework (don't panic if you get some FC's .......)
4. reboot
5. enjoy
remember to change the permission's to mimic the original "framework-res.apk".
Hi, worked for me but lost all my contacts. It seems that this process removes the Google sync account. After re-syncing all is well. Thanks!
Can this also been made for KE2?
I wanted to try pendos tutorial using adb on my pc:
adb remount
adb shell stop
adb push framework-res.apk /system/framework/
adb shell start
I've already copied my original framework-res.apk to sd card as backup. When I type adb devices it gives my serial number as expected, but when I type in adb remount it says operation not permitted.
I've already flashed ke7 and rooted using chainfires kernel which is all working without any problems. Any suggestions?
Sent from my GT-I9100 using XDA App
alexmw said:
Hi, worked for me but lost all my contacts. It seems that this process removes the Google sync account. After re-syncing all is well. Thanks!
Click to expand...
Click to collapse
Without a valid framework-res.apk in /system/framework/, even for a couple of seconds you spend renaming the files, the google account syncs will be deleted. So better replace the file right from the beginning and backing up the old before that, instead of renaming it.
1) I suggest renaming der new one in .new first.
2) copy to /system/framework.
3) check/change permissions of .new
4) rename old one in .old
5) rename .new
ALexander
that way, the google account information will be deleted.
Ignore
101010
Works good. Thanks.
Please help ...
First of all: I am totally new in the world of Andriod.
I have not followed the instructions and now my SGS2 doesn't reboot. It got stuck on the Samsung Galaxy SII screen.
What have I done:
renamed original framework-res.apk to framework-res.apk.bak
(I FORGOT to copy the new framework-res.apk to /system/framework )
reboot SGS2
it got stuck on first screen
What can I do now??? Can someone please help me out? Thx
Decided to buy root explorer and it worked perfectly! Thanks
This is a handy little shell script I wrote today that I used to copy files to /system/app folder. This is the first thing I ever wrote for Android so I don't know if anyone has any use for this but there ya go.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To use simply download the shellpaste.txt from below and rename it to shellpaste.sh. Put the file in the root of your SD card then go to android terminal and type the following:
Code:
sh /sdcard/shellpaste.sh
Changelog:
Code:
shellpaste v0.4
-now supports all folders not just /system.
-added chmod to actually make it useful. Thanks Tigger31337.
shellpaste v0.3
-cleaned up the code a bit.
shellpaste v0.2
-first release.
Thanks man this is very helpful for the things I do. Cheers.
-rezo609
Awesome! Hope it serves you well.
small scripts, medium tricks, big handy
Does this address permissioning after the file(s) are copied?
No offense, but yours seems like a rather convoluted method when you've got things like adb push or just drag and drop from the PC. If the apk is already on your phone, then you need only do a cut and paste to /system (with, say, Root Explorer) and then set permissions. Done.
Also, it's not very flexible. What if I want to copy to /data? Another script??
None taken. The script changes the permissions to r/w, copies the file, then changes it back to read-only. As I said, this was just a script I wrote to help me with what I needed to do at the time. Maybe I'll write a new version that supports any folder the user chooses.. I agree, it's not exactly an elegant solution but I'm a complete noob at this. You gotta start somewhere, right?
Edit: Also, I am completely open to feature suggestions. So if there's anything more advanced you guys would like to see in newer versions feel free to post. I'm using this as a tool to learn as much as possible.
Sent from my htc wildfire s a510e using XDA
I don't mean permissions at the f/s mount level, I mean permissions at the file level (i.e. chmod).
If you're copying an apk to /system/app, then eventually you'll need to chmod it to 644 before it will execute properly. Maybe I'm missing something, but copying an apk from SD card to /system isn't going to do this for you automatically.
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Gotcha. Completely forgot about chmod.
I'll try to make it reinstall the systemui.apk without rebooting but could use some pointers on how to achieve this.
Edit:
Made a new version that supports mounting of all folders and added chmod into the mix. Should work properly now.
einstein.frat said:
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Click to expand...
Click to collapse
I've never used android scripts before but I'm guessing you could just do
exec /system/app/whatever.apk
But idk on that one.
Sent from my HTC Wildfire S A510e using xda premium
einstein.frat said:
I have a suggestion to your script
Example: I pushed a systemUI.apk in system/app folder through adb now when you look at your phone the statusbar dissappears, of course because of push, now can you make a script to rerun the apk or execute it, like mounting it dunno the exact word, so that you won't have to reboot your phone to see your statusbar again, instead just run it like windows run. This is usefull if your modding the APK.
Click to expand...
Click to collapse
I do exactly this on the WildChild ROM, using pm disable/enable.
It's a method I came up with by myself (so, it's not very elegant but it gets the job done ). There might be other ways of doing it, but I haven't seen any yet.