yashsingh1/xdaforums huggingface dataset:
[XDA-University] Erackron:
The distinction between sudo and su is that with sudo, you need to have a user configured in a system wide configuration file (/etc/sudoers) to actually have him use the command and if someone attempts to use it without having permission, a log email will be sent to the email address configured for the root user.

When your account has been configured to allow sudo usage, you can then switch to any user/perform any command as the other user, but you only need to enter your own password when executing a command/switching to another user.

The su command is not really configurable, and only allows you to switch to another user if you enter that user's password.

So while

sudo -s someuser

and

su someuser

have the same effect, the sudo version asks for the password of the current user (and fails if the current user has no sudo rights) while the latter asks for the password of someuser.

For more on su and sudo.
[XDA-University] mjwhirly:
To be honest if people don't understand what 1 through 4 mean in your list, then most likely they shouldn't be trying to develop anything IMHO
[XDA-University] cybervibin:
well he included 'cd' and 'mkdir'

so i just mentioned
[XDA-University] maniknarang:
Corrected it. Thanks!

Well, added the last three. Thanks!

Now, I guess it would be readable on phones as well, since I have changed code to quotes. Hope it works now. Thanks!
[XDA-University] DeathW1SH:
Thanks for the knowledge

Easy to digest explanations.
[XDA-University] Ankush menat:
I'd like to link this free course by Linux Foundation - https://www.edx.org/course/linuxfoundationx/linuxfoundationx-lfs101x-2-introduction-5386

I am full time linux user and linux is much much better when it comes to developement/re-engineering stuffs. This free course gives deep introduction to linux and basic info to bash scripting.
[XDA-University] c0d3r!pp3r:
Thanks bro, much appreciated work, just started to build ROM from source for i9100 android lollypop named "CodeROM"

this tutorial is really helpful... thanks added... & keep updating the thread whenever new commands arrives.... so people like me can get most out of it
[XDA-University] manask002:
How to pause repo sync????

My pc was shut down bcoz electricity gone and i was rezume rwpo sync plz tell me how to reaume repo synce fast
[XDA-University] manask002:
I get this error plz fix
[XDA-University] maniknarang:
You need to add yoour sources to the local_maifest.xml or you have to create a room service xml because your device is not supported officially.

Check this helpful guide on how to make a local manifest.

http://xdaforums.com/showthread.php?t=2329228

Hope this helps you. :)
[XDA-University] manask002:
My device is xperia m2 its officially support aosp xperia
[XDA-University] Limbo045:
Noob on Linux

I want to try to build a rom for my Nexus 5 but want too also better understand Linux eg Ububtu 14.10 and not just copy text given in a buildingmanual so where is the best place to start really understanding Ubuntu?
[XDA-University] mrrocketdog:
i do realize this is an old thread , but if anyone out there is reading :

on KKroms , i'm trying to get a media.audio dumpsys by typing this command : su -c dumpsys media.audio_flinger. the problem being that the top half of the dump is missing. have tried with and without permissive kernels (dont know that it makes a difference).

it works fine on MM roms. so ..... idk.

currently att sgh i747. SlimKat 4.4.4. bootloader/modem NJ2.

any ideas or links would be most appreciated.

"err on the side of kindness"
[XDA Assist] zabaleta10:
Good Day,

i downloaded messenger application from play store, if a new message coming up. application badge not shown up (exp. Whatsapp, BBM, Line, Etc), any know how to enabled the badge ? the application badge shown up for standard application.

pardon me for very bad english

my HH asus zenfone 4
[XDA Assist] Perseus:
Please post your query in Android Q&A, Help & Troubleshooting so that the right experts may be of help.
[XDA Assist] demkantor:
HI,

I see you already asked your question here http://xdaforums.com/general/help/application-badge-zenfone-4-t2885276

This is a good place to ask and hope someone answers you there, if not try here in the apps section

http://xdaforums.com/android/apps-games

best of luck!
[Galaxy Ace S5830i General] msc3:
Hi,

I'm using Windows 8.1Pro 64bit. I can't connect with my S5830i - my phone isn't shown in Devices, i tried to install lot of drivers, kies, etc - still no success. Phone, cable are ok (works good with Win7 64). I need USB connection for ADB.
[G3 Q&A, Help & Troubleshooting] kadett-k2:
I have a serious problem. I tried to uninstall Google play market and install new apk 4.9.13 because my poweramp was showing Google play response - Licence error #16 but now I can get it work.It alwas shows me Unfortunately Google Play Store has Stopped.I tried to recover google market from saved files app+data in Titanium backup that I made yesterday. It stars once and then it crashes. I also tried clear cache but nothing worked.Please help me

edit: I also tried hard reset,but problem still persists
[G3 Q&A, Help & Troubleshooting] _Jul:
Tried it with Lucky Patcher?

Or tried with Freedom apk?

Start the service, launch the app store and then stop it and it should work again..

Might be that you killed your Google Services..

It might be possible that you have to install a custom rom and to install the Google Services via manual flash..
[Xposed General] greg3332:
Hi,

I have looked all over for an answer on this. I can't get Xposed to install on a secondary account on my device. Is this possible, or a restriction of Xposed?
[Xposed General] ajbiz11:
Xposed should install globally from any use account so long as you have root

It's system wide

Sent from my m7spr
[Xposed General] greg3332:
Sorry, I thought I replied to this.

No it is not working. I can not get it to work on my galaxy note 10.1 2014, or my nexus 7 2012 device. I am trying to install a module on a secondary account, but have no way of activating that module. When I try to install xposed on the secondary account it throws up an error.
[Xposed General] greg3332:
And can I mention that the particular modules work fine on the primary account, and the devices have root.
[Xposed General] ajbiz11:
I found what I believe to be the issue

Secondary users don't have root

And I noticed the cm11 theme engine doesn't work well on second accounts, only keeping the framework-res changes, and not the icons or fonts or anything else, which leads me to believe that xposed is limited to the same thing

Multi-User support is very lacking in the root world
[General Topics] dukeV:
I am not particularly experienced with Windows, so please excuse any obvious mistakes.

I recently got a PC with Outlook 2007, (previously I only had a Mac with Entourage, and a PPC Wizard - I synced them with a 4Smartphone Exchange Account).

I managed to get Outlook 2007 to work with the account, then it asked me if I wanted to archive my e-mails, I thought, somewhat naively I guess, that it would just backup my e-mails to the PC - instead it stripped them all from the Exchange account.

Effectively Outlook has archived all my past mails to archive.pst, on my PC, leaving me with no way of accessing them from my exchange account OWA, Entourage, and PPC.

Just replacing mails in the Exchange inbox in Outlook does not cause it to re-sync them with the online account. How can I repopulate Exchange? (Noticeably none of the e-mails are synced from the PC to my PPC either.)

To be honest I find all the options in Outlook slightly arcane; I realise that this might not be the best place to ask, but I really am not versed in PC forums.

Thanks for any help.
[Xperia Z1 Compact General] marouane80:
- Unzip and copy this file (power_profile.xml) with winRAR to your current framework-res.apk (res/xml)

- Flash your rom again

- wipe cache and dalvik

(decompiling and recompiling not needed !)
[Xperia Z1 Compact General] zxz0O0:
If you flash your rom again, the edited framework-res.apk will get overwritten, so what's exactly the point of editing it?
[Xperia Z1 Compact General] Tomvl117:
And what does this change exactly do?
[Xperia Z1 Compact General] marouane80:
You decompress your rom and put that file on framework-res/res/xml with winRAR and you repack your rom again. That's all !

Update : fix radio voltage
[Xperia Z1 Compact General] Wooaarr:
This is just plain wrong on so many levels...

1. Don't tinker with an .apk unless you decompiled it. With your way you will inevitable break zipalign, thus slowing everything down.

2. The power_profile.xml you provided is already pre-compiled. Why?

3. You flash the Rom again - This overwrites the changes you made before. Lee me guess, without going back to the original framework you device did not boot? That is because you not only broke zipalign, but also the .apk's signature. So the system refuses to install the vital framework.

I said it before in one of your threads. Be careful on what you upload here, as people usually trust xda and, excuse my language, rubbish like yours is of no use for anyone...

I hope you realize that by now.

So long...
[Xperia Z1 Compact General] marouane80:
you can verify it by decompiling your new framework-res.apk and compare it with stock one.

just for sharing with people

if you don't like it so it's not for you and don't use it. it's simple
[Xperia Z1 Compact General] Wooaarr:
If you upload something that is wrong, than I think it is fair enough if I say something. It seems you find stuff on the internet and just upload it as 'new' here.

Anyway best of luck with your endeavors. I'm out...
[Xperia Z1 Compact General] marouane80:
who told you that ??? give me the link where you found my work !

i think you are a little bit paranoid. don't use anything from me or talk to the moderator or specialist, he can verify my files !

please leave this thread alone

if someone want to verify. see these two files and compare them
[Xperia Z1 Compact General] Wooaarr:
Ok I said I'm out, but you are pushing it...

Do you have any idea what the power_profile.xml actually does?

It provides consumption values to the framework, so that this may properly calculate the battery consumption. Changing values in there won't change anything else then the readings in the battery report or apps that call upon that data.

It will in no way affect the actual energy consumption, so I stand by what I said before.

You provide a not working thing, period!

If you don't believe me read more about it over

here...

Anyway that's it from me, good luck...
[Xperia Z1 Compact General] marouane80:
u're wrong. it works for me :good:

there are many errors when compiling roms from cyanogenmod and stock rom by sony and samsung and others. see my sound fix thread for example you will see the difference ! cyanogenmod didn't fix that sound problem yet !

http://xdaforums.com/sony-xperia-z1-compact/general/cm11-sound-fix-ultimate-t2861135

And as you can see on stock rom or cm11 give a high value (for radio, BT,GPS, screen-on or cpu idle) will drain battery fast !

compare the two files decompiled !
[Xperia Z1 Compact General] mosespl:
So what is about with this mod? What are the benefits of using this? Can someone confirm working this? I read this discusion and i dont know its safe or i brick my device?:p
[Xperia Z1 Compact General] marouane80:
it really works for me. i never upload that never works or never tested. i got a great battery life after found this solution : two days with heavy usage. believe it or not ! make a backup and test. better you decompile and modify the values like uploaded here. :good:
[Xperia Z1 Compact General] mosespl:
ok so can you adviced me what i need to do?

im using stsock kk russian second edition 108.

what i need to change or is any option to create flashable zip file to instal it via recovery or i need to push it manually? why i need to flash new firmware after this operation? after flashing i understand that all of my data will erased with all settings and all my file will be cleaned ? i dont udnerstand why it wouldnt works after flashing? maybe you could post some instructions step by step to clean up everything:) im a little bit scared that i can brick my phone or something.

cheers
[Xperia Z1 Compact General] Deleted member 4819888:
I see that it was mentioned before, but it seems it went unheard.

This mod will not work because of the simple reason that the second step overwrites the change!

Flashing the ROM again will remove the modified framework-res.apk file.

You can try and see for yourself. after doing the steps, unpack the apk again and see which power_profiles.xml is there.

I'm pretty sure you'll find the default one.

Also, the file has nothing to do with actual power consumption, as is mentioned in the Android documentation.

I hate to say it but the battery improvement you noticed is just a placebo :(

If you really want us to believe it works, then at least show us what you got. A screenshot of battery usage and screen time are a good proof
[Xperia Z1 Compact General] rob rich:
I think he means open the ZIP of your Rom on PC, put that file in and then put the Rom to phone again and flash it over your current Rom.

And yes, a proof would be good
[Xperia Z1 Compact General] Paul^^:
Is there any way to fix/improve battery life on CM11? Z1C with the same usage on stock rom gets over 2.5x longer battery life.
[Xperia Z1 Compact General] John.D..:
Well, I replaced in the archive file, but how to pack in the APK?

P.S Understood with the help of Root Explorer
[Xperia Z1 Compact General] marouane80:
you got a bad or an oudated apktool. i don't have any error after decompiling. try it by yourself !:D

it's not a placebo. it's my work
[Xperia Z1 Compact General] marouane80:
sorry but you must have some basic knowledge on decompiling to make the change. if you don't know what is decomiling/compiling, juste take the file and put it like in OP. thanx
[Xperia Z1 Compact General] John.D..:
Yes, but it was very simple) I just renamed the Root Explorer in zip archive, there has replaced the file, and then simply copied the zip on the apk, it works)

but how does it affect the battery, I still do not understand
[Xperia Z1 Compact General] mod23:
Doesn't change anything

I'm sorry, but the supplied power_profile.xml from the first post differs significantly from the power_profile.xml in the original firmware, indicating that it is not correct.

Further, this is only a cosmetic change as it only determines what percentage of battery drain is assigned to which component. This "fix" doesn't change anything but the display of data.
[Android Q&A, Help & Troubleshooting] MuhammedRefaat:
I'm using Lenovo Ideatab A3000-h,

I want to make it to be set to run only one app after booting, not even the home page could run then, it will open at the app and still at it forever, I know it's a common need and this has been asked a lot of times before, So, after searching I discovered that there is three options :

1- Creating my own Custom ROM.

2- Making my application a launcher application using android manifest.

3- run a kiosk mode like surlock.

4- Modifying AOSP source code.

So, after a lot of search, I found that the third option can be easily broken be entering the tablet in safe mode and try to remove app then, or by removing it from accessing the tab by PC, and the second option can be broken by the same way.

So, all I got now is to use either the first option or the forth option, and when taking about the first option, thanks to NeroYoung I already know how to:

setting up android kitchen.

modifying ROM img files and jar files.

modifying build.prop.

generating the resulted Custom ROM.

but I don't know the way to reach my needs by customizing a ROM, so, all I want to know is how to modify the custom/stock ROM to achieve my requirement of booting to only a specific app. also if there is another way by making (System Backup ----> Modify ----> Restore Modified System) it will be great.

and when taking about the forth option, I already downloaded the source code and did know how to access it's resources, but don't know where is the source code that controls the start-up process and how to modify it. thanks in advance for all future contributors.
[Fire TV Themes and Apps] blackantt:
1. Can I sing karaoke song on fire tv, paid or free?

2. Can I play the GO chess on fire tv ?
[Fire TV Themes and Apps] KarlP:
I've never played with it, but XBMC has some sort of karaoke support and works well on the FIRE TV.
[Google Chromecast] stooged:
this is a little project I have been working on to cast videos from my desktop pc with hard drives mapped from my server

it works much like fling did but built with vb.net not java

you will need .Net Framework 4.6.1 installed to run or compile this application

the VB source was built Visual Studio 2013

the C# source was built Visual Studio 2017

if you have multiple network adapters this might not work for you as it might not resolve your local ip address correctly

ffmpeg is used to transcode videos that are not mp4, when transcoding you cannot seek/select play position

when streaming from harddrive mp4 files should have the ability to seek/select play position

you can drag and drop video files onto application to play them(like Fling)

it also has the option to play files from urls

it should be pretty simple to use for you

just open the program and it should find chromecasts on the network then select the chromecast you want to cast to then click "Connect CC" then drag and drop video onto it and it should start playing

it should work for rooted and non rooted chromecasts

when using a rooted chromecast the receiver is hosted by DeskCast its self

when using a non rooted chromecast the receiver is one of the apps in the google whitelist

the receiver files deskcast sends to the rooted chromecast are in the "data" folder of the application, so you can edit these too

I did play with the idea of the chromecast its self hosting the receiver files but the www folder in the chromecast is locked/read only so that might be something for team eureka to add to the webpanel they have

this works for me very well, but I cant say that it will work for you at all

im really only posting the source so other people can use it for information or ideas to make something better than I ever could

I hope this is useful to someone

VB .NET Source

https://github.com/stooged/DeskCast

C# Source

https://github.com/stooged/DeskCastC
[Google Chromecast] Mape0661:
You can start your own webserver if you like. You got one built into /bin/busybox

in shell you can start it with:

/bin/busybox httpd -p 8000 -h /data/www -c /data/httpd.conf

httpd.conf contains:

A:*

/cgi-bin:a:a

echo "It's working!" > /data/www/index.html

open <chromecastip>:8000 and you got your self a webserver =)

if it not working, try a newer busybox binary, the one in /bin is a bit old.

I've been looking a way to use CC as a host for casting so this was fun to see =)
[Google Chromecast] stooged:
yeah I did try that with a new busybox binary installed to the chromecast

the webserver worked and the receiver files were hosted by the chromecast in the /data/www folder but the receiver wouldn't allow a connection to the websocket

I think it had issues with the domain/ip being the same as the chromecast

it might be something that can be changed in the rom by team eureka.

the idea of a whitelist and a receiver being on the chromecast its self might make it possible to use offline when streaming media from your pc or tablet, Netflix and hulu and apps like that we know wont work offline

I guess I will just keep playing around with it to see if I can get it to work
[Google Chromecast] Mape0661:
I was experimenting with this few weeks ago, I installed Google CastVideo from github

https://github.com/googlecast/CastVideos-chrome

Got a page working, hosted by chromecast, but I was never able to remove the DEMO text all over the videos. But it worked nicely to stream mp4 files from a samba share.

I travel a lot and my plan was/is to use a travel router and mount a samba share to my linux server with ssh

something like this on chromecast

ssh -C -f -N -p 22 -L 440:127.0.0.1:445 <username>@<serveradress>

sudo mount -t cifs //127.0.0.1/<share> <mountpoint> -o port=440,user="<user>",password="<password>"

you need a new dropbearmulti, got a working one (armv61) from

http://landley.net/aboriginal/downloads/binaries/extras/

Did you try with lighttpd?

-----------------------------------

cp /system/etc/httpd.conf /data (change port and webroot in httpd.conf, 3000 and /data/www worked for me)

mkdir /data/www

lighttpd -m /system/usr/lib -f /data/httpd.conf
[Google Chromecast] stooged:
no I just tried busybox httpd

but I will give lighttpd a go
[Google Chromecast] stooged:
I did find one way to make the chromecast host the receiver or any html content

in the post to the chromecast to loadup the receiver if you use the data uri scheme for the post data you can make the chromecast launch html

so as the url for the receiver you can use something like data:text/html;base64,html_encoded_in_base64

I did a test with the receiver.html file from the Fling source and it worked fine

here is a php script that should allow you to play a mp4 file on the chromecast using this method with a single post

<?php

$ChromeCastIP = "192.168.1.102";
$ChromeCastApp = "Fling";
$VideoURL = "://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4";

$htmldata = base64_encode("
<html>
<head>
<title></title>
</head>
<body bgcolor=#000000 topmargin=0 leftmargin=0 bottommargin=0 rightmargin=0 marginwidth=0 marginheight=0>
<video width='100%' height='100%' autoplay>
<source src='http$VideoURL' type='video/mp4'>
</video>
</body>
</html>
");

$postdata = "data:text/html;base64,$htmldata";

$fp = fsockopen($ChromeCastIP, 8008, $errno, $errstr, 30);
$out = "POST /apps/$ChromeCastApp/ HTTP/1.1\r\n";
$out .= "Accept-Language: en-us\r\n";
$out .= "Accept: */*\r\n";
$out .= "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36\r\n";
$out .= "Host: $ChromeCastIP:8008\r\n";
$out .= "Content-Type: application/x-www-form-urlencoded\r\n";
$out .= "Origin: chrome-extension://boadgeojelhgndaghljhdicfkmllpafd\r\n";
$out .= "Content-Length: ".strlen($postdata)."\r\n";
$out .= "Connection: Close\r\n\r\n$postdata";
fwrite($fp, $out);
sleep(2);
fclose($fp);

?>
[Google Chromecast] Mape0661:
Got it working =), Very cool.

I tryed to make php work on Chromecast. At the moment I only got a test page working with some old php binaries. But the php-cli are working fine!
[Google Chromecast] Giswald:
Can you host this in github? I'd like to contribute to this project :)
[Google Chromecast] stooged:
I have never used github before but I think this worked

https://github.com/stooged/DeskCast
[Google Chromecast] lancillotto:
What's the main difference between the chrome extension "VideoStream for Google Chromecast" ?

Seems it can do the same job.