set permissions for lancher in updater-script? - Samsung Galaxy Gio GT-S5660

hey, I could use some help.
im theming currently, but dunno how to set permissions in an updater-script for my modded touchwiz.
the command should be :
set_perm(uid, gid, mode, "pathtofile");
so I made it:
set_perm(uid, gid, mode, "/system/app/touchwiz30launcher.apk");
but where do UIT,GID,MODE stand for?
the permissions should be rw - r - r

voetbalremco said:
hey, I could use some help.
im theming currently, but dunno how to set permissions in an updater-script for my modded touchwiz.
the command should be :
set_perm(uid, gid, mode, "pathtofile");
so I made it:
set_perm(uid, gid, mode, "/system/app/touchwiz30launcher.apk");
but where do UIT,GID,MODE stand for?
the permissions should be rw - r - r
Click to expand...
Click to collapse
you neednt to write this,it will set permission automatically.
中国人正在尝试提高!
(translation:Chinese people are trying to improve themselves!)

Related

Enable electronBeam Animation

Hey,
This recent leak of "gingerbread" from samsung does not have animation enabled by default. The code is there, they've just disabled it from the xml.
So here are the steps :
For developers :
1. Get apk manager
2. Put framework-res.apk in "modding" folder
3. Run apk manager, decompile with dependancy (option 10)
4. Drag twframework-res.apk into the script.
5. Go into projects\framework-res\res\values\bool.xml
6. Make config_animateScreenLights to false
7. Go back to script and select compile.
8. Say y
9. Say y
10. Delete resources.arsc from keep folder
11. Enter in script
12. U'll find unsignedframework-res.apk in "modding" folder
For users :
Code:
adb push unsignedframework-res.apk /data/local/tmp/framework-res.apk
adb shell
su
mount -o rw,remount /dev/block/stl9 /system
stop
rm /system/framework/framework-res.apk
cp /data/local/tmp/framework-res.apk /system/framework/
rm /data/local/tmp/framework-res.apk
reboot
Make sure settings -> display -> animation isnt set to none.
Hi Daneshm90,
Did you manage to decompile Settings.apk for GB? Funny thing now is that there is an additional apk in the /userprofile/apktool/ folder. There are now 3 apks (resoures.arsc):
1.apk
2.apk
127.apk
This is something new. Is it now the apks are tri-dependency instead of co-dependency for GB Galaxy s?
g00ndu said:
Hi Daneshm90,
Did you manage to decompile Settings.apk for GB? Funny thing now is that there is an additional apk in the /userprofile/apktool/ folder. There are now 3 apks (resoures.arsc):
1.apk
2.apk
127.apk
This is something new. Is it now the apks are tri-dependency instead of co-dependency for GB Galaxy s?
Click to expand...
Click to collapse
Hmm havent tried that. Will try and let you know.
Daneshm90 said:
Hmm havent tried that. Will try and let you know.
Click to expand...
Click to collapse
Thanks, and waiting for your good news.
Hey thnks for the screen off animation..can u also check whether the glow in end of list is presebt in the code but has been disabled....coz it works in some apps like youtube where u scroll sideways thanks!
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
galaxyS
I am Korea Galaxy S [M110S] user is using. I've tried to apply the source code does not work on framework-res.apk bool.xml config_animateScreenLights to false in a note that if you're saying?
DeHD said:
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
Click to expand...
Click to collapse
Nope these steps are standard. So you can pull your framework-res and undergo these exact modifications
g00ndu said:
Thanks, and waiting for your good news.
Click to expand...
Click to collapse
For me i need twframework-res and framework-res in order to decompile settings.apk w/o error.
So i get 1.apk and 2.apk
DeHD said:
Can I ask something?
is this way only for I9000?
I'm using Korean GalaxyS(SHW-M110S, it's shape is same with I9000).
When I pull this framework-res.apk into my SGS, SGS boots infinitely(I don't know this term in English.. sorry)
Click to expand...
Click to collapse
You guys are using gingerbread leaked rom? Iirc it should be a prerequisite for this mod.
This will come in handy.
Thx.
Worked on JVK, thanks for this
EDIT: Added the resulting framework-res.apk
EDIT2: Complied wrong, all pngs are duplicated, taking up a lot of space. Please do not use this one. Use either danesh's or the one in perka's stash should be updated soon
EDIT3: The fixed framework-res.apk is in perka's stash here http://goo.gl/Lf7LF
Mothatt said:
Worked on JVK, thanks for this
EDIT: Added the resulting framework-res.apk
Click to expand...
Click to collapse
Hi mothatt
See you in IRC
v10.0 beta 4 / RC1
Sent from my GT-I9000 using XDA Premium App
when i try installing it on my phone it says application not installed. what to do?
oaiebmxxx69 said:
when i try installing it on my phone it says application not installed. what to do?
Click to expand...
Click to collapse
Its a framework installation.
Just follow the adb instructions in OP. This is a framework apk, not a user apk.
Daneshm90 said:
Its a framework installation.
Just follow the adb instructions in OP. This is a framework apk, not a user apk.
Click to expand...
Click to collapse
sorry mate but didn't understand a word...
oaiebmxxx69 said:
sorry mate but didn't understand a word...
Click to expand...
Click to collapse
Do u have adb setup ?
If not then read up on how to set it up and then execute the "user" commands i have in the main post.
Daneshm90 said:
Do u have adb setup ?
If not then read up on how to set it up and then execute the "user" commands i have in the main post.
Click to expand...
Click to collapse
i got apk manager and i select option #10 but it just disappears and it also says i don't have java but i do...please help me dude get this thing right
oaiebmxxx69 said:
i got apk manager and i select option #10 but it just disappears and it also says i don't have java but i do...please help me dude get this thing right
Click to expand...
Click to collapse
U can use ones i posted. Click my.profile n search my posts. I posted it in jvk thread
I tent to get a lot of bootloops when i try to push the unsigned framework that i compiled. Adding the resources.asc manually (first take it out the framework and manually add it again with no compression) resolved that.
Is that extra step not nessecary anymore ?

[MOD] Electron Beam / CRT screen off animation for JVP + PNGs optimization

CRT screen off animation for JVP for odexed (stock) and deodexed ROM's.
UPDATE 14.06.2011:
- /framework-res.apk/resources.arsc file isn't compressed (like in stock Samsung ROM's)
- optimized all framework PNGs (with optipng) in framework-res.apk and twframework-res.apk (lower memory footprint, maybe slightly faster)
- autofixing /system/framework permissions in CWM package
10.06.2011:
- fixed CWM package
- enabled animation in /framework-res.apk/res/values/bools.xml
All .apk files all zipaligned, like in stock ROM
Installation:
Download zip and apply via CWM:
CRT_screen_off-optimized-JVP-CWM3-proper.zip (5.71 MB)
OR (if you don't have CWM):
Download framework-res.apk and replace it in /system/framework/ directory by Root Explorer or adb shell. You should have ~6MB free space on /system partition before operation (delete some unneeded apps from system using Root Explorer or nitrality).
framework-res.apk (7.95 MB)
After installation you have to open Settings => Display => Animations and turn them ON to get it working Also don't change speed of animations by Spare Parts or nitrality - it will disable CRT screen off.
thank you so much that was prety fast
BTW what is electron beam ?
can you provide pics pls?
does not work, says installation aborted.
Tested? I Made the same and gives me a bootloop
Edit : cwm3 package Not working.
Sent from my GT-I9000 using Tapatalk
rhadoo04 said:
does not work, says installation aborted.
Click to expand...
Click to collapse
Same here.
Deodexed/zipaligned and dark core kernel 2.7.2 here.
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
--links in first post--
Tested on CF-Root for JVP, it works
BTW what is electron beam ?
Click to expand...
Click to collapse
It's other name for CRT screen off animation
Tested? I Made the same and gives me a bootloop
Click to expand...
Click to collapse
Using this framework-re.apk on my phone and it works
Bo$s said:
Sorry didn't have CWM3 to test (CF-Root wasn't finished), and there was a problem with update-script. Here's the proper package, should work now:
CRT_screen_off-JVP-CWM3-proper.zip (5.4 MB)
Tested on CF-Root for JVP, it works
It's other name for CRT screen off animation
Using this framework-re.apk on my phone and it works
Click to expand...
Click to collapse
thanks for the new file, gona try it!
Now i can begin with my new theme for JVP.
edit: Working as i should now, thanks!
CRT animation works a treat on JVP and SpeedMod 15H.
Thanks for doing this so quickly
I'll have to try this later
thanks, working like a charm
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
suwidah said:
thanks great work!!! congratulation
can you please made like this mod for JPJV6 or tell me how to do it
Click to expand...
Click to collapse
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Pretty easy
WOW!! very useful and nice step by step.
Thanks Mr. Bo$s I will use your guide after I receive my SGS from repair in Sunday, I will tell you if I successful in this
no I haven't successful it's keep restart on boot animation:confused
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
WORKED LIKE A CHARM!!!
I ended up using "Super Manager" (free) from the market to install the apk file instead of messing with CWM.
Thanks a lot for that!!
Raman's deodoxed XXJVP with Speedmod kernel k15-t6
DanDroidian said:
I KNOW it says 'CWM3', but will it work with the 'CWM2.5' that comes with speedmod's new kernel?
thx for the response...
Click to expand...
Click to collapse
It should work with CWM 2.5 too.
Sent from my GT-I9000 using Tapatalk
Bo$s said:
Download apk_manager 5.0 beta (somewhere in apk_manager thread).
Download apktool 1.4.1 (or newer), extract it, replace apktool.jar in apk_manager/other folder with downloaded version.
Pull framework-res.apk and twframework-res.apk from /system/framework/ and put them in apk_manager (modding folder).
Open apk_manager, choose framework-res.apk as project, decompile it with dependency, as dependency give twframework-res.apk.
After decompile go to projects/framework-res.apk/res/values/.
Open bools.xml in notepad, change value of bool name='config_animateScreenLights' from 'true' to 'false' and save it.
Go to apk_manager, compile, answer Yes for question about system file, answer Yes in next question, go to keep folder, remove resources.arsc, then hit enter in apk_manager.
After successful compile you can choose zipalign options.
You will find unsignedframework-res.apk in modding folder, rename it to framework-res.apk and put in /system/framework/.
Click to expand...
Click to collapse
after all that make reboot intio cwm recovery and take fix permissions
most of bt wifi drain or any problems come from noobish copying over files via adb, root explorer, cwm flashables that are not setting proper permisions and owners for files... fix permisions should be used 'just in case' after such interference with system
Thanks, works like a charm!
works like a charm, thanks.

[Q] init.d folder permissions

Can anyone tell me what to set the folder permissions to when creating an init.d folder?
BigJPNut said:
Can anyone tell me what to set the folder permissions to when creating an init.d folder?
Click to expand...
Click to collapse
I believe normally it is 0755 with root:root or root:shell.
Your ROM must support run-parts however. Most stock ROMs don't and devs put in the command for it to parse init.d when they cook the ROM.
Sent from my SPH-D710 using Tapatalk
Thanks so much! Yep the kernel im using supports init.d. I believe thats all there is to it? Also, I take it the scripts inside init.d are set to 777?
BigJPNut said:
Thanks so much! Yep the kernel im using supports init.d. I believe thats all there is to it? Also, I take it the scripts inside init.d are set to 777?
Click to expand...
Click to collapse
You can probably set the scripts to 755 because nobody needs to edit them but root. Since it's not a multi-user system, the permissions aren't terribly relevant.

[How To][GUIDE] enable CRT Animation

CRT Animation On/Off running any GB rom (2.3.x)
Here is the screen Off/On animations mod. An awesome tweak which makes your phone's sleeping animations like old tv's shutting down.
Lets Begin.
[NOTE: Im not responsible for any bricked devices.]
Things needed
1. JAVA - Click Here
2. APK MANAGER - Click Here
3. Notepad++ - Click Here
Procedure
1. Download all the above applications.
2. Open APKMANAGER folder and place your roms "framework-res.apk" in "place-apk-here-for-modding" folder.
(framework-res.apk is placed in "/system/framework/here")
3. Open APKMANAGER folder and open "Script.bat".
4. Open "script.bat" and press "9" and hit enter. (this decompiles your framework-res.apk)
5. If sucessful, close this script and go to "APKMANAGER"/"projects"/"framework-res.apk"/"res"/"values" folder. Open "bools.xml"
6. Change
"<bool name="config_animateScreenLights">true</bool>"
to
"<bool name="config_animateScreenLights">false</bool>"
7. Again open script.bat and click on "11". (It will compile the application)
8. It will ask whether it is a system application or not, type "y" and hit enter.
9. It will show
"Aside from the signatures, would you like to copy over any additional files that you didn't modify
from the original apk in order to ensure least # of errors (y/n)
Press "y" and hit enter!
10. It will do the extracting. DO NOT PRESS ANY KEY NOW.
11. Open "APKMANAGER" folder, there will be a new folder "keep". Delete "resources.arsc" file from there.
12. Now open script and hit enter.
Click to expand...
Click to collapse
And the most IMPORTANT part.
After flashing framework go to settings>Display>Animations, select "All Animations".
AND if you dont want the animation simply change
"<bool name="config_animateScreenLights">false</bool>"
to
"<bool name="config_animateScreenLights">true</bool>"
CREDITS
Daneshm90 for the APKMANAGER
me for the guide
Reserved
dude!! 4 your kind information sadly there is no any value folder in frameworks - res !!
& also bool.img in frameworks whole app.!! in our galaxy y!!
thewarlord said:
dude!! 4 your kind information sadly there is no any value folder in frameworks - res !!
& also bool.img in frameworks whole app.!! in our galaxy y!!
Click to expand...
Click to collapse
i have checked in the stock rom of y.
it is there
If you decompile framework-res.apk you will get it.
I will attach images for easier use.
Have you actually tried this because this has been around for ages
I'm sure
Stock framework in our phone does not support this
cm7 percy does not support this
Both due to hardware libs
deleted
DarkEyed said:
i will edit the thread with images tomorow
Click to expand...
Click to collapse
I don't think you understand
I'm not saying that the files mentioned don't exist because they do
I'm saying you can edit them as mentioned but due to our hardware libs the changes will have absolutely no effect

[mod][systemui] lollipop 5.0.1 brazil xt1033

excluded, vlw.....
battllegrounds said:
SystemUI :
Remove label sim
Change space value between statusIcon(Wifi,network,data,etc)
Center Clock
How to ?
Backup Your System SystemUI.apk before apply this mod
Remember, Your Device must be ROOT before
Download This file :
View attachment 3098663
Put zip file to your internal storage then Extract that file
instructions :
*Adb Shell or Terminal Emulator:
$su
‪#‎mount‬ -o remount rw /system/
‪#cp /storage/emulated/legacy/SystemUI.apk /system/priv-app/SystemUI/
‪#‎chmod‬ 644 /system/framework/framework-res.apk
#chmod 644 /system/priv-app/SystemUI/SystemUI.apk
‪#‎reboot‬
View attachment 3098662
tanks: garynych, tux-kid's
Click to expand...
Click to collapse
did you ask me before you make this thread ?
what different this thread betweenthis?
@tux-kid's I don't think he needs your permission.
S0bes said:
@tux-kid's I don't think he needs your permission.
Click to expand...
Click to collapse
So what different my mod with this mod?
If this pure mod from me, i think TS need pm me..
Just it,
tux-kid's said:
did you ask me before you make this thread ?
what different this thread betweenthis?
Click to expand...
Click to collapse
What's different from yours :
Framework:
1. size navbar not changed.
2. size of statusbar icons not changed.
3. statusbar size did not change .
SystemUI :
1. icons navbar not changed.
and the Lock screen carrier name this centralized , making the bug that was when you notifications.
Sorry, but you have to like yours and how to install , it would have to have their permission.
Someone have the original framework-res.apk?
battllegrounds said:
What's different from yours :
Framework:
1. size navbar not changed.
2. size of statusbar icons not changed.
3. statusbar size did not change .
SystemUI :
1. icons navbar not changed.
and the Lock screen carrier name this centralized , making the bug that was when you notifications.
Sorry, but you have to like yours and how to install , it would have to have their permission.
Click to expand...
Click to collapse
hahaha, okok that's ok ..
keep mooding
btw you don't need set permission framework-res.apk
BackToMyFuture said:
Someone have the original framework-res.apk?
Click to expand...
Click to collapse
View attachment framework-res.zip

Categories

Resources