yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Q&A, Help & Troubleshooting] katakis1:
I know, I should have a backup, I'm an idiot. I manually deleted the Google App planning to just reinstall it with the store version so I could hibernate it with Greenify.

I reinstalled it and everything except Hotword detection from any screen works.

I still have a backup of the system files, but I don't know how to properly reinstall them.

Here's the files I backed up:

com.google.android.googlequicksearchbox.apk

com.google.android.googlequicksearchbox.odex

com.google.android.googlequicksearchbox.zip

extra_secondary_data.zip

info.txt
[Galaxy Tab S2 Q&A, Help & Troubleshooting] katakis1:
I've just done a factory reset, and the Google App was gone after resetting. This leads me to believe that the necessary files Android uses to restore Apps have been deleted.

General question: Where are these files stored and what do they look like? Would it be possible to manually move the necessary files back there (I still have the backups) and do another factory reset so they properly reinstall?

Could anyone with a Tab S2 maybe look for the necessary files and where they are located in the /system folder and maybe reupload them for me so I can place them back where they belong?

Help would be much appreciated.
[Galaxy Tab S2 Q&A, Help & Troubleshooting] halloarno:
Try copy them to a self named map in /system/app

Give proper permission and reboot
[Galaxy Tab S2 Q&A, Help & Troubleshooting] katakis1:
Thanks a lot for your help. Apparently I have lost my backup files. Do you or does anybody else have the correct files so I can put them back into the system folder? I'm so close to getting this thing to work.
[Galaxy Tab S2 Q&A, Help & Troubleshooting] katakis1:
In case anyone ever encounters a similar problem, I fixed it by downloading the stock-ROM from sammobile.com (you have to register to download but it's worth it) and flashing the md5 with ODIN (tried Flashify before, but somehow that didn't work).

Just follow this tutorial but use your stock ROM from Sammobile instead. http://www.theandroidsoul.com/samsung-galaxy-tab-s2-root-sm-t810-sm-t710-sm-t715-84217/

You'll lose root access but I guess you could just redo the tutorial with the autoroot file and you should be back to normal.

Thanks for your help everybody!
[Android Software/Hacking General [Developers Only]] zpimp:
if you really want perl for android, get the tar.gz from here http://corion.net/perl-andr-oid/

it seems to be the full perl distribution, but you can just grab the binary, that alone is more than enough for most

you have to manually extract the binary, copy it to /system/xbin and chmod 755

im on 5.1.1 and used twrp to copy

after you extract the tar the binary is /perl/bin/perl5.22

i dont know how to make a flashable zip

the only other working perl binaries for android, that i know of, were 5.20 from sl4a (wich i believe was posted here before as a flashable zip), one from zshaolin, and 5.7 from tinyutils

5.20 doesent work on android>5 cause of pie (position independent executables) security enforcement

5.7 works but its too old, from the year 2000

this one works on android>5 and is twice as fast as 5.7 (on my samsung galaxy s5 g901f at calculating prime numbers smaller than 100,000)
[Android Software/Hacking General [Developers Only]] eternalMortality:
404

The link is down. I _need_ perl, and sl4a doesn't work on my new phone. Why can we get every language but perl on android? It lines up with the way I think, and it excels at parsing text. If anybody knows how to help get perl onto a late model Samsung. Please help!
[Android Software/Hacking General [Developers Only]] zpimp:
http://www.2shared.com/file/fozbcZVV/aclp.html

click the smaller "download" button, wich is lower

this is a flashable zip made for my own usage,

it includes perl 5.22, curl, lua, aria2c, gnu grep, gnu sed, gnu awk

if you use any command line programs like these, on android please post them, i am interested

cheers
[Android Software/Hacking General [Developers Only]] ze7zez:
Link works if you type correctly.

http://corion.net/perl-android/
[Android Software/Hacking General [Developers Only]] eternalMortality:
I really appreciate the zip, but I am having difficulties importing anything. The documentation says I have to recompile perl to change [MENTION=328088]Inc[/MENTION] so it points to a directory that exists. But that's a little beyond my abilities. Can someone please help with this?
[Android Software/Hacking General [Developers Only]] m1m1k:
Termux - Android terminal w/Perl (no root required)

There is an app called Termux which now seems to have perl working on it...

termux.com

perlmonks.org /?node_id=1211709

Once installed - I found these to be helpful (

pkg install perl
pkg install make
pkg install clang
pkg install curl
pkg install wget
pkg install lftp
pkg upgrade

termux-setup-storage
cpan

cpan install HTTP::TINY
cpan install (your other perl reference libraries here)
[Nexus 6 Q&A, Help & Troubleshooting] phillybizzle:
I cannot successfully make a backup for some reason. This is the first time I have ever had an issue trying to make a nandroid. Running the current Pure Nexus ROM.
[Nexus 6 Q&A, Help & Troubleshooting] StykerB:
Things I'd check:

- try separate partitions in different backups

- if using OTG try not doing so or vice versa

- try with/without compression

- enable/disable MD5 check

- if on twrp 3.0.0 try 2.8.7 or vice versa
[Nexus 6 Q&A, Help & Troubleshooting] dahawthorne:
Which TWRP? Is it the new v3.0? It works fine on my encrypted N6.
[Nexus 6 Q&A, Help & Troubleshooting] mikeprius:
If you can't make a nandroid, reboot the phone then reboot into TWRP and try again. TWRP (not the 3.0), but prior versions have stalled or frozen on me making nandroids and restoring. It happens occasionally, you just have to re-start TWRP again.
[Sony Xperia M4 Aqua] CarDGee:
The lack of custom roms for our device is depressing, there aren't enough developers for the M4 aqua and while some have moved on to other devices, others don't share their REAL sources and fixes. So what i propose is that we all join forces and do it ourselves, the more people the better it brings different points of view and consequently faster fixes, so for those that are interested here are the prerequisites:

1. A computer

2. A linux distro (most guides will advice you to go for ubuntu or a buntu based distro personally its not my cup of tea, i use gentoo but linux is about choice you choose what suits you. Also if you want to keep your windows you can either dual boot(recommended) or just use a virtual machine which depending on specs it can be slloooww).

3. A starting point (most people don't even try to compile android because they wont even know where to start from, thankfully sony isn't as bad as others and even provides detailed information on how to compile android for their devices, so i suggest to start here http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/ )

4. Time (compiling times can take very looonnnggg)

5. Patience ( yeah a hell lotta of it)

Still interested?

We can use this thread to post compiling errors , bugs, errors and any android developing related questions, if instead of aosp you want to jump straight to cyanogenmod the instructions are very similar just replace "repo init -u https://android.googlesource.com/platform/manifest -b android-6.0.1_r10" with "repo init -u git://github.com/CyanogenMod/android.git -b cm-13.0" xda also has some very useful threads we can use here are a few:

1. Compiling roms:

CM - http://xdaforums.com/showthread.php?t=2060017

PAC - http://xdaforums.com/showthread.php?t=2662325

2. Debug

Create logs - http://xdaforums.com/showthread.php?t=2185929

Understand them - http://xdaforums.com/showthread.php?t=2274119

Every great dev had to start at some point this might be start of some great devs (we need them), so lets start compiling and bring the marshmallow to the tulip!!!
[Sony Xperia M4 Aqua] ardentis:
We have a few custom roms that just need bug fixes. We will get better as time goes on. And would we see a rom of yours anytime soon?
[Sony Xperia M4 Aqua] dani020110:
I don't find the m4 binaries in this page http://developer.sonymobile.com/knowledge-base/open-source/open-devices/list-of-devices-and-resources/
[Sony Xperia M4 Aqua] alby_var:
Hello guys, as much of you know, I tried so many times to compile roms for our device, but never had success. My device for now enter in a "bricked fastboot" mode, and in flashmode Flashtool say that the device have debugging off. Totally bricked. But, I will never give up with my work for this device. I will make roms for you guys and for my experience, also if I cannot test. So, I installed Ubuntu in my PC, I am syncing the sources and this time I will try very hard! Thanks CarDGee for your post, it will be helpful for errors.
[Sony Xperia M4 Aqua] jefins:
So, what would be our requirements knowledge wise? What programming language base, etc?
[Sony Xperia M4 Aqua] alby_var:
Any kind of knowledge of programming language can be useful, but is not needed.
[Sony Xperia M4 Aqua] ardentis:
I think at this point it would be smart to collaborate on a custom rom (probably CM 12.1 because it is closest to stable) so we have a base to develop more roms.
[Sony Xperia M4 Aqua] alby_var:
For now I'm working to build AOSP 5.0
[Sony Xperia M4 Aqua] jtg01:
I followed the instructions to build AOSP at developer.sonymobile.com

At point 4. it say

Now i have downloaded the binaries for the M2. It have the Kanuti and Tulip folder inside.

Can i use it for build or do i have to extract the files from the device?

Second question is. I can remove other devices from local_manifests.xml right?
[Sony Xperia M4 Aqua] alby_var:
You can also use GitHub sources and put them into android sources with git clone, with this method also if you edit files, you'll not have problems with repo sync.
[Sony Xperia M4 Aqua] CarDGee:
[MENTION=6548273]dani020110[/MENTION] download the Z5 ones inside the zip you will have kanuti and tulip folders as well.

[MENTION=6907849]alby_var[/MENTION] what do you mean "bricked fastboot" is it constantly with blue led on? have you tried holding powerbutton + vol up until it vibrates 3 times?

[MENTION=1611924]jefins[/MENTION] although its a plus to know C java etc.. its not a requirement i am a strong believer that you learn by doing it.

[MENTION=7271291]jtg01[/MENTION] yes use the ones from the zip also take a look at this repo https://github.com/SonyAosp you can find the binaries there under platform_vendor_sony and platform_vendor_qcom.

Now i regret not having done one of those "Reserved" on the second post.....
[Sony Xperia M4 Aqua] alby_var:
The device , on a pc without drivers is recognized as qhsusb_bulk. It is recoverable, but any tool doesn't recognize the smartphone.

On a pc with all drivers it is recognized sometimes as SOMC FLASH DEVICE, other times in SEMC FLASH DEVICE. Also this is recoverable, but Flashtool says that the device have debugging mode off. (I cannot boot to the rom to activate it.)

And the only led that the device show is red, it bright up 3 times only when the battery is at 0%
[Sony Xperia M4 Aqua] manosper:
Do you have the correct flash and adb drivers on your pc? My second phone is a xperia E4.i had the same problem with SEMC and SOMC.i thought that it was bricked but the problem solved when i installed adb and flash drivers from the flashtool drivers file.
[Sony Xperia M4 Aqua] alby_var:
I installed all drivers that is on the Flashtool Folder trought the exe, but Flashtool not start flashing...
[Sony Xperia M4 Aqua] jtg01:
So i compiled the sources and got a system.img and a userdata.img in out/target/product/generic ?

I think there have to be a boot.img. Do i have to compile the kernel as well? Cause instructions on sony developer say the repos contain a precompiled kernel.

[MENTION=6907849]alby_var[/MENTION]: which version of flashtool do you use? Had also problems to flash firmware on newest version. So i installed Flashtool Version 0.9.19.7. With that it worked fine.
[Sony Xperia M4 Aqua] CarDGee:
[MENTION=6907849]alby_var[/MENTION] try the linux version of flashtool

[MENTION=7271291]jtg01[/MENTION] there must be something wrong because it should be out/target/product/e2303 or out/target/product/tulip did you choose our device after source build/envsetup.sh && lunch? because i believe you just compiled generic android.
[Sony Xperia M4 Aqua] RohitBopnna:
Compiled android 6 for 2303, attached the Make log Below. (Pure Sony AOSP)

yet to flash the images and check.

made a small change, the userdata.img is for 16GB as i have a M4 Aqua Dual (E2363) the device should be able to boot up, will add logcat when i have it.

Lots of warnings but was able to make successfully

open the log in notepad++

Edit: First attempt to boot, loops at Sony logo.

will make fresh and check again
[Sony Xperia M4 Aqua] jtg01:
Yeah there was a problem. Now it compiled all img's . But userdata.img has only 70 Mb. System is 900 Mb.

Should i flash this?

Edit:

Flashed it got bootloop. Can't take a logcat cause it restart at Sony logo.

But i get a kernel_boot_log. There are multible errors. Maybe someone can help me with that.
[Sony Xperia M4 Aqua] alby_var:
Guys I not know how to adapt device sources to the rom for that I am building.. Can anyone please help me?
[Sony Xperia M4 Aqua] CarDGee:
[MENTION=5894049]RohitBopnna[/MENTION] and [MENTION=7271291]jtg01[/MENTION] for some strange reason newest firmware doesnt allow you to flash custom firmware you will have to downgrade to .128 and then flash your roms i am sure it will boot, follow the instructions on Jeffreyvh aosp thread http://xdaforums.com/m4-aqua/development/aosp-6-0-e2303-t3271380

[MENTION=6907849]alby_var[/MENTION] I think you should start by compiling something we already have the sources see how it goes, and then move on
[Sony Xperia M4 Aqua] stormz94:
hopefully we will have some nice and stable rom anytime soon,i see worst devices then ours have solid and stable roms and i envy them :/
[Sony Xperia M4 Aqua] nrokos:
Don't worry mate. It takes time to create a decent ROM. ;)
[Sony Xperia M4 Aqua] PiSpecialist:
compliled aosp MM tried flashing it with the firmware .128 and no success, keep rebooting in sony logo.
[Sony Xperia M4 Aqua] jtg01:
Me too. I think we have to wait that they officially support our phone in that AOSP programm. Or maybe some dev with skills will fix that.

I don't have the knowledge to debug this. Postet a dmesg log some post's ago.. Maybe someone can help me to unsterstand what is the problem.
[Sony Xperia M4 Aqua] PiSpecialist:
Yes, but i dont know why the AOSP compiled by [MENTION=5074768]jeffreyvh[/MENTION] boot with the firm .128 and the image we compiled with the same procedure wont, maybe [MENTION=5074768]jeffreyvh[/MENTION] can help.
[Sony Xperia M4 Aqua] RohitBopnna:
it was booting for me even with the latest firmware, but then Sony change the structure on Git Hub, moving all common functions to a common folder (device-sony-common), since then its not booting, looking like there are stuff that needs to cleaned from the files, after the restructuring of the files and renaming of the .mk files (like device.mk file is renamed to PlatformConfig.mk under Kanuti, also the system.prop file is missing , that means it gets created every time the kernel is compiled.) lots of changes..
[Sony Xperia M4 Aqua] Deathmake:
Hmm i dont know why sony not support m4...

Wysłane z mojego E2303 przy użyciu Tapatalka
[Sony Xperia M4 Aqua] jtg01:
If i had more money, i would hire a chinese dev to get a working cm rom :p
[Sony Xperia M4 Aqua] jeffreyvh:
We've found out that it also works when you only flash boot_delivery of the old 128.

This worked great for my testers ;)

If anyone wants to help me with AOSP, pm me :D

Or, WhatsApp/Telegram me :)
[Sony Xperia M4 Aqua] jtg01:
Anyone tried to compile again?
[Sony Xperia M4 Aqua] yash989:
Not cm but made stock based rom soon uploading
[Sony Xperia M4 Aqua] dani020110:
Yesterday I tried to compile, but gave me a lot of warnings and an error that stopped the compiling after 1 hour

I was trying with 6.0.1_r13 but I think it isn't the problem

In a while I post the error
[Sony Xperia M4 Aqua] vinay:
What was the error?

can someone test this kernel on firmware 26.1.B.2.102 of E2363

https://drive.google.com/file/d/0B4lUzIMpz_q5TkxKbzRKdHF4Ync/view?usp=sharing

this kernel crashes right after boot animation on my e2363 26.1.B.3.109.

sony have not released kernel source for this firmware.. and i don,t have ftf of old firmware..

i just want to know if it,s crashing due to newer firmware or i,ve done something wrong..

this kernel is same as stock tho,,
[Sony Xperia M4 Aqua] dani020110:
hardware/qcom/wlan/qcwcn/wcnss-service/wcnss_service.c: In function 'main':
hardware/qcom/wlan/qcwcn/wcnss-service/wcnss_service.c:557:3: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
ALOGE("Failed to open wcnss device : %s",
^
cc1: some warnings being treated as errors
build/core/binary.mk:801: recipe for target 'out/target/product/tulip/obj/EXECUTABLES/wcnss_service_intermediates/wcnss_service.o' failed
make: *** [out/target/product/tulip/obj/EXECUTABLES/wcnss_service_intermediates/wcnss_service.o] Error 1
make: *** Se espera a que terminen otras tareas....

#### make failed to build some targets (01:06:42 (hh:mm:ss)) ####

daniel@Inspiron-1525:~/android$
[Sony Xperia M4 Aqua] PiSpecialist:
Delete wcnss folder from your build folder then Download it from Google source and put it manually. This solved the error.

Enviado desde mi E2303 mediante Tapatalk
[Sony Xperia M4 Aqua] dani020110:
I thought that worked but I got the same error :(

Anyway thanks...
[Sony Xperia M4 Aqua] vinay:
can you upload your source code to github..

and i think this is caused by -Werror flag..

i think they are in android.mk files..
[Sony Xperia M4 Aqua] dani020110:
My source code is purely the same as the Sony's and I followed the aosp marshmallow instructions

I didn't do any change

Later I'm going to check that, now I have many things to do hehe [emoji1]
[Sony Xperia M4 Aqua] dani020110:
[MENTION=5494317]vinay[/MENTION]

I just disabled wcnss_service and it worked; my build should finish this afternoon and if it is sucessfully, I upload the imgs, for your testing because actually I don't have the device ;)
[Sony Xperia M4 Aqua] Deathmake:
[MENTION=6548273]dani020110[/MENTION] What Rom do You made? 5.0 or 6.0?

Wysłane z mojego E2303 przy użyciu Tapatalka
[Sony Xperia M4 Aqua] dani020110:
6.0
[Sony Xperia M4 Aqua] Deathmake:
I wait for this.. You include adotable sd Card?

Wysłane z mojego E2303 przy użyciu Tapatalka
[Sony Xperia M4 Aqua] dani020110:
I don't even know if this will boot, but later I'm going to work with the bootable rom sources of [MENTION=5074768]jeffreyvh[/MENTION] to see if I can get something working :D
[Sony Xperia M4 Aqua] vinay:
I can't test any rom,s actually.. This is my daily drive phone...

That's why I am not working on any roms either...

BTW if you guys wait till official Mashmellow release.. Then you can just pull lib,s and stuff to get aosp Mashmellow fully stable..

Right now.. Best choice would be to develop an aosp 5.x/cynogenmod 12.x or any lollipop rom..
[Sony Xperia M4 Aqua] ardentis:
I am willing to test as long as it can work on the E2306
[Sony Xperia M4 Aqua] PiSpecialist:
Don't lose your time, aosp 6.0 never boot... Until Sony release the code....it's a kernel issue...

Enviado desde mi E2303 mediante Tapatalk
[Sony Xperia M4 Aqua] dani020110:
Ok

Already downloading the lollipop sources.
[Sony Xperia M4 Aqua] ardentis:
Have you built it? Jeffrey built AOSP 6.0 back in January and it booted. Bugs just need to be fixed and it should be good
[Sony Xperia M4 Aqua] PiSpecialist:
Since Sony merged the kanuti plataform from commun source no build booted yet. Keep rebooting at Sony logo...

Enviado desde mi E2303 mediante Tapatalk
[Sony Xperia M4 Aqua] RohitBopnna:
agreed, I have a build from December that boots perfectly but need a lot to be fixed like RIL and bluetooth etc, but the latest AOSP build with 6.0.1 R17, have not figured how to make it boot past the sony logo. (I have a dual sim e2363 phone).
[Sony Xperia M4 Aqua] alby_var:
Is anything working on some cm-based roms like Resurrection Remix or SlimLp? Soon i will restart to compile
[Sony Xperia M4 Aqua] jeffreyvh:
Help wanted

I don't know whether this is a good way to ask it. But I can get a new screen for 50€. I can replace the screen myself, but actually I don't have 50€.

Can anyone help me with this, or anything else. Feel free to WhatsApp me @ +31642056201

Have a good day,

Cheers :)
[Sony Xperia M4 Aqua] itsmeash:
Getting error -Werror=implicit-function-declaration and for wcnss_service

I am working AOSP ROM compilation for Sony Xperia Device M4 Aqua.

I am getting two errors, details are

[IMG="Screen Shot2 : implicit-function-declaration Error"]https://mail.google.com/mail/u/0/?ui=2&ik=53554be088&view=att&th=153c7c30349fd943&attid=0.2&disp=safe&realattid=f_imewhuew0&zw[/IMG]

[IMG="ScreenShot1: wcnss_service Error"]https://mail.google.com/mail/u/0/?ui=2&ik=53554be088&view=att&th=153e03b5d30890f5&attid=0.1&disp=safe&realattid=f_imloyyrl0&zw[/IMG]
[Sony Xperia M4 Aqua] itsmeash:
How to disable the wcnss_service in android.mk file.

Thanks in advance.
[Sony Xperia M4 Aqua] RohitBopnna:
delete the blobs (just remove the wcnss-service folder), sony has this already implemented in the Sony Proprietary files
[Sony Xperia M4 Aqua] itsmeash:
Thanks,

I have removed wcnss-service folder, now started compiling. I think it should work.
[Sony Xperia M4 Aqua] dani020110:
I had got the same error,

What I did was rename or delete the wcnss_service binary located in vendor/sony/kanuti/proprietary/vendor/bin that worked for me...

I think you already have fixed that but anyway...
[Sony Xperia M4 Aqua] RohitBopnna:
with the new binary and 6.0.1_r24, make is successful, but after flashing the images, the phone turns on and immediately turns off. what could be going wrong.

not able to get any logs
[Sony Xperia M4 Aqua] cr3pt:
Make logcat not makelog...

Wysłane z mojego A0001 przy użyciu Tapatalka
[Sony Xperia M4 Aqua] RohitBopnna:
Sorry I understand, but the phone turns off immediately.
[Sony Xperia M4 Aqua] cr3pt:
So it's kernel fail.

Wysłane z mojego A0001 przy użyciu Tapatalka
[Sony Xperia M4 Aqua] RohitBopnna:
thank you, did some research and realized the kernel file image.gz-dtb file need to have a gzip module implemented in the bootloader to uncompress the kernel. So its either wait for Sony to come up with the new boot loader or for now use the old kernel image to build the boot image,
[Sony Xperia M4 Aqua] vinay:
See in make menuconfig if you can disable commpressed kernel.. Or maby u can find uncompressed "image" in boot folder..
[Sony Xperia M4 Aqua] dani020110:
Nevermind, deleted
[Sony Xperia M4 Aqua] wackygoose:
I will be happy testing whatever u guys have for me to flash, jut got a brand new, E2363 Build 26.1.B.3.109
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Hello,

I decided to "attempt" compiling a kernel for our device... but then this:

...happened while compiling and therefore stopping the compilation. Google did no good here unfortunately. Anyone got any idea what happened? I'm still new to this kernel compilation.

This were the commands I used before the compiling :

(Also, am I using the right _defconfig?)

Any help will be very much appreciated
[Sony Xperia M4 Aqua] dani020110:
Which kernel? Kernel-copyleft right?

You may want to follow the guides in xperia developer world to build the kernel
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Well, I followed different guides, this time I tried with the tutorial from the sony developers site annnnnnnnnndddd still the same thing.. but I went checking for the file if it really exists or not in the sound folder of the copyleft source, and it exists! Idk what I'm doing wrong :silly: Anyway thanks for the response

EDIT: I tried compiling a kernel for my old device, the Xperia J, and it worked kind of flawlessly. At the very least it got to finish the compilation of the kernel. The question now is how do I tackle that sforce.h file thingy? Anyone got any idea?