[ROM][7.0] Test Build of 7.0 - Xperia Z4 Tablet Android Development

***CHECK LATEST POSTS FOR 7.1 BUILD BY kuroneko007***
Hey guys,
i recently got my z4 back and decided to make a 7.0 rom for it so here it is.
**THIS IS JUST THE BASE BUILD WITHOUT ANY APPS, I WILL MAKE A REAL USABLE ROM WITH NEEDED APPS ONCE SONY RELEASES REAL 7.0 FILES AND STUFF WORKS A BIT BETTER**
BUGS:
a lot xD (still had to use sony stuff for the 6.0 because they havent put out files for 7.0 yet, will include in new build when they give us the files) camera is reversed but now at least focuses, radio still does not work but there is app now at least, most likely other **** too.
WHAT WORKS:
i tried wifi and it works, sensors seem to work, sound works, system is nice and smooth without lag, maybe other stuff i haven't tested. gapps works.
HOW TO INSTALL:
flash the 3 .img files with fastboot
(you should know how to but here is how i did it)
sudo fastboot flash system system.img
sudo fastboot flash userdata userdata.img
sudo fastboot flash boot boot.img
FLASH ZIP FILES:
*USE PICO GAPPS*
fastboot flash androplus boot.img and recovery img -> boot straight into recovery and install zips -> power off -> fastboot flash my boot.img and boot normally
download for files and pics: https://www.dropbox.com/sh/odlsn1jxqyw7eo9/AADgWA-sRS21OGGfXj_ZUvtza?dl=0
another download link because dropbox seems to die a lot: https://drive.google.com/drive/folders/0BwtAheY-FvZCdldmSE1mRVdVMm8?usp=sharing
**WARNING** I advise that you charge the tablet before it fully drains the battery as it behaves a bit weirdly when charging with power off and can be hard to get it to turn back on.

Hi did you tried it with open gapps? Is it stable with that?

alex009988 said:
Hi did you tried it with open gapps? Is it stable with that?
Click to expand...
Click to collapse
not yet, its 1 am here i must get some sleep xD i will try tomorrow but i see no reason why it would not work.
Sent from my Huawei Nexus 6P using XDA Labs

alex009988 said:
Hi did you tried it with open gapps? Is it stable with that?
Click to expand...
Click to collapse
Gapps works without crashing and so do installed apps, tried with pico 7.0 for arm64 from opengapps. install by flashing boot and recovery img from androplus with fastboot but dont let it boot cause it will be broken at that point just boot into recovery install zips you might want then shut down flash back my boot.img and boot normally.

Looking forward to this ROM Great to see more development in this tablet.

Uuh, I'd love to help test this later on! Been waiting to get some multi window action going on

Discordian_Nerd said:
Uuh, I'd love to help test this later on! Been waiting to get some multi window action going on
Click to expand...
Click to collapse
Well, it does work pretty well even with this ****ed up build and MM sony files. Ive been using it since i uploaded it and it works well for what i use it for (web browsing, youtube, games). Only thing i've noticed i really miss is 5ghz wifi (it only detects 2.4 for me). Of course camera is also ****ed but i don't really take pics with tablets. Hopefully things get fixed once sony release the real 7.0 files.

I will buy z4 tablet lte version sgp 771 to use with your rom. Will you add the lte support?
Enviado do meu iPad usando Tapatalk

calj17 said:
I will buy z4 tablet lte version sgp 771 to use with your rom. Will you add the lte support?
Enviado do meu iPad usando Tapatalk
Click to expand...
Click to collapse
When sony release 7.0 binaries i will set it to build for WIFI and LTE tablets but i can't say if it will work or not. It SHOULD but they might just break it and LTE users would need to wait for a update.

ml11ML said:
When sony release 7.0 binaries i will set it to build for WIFI and LTE tablets but i can't say if it will work or not. It SHOULD but they might just break it and LTE users would need to wait for a update.
Click to expand...
Click to collapse
Ok fine. I will wait and keep following your rom. Once the lte is working I will buy it.
Enviado do meu iPad usando Tapatalk

Some apps using Webview (Gmail, Gitter) crash with this log
Code:
bViewFactory: Chromium WebView package does not exist
10-10 12:25:33.795 6572 6572 E WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:270)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:330)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.getFactory(WebView.java:2325)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.ensureProviderCreated(WebView.java:2320)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.setOverScrollMode(WebView.java:2379)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.View.<init>(View.java:4001)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.View.<init>(View.java:4118)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.ViewGroup.<init>(ViewGroup.java:578)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:627)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:572)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:555)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:542)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cdj.<init>(SourceFile:24)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.browse.ConversationWebView.<init>(SourceFile:165)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Constructor.newInstance0(Native Method)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.ConversationViewFragment.onCreateView(SourceFile:1139)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.Fragment.performCreateView(Fragment.java:2352)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.BackStackRecord.run(BackStackRecord.java:815)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:563)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at ddp.b(SourceFile:151)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.d(SourceFile:1271)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.b(SourceFile:1119)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.a(SourceFile:543)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at ccj.a(SourceFile:154)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.at(SourceFile:473)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.c(SourceFile:461)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.c(SourceFile:291)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.a(SourceFile:257)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.a(SourceFile:350)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at dah.g(SourceFile:126)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at dah.f(SourceFile:288)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.a(SourceFile:28143)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.a(SourceFile:555)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cox.ad(SourceFile:3689)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cpz.onLoadFinished(SourceFile:13156)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:486)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:454)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.Loader.deliverResult(Loader.java:144)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask.finish(AsyncTask.java:660)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask.-wrap1(AsyncTask.java)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.Handler.dispatchMessage(Handler.java:102)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.Looper.loop(Looper.java:154)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.ActivityThread.main(ActivityThread.java:6077)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Method.invoke(Native Method)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
10-10 12:25:33.799 6572 6572 D AndroidRuntime: Shutting down VM
10-10 12:25:33.811 6572 6572 W GAV2 : Thread[main,5,main]: dispatch call queued. Need to call GAServiceManager.getInstance().initialize().
10-10 12:25:33.815 6572 6572 E AndroidRuntime: FATAL EXCEPTION: main
10-10 12:25:33.815 6572 6572 E AndroidRuntime: Process: com.google.android.gm, PID: 6572
I have installed opengapps stock and checking the Play Store webview is correctly installed.
Any idea ?

hadimm said:
Some apps using Webview (Gmail, Gitter) crash with this log
Code:
bViewFactory: Chromium WebView package does not exist
10-10 12:25:33.795 6572 6572 E WebViewFactory: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getWebViewContextAndSetProvider(WebViewFactory.java:270)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:330)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:194)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.getFactory(WebView.java:2325)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.ensureProviderCreated(WebView.java:2320)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.setOverScrollMode(WebView.java:2379)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.View.<init>(View.java:4001)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.View.<init>(View.java:4118)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.ViewGroup.<init>(ViewGroup.java:578)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:627)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:572)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:555)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.webkit.WebView.<init>(WebView.java:542)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cdj.<init>(SourceFile:24)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.browse.ConversationWebView.<init>(SourceFile:165)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Constructor.newInstance0(Native Method)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.ConversationViewFragment.onCreateView(SourceFile:1139)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.Fragment.performCreateView(Fragment.java:2352)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.BackStackRecord.run(BackStackRecord.java:815)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:563)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at ddp.b(SourceFile:151)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.d(SourceFile:1271)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.b(SourceFile:1119)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.support.v4.view.ViewPager.a(SourceFile:543)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at ccj.a(SourceFile:154)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.at(SourceFile:473)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.c(SourceFile:461)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.c(SourceFile:291)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.a(SourceFile:257)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.mail.ui.TwoPaneLayout.a(SourceFile:350)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at dah.g(SourceFile:126)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at dah.f(SourceFile:288)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.a(SourceFile:28143)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at czz.a(SourceFile:555)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cox.ad(SourceFile:3689)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at cpz.onLoadFinished(SourceFile:13156)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:486)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:454)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.Loader.deliverResult(Loader.java:144)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask.finish(AsyncTask.java:660)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask.-wrap1(AsyncTask.java)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:677)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.Handler.dispatchMessage(Handler.java:102)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.os.Looper.loop(Looper.java:154)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at android.app.ActivityThread.main(ActivityThread.java:6077)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at java.lang.reflect.Method.invoke(Native Method)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
10-10 12:25:33.795 6572 6572 E WebViewFactory: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
10-10 12:25:33.799 6572 6572 D AndroidRuntime: Shutting down VM
10-10 12:25:33.811 6572 6572 W GAV2 : Thread[main,5,main]: dispatch call queued. Need to call GAServiceManager.getInstance().initialize().
10-10 12:25:33.815 6572 6572 E AndroidRuntime: FATAL EXCEPTION: main
10-10 12:25:33.815 6572 6572 E AndroidRuntime: Process: com.google.android.gm, PID: 6572
I have installed opengapps stock and checking the Play Store webview is correctly installed.
Any idea ?
Click to expand...
Click to collapse
gmail and gitter work fine for me (attached pics). I use pico gapps so maybe try that instead of stock and install gmail from play store? Could be possible that it's just a random bad install but unlikely, i'd try to do a fresh flash of the rom and install pico opengapps arm64 7.0 (i use the pico gapps). If by chance after a fresh flash and pico gapps install it still does not work, try installing chrome. I doubt it would have anything to do with it as there is a built in webview demo app but i have it installed so you could also try.

Pico gapps works smoothly. I don't know why but for an unknow reason webview component coming with stock gapps is buggy...
Anyway the ROM works great until here.
Two questions :
- I don't have the root while I have flashed the root zip at the same time I flashed pico gapps...
- Why the boot.img you provide is incompatible with TWRP ? It's not really convenient (however once you get it it's easy to deal with it)
Thanks
---------- Post added at 12:28 AM ---------- Previous post was at 12:21 AM ----------
Also maybe you should specify pico gapps is preferred against stock gapps in the first post...

hadimm said:
Pico gapps works smoothly. I don't know why but for an unknow reason webview component coming with stock gapps is buggy...
Anyway the ROM works great until here.
Two questions :
- I don't have the root while I have flashed the root zip at the same time I flashed pico gapps...
- Why the boot.img you provide is incompatible with TWRP ? It's not really convenient (however once you get it it's easy to deal with it)
Thanks
---------- Post added at 12:28 AM ---------- Previous post was at 12:21 AM ----------
Also maybe you should specify pico gapps is preferred against stock gapps in the first post...
Click to expand...
Click to collapse
Good to hear that it works. For root i will have to try later today as i have no time now, twrp is a special build made by androplus so it needs androplus boot.img. I will not bother with learning how to build twrp now while the rom is still using old sony files but i will try making a working twrp once they release real 7.0 files.
Sent from my Huawei Nexus 6P using XDA Labs

Stock GApps replaces the Android System Webview with the Google Webview, and deletes the original files. In AOSP 7.0 the Android System Webview is hardcoded in the framework. There is a patch made by the GApps team, but you need to apply it at build time.
So at this point you shouldn't flash the stock GApps, unless you modify the install script...
To get back the full functionality, you can reflash the system.img, then flash another GApps package. No need to reflash userdata.
Sent from my Nexus 6P using XDA-Developers mobile app

hadimm said:
Pico gapps works smoothly. I don't know why but for an unknow reason webview component coming with stock gapps is buggy...
Anyway the ROM works great until here.
Two questions :
- I don't have the root while I have flashed the root zip at the same time I flashed pico gapps...
- Why the boot.img you provide is incompatible with TWRP ? It's not really convenient (however once you get it it's easy to deal with it)
Thanks
---------- Post added at 12:28 AM ---------- Previous post was at 12:21 AM ----------
Also maybe you should specify pico gapps is preferred against stock gapps in the first post...
Click to expand...
Click to collapse
Normal SuperSU flashes on the boot img which is replaced before you boot because it uses "systemless mode". I tried with the system only SuperSU but it made the thing bootloop for me (you can try if you want to see, maybe it works for others). I guess it isnt possible to have root until a recovery is made for this boot.img and i wont attempt making one until i do a whole fresh build when sony release 7.0 binaries because i don't have enough time to learn how to build twrp now.

Thanks for your input, it makes things much clearer to me now.

thank you for this rom.But I can't download.Can you update this link.Very thank you.

D:\Program Files\Minimal ADB and Fastboot>fastboot flash boot system.img
target reported max download size of 536870912 bytes
sending sparse 'boot' 1/3 (521158 KB)...
OKAY [ 12.737s]
writing 'boot' 1/3...
FAILED (remote: size too large)
finished. total time: 12.775s
can you help me ?how to flash the system.img?

wd121366 said:
D:\Program Files\Minimal ADB and Fastboot>fastboot flash boot system.img
target reported max download size of 536870912 bytes
sending sparse 'boot' 1/3 (521158 KB)...
OKAY [ 12.737s]
writing 'boot' 1/3...
FAILED (remote: size too large)
finished. total time: 12.775s
can you help me ?how to flash the system.img?
Click to expand...
Click to collapse
fastboot flash system system.img , you were trying to flash system on boot which obviously won't work

Related

[Q] What this error means

plss help whit this error systemui FC when hit ltooglte for mobile data on/off on lidroid power wiget full log is in attachment
HTML:
build.board: MSM8960
build.bootloader: s1
build.brand: Sony
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: C5303
build.display: [email protected]_V_4.0_By_DuLe
build.fingerprint: Sony/C5303_1272-4891/C5303:4.1.2/12.0.A.2.254/Aff_nw:user/release-keys
build.hardware: qcom
build.host: BuildHost
build.id: 12.0.A.2.254
build.manufacturer: Sony
build.model: C5303
build.product: C5303_1272-4891
build.radio: unknown
build.serial: CB51243RV0
build.tags: release-keys
build.time: 1376471455000
build.type: user
build.user: BuildUser
version.codename: REL
version.incremental: Aff_nw
version.release: 4.1.2
version.sdk_int: 16
10-10 22:10:02.172 I/sysmon-tsens_tz_sensor0(382): sensor_work - read value = 450
10-10 22:10:02.412 W/dalvikvm(23054): threadid=1: thread exiting with uncaught exception (group=0x420f4650)
10-10 22:10:02.412 D/ConnectivityService(705): getMobileDataEnabled returning true
10-10 22:10:02.432 E/AndroidRuntime(23054): FATAL EXCEPTION: main
10-10 22:10:02.432 E/AndroidRuntime(23054): java.lang.SecurityException: ConnectivityService: Neither user 10168 nor current process has android.permission.CHANGE_NETWORK_STATE.
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.os.Parcel.readException(Parcel.java:1436)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.os.Parcel.readException(Parcel.java:1389)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.net.IConnectivityManager$Stub$Proxy.setMobileDataEnabled(IConnectivityManager.java:1091)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.net.ConnectivityManager.setMobileDataEnabled(ConnectivityManager.java:624)
10-10 22:10:02.432 E/AndroidRuntime(23054): at com.lidroid.systemui.quickpanel.MobileDataButton.toggleState(MobileDataButton.java)
10-10 22:10:02.432 E/AndroidRuntime(23054): at com.lidroid.systemui.quickpanel.PowerButton$2.onClick(PowerButton.java:181)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.view.View.performClick(View.java:4171)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.view.View$PerformClick.run(View.java:17186)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.os.Handler.handleCallback(Handler.java:615)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.os.Handler.dispatchMessage(Handler.java:92)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.os.Looper.loop(Looper.java:213)
10-10 22:10:02.432 E/AndroidRuntime(23054): at android.app.ActivityThread.main(ActivityThread.java:4793)
10-10 22:10:02.432 E/AndroidRuntime(23054): at java.lang.reflect.Method.invokeNative(Native Method)
10-10 22:10:02.432 E/AndroidRuntime(23054): at java.lang.reflect.Method.invoke(Method.java:511)
10-10 22:10:02.432 E/AndroidRuntime(23054): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
10-10 22:10:02.432 E/AndroidRuntime(23054): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
10-10 22:10:02.432 E/AndroidRuntime(23054): at dalvik.system.NativeStart.main(Native Method)
10-10 22:10:02.522 D/ALSAStreamOps(389): setParameters(): keyRouting with device 0x2
10-10 22:10:02.522 D/ALSADevice(389): route: devices 0x2 in mode 0
10-10 22:10:02.522 D/alsa_ucm(389): snd_use_case_set(): uc_mgr 0x401c6fb8 identifier _enadev value xLoud Speaker
10-10 22:10:02.522 D/alsa_ucm(389): Set mixer controls for HiFi enable 1
10-10 22:10:02.522 D/alsa_ucm(389): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia1, value: 1
10-10 22:10:02.522 D/alsa_ucm(389): Set mixer controls for Play Lowlatency Music enable 1

			
				
Any one whant to help?

[Q] Bootloop on CM13 Rom when i porting to my device

Guys,
Im a newbie and i want to porting Cyanogenmod to my device (Soc: msm8974).
With the guides on Cyanogen website, i was successful to compile cm source code for my device.
But i have problem after flash it. SystemServer can't start, because AlarmManagerService get follow RuntimeException:
01-06 08:06:48.129 7817 7817 E System : ************ Failure starting core service
01-06 08:06:48.129 7817 7817 E System : java.lang.RuntimeException: Failed to create service com.android.server.AlarmManagerService: service constructor threw an exception
01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:100)
01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.startOtherServices(SystemServer.java:514)
01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.run(SystemServer.java:294)
01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServer.main(SystemServer.java:179)
01-06 08:06:48.129 7817 7817 E System : at java.lang.reflect.Method.invoke(Native Method)
01-06 08:06:48.129 7817 7817 E System : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
01-06 08:06:48.129 7817 7817 E System : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-06 08:06:48.129 7817 7817 E System : Caused by: java.lang.reflect.InvocationTargetException
01-06 08:06:48.129 7817 7817 E System : at java.lang.reflect.Constructor.newInstance(Native Method)
01-06 08:06:48.129 7817 7817 E System : at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:89)
01-06 08:06:48.129 7817 7817 E System : ... 6 more
01-06 08:06:48.129 7817 7817 E System : Caused by: java.lang.NoClassDefFoundError: com.android.server.AlarmManagerService$1
01-06 08:06:48.129 7817 7817 E System : at com.android.server.AlarmManagerService.<init>(AlarmManagerService.java:307)
01-06 08:06:48.129 7817 7817 E System : ... 8 more
This is full logcat: http://pastebin.com/JqsedbSR
Can you help me solve this bug?
Sorry for my bad English
Which device?
Trafalgar Square said:
Which device?
Click to expand...
Click to collapse
My device is LG G3

[HELP][DEV] Android Native Crash debugging libandroid_runtime.so

Hi guys,
i'm currently facing a weird problem in my app.
I'm trying to create Previews of my android Wear Watchface, so everybody can see how his settings will look like.
--screens attached--
However, the app crashes if i change the fragment...
This is my code to change the fragment:
Code:
private void changeFragment(int index)
{
if(index != 7 && index != 0) {
showAd();
}
FragmentTransaction ft = getFragmentManager().beginTransaction();
switch (index) {
case 0:
WizardFrameHello fragment = new WizardFrameHello();
fragment.setParentActivity(this);
if (lastFragment != null)
ft.remove(lastFragment);
ft.add(R.id.frameWizard, (Fragment) fragment);
ft.commit();
lastFragment = fragment;
break;
case 7:
WizardFrameSelectProcedure fragment7 = new WizardFrameSelectProcedure();
fragment7.setParentActivity(this);
if (lastFragment != null)
ft.remove(lastFragment);
ft.add(R.id.frameWizard, (Fragment) fragment7);
ft.commit();
lastFragment = fragment7;
break;
[...]
case 11:
WizardFrameLanguages fragment11 = new WizardFrameLanguages();
fragment11.setParentActivity(this);
if (lastFragment != null)
ft.remove(lastFragment);
ft.add(R.id.frameWizard, (Fragment) fragment11);
ft.commit();
lastFragment = fragment11;
break;
}
}
public void prevStep() {
if (index == 5 && textResource.USE_SPECIFIC) {
index = 3;
changeFragment(index);
} else if (index == 4 || index == 3) {
index = 2;
changeFragment(index);
} else if (index > 0) {
index--;
changeFragment(index);
}
}
public void setStep(int step)
{
index = step;
changeFragment(index);
}
public void nextStep() {
if (index == 3)
index = 4;
if (index < maxindex) {
index++;
changeFragment(index);
}
}
These are the dumps i got:
Code:
10-10 13:12:05.681 19246-19246/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-10 13:12:05.681 19246-19246/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys'
10-10 13:12:05.681 19246-19246/? A/DEBUG: Revision: '0'
10-10 13:12:05.681 19246-19246/? A/DEBUG: ABI: 'arm64'
10-10 13:12:05.681 19246-19246/? A/DEBUG: pid: 19033, tid: 19040, name: FinalizerDaemon >>> com.kenfenheuer.fancytextwatchlite <<<
10-10 13:12:05.681 19246-19246/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50
10-10 13:12:05.681 19246-19246/? A/DEBUG: x0 0000007f64ac3268 x1 0000000000000000 x2 0000000000000001 x3 0000000000000001
10-10 13:12:05.681 19246-19246/? A/DEBUG: x4 0000000000000000 x5 0000000000000001 x6 0000000000000000 x7 0000007f868d1560
10-10 13:12:05.681 19246-19246/? A/DEBUG: x8 0000007f64ac3200 x9 0000000000000000 x10 0000000000000000 x11 0000007f84a3e398
10-10 13:12:05.681 19246-19246/? A/DEBUG: x12 0000000000000001 x13 0000000000000000 x14 0000007f84a435bc x15 0000000000000000
10-10 13:12:05.681 19246-19246/? A/DEBUG: x16 0000007f883ce660 x17 0000007f88319340 x18 0000007f7ab1ee00 x19 0000007f6fe53e40
10-10 13:12:05.681 19246-19246/? A/DEBUG: x20 0000007f6fe53e40 x21 0000007f7ab1ee00 x22 00000000718bad10 x23 00000000132d22b0
10-10 13:12:05.681 19246-19246/? A/DEBUG: x24 0000007f83cc62a8 x25 000030dc09c11582 x26 0000000071f55947 x27 0000000071affdf0
10-10 13:12:05.681 19246-19246/? A/DEBUG: x28 0000007f7ab09900 x29 0000007f83cc5eb0 x30 0000007f88319420
10-10 13:12:05.681 19246-19246/? A/DEBUG: sp 0000007f83cc5eb0 pc 0000007f8831938c pstate 0000000080000000
10-10 13:12:05.683 19246-19246/? A/DEBUG: backtrace:
10-10 13:12:05.683 19246-19246/? A/DEBUG: #00 pc 00000000000eb38c /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap12doFreePixelsEv+76)
10-10 13:12:05.683 19246-19246/? A/DEBUG: #01 pc 00000000000eb41c /system/lib64/libandroid_runtime.so (_ZN7android6BitmapD1Ev+16)
10-10 13:12:05.683 19246-19246/? A/DEBUG: #02 pc 00000000000eb4f4 /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap14detachFromJavaEv+52)
10-10 13:12:05.683 19246-19246/? A/DEBUG: #03 pc 00000000022e87f0 /system/framework/arm64/boot.oat (offset 0x1f30000)
10-10 09:08:25.147 30686-30686/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-10 09:08:25.147 30686-30686/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys'
10-10 09:08:25.147 30686-30686/? A/DEBUG: Revision: '0'
10-10 09:08:25.147 30686-30686/? A/DEBUG: ABI: 'arm64'
10-10 09:08:25.148 30686-30686/? A/DEBUG: pid: 30593, tid: 30601, name: FinalizerDaemon >>> com.kenfenheuer.fancytextwatchlite <<<
10-10 09:08:25.148 30686-30686/? A/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7f61544160
10-10 09:08:25.149 30686-30686/? A/DEBUG: x0 0000007f61544160 x1 0000007f83cc5f04 x2 0000007f61544160 x3 0000000000570000
10-10 09:08:25.149 30686-30686/? A/DEBUG: x4 0000000000430000 x5 0000000000000000 x6 0000007f84a3a000 x7 0000007f84a3c9a8
10-10 09:08:25.149 30686-30686/? A/DEBUG: x8 0000000000000035 x9 0000007f7abafba8 x10 0000000000000001 x11 0000007f84a3e398
10-10 09:08:25.149 30686-30686/? A/DEBUG: x12 0000000000000002 x13 0000000000000000 x14 0000007f83cc5f90 x15 0000000000000000
10-10 09:08:25.149 30686-30686/? A/DEBUG: x16 0000007f883cc920 x17 0000007f88096df8 x18 0000007f7abafa00 x19 0000007f61544160
10-10 09:08:25.149 30686-30686/? A/DEBUG: x20 0000007f88319514 x21 0000007f7abafa00 x22 00000000718bad10 x23 0000000012c07970
10-10 09:08:25.150 30686-30686/? A/DEBUG: x24 0000007f83cc62a8 x25 00002392d5941beb x26 0000000071f55947 x27 0000000071affdf0
10-10 09:08:25.150 30686-30686/? A/DEBUG: x28 0000007f7ab09900 x29 0000007f83cc5eb0 x30 0000007f883194d4
10-10 09:08:25.150 30686-30686/? A/DEBUG: sp 0000007f83cc5eb0 pc 0000007f88096e00 pstate 0000000020000000
10-10 09:08:25.156 30686-30686/? A/DEBUG: backtrace:
10-10 09:08:25.156 30686-30686/? A/DEBUG: #00 pc 0000000000066e00 /system/lib64/libc.so (pthread_mutex_lock+8)
10-10 09:08:25.157 30686-30686/? A/DEBUG: #01 pc 00000000000eb4d0 /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap14detachFromJavaEv+16)
10-10 09:08:25.157 30686-30686/? A/DEBUG: #02 pc 00000000022e87f0 /system/framework/arm64/boot.oat (offset 0x1f30000)
10-10 12:31:11.088 11195-11195/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-10 12:31:11.089 11195-11195/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys'
10-10 12:31:11.089 11195-11195/? A/DEBUG: Revision: '0'
10-10 12:31:11.089 11195-11195/? A/DEBUG: ABI: 'arm64'
10-10 12:31:11.089 11195-11195/? A/DEBUG: pid: 10958, tid: 10966, name: FinalizerDaemon >>> com.kenfenheuer.fancytextwatchlite <<<
10-10 12:31:11.089 11195-11195/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50
10-10 12:31:11.089 11195-11195/? A/DEBUG: x0 0000007f65453e68 x1 0000000000000000 x2 0000000000000001 x3 0000000000000001
10-10 12:31:11.089 11195-11195/? A/DEBUG: x4 0000000000000000 x5 0000000000000001 x6 0000000000000000 x7 0000007f868d1560
10-10 12:31:11.089 11195-11195/? A/DEBUG: x8 0000007f65453e00 x9 0000000000000000 x10 0000000000000000 x11 0000007f84a3e398
10-10 12:31:11.089 11195-11195/? A/DEBUG: x12 0000000000000001 x13 0000000000000000 x14 0000007f84a435bc x15 0000000000000000
10-10 12:31:11.089 11195-11195/? A/DEBUG: x16 0000007f883ce660 x17 0000007f88319340 x18 0000007f84efe200 x19 0000007f6fe53e40
10-10 12:31:11.089 11195-11195/? A/DEBUG: x20 0000007f6fe53e40 x21 0000007f84efe200 x22 00000000718bad10 x23 00000000130e5b50
10-10 12:31:11.089 11195-11195/? A/DEBUG: x24 0000007f83cc62a8 x25 00002ea373d55b2b x26 0000000071f55947 x27 0000000071affdf0
10-10 12:31:11.089 11195-11195/? A/DEBUG: x28 0000007f7ab09900 x29 0000007f83cc5eb0 x30 0000007f88319420
10-10 12:31:11.089 11195-11195/? A/DEBUG: sp 0000007f83cc5eb0 pc 0000007f8831938c pstate 0000000080000000
10-10 12:31:11.092 11195-11195/? A/DEBUG: backtrace:
10-10 12:31:11.092 11195-11195/? A/DEBUG: #00 pc 00000000000eb38c /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap12doFreePixelsEv+76)
10-10 12:31:11.092 11195-11195/? A/DEBUG: #01 pc 00000000000eb41c /system/lib64/libandroid_runtime.so (_ZN7android6BitmapD1Ev+16)
10-10 12:31:11.092 11195-11195/? A/DEBUG: #02 pc 00000000000eb4f4 /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap14detachFromJavaEv+52)
10-10 12:31:11.092 11195-11195/? A/DEBUG: #03 pc 00000000022e87f0 /system/framework/arm64/boot.oat (offset 0x1f30000)
i've already tried to get some info with android ndk-stack but no luck.
This is the output:
Code:
********** Crash dump: **********
Build fingerprint: 'OnePlus/OnePlus2/OnePlus2:6.0.1/MMB29M/1447840920:user/release-keys'
pid: 19033, tid: 19040, name: FinalizerDaemon >>> com.kenfenheuer.fancytextwatchlite <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50
Stack frame 10-10 13:12:05.683 19246-19246/? A/DEBUG: #00 pc 00000000000eb38c /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap12doFreePixelsEv+76)
Stack frame 10-10 13:12:05.683 19246-19246/? A/DEBUG: #01 pc 00000000000eb41c /system/lib64/libandroid_runtime.so (_ZN7android6BitmapD1Ev+16)
Stack frame 10-10 13:12:05.683 19246-19246/? A/DEBUG: #02 pc 00000000000eb4f4 /system/lib64/libandroid_runtime.so (_ZN7android6Bitmap14detachFromJavaEv+52)
Stack frame 10-10 13:12:05.683 19246-19246/? A/DEBUG: #03 pc 00000000022e87f0 /system/framework/arm64/boot.oat (offset 0x1f30000)
which is quite saying nothing to me. it should look more like this (example):
Code:
********** Crash dump: **********
Build fingerprint: 'generic/google_sdk/generic/:2.2/FRF91/43546:eng/test-keys'
pid: 351, tid: 351 >>> /data/local/ndk-tests/crasher <<<
signal 11 (SIGSEGV), fault addr 0d9f00d8
Stack frame #00 pc 0000841e /data/local/ndk-tests/crasher : Routine zoo in /tmp/foo/crasher/jni/zoo.c:13
Stack frame #01 pc 000083fe /data/local/ndk-tests/crasher : Routine bar in /tmp/foo/crasher/jni/bar.c:5
Stack frame #02 pc 000083f6 /data/local/ndk-tests/crasher : Routine my_comparison in /tmp/foo/crasher/jni/foo.c:9
Stack frame #03 pc 000191ac /system/lib/libc.so
Stack frame #04 pc 000083ea /data/local/ndk-tests/crasher : Routine foo in /tmp/foo/crasher/jni/foo.c:14
Stack frame #05 pc 00008458 /data/local/ndk-tests/crasher : Routine main in /tmp/foo/crasher/jni/main.c:19
Stack frame #06 pc 0000d362 /system/lib/libc.so
Can you help me ?
Getting the function thats causing the error would be great.
Thanks,
Maximilian
Solved
Well,
this bug was actually caused trough Gson.
I serialized a class containing the settings and a preview bitmap, which was then deserialized to display all available settings,
once the bitmaps were getting destroyed trough garbage collector, the whole system crashed.
I got this error on my tablet, which finally let me dig deeper in my bitmap usages:
Code:
10-11 08:15:24.887 14818-14827/? E/AndroidRuntime: FATAL EXCEPTION: FinalizerWatchdogDaemon
Process: com.kenfenheuer.fancytextwatchlite, PID: 14818
java.util.concurrent.TimeoutException: android.graphics.Bitmap$BitmapFinalizer.finalize() timed out after 10 seconds
at android.graphics.Bitmap.nativeDestructor(Native Method)
at android.graphics.Bitmap.-wrap1(Bitmap.java)
at android.graphics.Bitmap$BitmapFinalizer.finalize(Bitmap.java:1668)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
at java.lang.Thread.run(Thread.java:818)
I solved this, trough by adding transient to my bitmap:
Code:
public transient Bitmap preview;
However,
thanks for everyone who may have had a look into this.
Cheers,
Maximilian

Installing an app via TWRP (updater-script) unsuccessful, HELP!

Background:
I created a script that pretty much factory resets the phone and starts deleting apps from system/app and system/priv-app.
My problem pretty much is that when I try to add those apps back
When I add them via another flashable zip and I reboot, the apps don't start up and start crashing upon trying to open them up
I extracted the whole folder located in system/priv-app from the system.img of a previous firmware version
When I extract the folder of my current firmware version, it works. Which makes me believe that these apps are firmware specific?
The only problem is that I am trying to share these zips with other people and since they have different firmware versions (usually due to some carriers taking longer to release firmware or stuff like that)
Problem:
Anyway, here's the deal (I will use Samsung's Gallery app as an example). I have this script to add the Samsung Gallery's app:
Code:
ui_print ("Let's begin, mounting /system...");
run_program("/sbin/busybox","mount", "/system");
ui_print ("Extracting necessary files...");
package_extract_dir("system", "/system");
ui_print ("Setting necessary permission...");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015/oat");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015/oat/arm");
set_perm(0, 0, 0644, "/system/priv-app/SecGallery2015/oat/arm/SecGallery2015.odex");
ui_print ("Done, unmounting /system...");
run_program("/sbin/busybox", "umount", "/system");
But it doesn't work. I see that the app is added in the app drawer, but opening it up crashes it and closes it.
Here is the section of the logcat that is showing me what's wrong, maybe it'll show more clearly what the problem is (I have NO idea how to read logcats or even debug them :crying: )
Code:
01-25 16:04:00.297 4321 4321 E AndroidRuntime: FATAL EXCEPTION: main
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Process: com.sec.android.gallery3d, PID: 4321
01-25 16:04:00.297 4321 4321 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.sec.android.gallery3d.app.GalleryAppImpl: java.lang.ClassNotFoundException: Didn't find class "com.sec.android.gallery3d.app.GalleryAppImpl" on path: DexPathList[[zip file "/system/framework/secvision.jar", zip file "/system/framework/allshare.jar", zip file "/system/framework/com.google.android.media.effects.jar", zip file "/system/framework/saiv.jar", zip file "/system/framework/secimaging.jar", zip file "/system/framework/twframework.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/system/framework/sechardware.jar", zip file "/system/priv-app/SecGallery2015/SecGallery2015.apk"],nativeLibraryDirectories=[/system/priv-app/SecGallery2015/lib/arm, /vendor/lib, /system/lib]]
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:680)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6469)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.access$1800(ActivityThread.java:229)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7406)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sec.android.gallery3d.app.GalleryAppImpl" on path: DexPathList[[zip file "/system/framework/secvision.jar", zip file "/system/framework/allshare.jar", zip file "/system/framework/com.google.android.media.effects.jar", zip file "/system/framework/saiv.jar", zip file "/system/framework/secimaging.jar", zip file "/system/framework/twframework.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/system/framework/sechardware.jar", zip file "/system/priv-app/SecGallery2015/SecGallery2015.apk"],nativeLibraryDirectories=[/system/priv-app/SecGallery2015/lib/arm, /vendor/lib, /system/lib]]
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1005)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:670)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 9 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Suppressed: java.io.IOException: No original dex files found for dex location (arm) /system/priv-app/SecGallery2015/SecGallery2015.apk ()
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.openDexFileNative(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.openDexFile(DexFile.java:295)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:80)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:59)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.<init>(DexPathList.java:120)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:86)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:47)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.getClassLoader(LoadedApk.java:438)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:663)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 9 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.sec.android.gallery3d.app.GalleryAppImpl
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.Class.classForName(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 12 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
01-25 16:04:00.297 823 2839 D InputDispatcher: Focused application set to: xxxx
01-25 16:04:00.297 823 2839 D ActivityTrigger: ActivityTrigger activityPauseTrigger
01-25 16:04:00.297 823 2839 W ActivityManager: Force finishing activity com.sec.android.gallery3d/.app.GalleryOpaqueActivity
Any help is appreciated

Device ID changing, causes "new device" setup to happen

I have been having this issue with my S10 5G magisk rooted and edxposed running.
The problem is when I install a new app, my other apps fail to read any of their private data. When I chmod -R 777 /data they can read their data again.
I am not sure if this is EdXposed or what, other than its really annoying. I am begging anyone for help with this.
@elesbb
Device ID ( often refered to as Android ID ) is generated when you boot your Android phone first time and will be there forever. When you format everything and factory reset your device then this device ID is overwritten and re-generated and stored again. Similarly, if you ever install a new ROM on your Android device, then this device ID will be overwritten and re-generated when you boot the device first time.
Have never heard or read it that Magisk or EdXposed changes device's Device ID. And even then a change of Device ID is guaranteed to have nothing to do with file/folders and/or user permissions.
jwoegerbauer said:
@elesbb
Device ID ( often refered to as Android ID ) is generated when you boot your Android phone first time and will be there forever. When you format everything and factory reset your device then this device ID is overwritten and re-generated and stored again. Similarly, if you ever install a new ROM on your Android device, then this device ID will be overwritten and re-generated when you boot the device first time.
Have never heard or read it that Magisk or EdXposed changes device's Device ID. And even then a change of Device ID is guaranteed to have nothing to do with file/folders and/or user permissions.
Click to expand...
Click to collapse
Yes, this is what my exact understanding of this was as well.
What I discovered though, was each install of an application now cycles the "Device ID". And apps should not rely on the "Device ID/Android ID" as a forms of security for things like encryption, etc. This is coming from this here: https://android-developers.googleblog.com/2017/04/changes-to-device-identifiers-in.html
All I know is when I update my xposed module (being the course of debugging), I would then reboot the device. It does the "android is starting" prompt as if it was a fresh wipe of the device. All my data is still there. The system apps loose their settings though. The apps are there and all of its data. However, if I try to launch an app, it immediately force closes. Here is a logcat snippet of the Facebook, and textra app.
Facebook
Code:
11-23 14:33:40.830 14391 14391 W ContextImpl: Failed to ensure /data/user_de/0/com.facebook.lite/code_cache: mkdir failed: EACCES (Permission denied)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: FATAL EXCEPTION: main
11-23 14:33:40.950 14391 14391 E AndroidRuntime: Process: com.facebook.lite, PID: 14391
11-23 14:33:40.950 14391 14391 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.facebook.lite.ClientApplicationSplittedShell: java.lang.IllegalArgumentException: Optimized data directory /data/user/0/com.facebook.lite/dex is not owned by the current user. Shared storage cannot protect your application from code injection attacks.
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1296)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7152)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7134)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:376)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at SandHookerNew_5sm3dthec8858ee0to4kj3c1ge.hook(Unknown Source:51)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:274)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8167)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
[COLOR="Red"]11-23 14:33:40.950 14391 14391 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Optimized data directory /data/user/0/com.facebook.lite/dex is not owned by the current user. Shared storage cannot protect your application from code injection attacks.[/COLOR]
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:141)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.loadDex(DexFile.java:210)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.loadDex(DexFile.java:177)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at X.02Q.A00(:67)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at X.01U.A04(:61)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.facebook.lite.ClientApplicationSplittedShell.attachBaseContext(:4738)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.Application.attach(Application.java:370)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1157)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1288)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: ... 14 more
Textra
Code:
11-23 14:34:20.354 9346 9346 W ContextImpl: Failed to ensure /data/user/0/com.textra/cache: mkdir failed: EACCES (Permission denied)
11-23 14:34:20.354 9346 9346 W ContextImpl: Failed to update user.inode_cache: stat failed: EACCES (Permission denied)
11-23 14:34:20.355 9346 9346 W ContextImpl: Failed to ensure /data/user_de/0/com.textra/code_cache: mkdir failed: EACCES (Permission denied)
11-23 14:34:20.355 9346 9346 W ContextImpl: Failed to update user.inode_code_cache: stat failed: EACCES (Permission denied)
[COLOR="red"]11-23 14:34:20.432 9346 26624 E SQLiteDatabase: Failed to open database '/data/user/0/com.textra/databases/messaging.db'.
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806 SQLITE_CANTOPEN_EACCES[1806]): Could not open database[/COLOR]
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:300)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:737)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:284)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:251)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1394)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1339)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:974)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:448)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:391)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.lg1.d(SourceFile:1)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.mg1.<init>(SourceFile:6)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.mg1.j0(SourceFile:1)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.af1.run(Unknown Source:2)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at java.lang.Thread.run(Thread.java:919)
So here you can see all the force closing is caused by the wrong owner/permissions. This also happens with the system apps, but the system apps just reset themselves and makes a new directory. Something is definitely changing the owner or whatever, which causes the device to think it has not been setup, prompting the "android is starting" prompt. It is EXTREMELY annoying to deal with and I am desperate for help.
Also,
running
Code:
chmod -R 777 /data
allows some apps to open (because they can now access the data), I do not know what is causing this device owner change..

Categories

Resources