yashsingh1/xdaforums huggingface dataset:
[Android General] lijianjunyonghu:
!@*** FATAL EXCEPTION IN SYSTEM PROCESS: main

java.lang.ClassCastException: android.content.pm.PackageParser$Activity cannot be cast to android.content.pm.PackageParser$Permission

at com.android.server.pm.PackageManagerService.commitPackageSettings(Unknown Source:1712)

at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(Unknown Source:2968)

at com.android.server.pm.PackageManagerService.scanPackageLI(Unknown Source:3)

at com.android.server.pm.PackageManagerService.scanPackageInternalLI(Unknown Source:1465)

at com.android.server.pm.PackageManagerService.scanPackageLI(Unknown Source:18)

at com.android.server.pm.PackageManagerService.scanDirLI(Unknown Source:208)

at com.android.server.pm.PackageManagerService.scanDirTracedLI(Unknown Source:37)

at com.android.server.pm.PackageManagerService.<init>(Unknown Source:4732)

at com.android.server.pm.PackageManagerService.main(Unknown Source:5)

at com.android.server.SystemServer.startBootstrapServices(Unknown Source:322)

at com.android.server.SystemServer.run(Unknown Source:310)

at com.android.server.SystemServer.main(Unknown Source:5)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

[ 01-25 15:53:35.810 4419: 4419 E/AndroidRuntime ]

Error reporting crash

java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$ParcelableCrashInfo)' on a null object reference

at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:118)

at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)

at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1063)

at java.lang.Thread.dispatchUncaughtException(Thread.java:1953)

Who can help solve this problem?
[Android General] ShaDisNX255:
Thanks for your input. Unfortunately, this doesn't work. I'm copying all the apps and wiping data every time I try. So /data/user/0/com.android.providers.settings/databases is non-existent. I was able to jump over this error by copying SecSettingsProvider2 from stock, but I feel that may generate some issues maybe in the future. I guess as long as I keep testing, I will find more and more things.

Thanks for the help!
[Android General] lijianjunyonghu:
May be caused by supersu
[Android General] ShaDisNX255:
Using Magisk :)
[Android General] XxMrkKuxX:
hellow, I ported S9 firmware to S8 but there is without baseband and IMEI .how to fix it ? Im looking forward to your help...Thanks
[Android General] RafaelRivero16:
Flash your EFS backup from TWRP and imei and baseband will be restored back
[Android General] prototype74:
Sorry I can't help you to fix as I didn't developed this ROM for Note 3. The easiest solution would be to use any third party message app like Google Messages from Google play.

Attach a full logcat. Probably something else before these errors causing issues.

TBH I expected some errors too but glad it worked :)
[Android General] XxMrkKuxX:
Thanks...But the restore was failed . Tip: Error opening: /dev/block/sdd4 (Read-only file system)....In my opinion,the proble is in framework.jar or serivces.jar maybe.
[Android General] DaRdamnDoG:
Hi, I did activated the adbd however it was only applicable when the phone is booted up. Everytime I reboot to recovery the connection to PC/ADB (commandprompt) was lost.
[Android General] malbert16442:
If they are any new tools or methods please let me know. I haven't tinkered in the Android space in a while considering that the U.S market has locked boot loaders.
[Android General] jesvi:
Just a q&a , how many attempts does it take to do the (TERMINOLOGY) part of your guide ?, in other words | approx, how many error/trials does it take to just boot the phone by adding/removing files and lines in framework/dervice jar ?
[Android General] ShaDisNX255:
It varies. I've ported some that take 3-6 edits and other that are take more than 10.

I've noticed that on newer firmware like Android 8 it doesn't take that much, I've booted firmware even without edits xD
[Android General] lijianjunyonghu:
Who can solve the pie merger deodex lag
[Android General] ab-samy:
Friends please help me about bellow problem, lots of below error in logcat

01-01 12:22:49.454 371 378 I : Socket created with fd:-1
01-01 12:22:49.454 371 378 E : Exiting
[Android General] Sir Ace:
Please someone make a video tutorial for this, it's worth to watch and very useful guide
[Android General] prototype74:
It can't be fixed. It's a general issue in android pie. The lags only occur when deodexing it's framework, so it means you can still full deodex app and priv-app without encounter lags.
[Android General] lijianjunyonghu:
This means that I can't fix the problem by modifying the framework.

thank you for your reply
[Android General] ShaDisNX255:
Blur Attempt

Hey guys, this isn't so much a porting problem but more of adding native blur to a port.

https://xdaforums.com/galaxy-j7-2017/themes/guide-how-to-add-native-blur-stock-rom-t3717950

(I know this is based on Nougat, just kinda wanted to apply the same method to see if it worked)

I copied these libs from port to stock

libandroid_runtime.so
libgui.so
libsurfaceflinger.so
libsurfaceflinger_ddmconnection.so
if missing libsensorhub.so

However, it stays on spash screen (logblur.txt)

In it, it has the following line so I said screw it and deleted libSamsungAPVoiceEngine.so

05-23 16:46:54.150 2709 2709 W linker : /system/lib/libSamsungAPVoiceEngine.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

Then after deleted it I got (logblur2.txt)

I think here it's due to the libs and the processor, but I don't know I kinda want to learn if there is a way out of this soft brick and to get it to work?

If anyone can help me try to get my way out of it I would appreciate it

Thanks!
[Android General] seydxdx:
Please im on part 3 Step 8 after decompil service and framework what to do with decompiled files

Please need some explainnation Please
[Android General] Franc89:
Possible to port android 10 system in android 8 mobile?

Thanks
[Android General] Cyterafle:
You need libs and kernel to boot Android 10
[Android General] Franc89:
I need lib from android 8 or from android 10 ?

If from android 10 need to port all the lib folder or need only some file in lib?

Thanks

---------- Post added at 01:16 AM ---------- Previous post was at 01:08 AM ----------

I have kernel but I don’t know wish lib file need to port thanks to direct me wish lib file need to port
[Android General] Franc89:
Ok try and let’s me know
[Android General] promasterprime:
Hi
[MENTION=5377656]prototype74[/MENTION]

Im porting a rom to A5 2016 (7.1.1)

and it seems the base i took doesnt have magnetic sensor(Compass), fingerprint, fast charge support

does anyone know to enable this, and is it to be enabled in services.jar and framework.jar ??:confused:

I already took all files for Compass and it works, but its stuck on North

Fingerprint doesnt show in settings even after taking all permissions, libs, apps

Fast charging option (enable/disable) is missing in "Device Maintainance" app

NFC app doesnt get installed

And anyone know to enable "Screen mode" in settings/display. Its not working, but device supports it

Thank you
[Android General] Franc89:
Your phone is wish android version and your porting rom is wish version ?
[Android General] promasterprime:
Im porting the rom from J700T 7.1.1 to all other Exynos7580 devices.

Everything works for other devices like J7, On8

On8 has NFC and it works in it, but the NFC app doesnt get installed on A5 2016

None of the devices have compass, fingerprint, fast charging except A5 2016.

And A5 2016 got the above mentioned bugs
[Android General] Franc89:
You port android 10 already in another devices?

If yes wish file need to port ?

Because I port framework apps priv app and permissions from android 10 to android 8 but phone bootloop. Do you have any idea what is the problem?

For lib file need to port all the folder lib and lib64 or need only some file from lib?

Thanks
[Android General] promasterprime:
I haven't yet done android 10

But take the whole rom

Then Replace necessary libs from your stock android 8 (libs for ril, camera, etc)
[Android General] :
Hello, can someone help me? In the part of obtaining the log, my device does not detect me, I try to make the modifications to the kernel and the files that need to be edited do not appear, I am sure I have looked for them well but they do not appear.

someone help me?
[Android General] :
hi, hi, thank you very much for the guide you very much for the guide

hi, thank you very much for the guide
[Android General] :
I already solved the adb
[Android General] Franc89:
Thanks for the guide

I whant to know if this guide can work on s9+ android 10 because I whant to port note10 rom in s9+

Thanks
[Android General] Franc89:
http://www106.zippyshare.com/v/AzldZO7A/file.html

This file not longer available
[Android General] Ziggy54:
Someone help me please, i am facing the following issue after porting: pressing vol-down+power buttons to take screenshots causes systemui to crash.

oneui 2.5, android 10, smart capture installed. any help will be much appreciated.

E/AndroidRuntime(7454): FATAL EXCEPTION: main
01-05 12:33:21.829 E/AndroidRuntime(7454): Process: com.android.systemui:screenshot, PID: 7454
01-05 12:33:21.829 E/AndroidRuntime(7454): java.lang.NullPointerException: Attempt to invoke virtual method 'android.hardware.fingerprint.IFingerprintService android.hardware.fingerprint.FingerprintManager.semGetService()' on a null object reference
01-05 12:33:21.829 E/AndroidRuntime(7454): at com.samsung.android.bio.fingerprint.SemFingerprintManager.<init>(SemFingerprintManager.java:580)
01-05 12:33:21.829 E/AndroidRuntime(7454): at com.samsung.android.bio.fingerprint.SemFingerprintManager.createInstance(SemFingerprintManager.java:570)
01-05 12:33:21.829 E/AndroidRuntime(7454): at com.android.systemui.screenshot.GlobalScreenshot.<init>(GlobalScreenshot.java:986)
01-05 12:33:21.829 E/AndroidRuntime(7454): at com.android.systemui.screenshot.TakeScreenshotService$1.handleMessage(TakeScreenshotService.java:88)

01-05 12:33:22.780 I/ActivityManager(4034): Killing 7454:com.android.systemui:screenshot/u0a22 (adj 100): crash
[Android General] pardusx:
It could be because you tried to turn off fingerprints etc.
[Android General] cpt_Sherman:
Hi Guys. I hope this tread is still alive. Im working on tw-mm port for g530h (galaxy grand prime) from g600fy (galaxy on7 pro).

Mostly bugs are fixed, but the most annoying is lockscreen security bug and the phone doesnt go to locksreen after screen time-out. What should i do?(the error is mostly connected with gatekeeper)

1774 E JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
1774 E JavaBinder: java.lang.RuntimeException: android.os.DeadObjectException
1774 E JavaBinder: at android.os.Parcel.writeException(Parcel.java:1521)
1774 E JavaBinder: at android.os.Binder.execTransact(Binder.java:459)
1774 E JavaBinder: Caused by: android.os.DeadObjectException
1774 E JavaBinder: at android.os.BinderProxy.transactNative(Native Method)
1774 E JavaBinder: at android.os.BinderProxy.transact(Binder.java:503)
1774 E JavaBinder: at android.service.gatekeeper.IGateKeeperService$Stub$Proxy.enroll(IGateKeeperService.java:176)
1774 E JavaBinder: at com.android.server.LockSettingsService.enrollCredential(LockSettingsService.java:1603)
1774 E JavaBinder: at com.android.server.LockSettingsService.setLockPassword(LockSettingsService.java:1554)
1774 E JavaBinder: at com.android.internal.widget.ILockSettings$Stub.onTransact(ILockSettings.java:187)
1774 E JavaBinder: at android.os.Binder.execTransact(Binder.java:453)
[Android General] Gatekeeper:
Don't know is this the right section to ask

How to fix not charging which file or folder i should look , im using j210f and using miui 8 all working except power button and not charging but charging on recovery.
[Android General] AsgardFork:
heyy man what a helpful guide is that i appreciate your work on that guide but i wanted to ask for help for removing the signature verifecation
[Android General] ShaDisNX255:
Depends on your Android version. There are quite a few guides here in xda, though I haven't personally found one for Android 12
[Android General] AsgardFork:
i work on oneui a10

Btw do u have telegram so we can talk if u want
[Android General] Ronnie McNutt:
will it work for one ui 5.0? (has anything from the tutorial changed?)
[Android General] ShaDisNX255:
A lot of things have changed actually. For starters, you don't really have to deodex your ROMs since they come deodexed for the most part.

Since project treble is a thing, most hardware important libs info is located in the /vendor partition, so porting a different Samsung ROM could be as easy as replacing your /system with the target ROM and fixing any minor bugs that may pop up

I've been able to run S21FE (Snapdragon 888) system to various of my devices like A52 (Snapdragon 720G) and A52s (Snapdragon 778G) with little to no edits so I would suggest porting something that's close to your stock device.
[Android General] Ronnie McNutt:
So porting System.img hasn't changed that means i can use the ported system.img with stock vendor,boot,product ?
[Android General] ShaDisNX255:
Yeah, pretty much. Give it a try there's a high chance it boots with no edits in system

For example, I use stock vendor, odm and product and use S21FE system
[Android General] Ronnie McNutt:
also one more question. What tool do you use to unpack-repack system.img (bc i need to debloat system.img so i can flash it )
[Android General] ShaDisNX255:
I personally use the paid version of SuperR kitchen

https://xdaforums.com/t/windows-linux-mac-donate-superrs-kitchen-v3-2-2-2-10-13-2021.3601702/
[Android General] Ronnie McNutt:
Wow! it booted it was much easier than i expected thanks.
[Android General] Ronnie McNutt:
(deleted)
[Android General] Ronnie McNutt:
I have moved cameradata folder to ported rom and replaced ported SamsungCamera.apk with stock. Everything works fine apart from night mode (it crashes) and telephoto ai processing does anybody know how to fix it ?
[Android General] Phone_Guru:
Has anyone here successfully ported a OneUI5 ROM to an older device?
[Android General] pzduz:
I'm using klimtlte sm-t705 the last update for this device officially is android 6 I been trying to port from gta4xlvewifi it been month trying but fail can't find a guide on how to do this it an old device so not much info on it can someone help or point me on to how to port this
[Android General] Ronnie McNutt:
I have managed to port s22 oneui 6 beta to s20 fe 5g and booted but i am facing a weird bug the screen refresh rate is 20hz instead of 60 or 120 and while i am screen recordng or using the virtual keyboard the refresh rate goes to 55-60 how can i fix this?
[Android General] Ronnie McNutt:
I have fixed that by replacing every lib and lib64 file that contains the keyword 'arcsoft' also 'camera'
[Android General] Lebonwsky:
̶S̶o̶m̶e̶o̶n̶e̶ ̶c̶a̶n̶ ̶h̶e̶l̶p̶ ̶m̶e̶ ̶w̶i̶t̶h̶ ̶t̶h̶i̶s̶?̶?̶

Resolved
[Android General] Tisenoiazei100:
SQlite issues. Check the previous posts. They have a fix for this I think

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Faaiz75:
Failed to register native method com.android.org.conscrypt.NativeCrypto.SSL_session_reused(J)Z in /system/framework/conscrypt.jar

i gota issue on my port but idk how to fix ....every one says you have to edit smalis but idk how :confused::confused::confused::confused:
[Android General] Tisenoiazei100:
Just add your conscrypt.jar from stock to your port. (No smali required for this)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Faaiz75:
I tried with both stock and port one both gave me this error :rolleyes:
[Android General] Tisenoiazei100:
Then try switch the port rom(The ROM you are porting) ;)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Faaiz75:
If you have telegram plz text me on [MENTION=4594192]Pilot2[/MENTION]8 ?
[Android General] Tisenoiazei100:
Sorry but I don't have telegram or anything social :/

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
i tried to port j5 2016 firmware on j5 2015 (same hw, same os) i only got a single error but i dont know which file it is, it doesnt really tell me.

E/art ( 1987): Failed to register native method android.util.Log.printk_native(Ljava/lang/String;Ljava/lang/String;)I in /system/framework/framework.jar
[Android General] Tisenoiazei100:
Decompile port framework and your stock framework and replace Log.smali and it's extensions Log$****.smali inside android/util from your stock to your port and recompile; )

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
Thank you, that error went in the air :D Now i got another error, but i understood the way it works so i found the smali. I will keep fixing the errors, if i need help i will tell. You are a pro btw, i will press the tnx button :D
[Android General] Tisenoiazei100:
Thank you ?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
Ok, so i fixed all of the E/art errors but now i have an F/art error and it doesnt tell me where the smalis are (no .jar file in the end)

F/art ( 1010): sart/runtime/runtime.cc:292] Runtime aborting...

F/art ( 1010): sart/runtime/runtime.cc:292] Aborting thread:

F/art ( 1010): sart/runtime/runtime.cc:292] "main" prio=5 tid=1 Native

F/art ( 1010): sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0xb0dd7000 self=0xb825d5e8

F/art ( 1010): sart/runtime/runtime.cc:292] | sysTid=292 nice=0 cgrp=default sched=0/0 handle=0xb6f1dbec

F/art ( 1010): sart/runtime/runtime.cc:292] | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100

F/art ( 1010): sart/runtime/runtime.cc:292] | stack=0xbe6ec000-0xbe6ee000 stackSize=8MB

F/art ( 1010): sart/runtime/runtime.cc:292] | held mutexes= "abort lock" "mutator lock"(shared held)

F/art ( 1010): sart/runtime/runtime.cc:292] kernel: (couldn't read /proc/self/task/292/stack)

F/art ( 1010): sart/runtime/runtime.cc:292] native: (backtrace::Unwind failed for thread 292)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.Zygote.nativeForkSystemServer(Native method)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.Zygote.forkSystemServer(Zygote.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.startSystemServer(ZygoteInit.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292] Dumping all threads without appropriate locks held: thread list lock mutator lock

F/art ( 1010): sart/runtime/runtime.cc:292] All threads:

F/art ( 1010): sart/runtime/runtime.cc:292] DALVIK THREADS (1):

F/art ( 1010): sart/runtime/runtime.cc:292] "main" prio=5 tid=1 Native

F/art ( 1010): sart/runtime/runtime.cc:292] | group="" sCount=0 dsCount=0 obj=0xb0dd7000 self=0xb825d5e8

F/art ( 1010): sart/runtime/runtime.cc:292] | sysTid=292 nice=0 cgrp=default sched=0/0 handle=0xb6f1dbec

F/art ( 1010): sart/runtime/runtime.cc:292] | state=? schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100

F/art ( 1010): sart/runtime/runtime.cc:292] | stack=0xbe6ec000-0xbe6ee000 stackSize=8MB

F/art ( 1010): sart/runtime/runtime.cc:292] | held mutexes= "abort lock"

F/art ( 1010): sart/runtime/runtime.cc:292] kernel: (couldn't read /proc/self/task/292/stack)

F/art ( 1010): sart/runtime/runtime.cc:292] native: (backtrace::Unwind failed for thread 292)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.Zygote.nativeForkSystemServer(Native method)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.Zygote.forkSystemServer(Zygote.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.startSystemServer(ZygoteInit.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:-1)

F/art ( 1010): sart/runtime/runtime.cc:292]

F/art ( 1010): sart/runtime/runtime.cc:292]

F/libc ( 1010): Fatal signal 6 (SIGABRT), code -6 in tid 1010 (main)

E/ ( 271): ptrace attach failed: Permission denied
[Android General] Tisenoiazei100:
I've never seen on of these :/. So, take your port and stock core.jar (core-libart.jar in android 5.0+) REMEMBER TO KEEP BACKUP OF YOUR STOCK core.jar

1. Decompile both of these jars

2. Delete from your port the dalvik folder

3.change it with the stock dalvik folder

4. Recompile your new core.jar and test ;).

Can you tell me the Base and the port you're using?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
base- stock J500FNXXU1APE3

port- stock J5108ZHU1API2

i will test with core.jar

edit: same error :( I will try to install a clean, fresh rom (now with edits) and maybe try changing the kernel, see if that works.

edit2: well, i dont have a clue :( i even tried to port n5 rom (that was my goal) fixed e/art errors but that dalvik error still persists.

edit3: but i think it is some issue from core-libart.jar cuz https://xdaforums.com/showpost.php?p=62558496&postcount=2496
[Android General] malbert16442:
You guys mine for the future if you could post the logs text file and not the pages of text directly on xda. If you can't upload text file please use hastebin
[Android General] Tisenoiazei100:
I have an idea. If your phone is J500FN, try to port a J500F ROM to your device, If you are getting the same issue then your Base rom is bad ;).

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk