[q] how to set permissions for scripts? - Vibrant Q&A, Help & Troubleshooting

Hello, i was wondering how to set permission for my scripts in my intd. File so that i can make sure they are actually working. As an example here are some of my scripts i have.
O2a2sd
10-mountfs
10sysctl
41-mtree
70zipalign
80android_id_gen.sh
97loopy_smoothness_tweak
98ocuvsetup
99complete
hosts
s_volt_schedular
s20s_gps
s97juweramscript
any help would be appreciated. Thanks in advance.

Related

Settings.Secure.putInt()

Is is possible to enable the editing of secure settings?
Perhaps root permissions would help?
Thanks

Problems with LagfreeV2 Script

Hi guys,
unfortunately I cannot post in developers forum, because I am a new member. Therefore I have to ask here:
I am running ICSunday Final Rom with LafreeV2 script.
After installing the permissions of the script are automatically set on rw-r-r. But in another forum I read, that the script has to be executed for working - i.E. the permissions have to be changed to rwxr-x.
That sounded rational for me, so I changed the permissions like that - but after rebooting I got stuck on Android-Screen! (in the end I restored a Nandroid backup...)
Can anyone tell me, how the permissions are set right and why my phone did not boot again after changing them?
Thanks in advance and greetz,
Sarah

[Q] Help to remove root check from an apk

Okay, here's the problem. Actually: two problems.
1. There's an app, which contains some kind of root check to prevent installing the apk on a rooted device. This is the bigger one.
2. The apk can only be installed to specific devices. I believe this can be spoofed by editing build.prop.
But, I can't edit build.prop without root access, so I think the only solution is to find and remove the root check in the apk itself.
Is there anybody who can help with me that?
The apk can be found here: https://telekomse.srs.any.hu/apk/SRS_telekom_mobiltarca.apk
Any tips would be helpful. Thank you!

[Q] Android list of permissions - Which file?

Hi all,
which system app or file(s) contains descriptions of permissions, which are loaded when installing app or displayed in Settings/Applications?
My ROM displays these permissions incorrectly and I need to fix it.
Thanks!
So, I find out that all permissions are stored in framework-res.apk file, but I still don't know, why are they displayed incorrectly in Settings, in package-installer, Gplay etc.
There is probably some bug in some file, maybe in framework-res, but where?
I could provide all information you need to solve this problem (tell what you need to know).Is there someone, who can help me, please? Thx
EDIT: Is this XDA? Because it seems nobody can/wants to help me...

Fixing heating issue in ICSROM with script method by jeremywh7. Please help!

jeremywh7 has explained how to fix the issue with the ICSROM governor so that it runs with min 216Mhz and causes less heating - http://forum.xda-developers.com/showpost.php?p=58093061&postcount=1051
Here's the entire post -
Quote:
Originally Posted by jeremywh7
I just wanted to mention that I think I found the cause of ICSROM with the latest 3.1.10 kernel not running at 216MHz:
http://forum.xda-developers.com/show...postcount=1018
I have rebooted*, and its still working fine.
[*edit: forgot to update this post...a power off and cold boot does reset it. I've made an init.d script to fix it for now; will provide details later, as its now the wife's main phone.]
[...]
Better late than never, right? :-/ Here is the script I made as '/etc/init.d/01cpufreq' and set to chmod 755 (manually, using ES File Explorer, actually):
Code:
#!/system/bin/sh
#ramdisk cpu scaling min fix
chown root.root /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "216000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
I installed Universal Init.d (by Androguide.fr) to apply it at boot. I had to run the Test part w/ the tool set to Off, to enable SuperUser privileges. [Update: if you click a file to edit, it will also prompt for su, so that would be easier than running the test; K's July kernels don't support init.d obviously; I'm using kernel-2014_07_04_19_18_atrics.] After setting the tool On, and rebooting...voila, file permission fixed and min frequency 216 MHz.
Since I converted my old CM9-based Atrix to ICSROM (the reason I'm working on all this again), I recalled another mod, rain drop detect issue, for future reference:
http://forum.xda-developers.com/show...&postcount=117
Make sure to leave the extra character at the end the config line [ref: post 119].
Hope this helps...
Click to expand...
Click to collapse
Needless to say, I don't understand the instructions and I really want to be able to do this fix, so if anyone can help me, please let me know. How can I run this script?
aamil4u said:
jeremywh7 has explained how to fix the issue with the ICSROM governor so that it runs with min 216Mhz and causes less heating - http://forum.xda-developers.com/showpost.php?p=58093061&postcount=1051
Here's the entire post -
Needless to say, I don't understand the instructions and I really want to be able to do this fix, so if anyone can help me, please let me know. How can I run this script?
Click to expand...
Click to collapse
This is more like a how to use ES Explorer or Root Browser to put a script in a location and set permissions question and not what you asked
palmbeach05 said:
This is more like a how to use ES Explorer or Root Browser to put a script in a location and set permissions question and not what you asked
Click to expand...
Click to collapse
Thanks for the quick reply!
So basically I have to save this in a file and set permissions for it on a root explorer? I'm a bit of a noon in this, so I'd really appreciate if you could please explain this procedure in a noob-friendly way. What exactly should I do and what should the permissions be.
Thanks!
aamil4u said:
Thanks for the quick reply!
So basically I have to save this in a file and set permissions for it on a root explorer? I'm a bit of a noon in this, so I'd really appreciate if you could please explain this procedure in a noob-friendly way. What exactly should I do and what should the permissions be.
Thanks!
Click to expand...
Click to collapse
Actually you hit the nail on the head after i pointed out what i did in my last post. For permissions, i find it easier to manually change them instead of the chmod thing that it was talking about. For permissions, 755 the same as*rwxr-xr-x
Sent from my ATRIX HD using XDA Free mobile app
Okay. I got so far as that. But what should I name the file and what extension should I use? Am I supposed to replace a system file? Or is this a separate file I have to create? I'm not clear what he means by universal init.d, is it a file? What should I do with it?
Dude, you're seriously overcomplicating this. You're making it way more difficult than it needs to be, both for yourself and for XDA.
The post you quoted contains literally all the information you need, including all the questions you've asked in here. Just read it again.

Categories

Resources