In fact, androidsdk-uiautomatorviewer works fine in Debian Sid, without modifying the script.
Instead, the package adds symlinks into /usr/share/java: $ dpkg-deb -c eclipse-rcp_3.8.1-7_amd64.deb | grep ^l lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/features/org.eclipse.rcp_3.8.1.dist-8LA2GODFTJUDJ21934/eclipse_update_120.jpg -> ../../../../share/eclipse/features/org.eclipse.rcp_3.8.1.dist-8LA2GODFTJUDJ21934/eclipse_update_120.jpg lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.runtime_0.10.0.jar -> ../../../share/java/org.apache.felix.gogo.runtime.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/com.ibm.icu_4.4.2.v20110823.jar -> ../../../share/java/com.ibm.icu-4.4.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.shell_0.10.0.jar -> ../../../share/java/org.apache.felix.gogo.shell.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.eclipse.swt_3.8.2.jar -> ../../../share/java/swt.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/eclipse/plugins/org.apache.felix.gogo.command_0.12.0.jar -> ../../../share/java/org.apache.felix.gogo.command.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.jface_3.8.0.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.jface_3.8.0.dist.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.core.commands.jar -> org.eclipse.core.commands_3.6.1.dist.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.jface.jar -> org.eclipse.jface_3.8.0.dist.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.equinox.common.jar -> org.eclipse.equinox.common_3.6.100.dist.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.equinox.common_3.6.100.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.equinox.common_3.6.100.dist.jar lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/java/org.eclipse.core.commands_3.6.1.dist.jar -> ../../lib/eclipse/plugins/org.eclipse.core.commands_3.6.1.dist.jar
These two symlinks seem sufficient to fix uiautomatorviewer: sudo ln -s ../../lib/eclipse/plugins/org.eclipse.jface_3.8.0.dist.jar /usr/share/java sudo ln -s ../../lib/eclipse/plugins/org.eclipse.core.commands_3.6.1.dist.jar /usr/share/java
Therefore, please ignore the patch but add the symlinks instead ;-)
In fact, androidsdk- uiautomatorview er works fine in Debian Sid, without modifying the script.
Instead, the package adds symlinks into /usr/share/java: rcp_3.8. 1-7_amd64. deb | grep ^l eclipse/ features/ org.eclipse. rcp_3.8. 1.dist- 8LA2GODFTJUDJ21 934/eclipse_ update_ 120.jpg -> ../../. ./../share/ eclipse/ features/ org.eclipse. rcp_3.8. 1.dist- 8LA2GODFTJUDJ21 934/eclipse_ update_ 120.jpg eclipse/ plugins/ org.apache. felix.gogo. runtime_ 0.10.0. jar -> ../../. ./share/ java/org. apache. felix.gogo. runtime. jar eclipse/ plugins/ com.ibm. icu_4.4. 2.v20110823. jar -> ../../. ./share/ java/com. ibm.icu- 4.4.jar eclipse/ plugins/ org.apache. felix.gogo. shell_0. 10.0.jar -> ../../. ./share/ java/org. apache. felix.gogo. shell.jar eclipse/ plugins/ org.eclipse. swt_3.8. 2.jar -> ../../. ./share/ java/swt. jar eclipse/ plugins/ org.apache. felix.gogo. command_ 0.12.0. jar -> ../../. ./share/ java/org. apache. felix.gogo. command. jar java/org. eclipse. jface_3. 8.0.dist. jar -> ../../lib/ eclipse/ plugins/ org.eclipse. jface_3. 8.0.dist. jar java/org. eclipse. core.commands. jar -> org.eclipse. core.commands_ 3.6.1.dist. jar java/org. eclipse. jface.jar -> org.eclipse. jface_3. 8.0.dist. jar java/org. eclipse. equinox. common. jar -> org.eclipse. equinox. common_ 3.6.100. dist.jar java/org. eclipse. equinox. common_ 3.6.100. dist.jar -> ../../lib/ eclipse/ plugins/ org.eclipse. equinox. common_ 3.6.100. dist.jar java/org. eclipse. core.commands_ 3.6.1.dist. jar -> ../../lib/ eclipse/ plugins/ org.eclipse. core.commands_ 3.6.1.dist. jar
$ dpkg-deb -c eclipse-
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/lib/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
lrwxrwxrwx root/root 0 2014-11-28 21:07 ./usr/share/
These two symlinks seem sufficient to fix uiautomatorviewer: eclipse/ plugins/ org.eclipse. jface_3. 8.0.dist. jar /usr/share/java eclipse/ plugins/ org.eclipse. core.commands_ 3.6.1.dist. jar /usr/share/java
sudo ln -s ../../lib/
sudo ln -s ../../lib/
Therefore, please ignore the patch but add the symlinks instead ;-)