yashsingh1/xdaforums huggingface dataset:
[Android General] thereassaad:
Well my friend , i never do ,,

For example without editing systemserver.smali the rom will never booted & u know this very well , i just means to be very static for some useful tips for such framework / & well known smali that need to be our eyes on them .. that's all my point means ..

Good luck my friend
[Android General] malbert16442:
Ohh I understand what you are saying. I will expand on this guide when I get time hopefully you also could help support and add to this guide as XDA is a community. ? Over time we could help many users thanks for your advice.
[Android General] SnoopyOne:
[MENTION=6173089]malbert16442[/MENTION] Can you help me with my S5 which is G9008V China Mobile variant?

I can't boot on Thunderbolt A8 rom...:(

What should I Fix?
[Android General] Aj.xda:
I have successfully ported s7 and n7 firmware using this guide.

Awesome guide!. 9/10

I have one small issue, in your log n79 you have "E SQLiteDatabase: " How did you fix this error? I am having the same issue, with one of my builds.

Solved:

FileSeek ftw!
[Android General] malbert16442:
Thanks happy for you. How would you rate your level of expertise so I could set a difficulty level for this
[Android General] malbert16442:
Learned new debug problems in Sammy Roms updating guide soon, making it more appealing too. Happy that one person actually made a port from this guide.
[Android General] Allooosh98:
thnx alot [MENTION=6173089]malbert16442[/MENTION] .... but i have 2 bugs i didnt manage to fix

1-wifi work and i can see available network but when i try to connect i get 'failed to connect' .. I tried to use my stock wifi-service.jar but the device not boot)

2-Camera work (back and front) and i can take photos...but when i try to record video i get 'Recording faield' fixed
[Android General] malbert16442:
When you add wifi serivce jar you have edits to make in framework you will see in your log

But don't work I have a fix for stock files too. I work on this guide this weekend make it look better
[Android General] malbert16442:
Okay so alot of people are pming me about fixing camera will post solution or debug solutions here soon
[Android General] moluntic:
hey [MENTION=6173089]malbert16442[/MENTION] bro can u help me to fix the problem?? there is a E art error in logcat that i cant fix it :

E art : No implementation found for int android.os.storage.sensitive.SecureStorageLSM.lsmInitialize() (tried Java_android_os_storage_sensitive_SecureStorageLSM_lsmInitialize and Java_android_os_storage_sensitive_SecureStorageLSM_lsmInitialize__)

i checked smali files but its as same as stock,i attached the log,if its ok look at it and tell me what should i do
[Android General] justforreply:
It boots fine with the new SBrowser :p. And I'm using TickleMyAndroid and still unable to propely decompile .
[Android General] leejunsong:
C:\adb>adb devices

List of devices attached

3300a7b2b0671375 sideload

C:\adb>adb pull /data/tombstones

error: closed

help me fix this error.. i can't get logcat on TWRP
[Android General] Tisenoiazei100:
So does SBROWSER appear on your launcher?. If so that means we are in a good road ?. So we don't need to follow step 9 about decompiling and fixing the signatures ?

So follow the the porting process like normal. And then take your first logcat. Remember no "adb shell logcat" correct for booting is "adb logcat". Also ticklemyandroid gives a log so maybe you can hunt that issue.

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

---------- Post added at 05:56 PM ---------- Previous post was at 05:53 PM ----------

Wow I answers more questions that the thread admin ?. Time for some rest ?

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

https://xdaforums.com/showpost.php?p=25621684&postcount=4

New apktool out. Maybe try that one

https://xdaforums.com/showthread.php?t=1755243
[Android General] :
You should install your frameworks. Copy framewrk-res apk and twframeworkres-apk. Copy them in your active work area. Go to theming menu and select Install Frameworks on PC then install the two frameworks apks. Then try to decompile again

Изпратено от моят SM-G900F с помощта на Tapatalk
[Android General] :
update: 5.1.1 project going again- now used a3 2016 firmware as base. i have an error that i cant figure out

/art ( 1079): Rejecting re-init on previously-failed class java.lang.Class<com.android.server.SdpManagerService>

F/art ( 1079): sart/runtime/jni_internal.cc:769] JNI FatalError called: Native registration unable to find class 'com/android/server/SdpManagerService'; aborting...

i replaced with stock smali, same.. But my stock services jar has only 1 smali with that name, a3 has more with extensions.. could it be that?
[Android General] Tisenoiazei100:
I switched my port to J500FN than E5 :b. I got the same sdp manager issue. !!DO NOT REPLACE SERVICES.JAR. Just add sdpmanagerservice smali to it :b. Even though if it booted up you would had FC's many FC'S ξθ-ι

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

---------- Post added at 04:18 PM ---------- Previous post was at 04:17 PM ----------

*if it booted up /W stock services.jar

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
i didnt change services jar with stock one, just replaced the smali with stock one. still got error. but in a3 2016 services there are more of those smalis (with extensions) so idk

ok.. i dont know. the problem is that selinux is set to enforcing, i set it to permissive with a script (to be permissive on boot) but its still enforcing. i will see how to fix it

edit: FINALLY got permissive with a custom kernel (not made by me) time to see if that error will be there now

edit 2: same error ;(
[Android General] Tisenoiazei100:
Do the sdpservice replacement and check again

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
same, even with stock services jar it shows the same error.
[Android General] Tisenoiazei100:
Tell me what jars in your framework folder contains sdp in his name. I remember there was a sec jar that contained sdp in its name in my ROM

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

---------- Post added at 06:19 PM ---------- Previous post was at 06:16 PM ----------

Also check the smali's in your framework.jar maybe there's an I SDPMANAGERSERVICE. Smali inside

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

in a3-

SdpManagerService, SdpManagerService$1, SdpManagerService$ActionReceiver, SdpManagerService$SdpEngineDatabase$EngineInfoXmlHandler$EngineXmlHandler, SdpManagerService$SdpEngineDatabase$EngineInfoXmlHandler$EngineXmlHandler, SdpManagerService$SdpEngineDatabase$EngineListHandler$EngineListXmlHandler, SdpManagerService$SdpEngineDatabase$EngineListHandler, SdpManagerService$SdpEngineDatabase, SdpManagerService$SdpHandler, SdpManagerService$SdpManagerServiceBinderListener, SdpManagerService$SecureFileSystemManager$SecureFileSystemDatabase, SdpManagerService$SecureFileSystemManager

checked framework.jar, nope

BUT in framework folder (with every jar) on my stock rom, i found sec_sdp_sdk.jar

in a3 theres 1 more- sec_sdp_hidden_sdk.jar

copied my stock jar, no avail
[Android General] Tisenoiazei100:
Is there any folder with the name "sdp" inside services.jar?. If it does what smali's it contains?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
in stock services- no folder at all

in a3-

img

prepare your magnifying glass :D
[Android General] Coderboy7910:
How can fix this error?

E art : Failed to register native method android.content.res.AssetManager.setConfiguration_(IILjava/lang/String;IIIIIIIIIIIIII)V in /system/framework/framework.jar
[Android General] :
replace AssetManager.smali from stock framework.jar to port framework.jar

it should be located somewhere in smali or smali_classesX/android/content/res/

recompile and test
[Android General] Tisenoiazei100:
So even though your pics were as low as a MC let's play video I understood something :b. There's an app that makes that crash even though you added the class. So in app or priv-app try to replace PacProcessor with your stock one and if you want replace Packagemanager too.

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

helo in mainkraft lets plei episod 1 (crap mic, 480p quality) is that how it looked? :D im gonna try it, thanks

meanwhile i just did a factory reset so i think my adb is now disabled.. time to reflash..

pictures were captured in very big resolution so that u can see more information on the screen.

did you fixx the issue with this method?
[Android General] Tisenoiazei100:
Yes but for me was a knox class AND Sdpmanagerservice

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
didnt work.. i will try with replacing AssetManager. Why are you porting from J5 though? UI is from 5.0.2 S6 although its 5.1.1, it has less features than s5 mini, overall its crappy.
[Android General] Tisenoiazei100:
Actually my device is S3 Neo using unofficial TW 5.1.1 ported from S5 Mini (Now there's a 6.0.1 in progress but no news). Most of our roms are messed up mix of ports and the only best modern TW port for our device kills the battery hell fast. I just found a random hell debated ROM that's 1.5 years old for J500FN and begun porting it :b. Anyway good luck with your port hope you can fix the sdp issue soon.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
mmmm maybe i should port a ported rom.. porting for scratch is harder. i will check out s6 rom for grand 2 (snapdragon 400) if i build it then i will ask the developer if i can share it, if he says no i will keep it for myself :D
[Android General] Tisenoiazei100:
Grand 2/S3 Neo and S5 mini are the same phones. You're gonna get the same errors as me but in reverse :b. If you fail the A3 2016 rom then try the On5 ROM. It even loaded the framework to me without even touching anything then service crashes of course :b

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
mmh i dont want on5.. its just newer ui, i want edge screen, popup window, quickconnecf abd sfinder.

Изпратено от моят SM-G900F с помощта на Tapatalk
[Android General] Tisenoiazei100:
Switched to base on J3 2016 and finally i booted up on the UI. Now lot's of FC god

[MENTION=6173089]malbert16442[/MENTION]

99% of the issues are coming from this

E/art ( 7401): No implementation found for int[] android.os.Process.getThreadIOPriority() (tried Java_android_os_Process_getThreadIOPriority and Java_android_os_Process_getThreadIOPriority__)

Tried removing the current method, then it says that it cannot be found from the apps.

Any Idea :(
[Android General] malbert16442:
grep libs using fileseek. Search for this in lib folder of orginal j3 firmware. Using the program use text query to find

getThreadIOPriority

. Report back here to me what the lib is.
[Android General] Tisenoiazei100:
[MENTION=6173089]malbert16442[/MENTION] so it's inside libandroid_runtime.so and libutils.so. But I think replacing libs like libandroid-runtime. so will cause bootloop. Any idea how to edit?

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

EDIT: Ok did a replacement with the J3 ones (Even though it sounds a bit stupid :b) now its working sucessfully. I also removed all the google apps and framework so i can install pico-gapps from opengapps. Now SetupWizard FC's due to numberpicker which its smali(NumberPicker.smali and its extensions Numbersmali$***.smali) fails to be verified at early booting. Any idea :(

Here's the error

I/dex2oat ( 536): Verification error in void android.widget.NumberPicker.<init>(android.content.Context, android.util.AttributeSet, int, int)

I/dex2oat ( 536): void android.widget.NumberPicker.<init>(android.content.Context, android.util.AttributeSet, int, int) failed to verify: void android.widget.NumberPicker.<init>(android.content.Context, android.util.AttributeSet, int, int): [0x176] unexpected value in v0 of type Integer but expected Float for put

E/dex2oat ( 536): Verification failed on class android.widget.NumberPicker in /system/framework/framework.jar:classes2.dex because: Verifier rejected class android.widget.NumberPicker due to bad method void android.widget.NumberPicker.<init>(android.content.Context, android.util.AttributeSet, int, int)

Replacing lines with stock using Winmerge fixes the issue but app's cant inflate the class
[Android General] malbert16442:
Why did you remove the stock gapps open gapps will give problems since its mainly for aosp based devices
[Android General] Tisenoiazei100:
[MENTION=6173089]malbert16442[/MENTION] Because samsung stock gapps FC like hell due to the reason I gave above. I removed them so I can work without torturing my phones battery (lost 10% from these crashes) and also make logcat more readable (These random Google apps stuff makes me difficult to understand what's going on).

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
waaw i wish i could boot a single rom in my life XD i will try j5 2016 (last time i didnt complete it so lets do round 2) i mainly want to do it cuz the devices are extremely similar.
[Android General] Tisenoiazei100:
Try the spreatrum model not the qualcomm one ;)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
i dont awnt to download stock firmwares for nothing, i will try with all i have. i have j5 2016, a3 2016, note 5.. j5 2016 is pretty much same device as mine, a3 2016 failed (SdpManagerService), note 5 idk

Now i installed another better copy of windows so i can now install FileSeek and make my life easier.
[Android General] Tisenoiazei100:
Ok good luck then. If you wanna download any stock firmware download from android file host they have a lot of odin firmwares and also has no restrictions.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] yazeed_twb:
anyone know how to fix pattern,pin etc.. lock screen bug?

I mean that when you set a pattern or pin for Ur phone It willnot open.
[Android General] justforreply:
Still unable to decompile .jars :crying:. No errors just empity folders.
[Android General] akshi2000:
I ported A320F rom to J710F. The rom is stucking at Samsung bootanimation. And I am trying to take logcat but it says device offline. Any help will be appriciated.
[Android General] Tisenoiazei100:
Have you added the lines I've sent you on pm days ago on your build.prop?

Also remember "adb logcat" NOT "adb shell logcat"

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Yes bro I added that lines at build.prop but it is showing that the device is offline. I tried to kill server and repeated that steps but no luck. The rom is still stucking at Samsung boot animation

Thanks bro I waited for fifteen minutes and now I am able to take logcat. Sorry because i am trying to get logcat vey soon
[Android General] Tisenoiazei100:
Nice, now what are you typing on your CMD window. As I said no "adb shell logcat" correct for booting is "adb logcat"

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Yes bro, but when I type adb logcat it start showing logcat in cmd but when I type adb logcat > logcat.txt it stuck at this screen. Am i doing this command wrong?
[Android General] corsicanu:
Because all log output IS GOING TO LOGCAT.TXT FILE like you told it with ">logcat.txt" argument... Why are you doing this since you don't know even the cmd basics...? Or should i say, what makes you think you will succeed if you don't know what > does..? Sorry, no offence, and don't want to be rude but you should have this learnt already.. This is "How to port" thread still...
[Android General] akshi2000:
Sorry bro it is because this is my first ported rom. And I never took any logcat. But can you tell me what is the right way of doing that....Thanks
[Android General] corsicanu:
Save LogCat To A Text File

So you already know how to view LogCat in Eclipse but now you want to copy the content of LogCat and you can't do it easily from Eclipse.

To save LogCat to a text file open up a terminal window and type:

adb logcat -d > logcat.txt

This will create a file named "logcat.txt" in your current directory. The -d option indicates that you are dumping the current contents and then exiting. If you do not use this option new lines of LogCat will be appended to the file, which may be useful.

Next time use google.com
[Android General] Tisenoiazei100:
Guys I'm getting NumberPicker.smali issues at my ROM

1.Pure stock one gives Verification error on <init>.

2.Modified one gives inflation error on apps.

3. Stock ROM one gives inflation error on apps too!

Please any idea. It's the last step to enter Setupwizard :( and do whatever is needed

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

I am working on a7 2016 ported rom and when I set a pattern or pin or password it always give me incorrect. anyone:/?
[Android General] Tisenoiazei100:
Give a logcat

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] yazeed_twb:
at this time I cannot! My Pc Is broken down and I cannot got one. Did you know anyway to take logcat from the phone?
[Android General] Tisenoiazei100:
Sorry but no :(

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Tisenoiazei100:
[MENTION=6173089]malbert16442[/MENTION] help me i booted to UI successfully but my device is getting pretty unresponsive and reboots randomly. Any idea of the cause :(
[Android General] :
You have to type adb logcat (device letter) (name) example- adb logcat > d:/noob

Изпратено от моят SM-G900F с помощта на Tapatalk
[Android General] Tisenoiazei100:
Try SVA DEODEXER to deodex and then decompile through ticklemyandroid

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] infixremix:
Make sure if ur using Linux type and shell
[Android General] Tisenoiazei100:
No shell is not running when booting. You must use "adb logcat" instead

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] infixremix:
Yes but u need shell to logcat

---------- Post added at 06:47 PM ---------- Previous post was at 06:47 PM ----------

So adb shell then adb logcat
[Android General] Tisenoiazei100:
Inside android bins there are a bunch of bins with logcat and she'll inside them. ADB will execute whatever is inside the bin folder.

"adb shell logcat" gives this result

ADB》Shell》Logcat

and "adb logcat" gives this

ADB》Logcat

If shell is not running how we'll be able to excute logcat? That's why we use adb logcat instead

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] infixremix:
Oh crap sorry dude I thought u were only viewing it
[Android General] dicksteele:
You are doing this correct? Using all frameworks files...

https://xdaforums.com/showpost.php?p=71021871&postcount=185

Read the post.

I've read back through the thread and I unless I missed it I didn't see what jar(s) you are trying to decompile

I usually use this tool.

https://xdaforums.com/showthread.php?t=2251719

I've updated to latest apktool and baksmali to make it current.

Also I use this [Tool]Advanced ApkTool v4.2.0 by BDFreak

https://xdaforums.com/showthread.php?t=2639400

Today I updated it the latest apktool.2.2.2.jar. Just rename it to apktool.jar and copied to the 1-BDFreak directory under AdvancedApkTool.

Decompiling Note 4 MM system apk's and jar's with no problems.

I didn't know it also did jar's until reading the thread again. I just decompiled my services.jar, edited it and recompiled with no issues.
[Android General] Tisenoiazei100:
[MENTION=6173089]malbert16442[/MENTION] Wifi is not working after fixing all issues }:(

What ive done before the issue appeared

1. Replaced services.jar with a clean copy

2. Replaced libandroid_servers.so and libhardware_legacy.so with j3 2016 ones because it bootloops without them

3. Replaced core-libart.jar core-junit.jar and com.broadcom.bt with stock ones

What i've tried to fix it

1. Replace wifi-service /w stock ones
[Android General] infixremix:
Why are u using j3 ones?
[Android General] Tisenoiazei100:
They are needed due to framework and services issues like J3 libs has more stuff that's needed to boot the rom successfully. I tried rewriting the crashing smali's but this made it worse :/.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] justforreply:
It seems that my problem is in a corrup frimware or a problem in the extraction of the files :rolleyes::confused:. If I use a services.jar (that is the file I'm trying to decompile) of a custum rom made for my tab I can decompile it correctly.
[Android General] Tisenoiazei100:
So the problem might be with the deodexer. Try "SVA deodexer" it fixed many issues for me ;) or redownload stock and port from androidfilehost.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] dicksteele:
7zip run as administrator usually is flawless when extracting firmware tar files.
[Android General] Tisenoiazei100:
On recent apps SystemUI FC because some app icons are just some souless black boxes. Their icons are also black boxes on app settings and stuff but they are normal on launcher. Is there any issue with my drawables? but it contains the ldpi,mdpi,hdpi,xhdpi,xxhdpi icons :/
[Android General] javedgh:
how to port rom for samsung devices like j7 a5 s7 can you make vedio for rom portnig
[Android General] Tisenoiazei100:
What ROM you wanna port?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] javedgh:
miui 8 resurrection remix rom asop rom plz sir i need miui rom
[Android General] Tisenoiazei100:
That guide is for touch wiz roms only sorry :(.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] javedgh:
i have a j700h(5) can you port miui rom other rom like resurrection remix roms
[Android General] Tisenoiazei100:
No i cant sorry because

1. I don't own a J7 Duos (I'm an S3 Neo owner)

2. Even though I do a MIUI port I cannot maintain it. not because I don't have a test device but because I'll work hard on something that I'll never enjoy

You can use Google for any further help

J7 Duos is MSM8916 so type "how to port miui 8 on qualcomm" nothing hard ;)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] javedgh:
i secrch google my devie spces is Qualcomm MSM8939 Snapdragon 615

Exynos 7580 Octa

---------- Post added at 10:54 AM ---------- Previous post was at 10:54 AM ----------

Android OS, v5.1 (Lollipop), upgradable to v6.0.1 (Marshmallow)

Chipset	Qualcomm MSM8939 Snapdragon 615

Exynos 7580 Octa

CPU	Octa-core (4x1.4 GHz Cortex-A53 & 4x1.0 GHz Cortex-A53)

Octa-core 1.5 GHz Cortex-A53

GPU	Adreno 405

Mali-T720MP2
[Android General] infixremix:
Can someone make a guide to port nought
[Android General] leejunsong:
I ported a ROM a7 2017 to a7 2016.. but when i open camera.. my device auto reboot. Help me fix it
[Android General] Yahia Angelo:
HI bro...thanks for your great guide...i have note3 n900 exynos and we don,t have MM rom yet...should i port kernel From Tab S(Which have same Exynos 5420)MM..or continue porting from LP.

ps:iam trying to port N7 rom

Please Reply..Tnx
[Android General] :
Hey guys, after a long pause i come back with some great news! I partially booted A3 2017 rom on J5 2015. It optimized all apps, showed finishing boot but after that i have a constant soft-reboot loop. What could it be? I will try to fix it, but still i want to ask.
[Android General] Tisenoiazei100:
Hey nice to be back :D. I researched how touch wiz works and I know a little more right now. Give a logcat of the issue you are facing.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
It seemed to be from SQLiteConnection.smali, i will test and report
[Android General] Tisenoiazei100:
Did you replaced it with stock one?? If so and it crashes with stock and with your port sqlit...smali use your port rom smali and when it crashes you maybe find that it fails to register natives.

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