[MOD][KE7] Gingerbread Stock 1% Battery - May 22nd - Galaxy S II Themes and Apps

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

Related

[APP]hero lock screen wallpaper (updated-22/06/09) - now easier to change

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.

Some BootAnimation [02/27] *update*

THEY WORKS ON ECLAIR 2.1 BASED ROM ONLY !!!
Here's some bootanimation:
Windows 7 Bootanimation
this gif is just an example, my bootloader has a nice pulsing loop, just like W7 :
{
"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"
}
Download Here:
http://www.4shared.com/account/file/230825501/a41d5c37/bootanimationW7.html
------------------------------------------------------
1) Nexus Repacked for G1/G2 with 320px Horizontal
(this gif is just a dirty preview)
Download:
http://www.4shared.com/file/209839184/77065e54/bootanimation_nexus.html
2) Boing by Qteknology
(this gif is just a dirty preview)
Download
http://www.4shared.com/file/209835047/9ae956d/bootanimation_boing.html
3) Splash by Qteknology
(this gif is just a dirty preview)
Download:
http://www.megaupload.com/?d=CY4DK79B
4) Squares by Qteknology
(this gif is just a dirty preview)
Download:
http://www.4shared.com/file/209838510/1e1ceebd/bootanimation_squares.html
4) Metropolis by Qteknology
(this gif is just a dirty preview)
Download:
http://www.4shared.com/file/209853714/42b48c6b/bootanimation_metropolis.html
THEY WORKS ON ECLAIR 2.1 BASED ROM ONLY !!!
To install them:
1) Download
2) Rename in bootanimation.zip
3) Copy in your Tools folder
4) Push via ADB with:
Code:
adb remount
adb push bootanimation.zip /system/media/
adb shell reboot
I hope you like them..............
See you soon for other updates !
Trying to load one of these and get the following:
failed to copy 'C:\androidsdk\bootanimation.zip' to '/system/media/bootanimation.zip' : Read-only file system
NEVERMIND!! - Forgot to: adb remount
It shows that it loaded, but the boot animation has not changed.
I gave it a shot and it also loaded, but the boot animation also didnt change here... I'll double check if I"m doing something wrong !
Hello there.
Thaks i really like them.
I was trying to get mine work, but i dont know why, i can not make mines work.
Could you please let me know how you did?
Here you can dowload mine and have a look if you want and let me know what i did wrong.
( I cant five you the link, admin not allowed for new users)
For those who can not use the ones that QTecnology try to install like i did.
I have a Eclair 2.1 and they are working to me.
To install them:
1) Download
2) Rename in bootanimation.zip
3) Copy in your Tools folder
4) Push via ADB with:
Code:
adb remount
adb push bootanimation.zip /data/local
adb shell reboot
QTecnology, do you allowed to me to post your bootanimations in htcmania forums?
its a spanish forum.
thanks
Justito said:
Hello there.
Thaks i really like them.
Click to expand...
Click to collapse
Thanks
Justito said:
I was trying to get mine work, but i dont know why, i can not make mines work.
Could you please let me know how you did?
Here you can dowload mine and have a look if you want and let me know what i did wrong.
( I cant five you the link, admin not allowed for new users)
Click to expand...
Click to collapse
you must to zip all files without any compression...
Justito said:
QTecnology, do you allowed to me to post your bootanimations in htcmania forums?
its a spanish forum.
thanks
Click to expand...
Click to collapse
Sure you can !
Then gimme the thread link
http://www.htcmania.com/showthread.php?t=92164
Here it is.
I will try to make again mine from 0
Is no one able to tell me why I can't load these on my 1.6 ROM?
Fantastic
These are awesome, thanks for posting
I have tried to push these to both:
/system/media
and
/data/local
and neither of them produces a new boot screen...
Any Suggestions?
rbrainard said:
I have tried to push these to both:
/system/media
and
/data/local
and neither of them produces a new boot screen...
Any Suggestions?
Click to expand...
Click to collapse
You need to go to eclair
rbrainard said:
I have tried to push these to both:
/system/media
and
/data/local
and neither of them produces a new boot screen...
Any Suggestions?
Click to expand...
Click to collapse
what i did is made a folder named (bootanimation) and drop the one i like into it and zip it with winzip and now have a zip file called bootanimation.zip
and push it with adb. like this:
adb push bootanimation.zip /data/local/bootanimation.zip hit enter your all done. make sur you put the zip file into the tools folder in you androidsdk folder
this would be awesome for 1.6 roms, is there anyway to do it?
I was trying to get Splash loaded up. I made sure that it was in /system/media/, but my bootanimation didn't change. I've got a blue Droid bootanimation that works just fine.
Good work. It works and my phone boots up fine. But the animation doesn't loop, it just plays it a single time and stops at the last image. Anyone has the same 'problem'?
How will this work with CM6? Since it is newer than Eclair can it also run these without problems?

[MOD] Rotating Phone.apk for XWKE2 XWKE7

Hello everyone
I present you a modified Phone.apk that features auto-rotation not just in the dialpad, but also in the Phone application itself while in call.
Ruksak - Maybe this one helps you feel better?
All the coding/modification work here was done by pawitp.
What is it:
Based on XWKE2/7 Phone.apk (original attached).
Adds autorotation to Phone.apk
Tested on rooted SGS II with KE2/7
All the work was done by pawitp, I only supplied the original files and tested.
Sources : Smali diff can be found here : http://sprunge.us/hPSK?diff and also attached as text file incase link goes down.
Enjoy.
Prerequisites :
XWKE2/7 Rom
Rooted
Busybox
ADB access to your phone via WIRE incase something goes wrong.
You need to understand that if anything goes wrong, You might need to restore the Original (attached) Phone.apk and Phone.odex files, if you fail doing that, you will have to reflash the PDA file of your firmware.
Myself or Pawitp will not take any responsibility of the results of what might happen to your phone while using this MOD.
Install Guide With ADB : (Or if you have Root explorer, you can do this)
Copy Phone - KEX - Modified.apk to your SDCARD, and rename it to Phone.apk (KEX should be replaced with your version, either KE2 or KE7)
Using ADB shell (or any other way) do the following :
Mount system as RW (busybox mount -o remount,rw /system)
Delete Phone.odex from /system/app (rm /system/app/Phone.odex)
copy over the modified Phone.apk to /system/app (cp /sdcard/Phone.apk /system/app/Phone.apk)
sync
reboot
enjoy.
{
"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"
}
awesome thanks.
This is very cool; but I'm not comfortable doing the command line stuff
Any chance someone can create an installer for this?
Can OP make the Dialer MultiDPI similar to the below thread?
http://forum.xda-developers.com/showthread.php?p=10179367
Thanks
That actually looks awesome. Nice work!
Sent from my GT-I9100 using Tapatalk
Pawitp said he will be very busy, and won't have time for special features.
It is what it is, About installer, there is still no CWM for SGS II, So you will have to use the specified method. Sorry guys.
Maybe ask Pulsar to integrate this into his app
I guess doing it via Root Explorer will work just fine?
Can confirm works perfectly via Root Explorer, so simple, just copy the modded apk first, browse to system/app and mount as R/W then delete phone.odex and paste phone.apk overwriting the exiting one. Set the permissions to match the original and mount as R/O again and reboot.
Excellent mod thanks, this will be very handy when in the car
robbiekhan said:
Can confirm works perfectly via Root Explorer, so simple, just copy the modded apk first, browse to system/app and mount as R/W then delete phone.odex and paste phone.apk overwriting the exiting one. Set the permissions to match the original and mount as R/O again and reboot.
Excellent mod thanks, this will be very handy when in the car
Click to expand...
Click to collapse
Great
Added your post as reference to 1st post.
KE7 version was added (OP), Enjoy
As always, Credits are due to Pawitp.
I just used the KE2 version on KE7 allt his time, looks like the sizes are different so I wonder what the changes are between the versions!
Anyway, updated cheers
Thanks! Just what I was looking for for when I'm driving and my phone is docked
Tested it on "Lite'ning Rom v1.0" (KE7) with RTL fix for Hebrew and can confirm that it's working great!
Very nice work
thank very much
not rotating
when i call someone or someone me...phone.apk doesnt rotate
i mean before answering the phone or before someone answers me, even during a call
BoneMo said:
when i call someone or someone me...phone.apk doesnt rotate
i mean before answering the phone or before someone answers me, even during a call
Click to expand...
Click to collapse
Same here. Literally only the dialer screen rotates, not the screen where you answer/call somebody.
Maybe this can be fixed because it's quite a shame indeed!
Pfeffernuss said:
Same here. Literally only the dialer screen rotates, not the screen where you answer/call somebody.
Maybe this can be fixed because it's quite a shame indeed!
Click to expand...
Click to collapse
Try the KE2 one, but I think they both work.
It works for me...
great job,but this mod killing VideoCall
Anyone can confirm this??
THANKS, perfect apk
and for KF2 please ?
Works great! phone.apk was the last app that didn't run in landscape. Handy for in my car.. (I used the method with root explorer) Thanks a lot!

[APP] Mms.apk with different colors

Hi all,
I thought I'd share my modded Mms.apk with you. This was pulled from Calk's latest ROM. It should, however, work with any EL29 ROM. The only modifications are colors of the message bubbles, pulled from this MMS app. I tried using the app, but I was getting file compression errors when sending images, so I just modded the original Mms.apk slightly.
AS ALWAYS - YOU DO THIS AT YOUR OWN RISK
Install via adb (Windows):
1. Connect your phone to PC
2. Make sure USB debugging is enabled
3. open command prompt in the same folder as Android SDK or make sure you have PATH specified to it; place Mms.apk in the same folder
4. Type adb start-server at command prompt
5. Type adb remount
6. Type adb push Mms.apk /system/app
7. Type adb reboot
Once your phone reboots, you will have the new MMS.apk fully functional. You may have to re-add the Messaging link to the bottom bar.
If you have ROOT EXPLORER, you can simply copy Mms.apk into your /system/app folder replacing the original file. Back it up first, though, if you want to revert back to it.
Enjoy.
{
"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"
}
Cant you just drop it on your SD card then navigate your phone using ES file explorer or root explorer and copy and paste it into the system/app folder replacing the one thats in there, then reboot to get it to work?
If I am incorrect please let me know before I make a fatal error.... lol
I can't speak for THIS apk, however I just took a mms.apk from another rom, did exactly as you described but also changed the permissions, and it works fine. Why don't you make a back up and give it a go.
Sent from my SPH-D710 using xda premium
You can certainly install it using ROOT explorer. Works either way.
If I want to change the colors for the conversation list would the images be in the hdpi folder and the lines and stuff in the xml?
Sent from my Epicâ„¢ 4G Touch
Anybody got a pic of the conversation list?
looks good , its just what i was looking for
Honestly, I have no idea. This was a simple PNG swap from another Mms.apk.
globalninja said:
If I want to change the colors for the conversation list would the images be in the hdpi folder and the lines and stuff in the xml?
Sent from my Epicâ„¢ 4G Touch
Click to expand...
Click to collapse
Conversation list looks completely stock.
SayWhat10 said:
Anybody got a pic of the conversation list?
Click to expand...
Click to collapse
Anyone figure out how to mod the mms.apk so that i allows higher/larger file sizes for pics?? Iv tried but keep getting FC's once i push my version to the phone....
I would also like to have this for Calks ICS ROM. Any chance one could modify that for us?
This is funny I made one just like this a long time ago. It came from sensation rom if I remember correctly. Looks good.
Sent from my SPH-D710 using XDA
the rhyno said:
I would also like to have this for Calks ICS ROM. Any chance one could modify that for us?
Click to expand...
Click to collapse
Bump...
or anyone know of one that could just replace the mms.apk and still work.
I'd like to be able to do this with MIUI's MMS application and their phone app. I tried on THE GOODNESS ICS but the app just force closes. Anybody know a way to do this?
still trying to figure out how to change the colors .. i want blue and green
anyone know how?
Ma$etas said:
still trying to figure out how to change the colors .. i want blue and green
anyone know how?
Click to expand...
Click to collapse
You can get your own colors. For that you have to edit the message_bubble_xxx_.9.png files located in the res/drawable-hdpi directory inside the Mms.apk. These .9.png files are system-resizable PNGs that have to be edited with a special tool, like Draw9patch. If you google "how to edit .9.png files" you will find all sorts of tutorials and explanations.
Good luck.

[SCRIPT] shellpaste v0.4

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.

Categories

Resources