Here is a small howto to setup eclipse with Flashtool and have it running from Eclipse.
First download Eclipse flashtool ready here
Eclipse configuration :
1 - At first launch : Choose a workspace location and check
the box "Use this as the default and do not ask again"
2 - Click on the Workbench icon
3 - Close the Task List pane
4 - Close the Outline pane
5 - Go to Windows -> Preferences
6 - Unfold Java treenode
7 - Go to Installed JREs node
8 - Click the Add button
9 - Choose Standard VM
10 - JRE Home : point to a valid JRE 1.7 root folder (C:\Program Files (x86)\Java\Jre7 for example). A jre installation package is included in the Eclipse flashtool ready package.
11 - For JRE name, enter jre7 (important)
12 - Default VM arguments: leave blank
13 - Click on Finish button
14 - Chek jre7 VM and click OK button
Now we are ready to import the Flashtool project :
15 - Go to File -> Import
16 - Unfold Git and choose Projects from Git then click Next
17 - Choose URI then click Next
18 - for URI enter : git://github.com/Androxyde/Flashtool.git then click Next
19 - Choose only master branch, uncheck 0.6.5 and gh-pages branches then click Next
20 - Take note of git folder as it will be used in few steps and leave all defaults on this page. Just click Next. Here it will clone the github repository and will take more or less time depending on your connection speed.
21 - Once cloning finished, choose the Import existing projects radiobutton and click Next then click Finish
22 - Go to Window -> Show vew - Ant
23 - Drag and drop deploy-release.xml from Package Explorer pane to Ant pane
24 - In the ant pane, unfold Deploy Flashtool and double click on "all" entry.
It will deploy the whole flashtool solution to <folder noted in point 20>\Deploy\FlashTool
From here you can go to the deploy folder and run the deployed Flashtool out of eclipse as when you install FT
Now to run it from Eclipse, we will have to build a run configuration :
25 - Go to run menu -> Run configurations
26 - Double click on Java Application it will create a new configuration under Java Application
27 - Main class : Search and select FlasherGUI
28 - Go to Arguments Tab
29 - Working directory : click Other and select the one where FT is deployed (<folder noted in point 20>\Deploy\FlashTool)
Then click Apply and then Run button
You are done
Warning, you can't run FT from Eclipse without deploying it first. (step 24)
If you make a modification in the java code, no need to deploy before running it
If you make a modification to a part out of X10Flash->src folder in the package manager then you will have to deploy the whole solution before beeing able to run it from Eclipse.
Androxyde said:
Here is a small howto to setup eclipse with Flashtool and have it running from Eclipse.
First download Eclipse flashtool ready here
Eclipse configuration :
1 - At first launch : Choose a workspace location and check
the box "Use this as the default and do not ask again"
2 - Click on the Workbench icon
3 - Close the Task List pane
4 - Close the Outline pane
5 - Go to Windows -> Preferences
6 - Unfold Java treenode
7 - Go to Installed JREs node
8 - Click the Add button
9 - Choose Standard VM
10 - JRE Home : point to a valid JRE 1.7 root folder (C:\Program Files (x86)\Java\Jre7 for example). A jre installation package is included in the Eclipse flashtool ready package.
11 - For JRE name, enter jre7 (important)
12 - Default VM arguments: leave blank
13 - Click on Finish button
14 - Chek jre7 VM and click OK button
Now we are ready to import the Flashtool project :
15 - Go to File -> Import
16 - Unfold Git and choose Projects from Git then click Next
17 - Choose URI then click Next
18 - for URI enter : git://github.com/Androxyde/Flashtool.git then click Next
19 - Choose only master branch, uncheck 0.6.5 and gh-pages branches then click Next
20 - Take note of git folder as it will be used in few steps and leave all defaults on this page. Just click Next. Here it will clone the github repository and will take more or less time depending on your connection speed.
21 - Once cloning finished, choose the Import existing projects radiobutton and click Next then click Finish
22 - Go to Window -> Show vew - Ant
23 - Drag and drop deploy-release.xml from Package Explorer pane to Ant pane
24 - In the ant pane, unfold Deploy Flashtool and double click on "all" entry.
It will deploy the whole flashtool solution to <folder noted in point 20>\Deploy\FlashTool
From here you can go to the deploy folder and run the deployed Flashtool out of eclipse as when you install FT
Now to run it from Eclipse, we will have to build a run configuration :
25 - Go to run menu -> Run configurations
26 - Double click on Java Application it will create a new configuration under Java Application
27 - Main class : Search and select FlasherGUI
28 - Go to Arguments Tab
29 - Working directory : click Other and select the one where FT is deployed (<folder noted in point 20>\Deploy\FlashTool)
Then click Apply and then Run button
You are done
Warning, you can't run FT from Eclipse without deploying it first. (step 24)
If you make a modification in the java code, no need to deploy before running it
If you make a modification to a part out of X10Flash->src folder in the package manager then you will have to deploy the whole solution before beeing able to run it from Eclipse.
Click to expand...
Click to collapse
just what i needed!
+1
Messing about in the task manager (Long press of home > the pie graph icon > storage -> start monitoring) this is now creating a text file on the sdcard.
It reads:
Code:
12:57:56,0,true,84,3990
12:58:27,1,true,84,4079
12:58:58,2,true,84,4079
12:59:30,3,false,84,4071
13:0:1,4,false,84,4078
13:0:32,5,false,84,4075
13:1:3,6,false,84,4077
13:1:38,7,false,84,4076
13:2:9,8,false,84,4068
13:2:43,9,false,84,4069
13:3:13,10,false,84,4077
13:3:45,11,false,84,4078
13:4:18,12,false,84,4072
13:4:52,13,false,84,4066
13:5:22,14,false,84,4071
13:5:56,15,true,84,4063
13:6:30,16,false,83,4072
13:7:1,17,false,83,4075
13:7:34,18,false,83,4071
13:8:8,19,false,83,4078
13:8:38,20,false,83,4069
13:9:9,21,false,83,4066
13:9:43,22,false,83,4068
13:10:19,23,false,83,4064
13:10:53,24,false,83,4060
13:11:23,25,false,83,4078
13:11:55,26,false,83,4071
13:12:28,27,false,83,4068
13:13:2,28,false,83,4073
13:13:34,29,false,83,4063
13:14:5,30,true,83,4065
13:14:39,31,true,83,4065
13:15:10,32,true,83,4053
13:15:40,33,false,83,4053
13:16:12,34,false,83,4059
13:16:45,35,false,83,4064
13:17:19,36,true,83,4062
13:17:50,37,true,83,4049
13:18:23,38,true,83,4052
Anyone know what the values are? Obviously time/unknown/unknown/percent/mV?
Hello
I have started to read "Pro Android Python with SL4A" by Paul Ferril & immediately failed while trying to execute Python script. I'd be very thankful to anybody who can provide a little explanation about SL4A + Python installation process.
So, my steps:
1) I opened this page, read QR code, downloaded and installed sl4a_r6.apk.
2) I opened previously installed SL4A app on my phone, press Menu > View > Interpreters, the list of the interpreters appeared with only one item - "Shell".
3) I pressed Menu > Add > Python 2.6.2, this started downloading of the "PythonForAndroid_r5.apk". I downloaded that file & installed it.
4) I opened newly installed "Python for Android" and press "Install" button in the app. Some components and scripts were installed successfully.
5) I opened the "SL4A" app again, press Menu > View > Interpreters, the "Python 2.6.2" item appeared in the list together with the "Shell".
6) I pressed "Back" button, the "Scripts" screen appeared with a list of scripts with the "py" extension.
7) I pressed on the "hello_world.py", the little pop-up appeared with the buttons "Execute", "Settings" (at least, with the settings icon), "Edit" and so on.
8) If I press the "Execute" button, I get only the black screen with the label "hello_world.py exited".
9) If in "SL4A" app I press Menu > View > Interpreters and the select "Shell" I will get terminal with the Linux Prompt ".... $". But If I go to the SL4A > View > Interpreters and the select "Python 2.6.2" I will receive black screen with the label at the top: "Python 2.6.2 exited."
So, as from the novice's point of view, the Python process is terminated each time I try to start it. What can be done in this situation?
--
Device: Lenovo Vibe Z2 Pro (international version) / Android 5.0.2, Stock Rom - K920_S230_150506_ROW / Rooted
It seems I've created this topic in the wrong forum section, so I ask the respectable moderators to delete this topic. Thank you.
Hello
I have started to read "Pro Android Python with SL4A" by Paul Ferril & immediately failed while trying to execute Python script. I'd be very thankful to anybody who can provide a little explanation about SL4A + Python installation process.
So, my steps:
1) I opened this page, read QR code, downloaded and installed sl4a_r6.apk.
2) I opened previously installed SL4A app on my phone, press Menu > View > Interpreters, the list of the interpreters appeared with only one item - "Shell".
3) I pressed Menu > Add > Python 2.6.2, this started downloading of the "PythonForAndroid_r5.apk". I downloaded that file & installed it.
4) I opened newly installed "Python for Android" and press "Install" button in the app. Some components and scripts were installed successfully.
5) I opened the "SL4A" app again, press Menu > View > Interpreters, the "Python 2.6.2" item appeared in the list together with the "Shell".
6) I pressed "Back" button, the "Scripts" screen appeared with a list of scripts with the "py" extension.
7) I pressed on the "hello_world.py", the little pop-up appeared with the buttons "Execute", "Settings" (at least, with the settings icon), "Edit" and so on.
8) If I press the "Execute" button, I get only the black screen with the label "hello_world.py exited".
9) If in "SL4A" app I press Menu > View > Interpreters and the select "Shell" I will get terminal with the Linux Prompt ".... $". But If I go to the SL4A > View > Interpreters and the select "Python 2.6.2" I will receive black screen with the label at the top: "Python 2.6.2 exited."
So, as from the novice's point of view, the Python process is terminated each time I try to start it. What can be done in this situation?
--
Device: Lenovo Vibe Z2 Pro (international version) / Android 5.0.2, Stock Rom - K920_S230_150506_ROW / Rooted
Did you ever find an answer to this? I'm having the same issue.
EVEN THOUGH THIS TOOL IS SAFE TO USE, DO THIS AT YOUR OWN RISK, DISABLING SYSTEM APPS CAN CAUSE INSTABILITY. I AM NOT RESPONSIBLE FOR YOUR ACTIONS!
So if you're continuing along, BACKUP ANY DATA IN CASE THIS GOES TERRIBLY WRONG.
INSTALLATION INSTRUCTIONS:
- Download the zip file and extract the folders to the root of your C: drive
- Open the HUAWEIDebloater folder
- Open the debloater batch file.
Once you see a command window, make sure you plug your device in and allow USB debugging in developer options. To enable developer options (if you haven't already):
Go to [Settings] -> [System] -> [About phone] and tap on the build number 7 times. Then go back to [System] -> [Developer Options] and enable USB debugging.
Once debloat is done, you can restart the phone.
If you want to enable and undo the changes, run the Undo Changes batch file.
Once the debloat is done, the device will reboot for good measure.
UPDATE 1.2:
- Fixed some apps not disabling
- User is now required to press a key to restart.
NOTE: If running Windows 10, you may see a popup that says "Windows protected your PC", this is because the batch scripts aren't verified by Microsoft and the OS thinks it's malware. so tap "Run anyway" as it WILL NOT damage your computer.