Affichage des articles dont le libellé est Script. Afficher tous les articles
Affichage des articles dont le libellé est Script. Afficher tous les articles

vendredi 27 février 2015

[Q&A] [SCRIPT] [INIT.D] Permissive SELinux on Stock Kernels [08/21/2014] topic






Q&A for [SCRIPT] [INIT.D] Permissive SELinux on Stock Kernels [08/21/2014]

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [SCRIPT] [INIT.D] Permissive SELinux on Stock Kernels [08/21/2014]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)






mercredi 25 février 2015

[Q] Problem starting own script from init.rc topic






Hello,

I am having some trouble running a script at boot started with init.rc:

I have added the following to the init.rc


Code:


service custom-init /system/bin/init.custom
    class main
    user root
    group root
    oneshot


The file exists and has executable rights:

Code:


ll /system/bin/init.custom
-rwxr-xr-x root    root          645 2008-08-01 14:00 init.custom


If I execute the file from the shell everything works fine. What am I doing wrong? Needs the started script to be a binary?






mardi 24 février 2015

[Fix] Loosing network after flashing Int2Ext script topic






Many people are facing Network loosing problem after flashing Int2Ext . So, I've made a fix for the problem :)

Here's the instruction to fix the problem:

1. Download any root browser that can show files inside a *.RAR file. (I'm using Xplore for this)
2. download the RAR file from the attachment
3. Open the RAR file
4. Select all the files inside the RAR file
5. Copy(Recommended)/Move the files to /system/etc/init.d
Like this: Like this:
6. Reboot
7. Enjoy :D

Here's a screenshot for proof :)


Hope, it'll fix the network issue with the script but if you still face any problem, feel free to reply :)


Thanks @TOCroniccorey for making the script ^_^
Thanks to for Porting it for Xperia 2011 devices @nos1609
Thanks to @3andala for the files inside his Vanir AOSP rom's init.d folder :D
& Thanks to my brain for the idea :P

Tips: # Don't use the fix if you haven't installed the Int2Ext script
# Use it only when You face network loosing problem after flashing the Int2Ext script

Hit the THANKS button if I helped :)










dimanche 22 février 2015

help writing an android script topic






I would like to have a script that I can use on any modern androids that sets the phone at bootup to turn the GPS and wifi on, ideally without giving notification. This is to aid in lost phone recovery where the thief knows enough to turn location off. I would be using Googles location tool for the finding. Maybe the script could specify to periodically enable location in case thief turns location off periodically