yashsingh1/xdaforums huggingface dataset:
[Android] rjwil1086:
Since build.prop is in the system.new.dat file in lollipop builds, I just started copying it over from my build server and modified the Build.php file to look for the file instead of inside the zip. I just got this working on my web server. Only issue I'm having is related to change logs but I'm going to try and figure that one out later.

Here are the changes I did to get this working with CyanogenMod 12 (all changes will be assumed from the CyanogenModOTA directory):

- mkdir -p builds/buildprop <-- this is where you copy your build.prop from each build (they go in a folder with the same name as the build zip e.x. cm-12-20150103-NIGHTLY)

- mkdir -p builds/changelog <-- this will have your change logs (name them the same as the build zip except with a .txt extension)

- update setConfig( 'basePath', 'CyanogenModOTA' ) to setConfig( 'basePath', 'http://wfhome.net/CyanogenModOTA' ) in index.php (that is my server)

- change the Build constructor function to this (I updated the preg_match_all line, added the buildPropFolder variable, updated the $this->buildProp line, and changed the changeLogUrl line):

private $buildPropFolder = '';

public function __construct($fileName, $physicalPath) {
/*
$tokens Schema:

array(
1 => [CM VERSION] (ex. 10.1.x, 10.2, 11, etc.)
2 => [DATE OF BUILD] (ex. 20140130)
3 => [CHANNEL OF THE BUILD] (ex. RC, RC2, NIGHTLY, etc.)
4 => [MODEL] (ex. i9100, i9300, etc.)
)
*/
preg_match_all( '/cm-([0-9\.]+-)(\d+-)?([a-zA-Z0-9]+-)?([a-zA-Z0-9]+).zip/', $fileName, $tokens );
$tokens = $this->removeTrailingDashes( $tokens );

$this->filePath = $physicalPath . '/' . $fileName;
$this->buildPropFolder = str_replace('/full', '/buildprop', $physicalPath) . '/' . preg_replace('/\\.[^.\\s]{3,4}$/', '', $fileName);
$this->buildProp = explode( "\n", file_get_contents($this->buildPropFolder . '/build.prop') );
$this->channel = $this->_getChannel( str_replace( range( 0 , 9 ), '', $tokens[3] ) );
$this->filename = $fileName;
$this->url = $this->_getUrl( '', Flight::cfg()->get('buildsPath') );
$this->changelogUrl = str_replace('/full', '/changelog', $this->_getChangelogUrl());
$this->timestamp = filemtime( $this->filePath );
$this->incremental = $this->getBuildPropValue( 'ro.build.version.incremental' );
$this->apiLevel = $this->getBuildPropValue( 'ro.build.version.sdk' );
$this->model = $this->getBuildPropValue( 'ro.cm.device' );
}

Also he has memcached setup in there, so you might make sure you have memcache installed and set to run on startup on your server. You also need xdelta3 to create delta builds although, I don't think it is working ( I compiled the latest version of xdelta3 and it doesn't appear to do anything as there are not any files being created in the delta folder).

Hope that helps.
[Android] klvnhng:
Thanks for the help (I'll definitely need it when I actually want to start USING the server), but it seems you've misunderstood me. Right now, I can't even get the rest server running properly-that's why I'm getting a 404 error.

Notice you get an output when you go to http://wfhome.net/CyanogenModOTA/api, I don't get anything!
[Android] rjwil1086:
Ah sorry. First thing I see is that you need mod_rewrite installed in apache.

sudo a2enmod rewrite
sudo service apache2 restart
[Android] JulianXhokaxhiu:
Need help with development

First I would like to thank you for using this product and playing with it (which involves patching, testing, etc.).

Since the first post I've made here in XDA the project evolved a little since I rewrote entirely the project to make it composer friendly. Rather than that, the Delta build process is actually non working (I tried to create a ZIP but I don't have enough knowledge in ROM development to tell if it's enough or not) so it's just a WIP layer that should be addressed and fixed (I've already found a Python project which does this already but I'm of the idea that this should be somehow not be a bloated software that needs to install binaries here and there to make it working).

So, actually I'm not really working in this project but It's in my TODO list, meanwhile I'll be very happy to have pull requests with useful patches to make this KK, LL and more compatible :) So feel free to contribute and thanks again for using it!
[Android] klvnhng:
Thank YOU for making it! Really appreciate the time and effort you've put into this project.

That did it, thanks :good:

I've also implemented your changes, but when I check for updates on my phone, I still get "No new updates found". I've copied my new build over to builds/full, and the build.prop to builds/buildprop/cm*
[Android] Packsman:
rjwil1086 thank you very much for your help and suggestions, I made my own server http://paksman.ddns.net/cyanogenmodota, edited build.prop for cm updater to look for server url, made all the changes as you but I always get "No new updates found". Not sure if there is a problem with my server or with this project in general. Have you made any success to make this work?
[Android] rjwil1086:
I have it working. I'll upload mine to github tonight
[Android] Packsman:
Think I solved my own problem. My builds were all tagged as 'UNOFFICIAL'. When I changed this to 'NIGHTLY' (for the build and build.prop folder respectively ) they finally started to be recognised by cm updater app. JulianXhokaxhiu and rjwil1086, thank you so much for your effort,your work is being much appreciated.
[Android] rjwil1086:
Yup. Sorry. I knew that but forgot to mention it. That's an issue with the CMUpdater app more than it is with the REST implementation. It doesn't look for unofficial files
[Android] klvnhng:
Awesome! This fixed it for me as well. Thanks to everyone for the help :)
[Android] kdo_1024:
[CyanogenMod][OTA][PHP] Open Source REST Server for you

Hi, I have been tested server code with a free host (000webhost) then accessed the web, I received messages:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/a5885282/public_html/index.php on line 27

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/a5885282/public_html/index.php on line 27

The line 27 of index.php is "use \JX\CmOta\CmOta;". But I don't know about PHP. Please help me solve this issue.
[Android] kdo_1024:
[MENTION=3483826]rjwil1086[/MENTION] , [MENTION=4983400]klvnhng[/MENTION] , [MENTION=4197898]Packsman[/MENTION] please help me to solve following error:

$ node index.js

<h1>500 Internal Server Error</h1><h3>Undefined offset: 0 (8)</h3><pre>#0 /var/www/CyanogenModOTA/src/Helpers/Build.php(214): flight\Engine->handleError(8, 'Undefined offse...', '/var/www/Cyanog...', 214, Array)

#1 /var/www/CyanogenModOTA/src/Helpers/Build.php(63): JX\CmOta\Helpers\Build->removeTrailingDashes(Array)

#2 /var/www/CyanogenModOTA/src/Helpers/Builds.php(115): JX\CmOta\Helpers\Build->__construct('cm-11-20140103-...', '/var/www/Cyanog...')

#3 /var/www/CyanogenModOTA/src/Helpers/Builds.php(49): JX\CmOta\Helpers\Builds->getBuilds()

#4 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Loader.php(123): JX\CmOta\Helpers\Builds->__construct()

#5 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Loader.php(80): flight\core\Loader->newInstance('\JX\CmOta\Helpe...', Array)

#6 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/Engine.php(69): flight\core\Loader->load('builds', true)

#7 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(191): flight\Engine->__call('builds', Array)

#8 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(191): flight\Engine->builds()

#9 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/Flight.php(43): flight\core\Dispatcher::invokeMethod(Array, Array)

#10 /var/www/CyanogenModOTA/src/CmOta.php(97): Flight::__callStatic('builds', Array)

#11 /var/www/CyanogenModOTA/src/CmOta.php(97): Flight::builds()

#12 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(160): JX\CmOta\{closure}()

#13 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(143): flight\core\Dispatcher::callFunction(Object(Closure), Array)

#14 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/Engine.php(310): flight\core\Dispatcher::execute(Object(Closure), Array)

#15 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(191): flight\Engine->_start()

#16 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(142): flight\core\Dispatcher::invokeMethod(Array, Array)

#17 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(48): flight\core\Dispatcher::execute(Array, Array)

#18 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/Engine.php(64): flight\core\Dispatcher->run('start', Array)

#19 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(191): flight\Engine->__call('start', Array)

#20 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/core/Dispatcher.php(191): flight\Engine->start()

#21 /var/www/CyanogenModOTA/vendor/mikecao/flight/flight/Flight.php(43): flight\core\Dispatcher::invokeMethod(Array, Array)

#22 /var/www/CyanogenModOTA/src/CmOta.php(80): Flight::__callStatic('start', Array)

#23 /var/www/CyanogenModOTA/src/CmOta.php(80): Flight::start()

#24 /var/www/CyanogenModOTA/index.php(35): JX\CmOta\CmOta->run()

#25 {main}</pre>

Thank you so much.
[Android] kdo_1024:
Thanks all, I fixed.
[Android] lingak:
[CyanogenMod][OTA][PHP] Open Source REST Server for you

I have just creat susscess a server. Thanks.

But, now I want creat a update OTA app for other AOSP ( andoird L) and using that server which I have just creat.

Can I using CMupdater for it? Can you give me some suggest?:confused:
[Android] vvzar:
Hi, need help to understand!

First of all, i want to say Thank You! For this great job!

I installed server, activated mod rewrite in apache2, apt-get install memcached, made chown for all files to www-data in CyanogenModOTA directory

created directories builds/buildprop, builds/changelog

created file romname.txt in changelog

copied file rom archive to build/full directory

and when i open in browser my ota site: http ota.mydomain.com i see the dir listing as described above

when i try to open url http ota.mydomain.com/api - i see the 404 error.

what exactly i have to do as the next step?

is any json file missed in web root directory (in same place as index.php) ?

and I leave index.php almost unchanged (as in the repository) - just changed string: ->setConfig( 'basePath', '/' )

Thank You once again!
[Android] JulianXhokaxhiu:
Are you sure that modrewrite is working? Can you share a working URL?

Honestly I don't know, we have to check if OTA app is the same in Lollipop and works of course the same. If so, we're already safe and yes it can work out of the box. If not, we have to fix it. If you already have a working example, feel free to do a pull request :)
[Google Chromecast] xenokc:
PlayOn support has been in the works and should release soon...

http://readwrite.com/2014/02/04/google-chromecast-sdk-streaming-apps#awesm=~ouVfryHbmmgnfP

This Wiki also track apps..

http://en.wikipedia.org/wiki/Chromecast#Chrome_and_mobile_apps

Please post links of other apps in the works (not rumors unless you have a reasonable source to link to).
[Google Chromecast] xenokc:
Rdio CC support in the works...

http://www.engadget.com/2014/02/04/rdio-google-chromecast/?ncid=rss_truncated
[Google Chromecast] aiiee:
awesome! I've always wanted to watch radio on mah big screen teevee
[Google Chromecast] zerolimit1:
would be awesome if someone worked on a XBMC app. To work on with chrome cast. Would help me save money instead of using plex
[Google Chromecast] Asphyx:
there is already a workaround for XBMC Android...

we already discussed the cost of Plex to death...Use aVia to play until CCast support goes public.
[Google Chromecast] qsec:
lol, maybe useful when you have the CC connected to your av receiver.
[Google Chromecast] y2whisper:
Dayframe has just added chromecast support in its premium version.
[Google Chromecast] xenokc:
Is Tic Tac Toe first game for Chromecast? Is at least a proof of concept if simple. Would like to see card games use CC - personal cards show on each phone/tablet, playing field shows on CC.

https://play.google.com/store/apps/details?id=com.swishly.cast.tictactoe&hl=en
[Google Chromecast] xenokc:
Vbukit in the works for CC.

https://play.google.com/store/apps/details?id=com.creatingrevolutions.vbukitchromecast
[Google Chromecast] xenokc:
Audiour: Music sharing app in the works...

https://play.google.com/store/apps/details?id=com.nathanrjones.audiour
[Google Chromecast] Asphyx:
Google asked them to pull the CCast support until the Google Services rollout has been completed.

I suspect the hold up on a second wave of CCast compatible Apps are related to that rollout being completed.
[Google Chromecast] xenokc:
Dolphin Browser CC support apparently in the works, with Flash...

http://techcrunch.com/2014/01/15/dolphin-labs/
[Google Chromecast] nozyczek:
tinyCam Monitor

Features in development:

- Chromecast support.

- FTPS protocol support for encrypted FTP image uploading.

- In-app motion detection.

- Sensors support (e.g. temperature sensor, humidity, etc.)
[Google Chromecast] xenokc:
Telecast CC support coming. Fairly decent access to global mass media streaming content...

https://play.google.com/store/apps/details?id=com.telecast
[Google Chromecast] AllstarE4:
Awesome idea!
[Google Chromecast] nozyczek:
Solid Explorer

Info located here
[Google Chromecast] mjs2011:
Perfect. That's all I need to play local files!
[Google Chromecast] glimmling:
AutoCast (Tasker plugin)

More info:

https://plus.google.com/101282964483894346750/posts/Sggzpfp7hVS

Gesendet von meinem Nexus 7 mit Tapatalk
[Google Chromecast] RealCaracas:
MyShoebox with CC support

MyShoeBox has already chromecast support for casting images for free...

https://play.google.com/store/apps/details?id=com.couchlabs.shoebox
[Google Chromecast] xenokc:
LocalCast is like AllCast but works better for me...

https://play.google.com/store/apps/details?id=de.stefanpledl.localcast
[Google Chromecast] siratfus:
Another vote for LocalCast. It plays more of my videos than avia and allcast, and you don't need to pay.
[Google Chromecast] xenokc:
Google Cast Store tracks CC apps...

https://play.google.com/store/apps/details?id=goko.gcs
[Google Chromecast] qsec:
What would be the best option to cast my photos to my tv?

Thanks.
[Google Chromecast] bhiga:
Avia will, though a few folks have had issues.
[Google Chromecast] simonfinnegan:
The free version of Allcast will do this
[Google Chromecast] psych2l:
Check out dayframe, it has access to your photos on your local storage, G+ photos, tumblr, flickr, 500px, instagrame, etc
[Google Chromecast] pbailey212:
Here's a neat trivia app. https://play.google.com/store/apps/details?id=com.dylanp.cast.triviatime
[Google Chromecast] EarlyMon:
In the hopes of reducing the endless thread spam happening, here's the announcement for the upcoming VUDU update -

http://phandroid.com/2014/03/04/vudu-chromecast-update/
[Google Chromecast] ciano865:
.flv

Hi all,

which is best way to view .flv video in my phone to CC ?

Thanks
[Google Chromecast] bhiga:
Most likely screen mirroring if it works for your device.
[Nexus 5 Q&A, Help & Troubleshooting] VaccaThreeSixteen:
OK, so when grossing eBay I see listings that say "Male to Female" or vise versa, but I'm quite the USB OTG n00b... What does this all mean and how can I be sure which USB OTG cables support the Nexus 5? Thanks in advance.

Another thing, what's the deal with £1 OTG cables vs £3 ones? Is it just the build quality difference or do the higher end ones have more functionality? (Sorry about the £'s, I'm Brit! :P )

Answered:

a USB OTG is a USB OTG, there is no right out wrong... The cheaper ones are just because of build quality difference, but you don't need good build quality as it is just a USB OTG cable, so go for the cheapest one possible!

Franco Kernel supports OTG, but you need StickMount to mount the flash drive.
[Nexus 5 Q&A, Help & Troubleshooting] Alex240188:
An otg cable is an otg cable. There is no right or wrong. All otg means is that it has pins 4&5 bridged to enable host mode on the device.

The typical gender cable is USB A female to microUSB male. This is what I use.

The USB A female is just a standard USB port like what you would plug a flash drive into.

The micro USB male is the end that goes into your phone. Like the end of your charger.

Something like this

http://www.amazon.co.uk/gp/aw/d/B00...R6RT5PPM6KZMQMQ&pf_rd_s=center-6&pf_rd_t=1201
[Nexus 5 Q&A, Help & Troubleshooting] plethorahil:
I ordered this http://pages.ebay.com/link/?nav=item.view&id=161207218606 and this is working perfect for me
[Nexus 5 Q&A, Help & Troubleshooting] VaccaThreeSixteen:
Thanks you guys, but I'm just worried about the listings that say works for Samsung [insert product name] and that's it... I'm thinking that they only do that because Samsung's are the most popular

Phones, so they use it to get more item views, but better safe then sorry...

Another thing, what's the deal with £1 OTG cables vs £3 ones? Is it just the build quality difference or do the higher end ones have more functionality? (Sorry about the £'s, I'm Brit! :P )
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Buy the cheaper one. I bought the cheapest I could find and it works great.
[Nexus 5 Q&A, Help & Troubleshooting] VaccaThreeSixteen:
As long as it works that's all I need to know, thanks :D
[Nexus 5 Q&A, Help & Troubleshooting] Alex240188:
yes price is only on build quality but there is nothing that requires great build quality in these cables

£0.79 that is what i would get if i was looking for one now

http://www.amazon.co.uk/MOFRED®-Mic..._2?ie=UTF8&qid=1391541194&sr=8-2&keywords=otg
[Nexus 5 Q&A, Help & Troubleshooting] VaccaThreeSixteen:
Would this be OK?

http://pages.ebay.com/link/?nav=item.view&id=400649571455

Also, does Franco Kernel support USB Hosting (something like that)?
[Nexus 5 Q&A, Help & Troubleshooting] Alex240188:
Yes, That one will work fine.

Franco kernel does support OTG however to mount USB flash drives you will need an app like Stickmount if your rooted to properly mount the drive
[Nexus 5 Q&A, Help & Troubleshooting] nsxla:
I purchased this when it was $18 works like a charm

http://www.amazon.com/gp/product/B00FLNYH8M/ref=oh_details_o05_s00_i00?ie=UTF8&psc=1

Price has gone up quite a bit. =(
[Nexus 5 Q&A, Help & Troubleshooting] VaccaThreeSixteen:
Yeh that's fine I know all about mounting, thanks!
[Samsung Galaxy Express SGH-I437 Questions & Answer] anandmessi:
hie frens plz help me out

myself anand

from india

i have samsung galaxy sgh i437 (galaxy express) at&t 4g lte qualcomm

i m using in india and i think the phone is unlocked

the problem is when started to use dis phone

i m getting a network problem...

i can get network use the phone calling,net,sms etc wen i m out of house or just out of sheltar but wen i get into my home or shelter just gets too low get blocked showing circle under xmark it

i tried al the other network but the problem is same i tried changing manually n automatic but n solution

sorry for my english

n thanku

plz any can u find me solution for dis
[Samsung Galaxy Express SGH-I437 Questions & Answer] kushang9928:
Solution

Flash MODEM which supported in india.

PRESS THE THANKS BUTTON IF YOU LIKE IT OR I HELPED YOU.
[Samsung Galaxy Express SGH-I437 Questions & Answer] anandmessi:
thanku for the reply

sir i m a newbie to dis can u give the me full tutotial step by step to flash the modem n wer will i get it plz plzplz

thnqu very muc
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] MeetFace:
Hello all. I've been running a Note 2 on Sprint for the last 14 months and I've enjoyed the experience. I am probably switching to VZW here in a month or so and will probably get a Note 3.

I've been reading on this forum here and there and am curious what types of things will be different with having a locked bootloader. I read the entire BL unlocked thread, which apparently was a scam, unfortunate.

It is my intention to only run TW Roms, AOSP has it's place but I prefer tweaked TW. What won't I be able to do with the locked BL that I could with it gone?

Thanks for your time.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] xBryan:
Install safestrap and start flashing roms, you just cant do kernels. Im sure there some others, but thats a biggie.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] MeetFace:
Very good, what about things like ViperAudio (http://vipersaudio.com/blog/?page_id=25)? This would help not having kernels with audio enhancements

Thanks!
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] jmorton10:
Viper works fine
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] mexiking713:
If you have the money get the dev version because the bootloader is locked on the retail version

Sent from my Galaxy Note 3
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] MeetFace:
I get that, but to you, why is this so important? Just looking for opinions.

Also, if I'm right, there are no discounts on VZW for having your own phone. That makes the phone a LOT more expensive.

Thanks!
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] BA0714:
Just wait for the galaxy S5 that should be coming out in mid March. They are going to announce it the 24th of this month.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] MeetFace:
I'm waiting for the announcement, but I have to switch by March 11, Sprint is tired of my crappy reception and roaming :/ I doubt I can get the phone before then, a few weeks after the announcement.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] mexiking713:
If you keep waiting on the next best phone then you're gonna keep waiting. Get the Note 3. I myself came from the Sprint Note 2 and the note 3 is definitely a decent upgrade. My next phone will be a Note 4 but there is still a way to go for that.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] kvnhmmd:
Verizon has something called "Verizon Edge" It allows you to upgrade your phone whenever you want. So I think you get a discount for having your own phone. I'd look into that.

By the way, Verizon has the best 4G coverage BY FAR. You'll be happy with the speed and coverage. It will just suck to have limited data. Luckily I'm still grandfathered into my unlimited data plan running the Galaxy Note 3.
[Verizon Galaxy Note 3 Q&A, Help & Troubleshooting] MeetFace:
Yeah, where I live VZW is king.

For comparison, Sprint just unveiled their new shiny 4G LTE network here. I'm currently roaming 3G on VZW and my data speeds beat Sprint's new LTE garbage. Not to mention signal penetration, at work I can hardly even talk on the phone unless I'm roaming on VZW.

So, solely for reception purposes I'm going VZW, it's pretty much a necessity.

I will ask about the Edge when I sign up, thanks for the heads up!
[Galaxy S III Mini Q&A, Help & Troubleshooting] darjerz:
Hello I can't write in developer forum. Software (CM11 of 29.01) is good, it’s not freezing during video recording as in rom 4.1 (I use my phone as car camera). There’s only one annoying problem – when I plug in a car charger, the music player automatically turns on (option in menu: /device/earphone empty). The charger works fine with other phones (HTC and LG) and there were no problems before with rom 4.1, as well as with different chargers. Battery isn’t charging even after shutting down the player’s start script. The problem must be somehow connected to the plug-in... and KitKat. Charging worked when I restored 4.1.2 and while the phone was turned off. I tried another car charger and the problem didn’t occur (the one I have problem with is 1A type). I tried rom of 2.02, but still no change.

Some ideas (except changing the charger)?
[Galaxy S III Mini Q&A, Help & Troubleshooting] omarblu:
Go to settings. More.....

Problem solved.
[Galaxy S III Mini Q&A, Help & Troubleshooting] darjerz:
Still not solved. :confused:

View attachment 2563438 View attachment 2563439
[JAM, MDA Compact, S100 General] Registererer:
Hey there!

If anyone knows a way to turn on/off bt radio on bluesoleil by soft-button binding or cmd-line or such, plz let me know. It would be nice to be able to activate it automatically on GPS software startup.

Greetings,

Regi