Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,223 Members 41,894 Now Online
XDA Developers Android and Mobile Development Forum

[APP] Raccoon v3.2 - A google play desktop client

Tip us?
 
pwlin
Old
#121  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Sep 2014
Location: Amsterdam
Thank you very much for this great app!

I have a small request:
I like to generate a simple html index of all the files i have in ./apk_storage/ directory so I can serve them on my local network for other family members to download.

The idea is to present others with a simple html file with numerous links so they can download whatever they want from my local apk_storage folder.

Something like:

My Files:

Titanium Backup v. 6.1.5.6
Titanium Backup v. 6.1.5.5
ES Explorer v. 3.1.9.1
ES Explorer v. 3.1.9.0

and so on...

Now the problem is that Raccoon save everything under the Package ID and Version Code (not the Version Number), which is understandable from the developer's point of view but makes it difficult for me to build such a html file.

I can scrap the play store web page based on the package id and save version number, name and description from that page, or use a tool such as aapt from Android SDK to directly read the contents of AndroidManifest.xml inside the apk file and gather the data i need. But both of these methods seems just a bit overkill.

Which brings me to my question: is it possible for Raccoon to generate something like an index.xml file beside credentials.cfg with name, version numbers and icon of all the apk files in ./apk_storage/?

Something like:

Code:
<Raccoon>
    <application>
        <id>com.keramidas.TitaniumBackup</id>
        <name>Titanium Backup</name>
        <icon>[Link to Icon in Play Store]</icon>
        <package>
            <version>6.1.5.6</version>
            <versioncode>337</versioncode>
            <apkname>[Link To APK in apk_storage folder]</apkname>
        </package>
        <package>
            <version>6.1.5.5</version>
            <versioncode>336</versioncode>
            <apkname>[Link To APK in apk_storage folder]</apkname>
        </package>
        <package>
            ....
        </package>
    </application>

   <application>
       ........
   </application>

</Raccoon>
Is this a difficult thing for you to do?
 
onyxbits
Old
#122  
Senior Member - OP
Thanks Meter 151
Posts: 133
Join Date: Dec 2012

 
DONATE TO ME
Quote:
Originally Posted by pwlin View Post
Thank you very much for this great app!

I have a small request:
I like to generate a simple html index of all the files i have in ./apk_storage/ directory so I can serve them on my local network for other family members to download.

The idea is to present others with a simple html file with numerous links so they can download whatever they want from my local apk_storage folder.
That is actually a planned feature . However, it's not a trivial thing to do (at least not if done right), so this will take some time. I need to add device profiles first.
The Following User Says Thank You to onyxbits For This Useful Post: [ Click to Expand ]
 
pwlin
Old
#123  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Sep 2014
Location: Amsterdam
Quote:
Originally Posted by onyxbits View Post
That is actually a planned feature . However, it's not a trivial thing to do (at least not if done right), so this will take some time. I need to add device profiles first.
Thanks, that would be great!
In the meantime, i will write a short script to run all my apks through aapt and extract the necessary info for generating the index.xml file.
 
asapisaiah
Old
#124  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2014
So, I'm pretty sure that everything's set up correctly, yet no matter what I search I get No results as it says...
 
hadi_rena
Old
#125  
Senior Member
Thanks Meter 222
Posts: 609
Join Date: Sep 2011
Location: Bandung
Quote:
Originally Posted by pwlin View Post
Thanks, that would be great!
In the meantime, i will write a short script to run all my apks through aapt and extract the necessary info for generating the index.xml file.
Would you mind share the script once it's finished?
Primary Phone: Motorola Moto G (XT1032)
Running this phone without any modification

Secondary Phone : LG Optimus 2X (P990) [SOLD]

ROM : SlimBean 4.2
Kernel : Kowalski Kernel
Recovery : TWRP 2.x.x

Did I help you? Hit thanks or help me increase my cloud storage by using my referral

Copy.com with additional 5 GB : here (15 GB + 5 GB) for free
Want additional space at dropbox ? register with this link : Dropbox with additional 500MB
 
pwlin
Old
(Last edited by pwlin; 15th September 2014 at 10:15 PM.)
#126  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Sep 2014
Location: Amsterdam
Quote:
Originally Posted by hadi_rena View Post
Would you mind share the script once it's finished?
Hi Hadi,

The script is already on Github. You can clone the repository from

github.com/pwlin/wisconsin-index-generator


You need NodeJS installed and also you need aapt utility from Android SDK in your path, because the script is using aapt to extract metadata from apk files.

Once you are ready to go, clone the directory and run

Code:
npm install
node index.js /path/to/your/apk_storage
Please let me know if you have any question, I'll be glad to help you.
The Following User Says Thank You to pwlin For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes