exporting data from Xiaomi Mi Band app (version 1.1.961) - Android Software Development

I got my Mi Band yesterday and I am trying to reverse engineer how to export my data from the Mi Band app to something where I can keep and aggregate it.
I found user-db sqlite database on my phone (data/com.xiaomi.hm.health/databases). I opened the file and there is a LUA_LIST table. That table contains what looks to be the step data.
The problem is that I can't figure out how the values work. There is START and STOP column. I tried summing up all the steps from today but it doesn't add up to what my phone is displaying.
Any ideas?
**UPDATE**
I figured out that the date stored in the user db corresponds to the date on the "details" screen (screenshot from app)
My Query (id 5 is the first data point for January 22)
select sum (steps) from (
select sum (start) as steps from lua_LIST
where _id > 5
union
select sum (stop) as steps from lua_LIST
where _id > 5) as t

Latest update: please get the latest version from this thread: http://forum.xda-developers.com/general/accessories/xiaomi-mi-band-data-extraction-t3019156
I wrote the script to extract all activity from origin_db database. This works for me for MI software version 1.2.442. If you have sqlite3 installed on windows, you can run following from command line:
sqlite3 origin_db < miband.sql
It would generate extract.csv file with all sleep and activity data.

tehcypress said:
export my data from the Mi Band app to something where I can keep and aggregate it
Click to expand...
Click to collapse
Here Android application / Tasker profile for extracting stats into CSV / HTML.
Based on parsing templates by @xmxm, taken from his Windows-app above.

Related

Notification Wrapper

The whole concept for script is based on features of iRunAtEvent.exe - Windows Mobile tool, created by [hjgode].
Thank Josef )
- script is designed to apply notification events to exe and scripts
- script will store each record for created notification and prevent duplicate of same one
- option to restore all record after booting device (you can set output folder)
- script will restore only notification created by him
- on every call, the exe will write a log (iRunAtEvent.log.txt) to the root dir
- option to keep or not log files
- events library is separated to supported and unsupported events
iRunAtEvent - Windows Mobile tool to list and edit notification database
This tool will start an application given by the command line at a specified event.
On every call, the tool will write a log (iRunAtEvent.log.txt) to the root dir.
The arguments supported are:
set appname eventtype -sets the event eventtype to launch appname
reset appname -resets ALL events for appname
list -list all known registered events and the applications to launch
Although there are unsupported events listed in the log file, this does not mean the tool does not support them. In reality,
the OEM (in this case tested on an ITC 730) of the device decided not to fire them (drivers are responsible for events to fire).
You can simply check with your device by using these unsupported events and see, if they work. Simply use the calculator app in your tests.
================================
known events:
TIMECHANGE
SYNCEND
ONACPOWER
OFFACPOWER
NETCONNECT
NETDISCONNECT
DEVICECHANGE
IRDISCOVERED
RS232DETECTED
RESTOREEND
WAKEUP
TZCHANGE
MACHINENAMECHANGE
================================
Unsupported Events:
IRDISCOVERED
NETCONNECT
NETDISCONNECT
OFFACPOWER
ONACPOWER
================================
Concept and exe
by hjgode
Icon Orig. Name> "arrow_logo.png"
by ~XxXFaNtA
Script
by [email protected]

MOTOACTV TCX Exporter

Attached is a custom service for the MOTOACTV that will export the workout data table to a TCX file on the SD Card. The TCX file will be automatically created every time a workout ends and will be named with the unique id of the workout. This app is a work in progress, try at your own risk.
,Dave
Version 1.1
Service now exports Garmin TCX file.
Added export app to manually export workouts.
Version 1.2.
Lap Heart Beat Average skipped if 0.
Skip Lat/Lon if not valid
Version 1.3
Corrected naming of auto entered lap.
Version 1.4
Added workout activity lap check and use default value of 6 hrs for 1 lap duration if not found.
Version 1.5
*Apps changed to a release key, uninstall of old version required before install.
Added DistanceMeters to trackpoints
Corrected issue where workout id was being used instead of workout activity id for lap details lookup.
Version 1.6
Combined manual app and service into one app. The previous two apps will need to be removed before installing.
Corrected issue with sport type for biking
Added power
Corrected issue with run cadence and biking cadence.
Version 1.7
Added steps to lap details
Uses workout sub activity (intervals) if available for lap details.
Version 1.8
Changed TCX filename to include Timestamp
Added Settings (Use menu then Click settings to access)
Added DropBox auto export (must enable in settings) *In Testing
Added Google Drive auto export (must enable in settings) *In Testing
Added Runkeeper auto post with Facebook option (must enable in settings) *In Testing
Version 1.9
Corrected issue with default value of local TCX pref (was set to false instead of true)
Corrected issue with manual exporting requiring wifi for local TCX only export.
Version 1.10
Corrected Wifi state on preference change check.
Added settings button to main form (scroll up to see it)
Version 1.11
Improved user interface for settings
Added auto Wifi disable on app exit (optional)
Added Wifi enable button.
Removed automatic Wifi enable and waiting.
Known Issues:
Lap info not calculated correctly after pausing and resuming a workout.
---------------------------------------------------------------------------------------
ADB Commands
#Install
adb install Motoactv_export.apk
#Uninstall
adb uninstall com.sdsoft.motoactv_export
adb uninstall com.sdsoft.sd_csv (if coming from old version)
#Start Motoactv_export without having a launcher
adb shell am start -n com.sdsoft.motoactv_export/com.sdsoft.motoactv_export.MainActivity
#View debug logs
# For Motoactv export launch the app, run the following command then click export
adb logcat MainActivity:V *:S
adb logcat AndroidRuntime:V *:S
# For the service run the following command, start and stop a workout, then click End workout .
adb logcat SYNC_Service:V *:S
adb logcat AndroidRuntime:V *:S
* Added optional modified settings.apk that has an Export TCX option that will launch the manual TCX exporter app. Only use if your on stock roms or your settings.apk has not already been modified.
# To install
adb remount
adb push Settings.apk /system/app
adb reboot
Hi SuperDave,
Thank you very much for that nice app! I really enjoy it!
I tested it yesterday with SportTracks and it works great! continue your good job!
Well Done! :good:
JmCourir:laugh:
Rated 5 --> Excellent thread
Thanks JmCourir,
Glad its working for you.
Yes, it woks perfectly:good: with
http://www.zonefivesoftware.com/sporttracks/
I recommend this excellent app for all serious trainers out there!
JmCourir
---------- Post added at 06:24 PM ---------- Previous post was at 06:12 PM ----------
Hi Superdave,
Are you able to add steps per minute ? or overall steps of a workout? Steps per day in the tcx file?
If you can do it, I'll ask Sporttracks if they can add this to their software.*
Also, if I use a cadence sensor for bike, does your app still export this kind of data?
Thanks
JmCourir
How does the import into Sport tracks work? Do you connect the Motoactv via USB, copy the tcx files to your computer then import? Or does Sport tracks connect directly to the Motoactv like the other Garmin devices?
Thanks
JmCourir,
The bike cadence is supported and should export as part of the tcx. I'm not currently doing steps. It looks like they are part of the ActivityLapExtension (http://developer.garmin.com/schemas/tcx/v2/oxygen/activityExtensionv1/ActivityExtensionv1.xsd.html) Is that where you are looking to see the steps at the lap level or is it at the trackpoint level?
,Dave
two_wheels said:
How does the import into Sport tracks work? Do you connect the Motoactv via USB, copy the tcx files to your computer then import? Or does Sport tracks connect directly to the Motoactv like the other Garmin devices?
Thanks
Click to expand...
Click to collapse
Hi Two_wheels,
When you open SportTracks, you clic Import and browse into the sdcard of Motoactv and select the file TCX.
Very very quick and easy.
JmCourir
---------- Post added at 08:10 PM ---------- Previous post was at 08:02 PM ----------
superdave said:
JmCourir,
The bike cadence is supported and should export as part of the tcx. I'm not currently doing steps. It looks like they are part of the ActivityLapExtension (http://developer.garmin.com/schemas/tcx/v2/oxygen/activityExtensionv1/ActivityExtensionv1.xsd.html) Is that where you are looking to see the steps at the lap level or is it at the trackpoint level?
,Dave
Click to expand...
Click to collapse
Hi Dave,
I don't know what ActivityExtension do and what trackpoint level do
I'd like to see steps per lap, average steps per minutes, total daily steps ?
Is this possible?
Thanks
JmCourir
Extensions are addon to the tcx format. The only one I found that supports steps is at the laps level. It looks like its a total steps for the lap. TrackPoints are the individual data points that make up a lap. I can get the data for total steps per lap, step avg per lap and steps per trackpoint, but, the only one I see in the tcx format is the steps per lap. Does sportstrack support that or the others?
Stupid question
This looks awesome, I have a quick question before I get to work on rooting my device, is this something I have to do after each workout or can I wait for a couple of workouts and then click export and it will generate all of their files?
The service will automatically create a tcx export on your sdcard after the end of every workout. They are uniquely named and can be pulled off at anytime. The manual exporter is more to get at older workouts and the same thing applies, it will create the file and you can pull it of any time you want.
cdjadex said:
This looks awesome, I have a quick question before I get to work on rooting my device, is this something I have to do after each workout or can I wait for a couple of workouts and then click export and it will generate all of their files?
Click to expand...
Click to collapse
Hi Cdjadex,
You can wait later to export files. The app generate a new TCX file for each workout.
JmCourir
---------- Post added at 02:16 PM ---------- Previous post was at 02:12 PM ----------
superdave said:
Extensions are addon to the tcx format. The only one I found that supports steps is at the laps level. It looks like its a total steps for the lap. TrackPoints are the individual data points that make up a lap. I can get the data for total steps per lap, step avg per lap and steps per trackpoint, but, the only one I see in the tcx format is the steps per lap. Does sportstrack support that or the others?
Click to expand...
Click to collapse
Hi Superdave,
I'll ask SportTracks if we can import step per lap, step avg per lap and steps per trackpoint.
I think they do but I dont have any file with step to test it.
I know they support a lot of Garmin stuff..... IMO, we could make the test if it's not hard work for you to give me a app with steps in it?
JmCourir
superdave said:
The service will automatically create a tcx export on your sdcard after the end of every workout. They are uniquely named and can be pulled off at anytime. The manual exporter is more to get at older workouts and the same thing applies, it will create the file and you can pull it of any time you want.
Click to expand...
Click to collapse
I am guessing the service starts automatically each time the watch is rebooted or do I need to manually do it through adb?
JmCourir,
I'll work on adding steps to the laps.
cdjadex,
Once installed the service will be called even after a reboot.
I'm one of the first to appreciate your amazing job. Till now for me everything worked perfect. 3 running workouts and all of them perfect tcx to export with SD_CSV apk. Now installed last version, tomorrow morning I'll find out how it works, even if I'm pretty sure is going to be perfect as the last ones.
I know it's already a great job but can you think about doing an app to import workouts in motoactv??? For all of us will be like a dream!!!
superdave said:
JmCourir,
I'll work on adding steps to the laps.
Click to expand...
Click to collapse
Oh!! What a good news.... I very appreciate it !!!!
Thank you Superdave!!! You really rock!!! :good::good::good:
yES BUT
Hi guys well.. I got the apk installed and it seems to work..
Only problem is that my motoactv is not seen as a device on my Windows 7 machine.
If I put in another motoactv that is not rooted.. it is seen OK.
So I've no way of seeing the exported file..
any ideas?
I rooted with MotoACTV Root Tool V1.1.6 and followed everything.
Any ideas?
Cheers
Did you stop adb? After you do the motoactv will show up as a removable device.
almeriarunner said:
Hi guys well.. I got the apk installed and it seems to work..
Only problem is that my motoactv is not seen as a device on my Windows 7 machine.
If I put in another motoactv that is not rooted.. it is seen OK.
So I've no way of seeing the exported file..
any ideas?
I rooted with MotoACTV Root Tool V1.1.6 and followed everything.
Any ideas?
Cheers
Click to expand...
Click to collapse
If You have windows go in the folder Platform-tool, press shift + right click, click on "open command window here" and digit, adb shell stop adbd
, press enter and everything should work now.
atsic said:
If You have windows go in the folder Platform-tool, press shift + right click, click on "open command window here" and digit, adb shell stop adbd
, press enter and everything should work now.
Click to expand...
Click to collapse
You can also press "windows-button + R", type in "cmd" and press enter. In the command file you type in "adb shell stop adbd" as described above.
In my opinion, that´s the fastest "manual" possibility.
However, the fastest possibility is a batch file to do the job automatically. Just press "windows-button + R", type in notepad and press enter. Then copy and paste the command "adb shell stop adbd" into the notepad file. Then go to menu and press "Save as" and save it as filename.bat on your desktop. The next time you plug-in your motoactv you only have to double click on the file and it will be recognised as UMS.
stoudamire said:
You can also press "windows-button + R", type in "cmd" and press enter. In the command file you type in "adb shell stop adbd" as described above.
In my opinion, that´s the fastest "manual" possibility.
However, the fastest possibility is a batch file to do the job automatically. Just press "windows-button + R", type in notepad and press enter. Then copy and paste the command "adb shell stop adbd" into the notepad file. Then go to menu and press "Save as" and save it as filename.bat on your desktop. The next time you plug-in your motoactv you only have to double click on the file and it will be recognised as UMS.
Click to expand...
Click to collapse
Thanks!!!
Inviato dal mio MZ601 con Tapatalk 2

[How to] noobs guide to decompile/recompile android application

Guide to decompile android application​
REQUIREMENT
Apktool [click here to download][Thanks to brut.all for this apktool]
Java JDK/JRE 32 bit [please google it guy's]
Little knowledge on cmd
_________________________________________________________________________________________________________________________
Preparation before WORKING
Process :-
1)now install the java in your pc/lappy
then copy the apktool.zip & goto directory C:/
make a folder name apktool (u can name it by watever u like)
now goto that folder & paste the zip
extract that zip there...
2) now copy the .apk or jar file which u wnt to decompile
& paste it on apktool folder.....
also copy the framework-res.apk of that rom &
paste it on that folder..
Decompiling application
3) now open cmd
Your cmd will probly look like this..
C:\users\yourname>
so type in
cd.. (yes include the '..' and press enter after you type each command)
this will get you to back directory so now you will see
C:\users>
so type again
cd..
you should now see this:
C:\>
now type
cd apktool (and you are in the apktool directory)
4)Installing Framework
Now that you are in directory we need to install the device's framework to your system for it to compile correctly so type this:
apktool if framework-res.apk
this will install the devices framework to your system (need to do this)
5)now to decompile the apk you want to edit.. type this:
apktool d music.apk mod
music.apk is the apk your decompiling
mod is the folder you're creating for the decompiled apk
do whatever you want to do with your apk...
NOW RECOMPILING
6)now to recompile your new apk type this:
apktool b mod music-new.apk
mod is the folder with your edited files
music-new.apk is your new apk file
Now we are NOT done... we cannot use the new apk's...
now make two separate folder a & b
copy-paste the original music.apk in 'a'
& music-new.apk in 'b'
use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "new-edited" apk and copy them into Original apk
now add to archive ...the origanl apk in zip format
& at the end of the file name .apk ( i mean give the file format name as .apk insted of .zip)
Now you are almost done.....:thumbup:
IF it is a system app then don't sign it....otherwise u have to sign that app....
[=>Guide On How To Sign The Moded App<=]
NOTE:- If you are getting this error =>" java is not a recognized internal or external command "
[=>Then Follow this Guide<=][Thanks to KartzXDA]:good:
That's all
don't forget to hit thanks or comment....:good:
All Mod-Rom by Abhijit Guha(mee)
1} X-zooM[V2] (Netlock free : Transparent Rom):good:​
2}Tutorial On Decompiling Android Apps​
3.Guide To Make Transparent Power Widget​.
4.Guide To Change Statusbar Clock & Notification colour​.
5.Guide On How To Sign The Moded App​.
6.Guide On How To SetUp Environmental Variables​
cool.........
thank for nice guide
sent from my ass ®
Insted of so much to cd folder just right click the folder while holding shift button and you will see adbance options... now open command prompt.. It will save time and is very easy ....
Sent from my GT-S7500 using xda premium
lokeshsaini94 said:
Insted of so much to cd folder just right click the folder while holding shift button and you will see adbance options... now open command prompt.. It will save time and is very easy ....
Sent from my GT-S7500 using xda premium
Click to expand...
Click to collapse
I think you haven't followed something...... this guide is for begginers...so it should be simple one.... not eeky
This is simple method to cd a folder in cmd without all that long commands.... I always use it... Try it once and you will know what i am trying to say....
Sent from my GT-S7500 using xda premium
Thank s for this awesome guide
Sent from my Galaxy Nexus using Tapatalk 2
Awesome guide, very simple to decompile and recompile with it.
Cool guide! I will use it to do some tests with my apks
solved problem lol ... good tutorial ...
xda facebook page should share more tutorials like this!!
Yeah mine says java is not a recognized internal or external command, operable program or batch file. I probably have to add the environment variable, but im not sure how to.
EDIT: got it.
AlwaysDroid said:
Yeah mine says java is not a recognized internal or external command, operable program or batch file. I probably have to add the environment variable, but im not sure how to.
EDIT: got it.
Click to expand...
Click to collapse
You getting this error coz you giving those command in some other directory.........
Note:- First u have to go th that directory or folder where ur apktool files are kept...... then u will not get such error......
Follow that guide from begging then u will get wat I wanna say. best of luck :good:
aguha1044 said:
You getting this error coz you giving those command in some other directory.........
Note:- First u have to go th that directory or folder where ur apktool files are kept...... then u will not get such error......
Follow that guide from begging then u will get wat I wanna say. best of luck :good:
Click to expand...
Click to collapse
No, I just forgot to add the java bin to PATH variable. All good
Sent from my GT-I9000 using xda premium
For the OP. Some ROMs like miui ROM use two frameworks ( framework-res.apk and framework-miui-res.apk) so you need to specify that on the guide. I am just trying to help
tapatalked² cowsquadGnex®
AlwaysDroid said:
No, I just forgot to add the java bin to PATH variable. All good
Sent from my GT-I9000 using xda premium
Click to expand...
Click to collapse
can you tell how to add JAVA bin? I am getting the same error on cmd. thank you
How to setup the environment variable
zain0300 said:
can you tell how to add JAVA bin? I am getting the same error on cmd. thank you
Click to expand...
Click to collapse
TECHNICAL INFORMATION
The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window.
The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and Solaris.
SOLUTION
Here PATH represents the bin path of installed version of Java that contains classes. (e.g. C:/jdk1.6.0/bin)
Setting Path on Windows
Windows 7
1. Select Computer from the Start menu
2. Choose System Properties from the context menu
3. Click Advanced system settings > Advanced tab
4. Click on Environment Variables, under System Variables, find PATH, and click on it.
5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
6. Reopen Command prompt window, and run your java code.
Windows XP
1. Start -> Control Panel -> System -> Advanced
2. Click on Environment Variables, under System Variables, find PATH, and click on it.
3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
4. Close the window.
5. Reopen Command prompt window, and run your java code.
Windows Vista
1. Right click My Computer icon
2. Choose Properties from the context menu
3. Click Advanced tab (Advanced system settings link in Vista)
4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may
select to add a new variable and add PATH as the name and the location of the class as the value.
5. Reopen Command prompt window, and run your java code.
Setting Path on Solaris and Linux
To find out if the java executable is in your PATH, execute:
% java -version
This will print the version of the java executable, if it can find it. If you get error java: Command not found. Then path is not properly set.
To find out which java executable the first one found in your PATH, execute:
% which java
Below are the steps to set the PATH permanently,
Giving instructions for two most popular Shells on Linux and Solaris.
For bash Shell:
Edit the startup file (~/ .bashrc)
Modify PATH variable:
PATH="$PATH":/usr/local/jdk1.6.0/bin
export PATH
Save and close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
For C Shell (csh):
Edit startup file (~/ .cshrc)
Set Path
set path="$PATH":/usr/local/jdk1.6.0/bin
Save and Close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
Hit "Thanks" if anyone helped you. :good:
Xperia Arc LT15i
Rooted/Bootloader Unlocked
JellyBean - FXP137/CM10
KartzXDA said:
TECHNICAL INFORMATION
The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window.
The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and Solaris.
SOLUTION
Here PATH represents the bin path of installed version of Java that contains classes. (e.g. C:/jdk1.6.0/bin)
Setting Path on Windows
Windows 7
1. Select Computer from the Start menu
2. Choose System Properties from the context menu
3. Click Advanced system settings > Advanced tab
4. Click on Environment Variables, under System Variables, find PATH, and click on it.
5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
6. Reopen Command prompt window, and run your java code.
Windows XP
1. Start -> Control Panel -> System -> Advanced
2. Click on Environment Variables, under System Variables, find PATH, and click on it.
3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
4. Close the window.
5. Reopen Command prompt window, and run your java code.
Windows Vista
1. Right click My Computer icon
2. Choose Properties from the context menu
3. Click Advanced tab (Advanced system settings link in Vista)
4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may
select to add a new variable and add PATH as the name and the location of the class as the value.
5. Reopen Command prompt window, and run your java code.
Setting Path on Solaris and Linux
To find out if the java executable is in your PATH, execute:
% java -version
This will print the version of the java executable, if it can find it. If you get error java: Command not found. Then path is not properly set.
To find out which java executable the first one found in your PATH, execute:
% which java
Below are the steps to set the PATH permanently,
Giving instructions for two most popular Shells on Linux and Solaris.
For bash Shell:
Edit the startup file (~/ .bashrc)
Modify PATH variable:
PATH="$PATH":/usr/local/jdk1.6.0/bin
export PATH
Save and close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
For C Shell (csh):
Edit startup file (~/ .cshrc)
Set Path
set path="$PATH":/usr/local/jdk1.6.0/bin
Save and Close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
Hit "Thanks" if anyone helped you. :good:
Xperia Arc LT15i
Rooted/Bootloader Unlocked
JellyBean - FXP137/CM10
Click to expand...
Click to collapse
i read all this but still could not figured it out since there were few options i did not find on my windows 7 laptop.
Edit: Ok i found all the options now but what does this mean "modify PATH by adding the location of the class to the value for PATH"?
zain0300 said:
i read all this but still could not figured it out since there were few options i did not find on my windows 7 laptop.
Edit: Ok i found all the options now but what does this mean "modify PATH by adding the location of the class to the value for PATH"?
Click to expand...
Click to collapse
Under system variables, find for the variable Path. Click on Edit. Then one window will come up with two text boxes. One is variable name and another one is variable value. Edit the variable value of text box. Add the the path of bin ( e.g., ; C:\jdk\bin [Don't forget to add semicolon before the path]) to the text box.
Please have a look at the attachments.
Hit "Thanks" if anyone helped you.
Xperia Arc LT15i
Rooted/Bootloader Unlocked
JellyBean - FXP137/CM10
KartzXDA said:
Under system variables, find for the variable Path. Click on Edit. Then one window will come up with two text boxes. One is variable name and another one is variable value. Edit the variable value of text box. Add the the path of bin ( e.g., ; C:\jdk\bin [Don't forget to add semicolon before the path]) to the text box.
Please have a look at the attachments.
Hit "Thanks" if anyone helped you.
Xperia Arc LT15i
Rooted/Bootloader Unlocked
JellyBean - FXP137/CM10
Click to expand...
Click to collapse
thankx for your replies. I mistakenly deleted all the other paths that were already there, can I bring them back?
thanks button pushed.
zain0300 said:
thankx for your replies. I mistakenly deleted all the other paths that were already there, can I bring them back?
thanks button pushed.
Click to expand...
Click to collapse
copy this in the path variable value after that add ;C:\jdk....\bin
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShel l\v1.0\
Hit "Thanks" if anyone helped you. :good:
Xperia Arc LT15i
Rooted/Bootloader Unlocked
JellyBean - FXP137/CM10

[TOOL][SCRIPT] ADB Sync Tool - PowerShell Script

This is the first time I have posted any of my work, so hopefully I have it in a suitable place.
This script is to sync directories from an Android device to a windows machine. This is a one way sync, and will only copy the files which have been changed on the device. Thus making the whole process much quicker.
This script has been tested by myself using a SGS3, however I cannot guarantee this script will work as expected for any other device as I haven't had it tested.
Please report any issues to me, with as much information regarding the problem as possible as this will give me the best chance of fixing the issue. Same goes for any feature requests or improvements. I wrote this for own needs, but felt might be useful for other windows users out there.
ADB must be on the windows PATH. See link -> http://www.computerhope.com/issues/ch000549.htm
PowerShell's Execution Policy should be set to RemoteSigned. See link -> http://technet.microsoft.com/en-us/library/ee176961.aspx
This script takes a CSV file and should be called in the following manor using a powershell console
Syntax: .\adbsync.ps1 dirs.csv
Where dirs.csv is a csv file with two columns. The first row contains
the headers "source" and "target". Each following row contain the paths.
example csv file (file also included in the zip)...
Code:
source,target
/storage/extSdCard/TitaniumBackup,.\Sync\storage\extSdCard\TitaniumBackup
/storage/extSdCard/clockworkmod,.\Sync\storage\extSdCard\clockworkmod
This will sync the TitaniumBackup directory on the external sdcard
to a folder called Sync keeping the same structure as on the device.
You only need to specify the top level folders as this script will recurse the folder structure.
WARNING: This script will remove files from the target directory without prompt
if the files in that directory don't exist on the source directory.
Nothing will be removed from the source directory.
This script is provided as-is, no warrenty is provided or implied. The author is NOT responsible for any damages or data loss that may occur through the use of this script. Always test, test, test.
This script is free to use for both personal and business use, however, it may not be sold or included as part of a package that is for sale.
CREDITS:
xenomachina's python based adbsync. This was the inspiration behind this script
https://github.com/xenomachina/adbsync/blob/master/adbsync.py
VERSION HISTORY:
1.0 - 08.01.2013 - Initial release
Hit the Thanks button if you found this useful

[LIBRARY] APL - Android Proxy Library

APL (Android Proxy Library) is a library that makes it easier for app developers get the proxy settings from an Android device.
I decided to make this library when I realized that Android didn't have a standard and simple support to proxy networks that can support all the API versions (more information here). So, the first goal was to add an agnostic method to get the current proxy configuration of the device. After that, I continued adding features to the library in order to get and check proxy configuration, status and other related informations.
Anyway, here it is on GitHub: https://github.com/shouldit/android-proxy-library
The code is not so well documented, but please be patient, it's not my full time job !
I would really appreciate any feedback, comment, issue you may find, so please just write a couple of rows to me or into the GitHub Issues page.
Bye!
This looks really useful, but I am completely failing to get it imported into Eclipse successfully...
I have done:
file > import > general > existing projects into workspace
and
file > import > android > existing android code into workspace
Both with "copy files into workspace" checked and unchecked.
Every time, I get 1021 errors in the console with things like:
Code:
android.net.LinkProperties cannot be resolved to a type
What am I doing wrong? Is there some extra setup step that I missed?
redders6600 said:
This looks really useful, but I am completely failing to get it imported into Eclipse successfully...
I have done:
file > import > general > existing projects into workspace
and
file > import > android > existing android code into workspace
Both with "copy files into workspace" checked and unchecked.
Every time, I get 1021 errors in the console with things like:
Code:
android.net.LinkProperties cannot be resolved to a type
What am I doing wrong? Is there some extra setup step that I missed?
Click to expand...
Click to collapse
You should exclude from the build of the library all the source files that are contained into the "excluded_from_build" folder. Those files are there only to have a fast reference for reflecting the Android source files.
Anyway I've on my todo list the task to provide an easily library package (aar). It should be ready soon.

Categories

Resources