From 4e7141e728526f5a0cd6dcf153e893bc29942a0b Mon Sep 17 00:00:00 2001 From: ILMostro Date: Sat, 30 Nov 2013 03:40:47 -0600 Subject: [PATCH 01/13] Create README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3ee119 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +Android-Udev-Rules +================== + +Develop with your Android devices on Ubuntu. + +************************************************* +This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules + +The shell-script within the repo is intended to be run as *root #:* so that the *udev rules* file can be copied to the *udev system config* directory--i.e. **/etc/udev/rules.d/** + +The customizations I've made to the script are intended as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on my PC with SystemD. + +Aside from that, and perhaps more importantly, I've also included a line to the *shell-script* to add a new group **plugdev** to the system, since the *udev-rules* file refers to it as the assigned user group. + +Please Note: +------------------ +The user will still need to be added to the *plugdev* group manually as so: +`gpasswd -a username plugdev` + +I'll look into adding this functionality to the script itself, though I'm not sure whether or not it'd be wise to do so. Feel free to share any thoughts/comments on the matter. From 341434ea55b4bb94d05256c25b90c4e458b2888a Mon Sep 17 00:00:00 2001 From: ILMostro Date: Sun, 8 Dec 2013 04:35:53 -0600 Subject: [PATCH 02/13] updated install-script for udev-rules for Android-dev --- install.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c137684..e393484 100755 --- a/install.sh +++ b/install.sh @@ -7,13 +7,24 @@ if [ "$(id -u)" != $ROOT_UID ]; then exit 1 fi +echo "This is a modified shell-script from the one +originally-published at github.com/apotheos/Android-Udev-Rules \n +Warning! The customisation will attempt to create new group +*plugdev* as root..." echo "Unplug all android devices, then hit ENTER." read IGNORE cp $ANDROID_RULES_FILE $UDEV_RULES_DIR -chmod a+r $UDEV_RULES_DIR/$ANDROID_RULES_FILE +#chmod a+r $UDEV_RULES_DIR/$ANDROID_RULES_FILE +chmod 0644 $UDEV_RULES_DIR/$ANDROID_RULES_FILE -cR -service udev restart > /dev/null +groupadd plugdev + +# Uncomment the following line for machines with **SysV init system** +#service udev restart > /dev/null + +# Reload *udev* service files on **systemd** machines +systemctl restart systemd-udevd.service > /dev/null echo "UDEV rules installed. Restart adb and connect Android devices." From 95c483ef053a416f79eba50269f9490684164f16 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Mon, 9 Dec 2013 02:54:11 -0600 Subject: [PATCH 03/13] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a3ee119..73736ff 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Android-Udev-Rules ================== -Develop with your Android devices on Ubuntu. +Develop with your Android devices on Linux. ************************************************* This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules From c8e300516ebc1d6bcdd4ca23a08b7876fdf0372d Mon Sep 17 00:00:00 2001 From: ILMostro Date: Mon, 9 Dec 2013 05:33:16 -0600 Subject: [PATCH 04/13] added 'notes' folder for android-dev notes --- notes | 1 + 1 file changed, 1 insertion(+) create mode 160000 notes diff --git a/notes b/notes new file mode 160000 index 0000000..2a81d99 --- /dev/null +++ b/notes @@ -0,0 +1 @@ +Subproject commit 2a81d99800d21e395aa3902272c7702ae2099e5d From 6da6f8ac871ea24829076a0824db105b0587964e Mon Sep 17 00:00:00 2001 From: ILMostro Date: Mon, 9 Dec 2013 11:46:12 -0600 Subject: [PATCH 05/13] added notes folder with Android-dev notes in markdown and html format --- notes/.App-Architecture.md.swp | Bin 0 -> 12288 bytes notes/App-Architecture.html | 66 +++++++++++++++++++++++++++++++++ notes/App-Architecture.md | 47 +++++++++++++++++++++++ notes/fFoxDev.css | 3 ++ notes/markdown.css | 4 ++ 5 files changed, 120 insertions(+) create mode 100644 notes/.App-Architecture.md.swp create mode 100644 notes/App-Architecture.html create mode 100644 notes/App-Architecture.md create mode 100644 notes/fFoxDev.css create mode 100644 notes/markdown.css diff --git a/notes/.App-Architecture.md.swp b/notes/.App-Architecture.md.swp new file mode 100644 index 0000000000000000000000000000000000000000..f2e91ed73f951c91fc7c38025863c200a86b38ed GIT binary patch literal 12288 zcmeI2&x;&I6vr#cDQYyRSK+CLXtUE3jiLk%3>ySR*O(uQB4lg2tEbC!S2b1DvknZd ze}l$+*ZnujScueX`0c*Wu*=(3$0UWogcA7oQ?z{fkO$jp%}e*N}PN4 znX^3qw{p*uLe0m?8$M65E@Beom65^nn4Bh7<2+U4tVR7Gn;_Haq8fA-wpHdt+{c*AbF zOQkj3TQ%O|qLvlywDnZEl@HbgnFYUTwWIcEyB~+uXf*29!`0MEXEJDOI^!;^Eaj}FhY9gio7S_2zv(tiAE319HHS1xF{ zkb4F$G>xa+nlph)IahGWYcs19!9lm6#=^NRQt2$E?U4_QO7*KX(uHARr&=$kc*K{| zA?NF8{T86)2+s#;f|j`Pi|`cfz9#3A?DPX%`t|S=mBU>6g$LIN&$tdz<7}op`>jCO zz$Z+QExM)PKF4H~%2mEazRi$`ZWmmDL<6aJ__>|VAW7&=Q!PmFmbilUflUT2J>Q-ru$HnwwQys8E}xNbw^Iz)S=#@_G+77NlyxZ|h=qDtuc>)Ny* zBJo`)*ZZ+T<0ACJ2UQOPsEa~5g@faVkz58jm7e=uG*?Sh&IaHfIVVkZNKja|b$EUY z)U&G1k<0T!Tp%QdYH8#QF;3U{PcegX9UyX@Ruyu>B@e#IUx`fmvUIJ%y4dbOIGki5 z5=y4d$~==k09U3oK=_2mGaN21euO{Q`DzrE-zA_k84e6r^F8&>tdey)Q0(}YD6<=g zBo!^!DkXe=aGVAwIn-SF%;{+#tfT~?>q7aEbOqTRLN@bwX~Bj=>L`c_%1LhAN9TMp z|D0MJ;6sQ2QQaDTPpH0-ltdL+RJj9ZfqWfY4_L9)s>T_7t_vjHQ{imQe%}ZdK5V>v YHvLJ(%ZD_9w?Tiyo;ZNb3-!SDC)?{BI{*Lx literal 0 HcmV?d00001 diff --git a/notes/App-Architecture.html b/notes/App-Architecture.html new file mode 100644 index 0000000..e139898 --- /dev/null +++ b/notes/App-Architecture.html @@ -0,0 +1,66 @@ + + + + + + + +

Android App Architecture

+ +

The architecture of an Android app differs from desktop application architecture. +App architecture is based upon components that communicate with each other by +using intents that are described by a manifest and that are stored in an app +package.

+ +

Components

+ +
    +
  • activities
  • +
  • services
  • +
  • content providers
  • +
  • broadcast receivers
  • +
+ + +

An app is a collection of components that run in a Linux process and +are managed by Android.

+ +

These components share a set of resources, including:

+ +
    +
  • databases
  • +
  • preferences
  • +
  • filesystem
  • +
  • Linux process
  • +
+ + +

Component reuse reduces overall memory footprint, which is very important +for devices with limited memory.

+ +

When Needed Only

+ +

Android starts a process when any part of the app is needed, such as the + reusable shared components, and instantiates the Java objects for that + part. + This is why Android’s apps don’t have a single entry point, e.g. C-style + main() function.

+ +
+ +

Activities

+ +

An activity is a component that presents a user interface so that the user can +interact with an app.

+ +

| Application | Activity |

+ +

| Contacts | New Contact | +| Phone | Dial Number | +| Calculator | Calculate | +| Calculator | Advanced panel |

+ + diff --git a/notes/App-Architecture.md b/notes/App-Architecture.md new file mode 100644 index 0000000..250b705 --- /dev/null +++ b/notes/App-Architecture.md @@ -0,0 +1,47 @@ +**Android App Architecture** +==================== +The architecture of an Android app differs from desktop application architecture. +App architecture is based upon *components* that communicate with each other by +using *intents* that are described by a *manifest* and that are stored in an app +package. + + **Components** +-------------- +* *activities* +* *services* +* *content providers* +* *broadcast receivers* + +> An app is a collection of *components* that run in a Linux process and +> are managed by Android. + +#### These components share a set of resources, including: + * _databases_ + * _preferences_ + * _filesystem_ + * _Linux process_ + +Component reuse reduces overall memory footprint, which is very important +for devices with limited memory. +#### **When Needed** Only + + > Android starts a process when any part of the app is needed, such as the + > reusable shared components, and instantiates the `Java objects` for that + > part. + > This is why Android's apps don't have a single entry point, e.g. C-style + > `main()` function. + +--- + + ***Activities*** +---------------- +An *activity* is a component that presents a user interface so that the user can +interact with an app. + +| Application | Activity | +--- +| Contacts | New Contact | +| Phone | Dial Number | +| Calculator | Calculate | +| Calculator | Advanced panel | + diff --git a/notes/fFoxDev.css b/notes/fFoxDev.css new file mode 100644 index 0000000..7600007 --- /dev/null +++ b/notes/fFoxDev.css @@ -0,0 +1,3 @@ +div { +-moz-appearance: button; +} \ No newline at end of file diff --git a/notes/markdown.css b/notes/markdown.css new file mode 100644 index 0000000..b51a99c --- /dev/null +++ b/notes/markdown.css @@ -0,0 +1,4 @@ +ul { + appearance:window; + background:#00ff00 url('bg-image.gif') no-repeat fixed center; +} From c590c82ed350e053c577115c1b63416794494a31 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 16 Jul 2014 06:35:42 -0500 Subject: [PATCH 06/13] leftover swp file --- notes/.App-Architecture.md.swp | Bin 12288 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 notes/.App-Architecture.md.swp diff --git a/notes/.App-Architecture.md.swp b/notes/.App-Architecture.md.swp deleted file mode 100644 index f2e91ed73f951c91fc7c38025863c200a86b38ed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2&x;&I6vr#cDQYyRSK+CLXtUE3jiLk%3>ySR*O(uQB4lg2tEbC!S2b1DvknZd ze}l$+*ZnujScueX`0c*Wu*=(3$0UWogcA7oQ?z{fkO$jp%}e*N}PN4 znX^3qw{p*uLe0m?8$M65E@Beom65^nn4Bh7<2+U4tVR7Gn;_Haq8fA-wpHdt+{c*AbF zOQkj3TQ%O|qLvlywDnZEl@HbgnFYUTwWIcEyB~+uXf*29!`0MEXEJDOI^!;^Eaj}FhY9gio7S_2zv(tiAE319HHS1xF{ zkb4F$G>xa+nlph)IahGWYcs19!9lm6#=^NRQt2$E?U4_QO7*KX(uHARr&=$kc*K{| zA?NF8{T86)2+s#;f|j`Pi|`cfz9#3A?DPX%`t|S=mBU>6g$LIN&$tdz<7}op`>jCO zz$Z+QExM)PKF4H~%2mEazRi$`ZWmmDL<6aJ__>|VAW7&=Q!PmFmbilUflUT2J>Q-ru$HnwwQys8E}xNbw^Iz)S=#@_G+77NlyxZ|h=qDtuc>)Ny* zBJo`)*ZZ+T<0ACJ2UQOPsEa~5g@faVkz58jm7e=uG*?Sh&IaHfIVVkZNKja|b$EUY z)U&G1k<0T!Tp%QdYH8#QF;3U{PcegX9UyX@Ruyu>B@e#IUx`fmvUIJ%y4dbOIGki5 z5=y4d$~==k09U3oK=_2mGaN21euO{Q`DzrE-zA_k84e6r^F8&>tdey)Q0(}YD6<=g zBo!^!DkXe=aGVAwIn-SF%;{+#tfT~?>q7aEbOqTRLN@bwX~Bj=>L`c_%1LhAN9TMp z|D0MJ;6sQ2QQaDTPpH0-ltdL+RJj9ZfqWfY4_L9)s>T_7t_vjHQ{imQe%}ZdK5V>v YHvLJ(%ZD_9w?Tiyo;ZNb3-!SDC)?{BI{*Lx From bafb07a8374e274095470f53bb887a2ea072143f Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 16 Jul 2014 08:16:18 -0500 Subject: [PATCH 07/13] improved README doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 73736ff..89ab967 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ Android-Udev-Rules Develop with your Android devices on Linux. ************************************************* -This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules +This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules. It extends the use of the original script, which is aimed at Ubuntu, to Fedora and, perhaps, other `systemd`-based Linux distributions. The shell-script within the repo is intended to be run as *root #:* so that the *udev rules* file can be copied to the *udev system config* directory--i.e. **/etc/udev/rules.d/** -The customizations I've made to the script are intended as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on my PC with SystemD. +The customizations I've made to the script are intended as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on Fedora20 PCs. Aside from that, and perhaps more importantly, I've also included a line to the *shell-script* to add a new group **plugdev** to the system, since the *udev-rules* file refers to it as the assigned user group. From f62df483fb15202192b3cd8e964b6c1d789ebb19 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 16 Jul 2014 13:59:01 -0500 Subject: [PATCH 08/13] cleaned up for merge w/upstream --- notes/App-Architecture.html | 66 ------------------------------------- notes/App-Architecture.md | 47 -------------------------- notes/fFoxDev.css | 3 -- notes/markdown.css | 4 --- 4 files changed, 120 deletions(-) delete mode 100644 notes/App-Architecture.html delete mode 100644 notes/App-Architecture.md delete mode 100644 notes/fFoxDev.css delete mode 100644 notes/markdown.css diff --git a/notes/App-Architecture.html b/notes/App-Architecture.html deleted file mode 100644 index e139898..0000000 --- a/notes/App-Architecture.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - -

Android App Architecture

- -

The architecture of an Android app differs from desktop application architecture. -App architecture is based upon components that communicate with each other by -using intents that are described by a manifest and that are stored in an app -package.

- -

Components

- -
    -
  • activities
  • -
  • services
  • -
  • content providers
  • -
  • broadcast receivers
  • -
- - -

An app is a collection of components that run in a Linux process and -are managed by Android.

- -

These components share a set of resources, including:

- -
    -
  • databases
  • -
  • preferences
  • -
  • filesystem
  • -
  • Linux process
  • -
- - -

Component reuse reduces overall memory footprint, which is very important -for devices with limited memory.

- -

When Needed Only

- -

Android starts a process when any part of the app is needed, such as the - reusable shared components, and instantiates the Java objects for that - part. - This is why Android’s apps don’t have a single entry point, e.g. C-style - main() function.

- -
- -

Activities

- -

An activity is a component that presents a user interface so that the user can -interact with an app.

- -

| Application | Activity |

- -

| Contacts | New Contact | -| Phone | Dial Number | -| Calculator | Calculate | -| Calculator | Advanced panel |

- - diff --git a/notes/App-Architecture.md b/notes/App-Architecture.md deleted file mode 100644 index 250b705..0000000 --- a/notes/App-Architecture.md +++ /dev/null @@ -1,47 +0,0 @@ -**Android App Architecture** -==================== -The architecture of an Android app differs from desktop application architecture. -App architecture is based upon *components* that communicate with each other by -using *intents* that are described by a *manifest* and that are stored in an app -package. - - **Components** --------------- -* *activities* -* *services* -* *content providers* -* *broadcast receivers* - -> An app is a collection of *components* that run in a Linux process and -> are managed by Android. - -#### These components share a set of resources, including: - * _databases_ - * _preferences_ - * _filesystem_ - * _Linux process_ - -Component reuse reduces overall memory footprint, which is very important -for devices with limited memory. -#### **When Needed** Only - - > Android starts a process when any part of the app is needed, such as the - > reusable shared components, and instantiates the `Java objects` for that - > part. - > This is why Android's apps don't have a single entry point, e.g. C-style - > `main()` function. - ---- - - ***Activities*** ----------------- -An *activity* is a component that presents a user interface so that the user can -interact with an app. - -| Application | Activity | ---- -| Contacts | New Contact | -| Phone | Dial Number | -| Calculator | Calculate | -| Calculator | Advanced panel | - diff --git a/notes/fFoxDev.css b/notes/fFoxDev.css deleted file mode 100644 index 7600007..0000000 --- a/notes/fFoxDev.css +++ /dev/null @@ -1,3 +0,0 @@ -div { --moz-appearance: button; -} \ No newline at end of file diff --git a/notes/markdown.css b/notes/markdown.css deleted file mode 100644 index b51a99c..0000000 --- a/notes/markdown.css +++ /dev/null @@ -1,4 +0,0 @@ -ul { - appearance:window; - background:#00ff00 url('bg-image.gif') no-repeat fixed center; -} From ed31522972fa0347310d37fbedd8b683dcdebccb Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 16 Jul 2014 14:12:27 -0500 Subject: [PATCH 09/13] added support for Fedora --- install.sh => installOnFedora.sh | 4 ---- 1 file changed, 4 deletions(-) rename install.sh => installOnFedora.sh (77%) diff --git a/install.sh b/installOnFedora.sh similarity index 77% rename from install.sh rename to installOnFedora.sh index e393484..e7c8fef 100755 --- a/install.sh +++ b/installOnFedora.sh @@ -7,10 +7,6 @@ if [ "$(id -u)" != $ROOT_UID ]; then exit 1 fi -echo "This is a modified shell-script from the one -originally-published at github.com/apotheos/Android-Udev-Rules \n -Warning! The customisation will attempt to create new group -*plugdev* as root..." echo "Unplug all android devices, then hit ENTER." read IGNORE From a44189a0ba6b62061118f07e142f3d7cd734ca00 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Wed, 16 Jul 2014 15:07:20 -0500 Subject: [PATCH 10/13] added Fedora-support script w/plugdev group creation --- installOnFedora.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 installOnFedora.sh diff --git a/installOnFedora.sh b/installOnFedora.sh new file mode 100755 index 0000000..e7c8fef --- /dev/null +++ b/installOnFedora.sh @@ -0,0 +1,26 @@ +ROOT_UID=0 +UDEV_RULES_DIR="/etc/udev/rules.d" +ANDROID_RULES_FILE="51-android.rules" + +if [ "$(id -u)" != $ROOT_UID ]; then + echo "Script requires root to complete install." + exit 1 +fi + +echo "Unplug all android devices, then hit ENTER." +read IGNORE + +cp $ANDROID_RULES_FILE $UDEV_RULES_DIR + +#chmod a+r $UDEV_RULES_DIR/$ANDROID_RULES_FILE +chmod 0644 $UDEV_RULES_DIR/$ANDROID_RULES_FILE -cR + +groupadd plugdev + +# Uncomment the following line for machines with **SysV init system** +#service udev restart > /dev/null + +# Reload *udev* service files on **systemd** machines +systemctl restart systemd-udevd.service > /dev/null + +echo "UDEV rules installed. Restart adb and connect Android devices." From 3ed57d3349576480acdcda212e6f7379574c1be8 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Thu, 17 Jul 2014 08:36:07 -0500 Subject: [PATCH 11/13] copied installOnFedora.sh to install.sh to revert unnecessary name-change to original install.sh --- install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..c137684 --- /dev/null +++ b/install.sh @@ -0,0 +1,19 @@ +ROOT_UID=0 +UDEV_RULES_DIR="/etc/udev/rules.d" +ANDROID_RULES_FILE="51-android.rules" + +if [ "$(id -u)" != $ROOT_UID ]; then + echo "Script requires root to complete install." + exit 1 +fi + +echo "Unplug all android devices, then hit ENTER." +read IGNORE + +cp $ANDROID_RULES_FILE $UDEV_RULES_DIR + +chmod a+r $UDEV_RULES_DIR/$ANDROID_RULES_FILE + +service udev restart > /dev/null + +echo "UDEV rules installed. Restart adb and connect Android devices." From 7fbdd5a7746e253db13b4d818d4447624c0849b4 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Thu, 17 Jul 2014 08:37:50 -0500 Subject: [PATCH 12/13] added support for Fedora --- notes | 1 - 1 file changed, 1 deletion(-) delete mode 160000 notes diff --git a/notes b/notes deleted file mode 160000 index 2a81d99..0000000 --- a/notes +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2a81d99800d21e395aa3902272c7702ae2099e5d From 40c4644ab0179887dc7b6e9356898d94572acb33 Mon Sep 17 00:00:00 2001 From: ILMostro Date: Thu, 17 Jul 2014 09:18:19 -0500 Subject: [PATCH 13/13] improved documentation --- README-fork.md | 20 ++++++++++++++++++++ README.md | 8 ++------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 README-fork.md diff --git a/README-fork.md b/README-fork.md new file mode 100644 index 0000000..89ab967 --- /dev/null +++ b/README-fork.md @@ -0,0 +1,20 @@ +Android-Udev-Rules +================== + +Develop with your Android devices on Linux. + +************************************************* +This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules. It extends the use of the original script, which is aimed at Ubuntu, to Fedora and, perhaps, other `systemd`-based Linux distributions. + +The shell-script within the repo is intended to be run as *root #:* so that the *udev rules* file can be copied to the *udev system config* directory--i.e. **/etc/udev/rules.d/** + +The customizations I've made to the script are intended as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on Fedora20 PCs. + +Aside from that, and perhaps more importantly, I've also included a line to the *shell-script* to add a new group **plugdev** to the system, since the *udev-rules* file refers to it as the assigned user group. + +Please Note: +------------------ +The user will still need to be added to the *plugdev* group manually as so: +`gpasswd -a username plugdev` + +I'll look into adding this functionality to the script itself, though I'm not sure whether or not it'd be wise to do so. Feel free to share any thoughts/comments on the matter. diff --git a/README.md b/README.md index 89ab967..0c527e9 100644 --- a/README.md +++ b/README.md @@ -4,13 +4,9 @@ Android-Udev-Rules Develop with your Android devices on Linux. ************************************************* -This is a fork of the original repo hosted at https://github.com/apotheos/Android-Udev-Rules. It extends the use of the original script, which is aimed at Ubuntu, to Fedora and, perhaps, other `systemd`-based Linux distributions. +The `install.sh` script is written to facilitate the installation of the necessary `udev` rules in order to interface with android devices over the USB port. It is intended to be run as `root #` so that the *51-android.rules* file can be copied to the system's configuration directory--e.g. `/etc/udev/rules.d/` -The shell-script within the repo is intended to be run as *root #:* so that the *udev rules* file can be copied to the *udev system config* directory--i.e. **/etc/udev/rules.d/** - -The customizations I've made to the script are intended as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on Fedora20 PCs. - -Aside from that, and perhaps more importantly, I've also included a line to the *shell-script* to add a new group **plugdev** to the system, since the *udev-rules* file refers to it as the assigned user group. +In addition to the original script there's the `installOnFedora.sh` as a workaround for systems with **SystemD** installed. I've commented out the line for *chkconfig*, as an attempt to restart `udev` was not properly handled on Fedora20 PCs. Furthermore, this additional script also includes a line that adds a new group **plugdev** to the system; since the *udev-rules* file refers to the **plugdev** group as the assigned user group, the admin will need to add designated users to it before they can interact with the android devices using `adb`, etc. Please Note: ------------------