GithubHelp home page GithubHelp logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 31, 2024
Can you provide the OS which you are using ?

I suppose it would be Ubuntu and I was able to reproduce the issue.

I will roll out the fix for it by the end of the week.

This current setting should work ok for OS X for now.

Thanks for addressing this. Very much appreciated.

Original comment by [email protected] on 8 Aug 2012 at 6:04

  • Added labels: ****
  • Removed labels: ****

from asef.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 31, 2024
Rather than using stand alone utilities 'adb' and 'aapt' bundled in ASEF, 
please change the path to point to the binaries inside Android SDK within 
platform-tools.

instead of ./adb -> ../platform-tools/adb
instead of ./aapt -> ../platform-tools/aapt

Scripts that may require this change :-

apkeval.pl
execadblogcat.sh    
execdmesg.sh        
execdumpsys.sh      
execps.sh

Original comment by [email protected] on 5 Oct 2012 at 10:17

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from asef.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 31, 2024
Here is the alternate fix, which should resolve the issue :-

========================================

cat ASEF_OSP_patch1.txt 
diff ../ASEF_OSP_ORIGINAL/apkeval.pl ASEF_OSP_FIXED/apkeval.pl
168c168
<   `./adb kill-server`;
---
>   `../platform-tools/adb kill-server`;
171c171
<   @ADBSER = `./adb start-server`;
---
>   @ADBSER = `../platform-tools/adb start-server`;
206c206
<   @ARRDEVICES = `./adb devices`;
---
>   @ARRDEVICES = `../platform-tools/adb devices`;
257c257
<   @ARRPKGLIST = `./adb -s $DEVICEID shell pm list packages`;
---
>   @ARRPKGLIST = `../platform-tools/adb -s $DEVICEID shell pm list packages`;
268c268
<    if ($APKCNT == 5) { last; } # if you have 50+ applications installed, you 
can just use this counter to only do it for 5 if you are only interested in 
it'd demo...
---
> #   if ($APKCNT == 5) { last; } # if you have 50+ applications installed, you 
can just use this counter to only do it for 5 if you are only interested in 
it'd demo...
274c274
<    $APKPATH = `./adb -s $DEVICEID shell pm path $_`;
---
>    $APKPATH = `../platform-tools/adb -s $DEVICEID shell pm path $_`;
293c293
<      `./adb -s $DEVICEID pull $BKAPKPATH $EXTRCTAPK`;
---
>      `../platform-tools/adb -s $DEVICEID pull $BKAPKPATH $EXTRCTAPK`;
453c453
<    @AAPTDUMP = `./aapt dump badging $FULLPATH`;
---
>    @AAPTDUMP = `../platform-tools/aapt dump badging $FULLPATH`;
586c586
<   @ARRDEVICES = `./adb devices`;
---
>   @ARRDEVICES = `../platform-tools/adb devices`;
628c628
<    @ARRDEVICES = `./adb devices`;
---
>    @ARRDEVICES = `../platform-tools/adb devices`;
630c630
<    my $FOUNDEMU = `./adb devices |grep emulator`;
---
>    my $FOUNDEMU = `../platform-tools/adb devices |grep emulator`;
701c701
<    `./adb -s $SCANDEVICE shell input keyevent 82`;
---
>    `../platform-tools/adb -s $SCANDEVICE shell input keyevent 82`;
723c723
<  @ARRDEVICES = `./adb devices`;
---
>  @ARRDEVICES = `../platform-tools/adb devices`;
791c791
<    `./adb -s $SCANDEVICE logcat -c`; # this will flush all the adb log 
message history from the device. not performing this step can cause False 
Postives and overlaps on various app results. If the message history is suppose 
to be preserved, in that case this can be replaced by another technique where 
it will collect all the adb log data without flushing it and later chop it 
based on time stamps.
---
>    `../platform-tools/adb -s $SCANDEVICE logcat -c`; # this will flush all 
the adb log message history from the device. not performing this step can cause 
False Postives and overlaps on various app results. If the message history is 
suppose to be preserved, in that case this can be replaced by another technique 
where it will collect all the adb log data without flushing it and later chop 
it based on time stamps.
821c821
<    system("./adb -s $SCANDEVICE install -s $APKFULLPATH");
---
>    system("../platform-tools/adb -s $SCANDEVICE install -s $APKFULLPATH");
829c829
<    system("./adb -s $SCANDEVICE shell am start -n $LAUNCHAPK");
---
>    system("../platform-tools/adb -s $SCANDEVICE shell am start -n 
$LAUNCHAPK");
837c837
<    system("./adb -s $SCANDEVICE shell monkey -p $PACKAGENAME $RGC");
---
>    system("../platform-tools/adb -s $SCANDEVICE shell monkey -p $PACKAGENAME 
$RGC");
843c843
<    system("./adb -s $SCANDEVICE uninstall $PACKAGENAME");
---
>    system("../platform-tools/adb -s $SCANDEVICE uninstall $PACKAGENAME");
1221c1221
<  system("./adb install -s $APKFULLPATH");
---
>  system("../platform-tools/adb install -s $APKFULLPATH");



diff ../ASEF_OSP_ORIGINAL/execadblogcat.sh ASEF_OSP_FIXED/execadblogcat.sh
3c3
< ./adb -s $1 logcat -v time >"$2" &
---
> ../platform-tools/adb -s $1 logcat -v time >"$2" &


diff ../ASEF_OSP_ORIGINAL/execdmesg.sh ASEF_OSP_FIXED/execdmesg.sh
3c3
< ./adb shell dmesg >"$@" &
---
> ../platform-tools/adb shell dmesg >"$@" &


diff ../ASEF_OSP_ORIGINAL/execdumpsys.sh ASEF_OSP_FIXED/execdumpsys.sh
3c3
< ./adb shell dumpsys >"$@" &
---
> ../platform-tools/adb shell dumpsys >"$@" &


diff ../ASEF_OSP_ORIGINAL/execps.sh ASEF_OSP_FIXED/execps.sh
3c3
< ./adb shell ps >"$@" &
---
> ../platform-tools/adb shell ps >"$@" &

=========================================

Original comment by [email protected] on 21 Oct 2012 at 9:51

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Attachments:

from asef.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.