yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] :
Please sir....!

Im not totally a NOOB ...

But can one plz. tell whats this code IS ???

Whats is uses ???

How to use it ???

I hv bit knowledge of BASIC & C++
[Android Software/Hacking General [Developers Only]] GermainZ:
Can you try the latest version? It only happens when getting the progress which shouldn't interrupt the upload if it's an API limit. The script will now ignore the error and continue (but still notify you it happened).

Read the OP. Twice.
[Android Software/Hacking General [Developers Only]] vishal_android freak:
Thanks.. I'll try it soon.. ;)
[Android Software/Hacking General [Developers Only]] zipsnet:
Looking for few Ideas !

Hey GermainZ,

I'm back :) and looking to pick your brain :)

I have a script to build a ROM, "build-aicp" , when I call this script I have to give it a variable (device) to build.

zips@devnull-dev:~$ ./build-aicp m7tmo

( ok so far so good :) script does what it suppose to do and finish buidling my rom. Now time to upload the zip file.

in http://d-h.st/ I have created multiple folders for devices, m7tmo, grouper and toro, which each one of the folder has their unique ID #.

Now based on the variable assigned to the script I want to be able to upload the ZIP to their own folder. so I created something like;

date=$(date +%Y%m%d-%H%M)

builds=( "grouper" "m7tmo" "m7ul" )

builds_id=( "31202" "31806" "31807" )

echo "Uploading File to Dev-host for sharing"

for ((i=0;i<${#builds[@]};++i)); do

if [ $device = ${builds} ];

then

uploadto="$(devhost -u username -p pass folder-create "$date" -f "${builds_id}" | grep Id: | cut -d: -f2)"

fi

done

devhost -u username -p pass upload -f "$uploadto" $ZIP

echo "Finishing Uploading File, All system go"

Any Idea if this could be done in a better way ???

Thanks for your help.

-Z
[Android Software/Hacking General [Developers Only]] core7x:
Its cool. Lol
[Android Software/Hacking General [Developers Only]] GermainZ:
Looks good to me. Just quote all of the variables, in these lines for example:

if [ $device = ${builds[i]} ];
devhost -u username -p pass upload -f "$uploadto" $ZIP
[Android Software/Hacking General [Developers Only]] TToivanen:
Thanks [MENTION=4775688]GermainZ[/MENTION] !

This tool works like a charm!
[Android Software/Hacking General [Developers Only]] Rox:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/models.py", line 600, in send
timeout=self.timeout,
File "/usr/lib/python3/dist-packages/requests/packages/urllib3/connectionpool.py", line 436, in urlopen
redirect, assert_same_host) # Try again
File "/usr/lib/python3/dist-packages/requests/packages/urllib3/connectionpool.py", line 358, in urlopen
raise MaxRetryError(self, url)
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='api.d-h.st', port=80): Max retries exceeded with url: /progress?X-Progress-ID=b'2f4bdd468e79b3f4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/devhost", line 251, in get_progress
request = get(url)
File "/usr/lib/python3/dist-packages/requests/api.py", line 52, in get
return request('get', url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 40, in request
return s.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 229, in request
r.send(prefetch=prefetch)
File "/usr/lib/python3/dist-packages/requests/models.py", line 605, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.d-h.st', port=80): Max retries exceeded with url: /progress?X-Progress-ID=b'2f4bdd468e79b3f4'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.2/threading.py", line 740, in _bootstrap_inner
self.run()
File "/usr/lib/python3.2/threading.py", line 693, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/bin/devhost", line 255, in get_progress
except requests.exceptions:
TypeError: catching classes that do not inherit from BaseException is not allowed

Logging in...
Starting...

Progress: 0.04%
Progress: 0.25%
Progress: 0.48%
Progress: 0.83%
Progress: 1.22%
Progress: 1.59%
Progress: 2.04%
Progress: 2.28%
Progress: 2.84%
Progress: 3.03%
Progress: 3.78%
Method: upload
Br: None
B: Notice
B: /home/devhost/public_html/application/classes/controller/master.php
B: 955
Br: None
Br: None
B: Warning
B: /home/devhost/public_html/application/classes/controller/master.php
B: 955
Br: None

Any idea ?
[Android Software/Hacking General [Developers Only]] GermainZ:
I can reproduce that (it's happening to everyone, I guess,) and looking at the full response, it looks like a something's wrong on their side. I've asked them about it but didn't receive a reply yet.
[Android Software/Hacking General [Developers Only]] percy_g2:
Yes , Problem is in there server
[Android Software/Hacking General [Developers Only]] 95A31:
python devhost-py2.py upload ../CM11/out/target/product/kumquat/cm-11-20140217-UNOFFICIAL-kumquat.zip
Starting...

Traceback (most recent call last):
File "devhost-py2.py", line 370, in <module>
main()
File "devhost-py2.py", line 367, in main
pretty_print(result)
File "devhost-py2.py", line 186, in pretty_print
for field in parse_info(result):
File "devhost-py2.py", line 207, in parse_info
xml = ET.XML(xml)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1300, in XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: junk after document element: line 2, column 0

After uploaded I get this errors :confused:
[Android Software/Hacking General [Developers Only]] GermainZ:
DevHost's fault.

I've updated the script to print the raw response if an error occurs. Update your version (actually, it would be a good idea to check every now and then and update when necessary.)
[Android Software/Hacking General [Developers Only]] zipsnet:
Thanks !!
[Android Software/Hacking General [Developers Only]] a2441918:
I am using a build server make roms. I cloned the devhost scripts to /home/sonic/bin and my rom zip lies in home/sonic/bs/out/target/product/i9500/BeanStalk-4.4.275-20140406-i9500.zip.

From which folder to execute these scripts? Kindly help me out. I have a hhard time downloading to my computer and then uploading to dev host.

Kindly help me out.
[Android Software/Hacking General [Developers Only]] GermainZ:
I'm not sure why you PMed me the same as well. Posting it here is enough...

Anyway, you can call the script from anywhere since it's in ~/bin. Make sure the file has the correct permissions. Check the README/OP for more info.
[Android Software/Hacking General [Developers Only]] a2441918:
sonic@buildbox:~/bs/out/target/product/i9500$ devhost upload -u username -p password BeanStalk-4.4.275-20140406-i9500.zip

Says command not found although i have the script in bin folder. after changing permissions there is only one file in bin folder. is that okay?

I used my username and passsword in terminal and not whats given here :P
[Android Software/Hacking General [Developers Only]] GermainZ:
My guess is that you didn't set the permissions correctly. I cannot assist you with the installation more than that, it's simple enough...
[Android Software/Hacking General [Developers Only]] Abhinav1997:
In your bin folder, place the correct script(according to your python version) and rename it to devhost(if not already) and chmod +x devhost should do the job :)

Cheers,

AJ
[Android Software/Hacking General [Developers Only]] GermainZ:
It's only one script now and the README explains that already.
[Android Software/Hacking General [Developers Only]] a2441918:
First of all I do not have a bin folder and I need to create one manually. Then I am not authorised access to bashrc to initialise the path to bin folder since I am using a buildbot. What can be done then?
[Android Software/Hacking General [Developers Only]] GermainZ:
If ~/bin isn't in your PATH, you could use a local config file for your shell (e.g. bashrc) to do add it.
[Android Software/Hacking General [Developers Only]] a2441918:
Atlast made it to work. Thanks mate. Will report you back once upload is done.
[Android Software/Hacking General [Developers Only]] Rox:
Traceback (most recent call last):
File "/usr/lib/python3.2/xml/etree/ElementTree.py", line 1668, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: undefined entity: line 51, column 27

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/devhost", line 357, in <module>
main()
File "/usr/local/bin/devhost", line 338, in main
args['token'] = login(args['username'], args['password'])
File "/usr/local/bin/devhost", line 195, in login
resp = ET.XML(resp)
File "/usr/lib/python3.2/xml/etree/ElementTree.py", line 1337, in XML
parser.feed(text)
File "/usr/lib/python3.2/xml/etree/ElementTree.py", line 1670, in feed
self._raiseerror(v)
File "/usr/lib/python3.2/xml/etree/ElementTree.py", line 1543, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: undefined entity: line 51, column 27

Not working for some reason.. :/ Any idea
[Android Software/Hacking General [Developers Only]] zipsnet:
Are you using the correct version of Python? Looks to me your problem is that. I'm using 2.7 and works fine !

-Z
[Android Software/Hacking General [Developers Only]] DSA:
This is a great tool, I have constant issues with the website...this solves all of it

Thanks germainz
[Android Software/Hacking General [Developers Only]] GermainZ:
DevHost apparently removed their API documentation (previously at http://d-h.st/api) — there's absolutely no mention of an API on their website anymore. I can't guarantee this script will keep working (it apparently doesn't anymore for non anonymous uploads, as trying to authenticate through the API now returns a "File Not Found" page).
[Android Software/Hacking General [Developers Only]] zipsnet:
Still working for me :)

-Z
[Android Software/Hacking General [Developers Only]] Rox:
Yeah, working if you upload as anonymus... But not if you use username and password
[Android Software/Hacking General [Developers Only]] zipsnet:
Ooppss :(
[Android Software/Hacking General [Developers Only]] GermainZ:
Contacted DevHost and the API is back up now.
[Android Software/Hacking General [Developers Only]] k2wl:
@GermainZ

got following error

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/kau/bin/devhost", line 271, in get_progress
e = sys.exc_info()[1]
NameError: global name 'sys' is not defined

any ideas why it happened??? UPDATE - tried again this time it worked...i dont know what happened but may be devhost server problem.
[Android Software/Hacking General [Developers Only]] shinobisoft:
That error is typical if a module is NOT imported in to a python script. Is there an "import" statement anywhere with "sys" on the same line? Multiple modules can be imported on the same line but comma separated.

[MENTION=4775688]GermainZ[/MENTION]

Great idea!!! I was thinking about a GUI version of the same. Have been for some time. I remember stumbling upon this utility some time ago, but I never tried it. May check it out now tho ;)
[Android Software/Hacking General [Developers Only]] k2wl:
i tried again and it worked this time
[Android Software/Hacking General [Developers Only]] GermainZ:
My fault, will push a fix later.
[Android Software/Hacking General [Developers Only]] mythi:
I've read the whole thread nobody seams to have this issue , m stuck with this :eek:

Starting...
[Android Software/Hacking General [Developers Only]] GermainZ:
Is it a large file? What happens if you wait for a bit?
[Android Software/Hacking General [Developers Only]] adlx.xda:
Hi,

I'm trying to upload a small text file (4 chars), only to test, but I'm receiving this, and I can't see the file on D-h:

xdabot$ devhost upload -u adlx test.txt
Password?
Logging in...
Starting...

Method: upload
Br: None
B: Notice
B: /home/devhost/public_html/application/classes/controller/master.php
B: 971
Br: None
Br: None
B: Warning
B: /home/devhost/public_html/application/classes/controller/master.php
B: 971
Br: None

Any idea anyone? Thanks in advance :D
[Android Software/Hacking General [Developers Only]] Sick1:
Same here, also manual upload f***s up so i think they have issues.

Androidfilehost upload is also down :)
[AT&T LG Optimus G] jsat10:
I'm currently live in san jose, ca and my e970 is not getting the lte signal from tmobile. Anyone knows what the problem is?
[AT&T LG Optimus G] g33k3r:
I don't think the radio from the ATT LGOG works with TMO LTE.
[AT&T LG Optimus G] marcbutler1:
Is there anyway to flash another radio that would let u get 3g or 4g something other than Edge.
[AT&T LG Optimus G] jiggabyte:
I just ordered this phone today so I can't speak from experience, but T-mobile LTE should work with the right settings. From what I've read the AT&T Optimus G (E970) has support for LTE on frequencies 700mhz and 1700mhz, T-mobile also uses 1700mhz for their LTE. Some areas in the US might let it get HSPA as well. If everything is unlocked and you're using a T-mobile SIM card then you should just need the correct APN settings. This link should help:

http://xdaforums.com/showthread.php?t=2236735
[AT&T LG Optimus G] orprepus:
Hey - just went through this for an ATT i747 (Samsung Galaxy S3). Someone in the forum provided the Tmobile bootloader, modem and platform and att CSC. It ended up being what T-mobile used to tested their LTE network using ATT i747. Works great get 4G LTE. Figure will need the same type of code for the LG-E970 bootloader, modem, and platform. Still having to use ATT CSC.

On the other forum they offered up a bounty to get it done.

Could do the same thing.
[AT&T LG Optimus G] DeathmonkeyGTX:
You're the millionth person to ask. No, it won't work. Not going to bother pointing out why anymore. No tmo version of the lgog exists.

Sent via LG E970 with houstonn aokp 4.2.2
[T-Mobile Samsung Galaxy Note II] soumaine:
Hey guys, I promise am not making this up! My phone's flash light is going off all by itself.... Am on carbon nightly rom ( 6/12). And also I see the torch notification on floating halo.... Any ideas??
[T-Mobile Samsung Galaxy Note II] soumaine:
Nevermind I figured it out.... :P
[T-Mobile Samsung Galaxy Note II] Coug76:
What was it?

Hastily spouted for your befuddlement
[T-Mobile Samsung Galaxy Note II] soumaine:
In the lockscreen setting, I accidentally turned on "glowpad torch".... So whenever I press and hold the lockscreen unintentionally for more than a second it trigger torch! And also when u swipe the lockscreen to an unassigned target it triggers it too.... For a moment I thought someone was spying on me or something :)
[Kindle Fire Android Development] powerpoint45:
[ROM] [CM10.1] [JB 4.2] ▶Alien Droid KF1◀(Complete GUI customization) [6/13/13]

ALIEN DROID BY POWERPOINT45 AND HYPERRUNNER

50+ MODS AVAILABLE IN ALIEN SHOP

I am not responsible for falling asteroids. No need to wipe anything if you are coming from a JB ROM

DOWNLOAD>>>>

CURRENT BUILD:

V 1.0 6/13/13download

DESCRIPTION>>>>

This ROM is made for people who love customization, It has an advanced theme chooser, battery icon changer, WiFi icon changer, and a soft key style picker. All these options will be in the app I developed called "GUI Settings". More GUI settings are to come in later builds. In addition to all that it has lots of other customizations and tweaks including Beats Audio and Sony Bravio Engine. This ROM is using twa_priv's ROM as base which already has many customization options such as clock color, soft key color, tablet/phone mode, and much more. Look below to see more features this ROM offers.

FEATURES>>>>

These are just some of the features of this ROM:

*alien shop: download free themes and mods and apply them directly from the app

*custom theme switcher app made from scratch by me (app is called GUI Settings)

*battery icon changer

*soft key changer

*WiFi icon changer

*custom boot animation (made by hyperrunner)

*add blocking

*root file manager

*some bloat removed

*added zip and zipalign binary (used by my app)

*un-needed .so files removed

THANKS>>>>

Be sure and thank Hyperrunner for helping me add features to my ROM and hosting website,

twa_priv for providing the base,

people around the internet i grabbed some graphics from,

Hyperrunner again for creating website and banner,

HashCode for his awesome work for the fire,

tobiascuypers for some icons,

this thread: http://xdaforums.com/showthread.php?t=1201255,

this thread: http://xdaforums.com/showthread.php?t=1413582,

this thread: http://xdaforums.com/showthread.php?t=724778,

this thread: http://xdaforums.com/showthread.php?t=1889522,

anyone I forgot to mention,

myself,

and Jesus for everything else.

BUGS>>>>

Check 3rd post

ENJOY
[Kindle Fire Android Development] powerpoint45:
My favorite status bar configuration
[Kindle Fire Android Development] powerpoint45:
RESERVED

hi
[Kindle Fire Android Development] tobiascuypers:
Wait, What?

All the original icons and mods in the Store still? (Like the ones i made)
[Kindle Fire Android Development] powerpoint45:
Yep
[Kindle Fire Android Development] tobiascuypers:
What made you come back?!?
[Kindle Fire Android Development] powerpoint45:
I made it for kf2 so while I was at it I did it for KF1
[Kindle Fire Android Development] tobiascuypers:
Awesome. Good to have you back PP!
[Kindle Fire Android Development] Guitarman:
Awesome to have you developing again for the KF 1st Gen :)
[Kindle Fire Android Development] Ozz465:
Awesome, was bummed when the original was discontinued. Thx.
[Kindle Fire Android Development] goldflame09:
I hate to ask if you too much but can someone upload to a mirror because goo is being extremely slow at my end. Thanks
[Kindle Fire Android Development] corporal_hades:
maybe I missed it in the first post but are gapps required because I installed this rom but no google apps are showing.
[Kindle Fire Android Development] goldflame09:
Gapps are always required.

If possible can you upload to mirror for me please? Thanks

Edit never Mind I got it
[Kindle Fire Android Development] powerpoint45:
Get them from goo.im/gapps

Btw how are things running. Is everything working allright
[Kindle Fire Android Development] goldflame09:
slight problem. i downloaded this twice and both times when using COTR to flash, i get "E:failed to verify whole-file signature"

i just finished installing and ill let you know
[Kindle Fire Android Development] powerpoint45:
Then how did you get it installed?
[Kindle Fire Android Development] goldflame09:
Just hit continue
[Kindle Fire Android Development] powerpoint45:
Hows it working.
[Kindle Fire Android Development] goldflame09:
Found one bug

This is the reflection softkeys installed
[Kindle Fire Android Development] firered365:
I love you man! I missed this ROM.
[Kindle Fire Android Development] powerpoint45:
Are all the others working
[Kindle Fire Android Development] goldflame09:
Provided it has the icons to replace the stock ones with, yes.

Like for instance, the honey comb ones do not have a big menu button, therefore it is still the stock one.
[Kindle Fire Android Development] JaViJeC:
Is possible implant halo notification?

Enviado desde mi Nexus 7 usando Tapatalk 2
[Kindle Fire Android Development] powerpoint45:
No plans for that since that's part of paranoid android...unless cyan starts to add it
[Kindle Fire Android Development] powerpoint45:
Honestly I'm not sure what you're talking about bc I only have a kf2 and I'm not having any problems
[Kindle Fire Android Development] tobiascuypers:
I was looking at the cyanogenmod gerrit a bit ago ago and saw some request for halo merges. I'll try cherry picking them later to see what its about.

I use halo on PACman on my. Galaxy s2 and its really nice. Not many issues with it.
[Kindle Fire Android Development] megaghostgamer:
Hey PowerPoint, I'll try to get this ported to my Nook Tablet 16GB, it's gonna be hard cause my Nook Tablet is broke.
[Kindle Fire Android Development] themoto:
Hey Powerpoint,Nice too see you back here,downloading now.
[Kindle Fire Android Development] davuong:
good job powerpoint45
[Kindle Fire Android Development] Thepooch:
Pretty sure that the reflection you are referring to is supposed to be there, so it's not a bug:p
[Kindle Fire Android Development] goldflame09:
I'm referring to the fact that its missing not that it's there I put it there
[Kindle Fire Android Development] wmdragon:
Like it a lot running fine on my Kindle Fire
[Kindle Fire Android Development] notdeadyet01:
How's the battery on this?
[Kindle Fire Android Development] Vlasp:
is there any mirror? My kindles port is some what better and is charging kind of!
[Kindle Fire Android Development] tobiascuypers:
The same as the SGT7 rom from what i can tell
[Kindle Fire Android Development] goldflame09:
Ill try to get one for you
[Kindle Fire Android Development] Hearnbiz:
This just made my day.... gonna dl this asap :) Thanks

Update: runs like a champ! Love having my night sky theme back. Thanks again, the old kindle just never gets old..

Sent from my PC36100 using Xparent Skyblue Tapatalk 2
[Kindle Fire Android Development] powerpoint45:
You know that's right
[Kindle Fire Android Development] 404-Not Found:
Oh man, best ROM since SGT7. I went back to CM7 but now that this here I certainly comming into CM10.1. This ROM runs very smoothly. Thanks PowerPoint.
[Kindle Fire Android Development] 404-Not Found:
PowerPoint45, you are the man!!!! I can't believe it for first(actually 2nd but 1st working) a JellyBean ROM actually was able to play Asphalt 7:Heat. Yes thats right I got it to work on only this ROM, A7 didn't work on Jelly Bean but now I am stunned I can't believe its working A7 is working!!!!!! I would so donate but I don't trust PayPal. Dude, a million thanks man.
[Kindle Fire Android Development] powerpoint45:
You know this is based of twa_priv's sgt7 build right?
[Kindle Fire Android Development] 404-Not Found:
Yes, but it didn't work on his ROM last time I checked.
[Kindle Fire Android Development] thejuki:
Alien Droid is back! :D

I am still using Android 4.1 Alien Droid on my Kindle Fire. It is a very good ROM. I would love to test this ROM right away; however, GOO. is taking forever to download this ROM. 6 hours for a 167 MB file?

I will let you know if I encounter any issues...whenever it is finished.
[Kindle Fire Android Development] thejuki:
Issues

Well I finally got Android 4.2.2 using all of Alien Droid's awesomeness! However, I did run into some issues...

-The boot animation is squeezed and off to the side for a while then centers and looks normal.

-No tablet mode. The status bar and panels can be in tablet mode BUT Nova launcher does not change to tablet mode...

-The odd placed garbage can icon in the settings app appears when I enter the Superuser setting and then goes away when I come back to the Settings App (It clears the Superuser log)

-When I install a new mod from the GUI Alien Shop the Terminal Emulator console is opened and then once it is done my kindle restarts. (This is not a big deal but all this was behind the scenes in Android 4.1)

-Gapps is not included (Given that GOO. now takes forever to download files I wish this was still included in the ROM)

These issues are all minor and some probably came from twa_priv's sgt7 build but I am sure you wanted feedback. :)

Updated.
[Kindle Fire Android Development] goldflame09:
known about for a long time

should be a setting in nova for it

??

this is supposed to happen because you are upating parts of system ui

gapps in never included. download them from a mirror if its too slow