yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] E:V:A:
@mirabilos:

Well, you can be as annoyed as you like. First of all, that question was not aimed at you, and second, as I have also said repeatedly, I have already tried using SELinux in Permissive mode and it doesn't work either. In addition, your suggestion to "fix its SELinux policies" is rather ridiculous as there are no tools available to do so. At least nothing out of the box and no available binaries anywhere, and surely no instructions how to do so. So if you know how to do it, why don't you just explain for us how to do so. (My policies are updated to latest according Androids policy update tools.)

In addition there is no such thing as "disable SEAndroid". It's either in Permissive or Enforced mode. That is, unless you flash a new custom FW, which is out of the question. In addition, ATE works just fine, in Enforcing mode.

So believe me, I am far more annoyed by Googles lack of SELinux/SEAndroid developer support, than you will ever be from me asking these questions.

Thanks for explaining and helping with everything else above.

@7175:

Yes, I know about all those things, but I was asking why you think they need to be tweaked? The defaults, seem to work just fine.
[Android Software/Hacking General [Developers Only]] 7175:
[MENTION=3420143]mirabilos[/MENTION] : Thank you for your detailed replies, and I would be more than happy to contribute if you see anything from the content I posted.

It is interesting to see the other possibilities for turning off xtrace within the PS1. I didn't even realize you could set positional parameters after the set -x... I think I like that one the most. It just seems more array-like and streamlined, although I guess the same number of variables is still used. I look forward to seeing what updates you'll have on the exit trap and localization. This is something I'd like to toy around with. :)

I took your advice and set out to get a mksh static built. I ended up compiling with GCC, running "LDSTATIC=-static ./Build.sh" in the mksh source directory. I'm pretty new to cross compiling, so I didn't really get that far or try that hard before chrooting to a fresh Ubuntu terminal on my Nexus, installing GCC, and compiling there. The only thing I changed in the source code was ${ENV:-~/.mkshrc} to ${ENV:-/system/etc/mkshrc} in the "main.c" source file. I can include this in the OP though as you mentioned before. (edit: just saw this as a compiler option with Build.sh)

Edit: I see the option now in the Build.sh for changing the mkshrc path. Also, got R50 rebuilt static with klibc. Damn that got the size way down from using glibc, 684K to 204K.
[Android Software/Hacking General [Developers Only]] alanthehat:
R50e is released

R50e is released -- see https://www.mirbsd.org/mksh.htm#clog
[Android Software/Hacking General [Developers Only]] nss357:
Hi [MENTION=5109059]7175[/MENTION], good stuffs here man :good:

I've been using your modded mkshrc, and I can see a hell of a lot of work you put into it. Looks really cool. Plus it's really a good place to learn for someone like me, I definitely had learnt a lot for the past few days. Tons of aliases too, and I'm getting used to using it now. I really appreciate your stuffs here, hope to see more of it :)
[Android Software/Hacking General [Developers Only]] 7175:
Thanks for the heads up. Updated the binaries posted in the 2nd OP to mksh R50e.

Thanks for the feedback man! Glad it's been a good learning experience like it has been for me.
[Android Software/Hacking General [Developers Only]] nss357:
Well, thanks for the updated binary! Anyway, anything you can recommend me to read other than the man page in OP? And I have one more question, what's the difference between the busybox (I got one from your other thread) and yours busybox.ndk?
[Android Software/Hacking General [Developers Only]] mirabilos:
While I’m the upstream developer of mksh, hacking it has also been a good learning experience for me.

So it is for a friend of mine, who has taken some fundamental script frameworks I wrote, and extended it to an impressive management system, learning to code good shell while doing so.

I’m always happy when my stuff helps other people, and they share their joy! ☺

By the way: new mksh release announcements are sent over the miros-mksh mailing list (send an eMail to postmaster at mirbsd dot either org or de to subscribe).

---------- Post added at 08:40 PM ---------- Previous post was at 08:34 PM ----------

Well, we have https://www.mirbsd.org/ksh-chan.htm which collects lots of Korn Shell-related resources, although most of it is for AT&T ksh93 (the “original” Korn Shell), much also applies to mksh, though the Android OS has some special handling (especially caused by the different user-space tooling) obviously.

The shell itself behaves exactly the same across *all* supported platforms though, so (once you have set $TMPDIR to something writable for your current user) you can write Pure mksh code exactly like on Unix or Cygwin or the Macintosh or even Haiku.
[Android Software/Hacking General [Developers Only]] nss357:
Thanks for the link, and for your works on mksh too! I'm really new to shell, I'm not even that familiar with unix/linux either. But I always have been interested in shell scripting, so I'm glad that I stumbled upon this thread :)

Whew, that's a lot of stuff in that link you gave, definitely gonna make use of it, thanks again!
[Android Software/Hacking General [Developers Only]] :
7,

This thread is awesome ! I don't know how i missed this. :good:

O.T. if you've got time and via pm i was wondering if you've done any work with multi-call binaries

and could help me out on the basics or link me to good straightfoward tuts?

thanks

m
[Android Software/Hacking General [Developers Only]] quasiperfect:
Where's best place for Vim runtime files?

Hey 7175. Thanks for the ridiculously easy way to run vim as root. Is there a recommended directory for the vim run-time files?
[Android Software/Hacking General [Developers Only]] mirabilos:
I have a dislike for “tutorials”, they tend to skim over details and be wrong in parts.

I’ve done extensive work making making multi-call binaries easy in MirBSD (the code we inherited from OpenBSD for it was ugly), using features of newer GNU binutils versions.

If you want, come to #MirBSD on irc.freenode.net for talk. I don’t do the “web” PM thing if I can avoid it. eMail works, too… miros-discuss at the mirbsd domain dot org is the way to go (public mailing list).
[Android Software/Hacking General [Developers Only]] :
[MENTION=3420143]mirabilos[/MENTION]

hi, quick question, in mkshrc i want to set prompt to display <user@current_mksh_version>

i know i can do it by echo but if i change mksh version the echo will be wrong, what's the correct $<env_variable>

Is there a way to blend the file command into mksh?

thanks

also on aliases i would like to set ln and ls and mount to use busybox if present @ /where/ever

how do i write that out? does bash like scripting do it like

if [ -e /system/xbin/busybox ]
then
\alias ls=ls
else
\alias ls=/system/xbin/busybox ls
fi

m
[Android Software/Hacking General [Developers Only]] mirabilos:
It's $KSH_VERSION, you could do it like this:

x=${KSH_VERSION#*KSH }
x=${x%% *}

After this, $x contains (for example) "R51".

You mean the one that says if a file is data, executable, script, etc? No, you'd have to install that, and its data files, separately.

You were pretty close, I'd write it like this, relying on $PATH, though:

if whence -p busybox >/dev/null; then
\alias ls='busybox ls'
fi

No need to alias ls to ls if not. If you want to add default options to both:

if whence -p busybox >/dev/null; then
\alias ls='busybox ls -F'
else
\alias ls='ls -F'
fi

Good luck with your endeavours!
[Android Software/Hacking General [Developers Only]] luisadha:
What is the license for this file?
[Nexus 7 Q&A, Help & Troubleshooting] ckavvouras:
Liking for 4.4.2 for nexus 7 2012 without any add-ons our modifications, just something clean I can flash with clockworkmod. I have looked in multiple places but all of them seen to have some sort our mod. Any help would be great, thanks.
[Nexus 7 Q&A, Help & Troubleshooting] twics:
Is this what you are looking for http://xdaforums.com/showthread.php?t=2533035

[ROM][4.4.2 STOCK KOT49H][BSZKitKat v1.3][GEL|SuperSU|ZipAlign|DEODEX|ODEX][28/01/14]
[G2 Q&A, Help & Troubleshooting] joshracine:
Anyone have a stock d803 kernel. Not getting the battery life i was getting with others. Please help lol. Thanks
[G2 Q&A, Help & Troubleshooting] joshracine:
really

40 views and nobody can send a link or anything? Why is there even a help forum?
[G2 Q&A, Help & Troubleshooting] noduff:
What carrier are you looking for and what stock version? Have you read the "Go back to stock" sticky?
[T-Mobile Samsung Galaxy S 5] undercover nerd:
My phone doesn't like to connect to stuff via USB it wants to act like a camera. Not sure if my phone is missing some driver or something that let's stuff read it's media like a usb. Help needed
[Sprint HTC One (M7)] kadjar:
Ended up reflashing to RUU, upgrading OTA, then re-rooting. Thanks anyhow!

Trying to flash to the file provided here: http://xdaforums.com/showthread.php?t=2766604

Getting the following error:

➜ platform-tools ./fastboot flash zip /Users/garrett/Dev/android/firmware.zip
target reported max download size of 1515692032 bytes
sending 'zip' (1218279 KB)...
OKAY [ 52.140s]
writing 'zip'...
(bootloader) zip header checking...
(bootloader) zip info parsing...
(bootloader) Read zipped android_info fail
FAILED (remote: 24 parsing android-info fail)
finished. total time: 70.258s

getvar info:

(bootloader) version: 0.5
(bootloader) version-bootloader: 1.56.0000
(bootloader) version-baseband: 1.00.20.1108
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 4.06.651.9
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: FA363S900377
(bootloader) imei: 990001468606363
(bootloader) meid: 99000146860636
(bootloader) product: m7_wls
(bootloader) platform: HBOOT-8064
(bootloader) modelid: PN0720000
(bootloader) cidnum: SPCS_001
(bootloader) battery-status: good
(bootloader) battery-voltage: 3867mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: dirty-4dab9d12
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0

Any help is much appreciated. Thanks!
[LG Optimus L3 II, L5 II, L7 II, L9 II] winxuser:
as the title says which firmware is good for root bcause i have tried so many different versions for the p713 and just cant find one that will root
[LG Optimus L3 II, L5 II, L7 II, L9 II] maxx_hr:
Try framaroot with gandalf explit, with V10D ROM version for your P713.

From V10E to up, maby Vroot works.

For my P710, framaroot works again vith V10J...

Good luck!
[LG Optimus L3 II, L5 II, L7 II, L9 II] Digdis:
Did you try Kingo Android root? Worked great for me (although I still have V10a ROM).
[8125, K-JAM, P4300, MDA Vario General] gribbler:
my keyboard when using the whatever that key is called that gets you to the secondary keys (@#$%^ etc)

When I use it, my keys are not quite right, I think it's using a Euro keyboard, but I can't find the setting. Anyone help?

thanks
[One (M8) Q&A, Help & Troubleshooting] avivzamir:
hi ,

please help me! after connecting to my cars bluetooth center my notification sound stopped working :(

when i reconnect it to car it comes back but no matter i much i play with the setting the minute ill turn the bluetooth off my notification sound will stop.

any ideas on how to fix this:confused:

by the way in the past i did connect my phone to the car and everything worked great .
[Android Apps and Games] Lunime:
Hey guys, please check out the new app we have created called "Doge Swing!"

play.google.com/store/apps/details?id=air.com.lunime.dogeswing

You can also find it by searching "Lunime" in the Google Play Store!

It's a bird... it's a plane... no it's Doge! Wow, flying doge, such amaze! Swing Doge far, win doge points, buy items for Doge. So fun! Play 3 different game modes and get ranked in Doge's leaderboards! Are you the top doge? Simple gameplay, tap the screen to swing doge and catch him with another doge. Such fun, much doge, very cool!

Please leave any comments or suggestions below and I will be sure to read them! Also feel free to rate the app and let me know what you think of it!

Thanks for checking out the game!

- Lunime Games
[Android Apps and Games] Hippeistudio:
I think you need to add video trailer of game at the description of Google Play.
[T-Mobile Samsung Galaxy S 4] wing-zero:
Need a bit of help rooting. I have 4.4.2 installed. Downloaded CF-Auto-Root with Odin 3.07. Ran Odin after a restarted the phone with volume down menu power etc. Everything seems to run ok no errors, but yet i run rootcheck, its not rooted. any advice?
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
Look in the app Drawer if you have the SuperSu App.. if its not there.. go to the playstore and download it.. and open and then recheck for root.c
[T-Mobile Samsung Galaxy S 4] wing-zero:
thanks for the tip, just did that, running SuperSu, seems samsung Knox is blocking it somehow
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
didn't the superSu app gave u the option to disable knox?? it always gives that pop up when I root a phone..

I click SUpersu and the 1st thing that pops up it's a window that says if u want to disable knox.
[T-Mobile Samsung Galaxy S 4] wing-zero:
it did give me the option , but it says "Failed to disable Know!"
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
Okay then try the following... run the CF-auto root.. and re open Supersu. if that fails odin full stock, download app and the run CF auto root and that should do it... if not let me know... we can try something else
[T-Mobile Samsung Galaxy S 4] wing-zero:
just to be certain, u want me to try flashin stock rom if CF-auto root fails?
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
just run Cf auto root for now... and try re opening the supersu app.

let me ask you before you do anything else.. do you have a Custom Recovery installed?..

and do you have hangout? I can help you trouble shoot faster that way..
[T-Mobile Samsung Galaxy S 4] wing-zero:
ok , got good news, reran the cf-auto root. had to manually install supersu again, but this time it allowed me to get around Knox! Thanks for the effort. Not sure why it works now but it does!
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
Awesome... good to hear.. It does that sometimes.. but I'm glad it works now...
[T-Mobile Samsung Galaxy S 4] wing-zero:
appreciate the help, by chance do u know if S5 S Health works on the S4? I saw it for the Note 3 on a thread.
[T-Mobile Samsung Galaxy S 4] Mr_Jay_jay:
I personally never used it.. but I know that Insane Kit-kat has or had the app pre-installed so it should work... u can try that Rom
[Xperia Z2 Q&A, Help & Troubleshooting] aaronregaspi:
Hi i just bought my z2 this end of may,and the problem i see is that the front camera is blurry,it was like small red and blue dots floating over all the screen,is there anybody here experiencing like this issue,and what is the solution to this problem... thanks :(
[Xperia Z2 Q&A, Help & Troubleshooting] CenteaOSD:
Have you tried to turn-off HDR and beauty mode? It might causing problems. And quality of front camera isn't good as Back camera.... as they only have got 2MP. And low-light condition it has many noises...
[Xperia Z2 Q&A, Help & Troubleshooting] khalitzy:
front facing camera blur

it didn't work... any help pls?
[Xperia Z2 Q&A, Help & Troubleshooting] CenteaOSD:
Hope you are still reading this thread and posting. As I said in this post this camera is only 2mp... you know? It is not suitable to take a selfie or good pics..... (it is still better than other device as some device only has got 0.5mp or lower)

I heard that Sony has released new Xperia that has got better camera for taking selfie?
[Nexus 5 Q&A, Help & Troubleshooting] dia_naji:
Most likely there wont be a nexus 6. What phone will be the pure vanilla android when the nexus devices stop ?
[Nexus 5 Q&A, Help & Troubleshooting] simms22:
its called a rumor, and thats all it is. just like the millions of other rumors for other devices. these rumors are around every year. only google knows whats up, not these internet blogs who make up remors. it will still be around, but google cant call it nexus 6, as that name is already trademarked.
[Nexus 5 Q&A, Help & Troubleshooting] Kippui:
The 4 other google play edition phones on the playstore lol
[Nexus 5 Q&A, Help & Troubleshooting] BirchBarlow:
There are always going to be vanilla Android devices and there's always going to developer device whether it's called a Nexus, Android Silver, Google Play Edition, Developer Edition, etc. The fact is, it's always going to be around. Google needs the support of developers and developers need an affordable, unlockable vanilla Android device, so it will always be around in some form.
[Nexus 5 Q&A, Help & Troubleshooting] galaxys:
It will be called the Nexus 666! A very Hot and devilish device! :D
[Nexus 5 Q&A, Help & Troubleshooting] simms22:
considering 666 is my lucky number, id be first in line :angel:
[Nexus 5 Q&A, Help & Troubleshooting] :
There's already a thread for this.

http://xdaforums.com/showthread.php?t=2696145
[Nexus 5 Q&A, Help & Troubleshooting] El Daddy:
This^^^^

Thread Closed.
[Nexus 7 General] Ohgami_Ichiro:
https://developers.google.com/android/nexus/images#nakasi

Factory Images for 4.4.3 in the link.
[Nexus 7 General] a2r3f:
How do I flash this?
[Nexus 7 General] Laugher19:
What is the kernel version for this update? I know nvidia released source code for a 3.4 kernel
[Nexus 7 General] dmwarren:
Linux Quick and simple(this is what I do with a high degree of success, your results might vary. use caution) :

1) Download the factory image for your device.

2) $ tar -xvf nakasig-ktu84l-factory-8ce3d5ea.tgz

3) $ cd /path/to/extracted/nakasig-ktu84l

4) $ adb reboot bootloader

4) $ ./flash-all.sh

This will completely wipe your tablet and install 4.4.3. Be sure this is what you want to do. ./falsh-all.sh is just a shell script that executes the following in order:

fastboot oem unlock

fastboot erase boot

fastboot erase cache

fastboot erase recovery

fastboot erase system

fastboot erase userdata

fastboot flash bootloader bootloader-tilapia-4.23.img

fastboot reboot-bootloader

sleep 10

fastboot flash radio radio-tilapia-1231_0.18.0_0409.img

fastboot reboot-bootloader

sleep 10

fastboot -w update image-nakasig-ktu84l.zip

So in theory you could comment out the line "fastboot erase userdata" if you wanted to preserve your data, but I usually just sync my photos off somewhere, and restore my apps when i'm done.

You will need to have "adb" and "fastboot" installed and in your PATH.

Cheers and may the force be with you.
[Nexus 7 General] AndDiSa:
*attention*: nakasig and taliapia are for the GSM version only, *not* for the WIFI version. If you flash those images to your WIFI-Nexus you'll create a brick.

Btw.: I would unpack the zip and flash boot.img and system.img only. In that case a smooth update without any data loss should be possible ...
[Nexus 7 General] dmwarren:
Just read the whole page for your appropriate D/L:

4.4.3 Factory Images "nakasi" for Nexus 7 (Wi-Fi) https://dl.google.com/dl/android/aosp/nakasi-ktu84l-factory-0e21238f.tgz

4.4.3 Factory Images "nakasig" for Nexus 7 (Mobile) https://dl.google.com/dl/android/aosp/nakasig-ktu84l-factory-8ce3d5ea.tgz
[Nexus 7 General] ironmaskusa:
Can someone make a zip that's flashable for multirom? Grouper? Please?
[Nexus 7 General] Ja_som:
Full flashable zip from Tasssadar, thanks to him...

http://xdaforums.com/showpost.php?p=53125741&postcount=2680
[Nexus 7 General] GedBlake:
Hi, guys...

It might be a also good idea to comment out this line anyway ... fastboot flash bootloader bootloader-tilapia (or grouper)-4.23.img, if you already have the v4.23 bootloader installed, as I suspect most have...

...as it fails to fastboot flash

without error

, in much the same way as previous versions of the v4.23 bootloader did.

Specific details

here

... and on that associated thread generally.

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

Not quite sure what's going on with Google and Nexus 7 bootloaders... there seem to be more variants of v4.23 floating around than I have odd socks:).... and only one seems to flash without problems:confused:.

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

Anyhow... I've just done a full fastboot flash (minus v4.23 bootloader) of Android 4.4.3-KTU84L (I needed to backup my data anyway... it's been a while:)).

All seems fine so far... the ironic thing about this supposedly **new** factory image from Google, is that even after flashing it, there are **still** 19 Google apps that require updating from PlayStore... Chrome, Gmail, Google+, Google Keyboard, Hangouts, Maps, YouTube to name just a few.

Now to restore my data from my laptop... flash TWRP, make a Nandroid backup, re-root and re-install my apps via Titanium.

Good luck everybody:):):).

Rgrds,

Ged.
[Nexus 7 General] striker59:
When installing, will it wipe out previous downloaded apps?
[Nexus 7 General] vorcers:
In Fact, it is: "3.1.10-g1e42d16". On 4.4.2 it was: "3.1.10-g4776c68". So no 3.4. But a "new" version of the kernel!

Unfortunately, Google "forgot" the "kitkat-mr2-release" Branch in kernel/tegra:

https://android.googlesource.com/kernel/tegra/+refs (flo-kernel has the branch)

Stupid Google, we want the new source! :mad:

Edit: Google opened the Branch :victory:

https://android.googlesource.com/kernel/tegra/+/android-tegra3-grouper-3.1-kitkat-mr2
[Nexus 7 General] AndDiSa:
If you flash only boot.img and system.img you will keep everything. I just updated in this way half an hour ago without any problems.
[Nexus 7 General] PunishedSnake:
Yay

Anyone who installed it is it fast or stay with f2fs slim?
[Nexus 7 General] timberdc:
Lag

Holy crap, I hope this eliminates the lag I have been experiencing since "upgrading" to Kit Kat in the first place.
[Nexus 7 General] DroidOnRoids:
It feels a little smoother but while downloading apps from the Play Store, it can be unresponsive.
[Nexus 7 General] Ohgami_Ichiro:
Yeah I had that problem since 4.1. Since then I just hit update and then let it do it's thing and then get back to what I was doing. Really can't expect to have Google fix that since this will probably be our last update.
[Nexus 7 General] Laugher19:
Well that stinks
[Nexus 7 General] hormosapiens:
I am on latest AOKP with latest CWM, bootloader 4.23 unlocked, and rooted of course. I dont have anything on this tablet that I cant recover from google servers.

I need to do a clean install and go back to locked BL, unrooted, new stock rom. which way to go?

Thanks
[Nexus 7 General] GedBlake:
Hi, hormosapiens...

The way I'd do it, is to use fastboot...

Fastboot flash the latest Google factory stock image (Android 4.4.3, build KTU84L) for your specific Nexus 7 type... this will completely wipe the device, and return it to it's 'official' state, running factory stock Android.

Root will be lost, as will any Custom Recovery (CWM or TWRP) you may currently have installed.

The only thing remaining to do aftwards, is to relock the bootloader, with the command fastboot oem lock.

Rgrds,

Ged.
[Nexus 7 General] KiljoyMcCoy:
I put this on my nexus 5 and the nexus 7.1

On N5 its great a lot of improvements. like the new phone app

N7.1 though it feels like they took a step back in in the direction of separate tablet and phone interface. Performance wise it feels a little faster.

Only gripe i have over all is quick settings go to the setting instead of just toggling and hold for settings. ( maybe i have been off stock for to long and that is how stock is ?)
[Nexus 7 General] riot1031:
I can't get the bootloader to flash using "fastboot flash bootloader bootloader-grouper-4.23.img". Is there something else I need to do before running this command? I flashed boot.img and system.img just fine. My current bootloader version is 4.18 and I'm thinking I should update it. Thanks!