yashsingh1/xdaforums huggingface dataset:
[Networking] DesktopAppAd:
Wandoujia

Do you know any Chinese VPN connection? You may search Wandoujia. It can be selected the district such as US, Korean, Japanese VPN to connect.
[Networking] Ferragamo:
I think IPVanish offers a Korean location, maybe you should check it out, and report back.
[Nexus 7 Android Development] 500 Internal Server Error:
Yes, I know this is in the wrong section - I didn't have 10 posts when I created this thread. Please move this to the developer section if possible.

This is a port of the Android M developer preview from the emulator SDK image to the Nexus 7 (2012).

This ROM is pretty useless. Wi-Fi doesn't work, it's insecure, and there's no point in running it unless you really want to play with some of the new features of Android M. You have been warned.

Currently, this is only tested with the Nexus 7 Wi-Fi (grouper) as a secondary ROM in MultiROM with the main partition formatted as ext4: other configurations probably won't work.

Since this is based on the emulator image from the SDK, no Gapps are included.

What doesn't work:

Wi-Fi - Unfortunately, the SDK image did not include wpa_supplicant, which is required for Wi-Fi. I tried copying it from 5.1.1, but the 5.1.1 version is compiled against OpenSSL, while Android M uses BoringSSL instead. If anyone has a solution for this, I'll really appreciate it!

Bluetooth

NFC

GPS (again, /system/bin/glgps uses OpenSSL, not BoringSSL)

Screenshot function over adb

SELinux - this port runs in permissive mode; it will not run in enforcing mode as I have not adjusted the SELinux policies

Security - this is a port from an emulator image, which is signed with test-keys; thus, a malicious application can impersonate system apps. In addition, the image is rooted, but does not have a superuser management app - all superuser requests are allowed. Please don't use this ROM if you're going to store important data on it.

adb on Ubuntu - if you're getting a "Permission denied" error while trying to use ADB with this ROM on Ubuntu, make sure to tap "USB for charging" in the notification tray and select "Transfer files". ADB will start working.

(Probably more.)

Kernel

The bundled kernel is "Kernel w/ kexec-hardboot patch (Stock 5.1 and 5.1.1)" from MultiROM, which can be found at http://xdaforums.com/showthread.php?t=2011403

Installation

The recommended way to install this ROM is through the MultiROM custom recovery.

First, install MultiROM from http://xdaforums.com/showthread.php?t=2011403

Then, boot into recovery, and select Advanced -> MultiROM -> Add ROM

Choose the ROM, and then swipe to install.

Download

Google Drive: https://drive.google.com/file/d/0B9YZBHL7jnUDXzNVMjAxNF9fb28/view?usp=sharing

Source

I'll be uploading the files and tools used to build this ROM to https://github.com/zhuowei/unnamedL

Credits

Thanks to everyone who contributed to the unnamedL ROM last year: http://xdaforums.com/showthread.php?t=2799011

Screenshots

Changelog

v1: initial release (05/29/2015)
[Nexus 7 Android Development] 500 Internal Server Error:
(Reserved)
[Nexus 7 Android Development] 500 Internal Server Error:
(Even more reserved)
[Nexus 7 Android Development] 500 Internal Server Error:
(Reserved #3)
[Nexus 7 Android Development] webdroidmt:
I see you're back again with another unnamed preview. LOL Thanks for a little taste of M, will be fun to play around with it.

Mike T
[Nexus 7 Android Development] GtrCraft:
Maybe this will help you: https://android.googlesource.com/device/asus/grouper/+/android-m-preview
[Nexus 7 Android Development] judhin:
Thanks. I was interested to test multiwindow mode and it works! Just needed to enable it in Developer settings.
[Nexus 7 Android Development] Ansanen:
how to port from sdk ?

any tutorial?
[Nexus 7 Android Development] TheXorg:
Possible to do the same with Nexus 4?

If there's no WPA_supplicant in the Emulator image, why arent you using the ones from N5/etc. Images?
[Nexus 7 Android Development] Gundabolu SC:
Awesome!!! :d :d :d :d :d
[Nexus 7 Android Development] davpax:
Thanks?

Inviato dal mio SM-G920F con XDA Forums
[Nexus 7 Android Development] Brawn_Sg:
how to port sdk emulator v7 system image to any other device

like nexus 4 or nexus 7 2013

how to compress my system folder into system.tar.gz

thanks
[Nexus 7 Android Development] Vyom:
Hi first I was glad to install this Android M preview. But Wifi and bluetooth not working is a big annoyance, since I can't use Internet on the phone, even by bluetooth tethering.

Btw, I tried to install .APK files and the "App permission" feature doesn't seem to work. It installed the apps with all permissions, and never asked to approve any permission on app use.

Are you sure this is Android M? Only thing which tells this is Android M is the About screen and the Android M logo.
[Nexus 7 Android Development] Bert98:
Can anyone who flashed this ROM kindly upload the SystemUi.apk file from system/priv-app? Thanks a lot, I need some files from it :)

Inviato dal mio XT1032 utilizzando Tapatalk
[Nexus 7 Android Development] Bert98:
I need some pngs for another project, and I'd extract it myself but in Lollipop, ROMs have that stupid system.new.whatever it is so I can't take a file from the ROM file, I'd have to flash it, extract the file I need and then delete it, so it's kind of a waste of time.

EDIT: I just saw that the system is a tar.gz so I managed to extract what I needed from the ROM zip, ignore my previous request :)
[Nexus 7 Android Development] fritzcola:
Have you updated the ramdisk?
[Nexus 7 Android Development] DJ_FrozenDoctor:
Can you do this for the Nexus 7 2013?
[Nexus 7 Android Development] X_TonyK_d:
(Uhh... Removed... Again...)
[Nexus 7 Android Development] X_TonyK_d:
Hey WeShallFall! I brought some hopeful news!

I thought it's the problem of wpa_supplicant, too.

so I tried everything you did too, but nothing works (or not enough Android & Linux Knowledge (cuz of my worse English Knowledge too ;) . I'm not using English as my native language :( )).

and I saw my log again, and I just find what was wrong!

wpa_supplicant is working correctly! :D

Now, Let's see my logcat(cutted) :

06-20 06:47:12.960 1605 1605 I wpa_supplicant: nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)

If you seems like wpa_supplicant is not working, read it slowly.

Yes. wpa_supplicant is working correctly.

It just can't found file named "nl80211".

We just have to find that file! *cheers*

+ Well... I thought wrong...

There are already "nl80211" in ROM, and working correctly.

It just finding driver(maybe)...

then my last hope gone? noo... :(

++ Hmm... I just found someting related compiling wpa_supplicant against BoringSSL.

...Umm, what? I can't post link? Noo...

Then search "build wpa_supplicant boringssl" at Google and go to link which contains "lists.shmoo"
[Nexus 7 Android Development] X_TonyK_d:
Why all the terminal apps are keep crashing?

I haven't tested adb shell, but If I try to open terminal via emulator app, app will stop...

Anyone know why? :(

+ adb shell is working. I've tested.

---------- Post added at 04:43 AM ---------- Previous post was at 04:23 AM ----------

Sorry guys...

The "wpa_supplicant" file that I uploaded was in Tassadar's Nexus 5 M Preview Factory zip,

but It was compiled against OpenSSL. Sorry:(

"wpa_supplicant v2.5-devel-M

Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.

See README for more details.

This product includes software developed by the OpenSSL Project

for use in the OpenSSL Toolkit"

:crying:

---------- Post added at 04:53 AM ---------- Previous post was at 04:43 AM ----------

Yes! I've found the patch that compiles "wpa_supplicant" with "BoringSSL"!

Save this to "filename.patch" and apply by "git am < filename.patch" (Must set current directory to wpa_supplicant clone folder!).

diff --git a/src/crypto/crypto_openssl.c b/src/crypto/crypto_openssl.c
index 028efc8..b4c59d1 100644
--- a/src/crypto/crypto_openssl.c
+++ b/src/crypto/crypto_openssl.c
@@ -137,7 +130,7 @@ void des_encrypt(const u8 *clear, const u8 *key, u8 *cypher)
}
pkey[i] = next | 1;

-	DES_set_key(&pkey, &ks);
+	DES_set_key((DES_cblock *) &pkey, &ks);
DES_ecb_encrypt((DES_cblock *) clear, (DES_cblock *) cypher, &ks,
DES_ENCRYPT);
}
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index 4436fb8..7335033 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -1217,7 +1224,7 @@ static int tls_match_suffix(X509 *cert, const char *match)

ext = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL);

-	for (i = 0; ext && i < sk_GENERAL_NAME_num(ext); i++) {
+	for (i = 0; ext && i < (int) sk_GENERAL_NAME_num(ext); i++) {
gen = sk_GENERAL_NAME_value(ext, i);
if (gen->type != GEN_DNS)
continue;
@@ -3392,9 +3399,15 @@ unsigned int tls_capabilities(void *tls_ctx)
* commented out unless explicitly needed for EAP-FAST in order to be able to
* build this file with unmodified openssl. */

+#ifdef OPENSSL_IS_BORINGSSL
+static int tls_sess_sec_cb(SSL *s, void *secret, int *secret_len,
+	STACK_OF(SSL_CIPHER) *peer_ciphers,
+	const SSL_CIPHER **cipher, void *arg)
+#else /* OPENSSL_IS_BORINGSSL */
static int tls_sess_sec_cb(SSL *s, void *secret, int *secret_len,
STACK_OF(SSL_CIPHER) *peer_ciphers,
SSL_CIPHER **cipher, void *arg)
+#endif /* OPENSSL_IS_BORINGSSL */
{
struct tls_connection *conn = arg;
int ret;

Code from (Sorry source code owner... I can't post link :( I'll change this after I wrote more than 10 posts ;))
[Nexus 7 Android Development] eagleeyetom:
Thread moved to Android Development :good: Great work!
[Nexus 7 Android Development] anzi2001:
Hey people...a guy made a port working from a nexus 5 image and wifi is working... Cant you port from the nexus 5 image too?
[Nexus 7 Android Development] anzi2001:
Yup true :) not really into rom compiling more into kernel :) can somebody make a zip? Would be greately appreciated :)
[Nexus 7 Android Development] vblego:
https://android.googlesource.com/device/asus/grouper/+/android-m-preview-1

A new preview has come
[Nexus 7 Android Development] Motorhead1991:
As of last night, AOSP android-m-preview-1 is buildable. I woke up this morning and saw that it had finished.

After I include some necessary files that I missed, I'll be sure to report back on the status.
[Nexus 7 Android Development] oasisfeng:
Can't wait that~ :D

Does it base on the rev.2 of M developer preview?
[Nexus 7 Android Development] Motorhead1991:
Google put up 2 branches of the M preview: android-m-preview and android-m-preview-1. I built the latter variant, so I'm hoping that's preview 2 :)
[Nexus 7 Android Development] Motorhead1991:
It's built but I haven't installed it yet. Will report tonight.
[Nexus 7 Android Development] Motorhead1991:
Ignore this, XDA or I goofed :D
[Nexus 7 Android Development] Motorhead1991:
Depending on your distribution, you may need to enable the legacy cod stuff to install Make 3.81. I have mine set up via update-alternatives since Debian 8 ships with 4.0

Also, I installed the preview build. The kernel locks up so I can't get any diagnostic feedback from it.
[Nexus 7 Android Development] TheLoonyRebel:
In case you missed the news preview 3 of what's now known as Marshmallow just hit the current Nexus devices. Hopefully this will be easier to port from the SDK than preview 2 is.
[Nexus 7 Android Development] Motorhead1991:
I'm strange and prefer source built, but go ahead and port it :D.
[Nexus 7 Android Development] TheLoonyRebel:
Nothing as of right now. Honestly we probably won't see any AOSP source or source from Google until Marshmallow goes final.
[Nexus 7 Android Development] Motorhead1991:
I keep all of that up to date on my Debian distro. I'll check which java I'm using but I know it's OpenJDK of some sort
[Nexus 7 Android Development] Motorhead1991:
I'll have to sync P3 until the full source drops.

Anyways, you shouldn't need to use sudo unless your user doesn't have access to java
[Nexus 7 Android Development] everesee:
Any news from new build?
[Nexus 7 Android Development] Motorhead1991:
I keep getting build errors, but they may have fixed that in the last 2 days.
[Nexus 7 Android Development] dolorespark:
FYI...

I maintain an AOSP ROM for another Tegra3 tablet (a Hisense Sero 7 Pro), and have had a build of M-Preview-2 up and running for a week now - including the "incompatible" stuff like GPS. Unless you're like me and need to get a headstart on adapting your existing code to Marshmallow, you have ZERO reason to build this turkey.

First and foremost, this repo has absolutely none of the new M features: no multi-window, no install-to-SDcard, no nuthin'!

Next, this repo may be the worst POS Google has ever released. They clearly didn't try building it before release because it won't build as-is. Two of the projects it needs are simply missing and had to be pulled from the Master branch, Further, none of the host files generated by lex or yacc will compile because of conflicting flags on the command line - it took a hack to the build system to get around this. The thing is a mess...

Finally, there are the compatibility issues. If you've been hacking for a while, getting around them should only be a minor challenge. Otherwise, it will prove yet another unnecessary frustration. On the whole, M-Preview-2 is a waste of time.

BTW... this is a "tag", not a "branch" so it can't/won't be updated. If there's a pre-release update, it will be M-Preview-3.
[Nexus 7 Android Development] TheLoonyRebel:
That's a good sign if stuff like GPS is working on the Sero 7 Pro with the current Marshmallow preview. :D
[Nexus 7 Android Development] Dadud:
seeing as the official 6.0 code is making its way to AOSP, anyone feel like playing around with it some more? i would but i have no experience doing anything other than bug-finding.
[Nexus 7 Android Development] Motorhead1991:
Already in the process of syncing :D
[Nexus 7 Android Development] canodroid15:
[MENTION=4725374]Motorhead1991[/MENTION] is a BOSS! ??
[Nexus 7 Android Development] phoenix08:
Eagerly waiting for that.

---------- Post added at 10:26 AM ---------- Previous post was at 10:25 AM ----------

Eagerly waiting for that.
[Nexus 7 Android Development] adeelraj:
Kernel will be from lollipop I think
[Nexus 7 Android Development] Motorhead1991:
That's correct, however there aren't many changes between L and M. The sepolicy is Alot more strict though
[Nexus 7 Android Development] Promez:
Here we go! :D
[Nexus 7 Android Development] Moscha:
A really clean vanilla AOSP 6.0 for the good old Nexus 7 2012 would be really fine! :good::good::good:
[Nexus 7 Android Development] adeelraj:
It really matters if performance improves with new M or L will be fine.
[Nexus 7 Android Development] Motorhead1991:
I have good news and bad news (mostly good):

1. The kernel needs updated -

The supported sepolicy in the stock kernel is too low, so we need to update that or finish bringing up Linux 3.4 so we chan cherry-pick from the other Nexus devices. To get around this, I used the ramdisk from Lollipop with some tweaks.​

2. Surfaceflinger is being super dumb -

Normally, it checks 4 different places for graphics libraries, but currently it's stopping at the rootfs (don't ask me why). I managed to bypass this with some good old fashined hacking, but it's not a release worthy method.​

3. Zygote is caught in a loop -

After forcing EGL to load, I noticed that zygote is caught in a loop. When this happens, the device hangs on the boot animation indefinitely.​

That being said:

We are almost there :D
[Nexus 7 Android Development] Promez:
Nice job man! :good:
[Nexus 7 Android Development] Dadud:
theres someone that managed to get a build working on the nexus 4. https://www.reddit.com/r/Android/comments/3nyi1a/android_marshmallow_60_on_nexus_4/
[Nexus 7 Android Development] dolorespark:
I've had MM booting up on a different Tegra3 tablet for a few days (screenshot). Here's a couple of suggestions to get you going:

Does your 'init.grouper.rc' still contain an entry for "service sdcard"? If so, delete it - it's no longer used and terminates immediately, causing init to keep restarting it. Also, comment out "service gps-daemon" - it can't be loaded due to a missing symbol, so it too goes into a crash/restart loop. Fixing these got me booting to the home screen

Using a Lollipop boot.img - tweaked or not - could be causing other problems. In any case, the sepolicy issue is easy to work around.

The MM policydb version is set to 30 while the 3.1 kernel only supports up to v26. The only newer feature that MM uses is the ability to allow/disallow specific ioctls (BFD). Remove those rules and you can roll the policydb version back to 26. Here's how:

* open 'external/sepolicy/Android.mk' - at the top of the file, change "POLICYVERS ?= 30" to "POLICYVERS ?= 26"

* edit 'external/sepolicy/ioctl_macros' - comment-out all the lines

within

the macro (i.e. between the braces), then insert a line in the macro with the word "ioctl" - this will allow all ioctls, the same as in Lollipop

Before you rebuild, you may want to delete 'out/[whatever]/[whatever]/grouper/obj/etc/sepolicy-intermediates' to ensure that 'sepolicy' gets recreated.
[Nexus 7 Android Development] GtrCraft:
Sadly we still get a zygorde segfault error
[Nexus 7 Android Development] Motorhead1991:
Any tips for surfaceflinger? It's not release ready if rootfs is insecure.

EDIT:

Thanks to [MENTION=5094650]dolorespark[/MENTION], I got it booted up. Unfortunately the surfaceflinger bug and the hack I used to fix it keeps it from release.
[Nexus 7 Android Development] TenchiMasaki:
What exactly did you do to fix surfaceflinger problem? I am also trying to port to a tegra2 device having same issue.
[Nexus 7 Android Development] Motorhead1991:
I removed the read only restriction from the rootfs (from init.rc) and symlinked the graphics libraries from /system/lib/egl/ to /egl/
[Nexus 7 Android Development] dolorespark:
I didn't have any problem with this at all, so I can't offer any specifics. However, I do have a strong recommendation:

Skip the 3.4 kernel until you have everything buttoned down. If it

seems

stable, that may only be because the obvious bugs that affect LP have been dealt with - there are probably plenty more waiting to bite you. Instead, use a known-stable build of 3.1 - maybe even stock. At this point you need reliability more than anything.

Now that you're booting, have you tested to see what works (or doesn't)? On mine (reminder: not a Nexus 7), I have SuperSU and a minimal Gapps installed, and I'm running in SELinux enforcing mode - but that's small comfort because I have no audio, camera, bluetooth, or external storage. You may be luckier than I but regardless, it's gonna be a long time before any Tegra3-based device is fully functional.
[Nexus 7 Android Development] Motorhead1991:
The Grouper is only slightly ahead then, because I do have audio, Bluetooth turns on but needs further testing, OTG is untested, and I haven't found a GAPPS package that works (Tried both of Slim's already)
[Nexus 7 Android Development] canodroid15:
Check this post out to get 6.0 gapps running

http://xdaforums.com/showthread.php?p=63226314
[Nexus 7 Android Development] Motorhead1991:
Potentially. If I do, it'll be with the 3.1 kernel, as 3.4 isn't quite ready yet.

dmtry filled me in as to what's going on, so I may be able to work something there as well.
[Nexus 7 Android Development] Startrek852:
[MENTION=5924703]500 Internal Server Error[/MENTION] Now that the Android N Preview is out, are you going to port it over?
[Xperia Z1 Q&A, Help & Troubleshooting] Ralfregala:
* sorry for my bad english :)

I recently updated my sony xperia z1 to lollipop 5.0.2 .

ican't find how to root it .

iwant to get back my stock kitkat so i can root it.

does anyone knows how to root lollipop on my phone?
[Xperia Z1 Q&A, Help & Troubleshooting] kathanpatel1001:
Flash. 108 ftf of your z1 via flashtool

Root and install recovery

Download. 270 ftf for your z1

Download prf creater

Make signed flashable zip of ftf with supersu zip and dual recovery flashable zip

Wipe everything and flash. Zip that you just created

Done...!!
[Xperia Z1 Q&A, Help & Troubleshooting] Ralfregala:
do ineed to unlock bootloader?

could you please send me a link of .108 ftf file

MODEL: C6903
[Xperia Z1 Q&A, Help & Troubleshooting] demon148:
no you do not need a unlocked bootloader.

You will find the 108 file here

http://xdaforums.com/showthread.php?t=2469191
[Wing, P4350 Herald Upgrading] xsign:
Device: HTC 4350 - Shipped with original WM6 ROM. O² XDA Terra

Use a registry editor to change the following values (or just download the ExtendedROM_HTC4350.reg.zip and run the .reg file from your device):

[HKLM\System\StorageManager\Profiles\TRUEFFS_DOC1]
"DefaultFileSystem"="FATFS"
"Folder"="Extended_ROM"
"MountHidden"=dword:00000000
"Name"=""
"PartitionDriver"=""

[HKLM\System\StorageManager\AutoLoad\TRUEFFS_DOC1]
"Bootphase"=dword:00000002
"DriverPath"="Drivers\BuiltIn\TrueFFS1"
"LoadFlags"=dword:00000001
"Order"=dword:00000001

Make a softreset and after that you should see a folder named "Extended_ROM2" in the root.

I have attached my ExtRom for you developer guys.

Filelisting:

ChgScutAttri.exe
Config.txt
DRM_061130_070209_DoubleGetFix.cab
MP_CVSDcpl_20060920.cab
MP_MMS3.5_O2DE_Herald_070306.CAB
o2_ComCenterPocketPC.CAB
O2_DE_defaultpage.CAB
o2_today_Plugin.CAB
O2DE_comcenter.CAB
omap850_sdhc_0404.CAB
PP_ExtVer.xml
PP_Suspend_Resume_Null.xml
PP_theme_color.xml
remove_proxy_workaround.CAB

PS: Moderator, pls add to wiki etc.
[Wing, P4350 Herald Upgrading] Monarch73:
I tried to expose the "Extended_Rom"-Folder on my P4350 (de, eplus,WM5) the way you discribed but no luck. The values I modified with regedit are gone right after soft-reset.

Any hints on that?
[Wing, P4350 Herald Upgrading] xsign:
Please pay attention:

This is for Windows Mobile 6!

But i remember having the problem with the registry switching back on softreset (MDA Compact 2), but i can't remember how i solved it :( Sry mate...

Probably somebody else has a hint on that...
[Wing, P4350 Herald Upgrading] papamopps:
Sorry to mention: But with awizard you can dump the extended_rom also. And with total commander you can see the extended_rom without any reghack - and then you just have to copy the files to sd card.

Becuse you might get problems with camera application. Perhaps you can only choose "main" or "extrom" tehre might be no sd card - that was the problem for wizard when unlocking extended_rom

I would use totalcommander

And btw - the extended_rom is posted in Terra-dump thread.

lol
[Wing, P4350 Herald Upgrading] xsign:
Well sry, but i'm using total commander, and there was no ExtROM already mounted. So i had to regedit. And can you gimme the link to the terra dump thread?
[Wing, P4350 Herald Upgrading] papamopps:
Sorry - i only had to use totalcommander and it worked.

Try this one.

http://xdaforums.com/showpost.php?p=1250998&postcount=9
[Wing, P4350 Herald Upgrading] xsign:
LOL? i was searching this rom since 2 days... tried to get it out of my terra, but didn't worked yet. lool n1 - THX
[Wing, P4350 Herald Upgrading] papamopps:
I did it once with awizard = it is 57MB

and with pdocread = it is 62MB

because the end adress is another on awizard than with pdocread.

lol

BUT be careful!!!

Hehe.

You can dump this rom perfect in anichillus Corekitchen. I modified it - BUT i forgot to reconvert the rgu to hv - that bricked my device.

But it works.
[Wing, P4350 Herald Upgrading] xsign:
just to clear this a bit more into details... what do you mean by bricked ? completely burned, or just the rom got messed up? another question: is the bootloader part of the ROM or stored in another part of the device?

Today i tried to mount the IMGFS and it worked as i removed the whole htc anti spy dll, but it was only accessible over the usb/active sync connection and as of windows locks, some files couldn't be copied :/ pretty sad, seemed to be a easy way to get stuff out of the rom... 90% were copyable... the rest not :/