yashsingh1/xdaforums huggingface dataset:
[Android General] :
i fixed that as well (thank goodness) by changing selinux mode to permissive (if someone needs to know) BUT now i got another error that i cant figure out, because i've already changed 3-4 files with that same error.

E/AndroidRuntime( 1079): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display

E/AndroidRuntime( 1079): java.lang.NoSuchMethodError: No direct method <init>(Landroid/view/Display;Landroid/view/SurfaceSession;Landroid/content/Context;Lcom/android/server/wm/WindowManagerService;)V in class Lcom/android/server/wm/FocusedStackFrame; or its super classes (declaration of 'com.android.server.wm.FocusedStackFrame' appears in /system/framework/services.jar)

E/AndroidRuntime( 1079):	at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java)

E/AndroidRuntime( 1079):	at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java)

E/AndroidRuntime( 1079):	at com.android.server.wm.WindowManagerService$2.run(WindowManagerService.java)

E/AndroidRuntime( 1079):	at android.os.Handler$BlockingRunnable.run(Handler.java)

E/AndroidRuntime( 1079):	at android.os.Handler.handleCallback(Handler.java)

E/AndroidRuntime( 1079):	at android.os.Handler.dispatchMessage(Handler.java)

E/AndroidRuntime( 1079):	at android.os.Looper.loop(Looper.java)

E/AndroidRuntime( 1079):	at android.os.HandlerThread.run(HandlerThread.java)

E/AndroidRuntime( 1079):	at com.android.server.ServiceThread.run(ServiceThread.java)

E/System ( 1079): ************ Failure starting core service

E/System ( 1079): java.lang.SecurityException

E/System ( 1079):	at android.os.BinderProxy.transactNative(Native Method)

E/System ( 1079):	at android.os.BinderProxy.transact(Binder.java)

E/System ( 1079):	at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java)

E/System ( 1079):	at android.os.ServiceManager.addService(ServiceManager.java)

E/System ( 1079):	at com.android.server.SystemServer.startOtherServices(SystemServer.java)

E/System ( 1079):	at com.android.server.SystemServer.run(SystemServer.java)

E/System ( 1079):	at com.android.server.SystemServer.main(SystemServer.java)

E/System ( 1079):	at java.lang.reflect.Method.invoke(Native Method)

E/System ( 1079):	at java.lang.reflect.Method.invoke(Method.java:372)

E/System ( 1079):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

E/System ( 1079):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

The problem seems to be in WindowManagerService and FocuseStackFrame, but i changed them both to stock ones, but didnt work.
[Android General] Tisenoiazei100:
Did you done the change in Framework. Jar??? It says that the error is caused from com/android/server/wm/FocusedStackFrame.smali in services.jar

Make a check in framework.jar and services.jar and replace:

android/view/Display.smali

android/view/SurfaceSession.smali

android/content/Context.smali

com/android/server/wm/WindowManagerService.smali

With the stock ones. If one or more of these smali's is/are in framework and on services then replace them both. Also remember their extensions!!!!!! (WindowManagerService$****.smali)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
mm yes, im done with framework.jar, now it only shows error by services.jar. the thing is, i replaced windowsmanagerservice, but now i got another error for MultiWindowPolicy but i dont have that file in stock rom.

i will try with deleting it
[Android General] Tisenoiazei100:
Does your port currently have that :/

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

actually after deleting it that error just dissapeared, now i got another error, but i will keep fixing and i will update.
[Android General] Tisenoiazei100:
Remove multiwindowpolicy and it's extensions and see if the error is gone ;)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Tisenoiazei100:
Hmm :/ the issue seems to be from missing resources. Also on my port I'm getting Resource Errors. So I can't help you any further :( I'll try finding a way of fixing it.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] RealWelder:
I hope you figure it out, my port is throwing the same multiwindow error only my resource id is #0x1070052.

Partially solved. Decompile both framework-res.apks and search values/public.xml for your id. You have to add a 0 after the x to find it in public. For example mine is 0x1070052 so I search for 0x01070052. Copy to your other public.xml Mine was arrays so you also have to copy the corresponding arrays to port values/arrays. I assume if it was a string or a drawable that was throwing the error instead of an array we'd have to copy those string/drawables into our port as well.
[Android General] :
Hm, will that fix the error, or ? I don't understand when u say "partially solved". Anyway, in the meantime, i wanted to try S7 port as well, but whenever i try to put apps,framework and priv-app, it starts to boot but then freezes and reboots to recovery. What could it be? [MENTION=6036537]RealWelder[/MENTION] pm me to talk if u have something social (to talk faster). maybe we have similar devices and we want to port similar roms so we can help each other
[Android General] RealWelder:
It will solve the error. In case of multiwindow there are multiple arrays and their public id's that have to be transferred. The reason I put partially solved is because I haven't had it throw a drawable or string error yet, but I assume the process will be still the same.
[Android General] Tisenoiazei100:
64 bit OS to 32 bit Phone is near impossible. Partially solved means I have not found yet a solution. But you can try this. Enter the smali that causes the error and find the missing resource code the logcat refers (0x*******) etc

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] Tisenoiazei100:
I'll try that too on my E5 Port :D

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

---------- Post added at 07:23 PM ---------- Previous post was at 07:19 PM ----------

Also I have an idea. As my Base is an old TW Ui many fonts have changed. Changing Fonts.xml is OK??

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] RealWelder:
Should be. I know this thread is for Samsung to Samsung, but I'm trying to port MIUI...I had to edit system fonts.xml to add in the MIUI font family.
[Android General] Tisenoiazei100:
Yes most of my issues come from fonts like the alarm app :/

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
I'm using 32 bit libs ofcourse , but still not working. Note 5 rom priority is higher than S7 one, cuz for our device theres a n7 port, and also i like the speed of 5.1.1 on j5.

Also, i don't understand- what should i do with the public id? Can you explain more clearly? Which id should i search for? In the log it says

Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x11200c7

I tried to search for that (with 0 after the x) did not find anything.

Actually, looking at my public.xml (port) i find

<public type="bool" name="config_multiWindowExtendScaleAppList" id="0x011200c1" />

<public type="bool" name="config_multiWindowPenWindowMultiInstance" id="0x011200c2" />

but not 0x011200c7.

Now, i opened ActivityManagerService.smali, i wanna try removing this multiwindow thing from it, but first i will ask what should i remove (to avoid mistakes) here's the whole method:

.method private removeRecentTasksForUserLocked(I)V

.locals 5

if-gtz p1, :cond_0

const-string v2, "ActivityManager"

new-instance v3, Ljava/lang/StringBuilder;

invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

const-string v4, "Can\'t remove recent task on user "

invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

move-result-object v3

invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v3

invoke-static {v2, v3}, Landroid/util/Slog;->i(Ljava/lang/String;Ljava/lang/String;)I

:goto_0

return-void

:cond_0

iget-object v2, p0, Lcom/android/server/am/ActivityManagerService;->mRecentTasks:Ljava/util/ArrayList;

invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

move-result v2

add-int/lit8 v0, v2, -0x1

:goto_1

if-ltz v0, :cond_2

iget-object v2, p0, Lcom/android/server/am/ActivityManagerService;->mRecentTasks:Ljava/util/ArrayList;

invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

move-result-object v1

check-cast v1, Lcom/android/server/am/TaskRecord;

iget v2, v1, Lcom/android/server/am/TaskRecord;->userId:I

if-ne v2, p1, :cond_1

iget-object v2, p0, Lcom/android/server/am/ActivityManagerService;->mMultiWindowPolicy:Lcom/android/server/am/MultiWindowPolicy;

iget v3, v1, Lcom/android/server/am/TaskRecord;->taskId:I

invoke-virtual {v2, v3}, Lcom/android/server/am/MultiWindowPolicy;->notifyTaskRemoved(I)V

iget-object v2, p0, Lcom/android/server/am/ActivityManagerService;->mRecentTasks:Ljava/util/ArrayList;

invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

invoke-virtual {v1}, Lcom/android/server/am/TaskRecord;->removedFromRecents()V

:cond_1

add-int/lit8 v0, v0, -0x1

goto :goto_1

:cond_2

const/4 v2, 0x0

const/4 v3, 0x1

invoke-virtual {p0, v2, v3}, Lcom/android/server/am/ActivityManagerService;->notifyTaskPersisterLocked(Lcom/android/server/am/TaskRecord;Z)V

goto :goto_0

.end method
[Android General] Tisenoiazei100:
[MENTION=6173089]malbert16442[/MENTION] at my port im getting resource issues in some apks like

D/PackagePrefetcher( 1114): put: /system/app/ConfigUpdater

W/ResourceType( 1114): Failure getting entry for 0x7f020011 (t=1 e=17) (error -75)

it doesn't harm the boot process but when it reaches to start services it fails due to it :(

What should i do????
[Android General] malbert16442:
You could port 64bit to 32 anytime loool
[Android General] :
Ok, i replaced now with stock services.jar just to test, fixed 1 art error and i dont have any runtime errors, but FOR NOW its still not booting up.

I have 3 errors which i dont think are serious, but maybe im wrong.

E/art ( 1072): DexFile_isDexOptNeeded file '/system/framework/javax.btobex.jar' does not exist

E/art ( 1072): DexFile_isDexOptNeeded file '/system/framework/imscmlibrary.jar' does not exist

E/art ( 1072): DexFile_isDexOptNeeded file 'imsmanager.jar' does not exis

imsmanager exsists , (it doesnt report from system framework)

also i get a lot dex2oat errors, example:

E/installd( 278): DexInv: --- END '/system/framework/com.android.location.provider.jar' --- status=0x0006, process failed

I/dex2oat ( 1144): /system/bin/dex2oat --zip-fd=11 --zip-location=/system/framework/secimaging.jar --oat-fd=12 --art-fd=-1 --compress-image --oat-location=/data/dalvik-cache/arm/system@framework@secimaging.jar@classes.dex --instruction-set=arm --instruction-set-features=div --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=26

W/dex2oat ( 1144): Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Only the zygote can create the global boot image.
[Android General] Tisenoiazei100:
Ok, but can you provide me any solution for the resource issues i posted above?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] justforreply:
Hi guys, I'm working on a project to port Galaxy Tab S2 MM frimware to Tab S(1) and as I've seen on the tutorial to be able to eventualy debug the rom or to bypass some signature checks I need to decompile some .jar files,but when I try to decompile any .jar files from my tab apktool just does nothing- no errors at all. After decompiling I only got some folders from the frameworks and some random files also. If anybody knows how to fix this bug or another tool or version of the Apktool- which is the one that I'm actualy using- and can share with me will be very appreciated.

Thanks in advance.
[Android General] Has.007:
Did you boot it up successfully? :confused:
[Android General] :
Still nope

---------- Post added at 08:20 AM ---------- Previous post was at 08:18 AM ----------

You should deodex your rom first, also TickleMyAndrod has a nicer ui, more options (tool for decompiling)
[Android General] Tisenoiazei100:
Mitko gets resource errors due to multiwindow :( .

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
I will take a little break cuz holidays.. Though what do you think of removing multiwindw lines in ActivityManagerService?

Изпратено от моят SM-G900F с помощта на Tapatalk
[Android General] Tisenoiazei100:
Happy Holidays! Next time why not porting On5 Firmware instead of J5 2016. It does not contain features like Multiwindow, Themes etc. It has still a modern Note5 like TW UI, Same resolution, Contains a c@#$*& chipset so much performance for us and same performance for phones like Grand Prime so nothing less. So it would be more easier to port.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
I am trying to port A320F (Exynos 7870) to J710F (Also Exynos 7870) Same display resolution same dpi, but unable to get log from adb i enabled adb in kernel and unable to get logcat nor any display please help..
[Android General] :
You should first (before copying the a3 2016 files) enable usb debugging and get a pop up to grant the RSA fingerprint. Then maybe will hve to set SeLinux mode to permissive (with adb commands) and then flash the a3 2016 files and then logcat

Изпратено от моят SM-G900F с помощта на Tapatalk

---------- Post added at 10:43 AM ---------- Previous post was at 10:41 AM ----------

Happy holidays to you too! I will still not abandon the n5 project, nothing is better than the flagship :D but if i really have to do it, i wll try with on5, thanks for the tip. I will get on my pc for a bit to try some things

Изпратено от моят SM-G900F с помощта на Tapatalk
[Android General] akshi2000:
So i dont need to do a clean flash???:confused:

And also tell me if i need to edit kernel?

I dont understand "then flash a3 2016 files" can you please tell me how to change the selinux to permissive when the new flashed rom is not booting..:confused:

please help me..:(
[Android General] :
1. yes u need a clean flash with odin, then enable usb debugging, then grant your computer (get a rsa fingerprint popup)

2. yes u need to edit kernel

3. i meant a3 2017- u have to copy (deodexed) app,framework and priv-app to your phone with a flashable zip

4. change selinux mode to permissive with these adb commands (before flashing a3 2017 files)

adb shell

su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "setenforce 0" > /system/su.d/permissive.sh

echo "0" > /sys/fs/selinux/enforce

chmod 755 /system/su.d/permissive.sh

5. logcat and search for errors

6. its not as easy as you think
[Android General] akshi2000:
But bro i am currently using evo grace rom v1.3.2 and made selinux permissive from enforcing and also i turned on usb debugging and granted my computer. If i flash a new rom (which i trying to port) it will delete all the configurations i have made so how can i access logcat with new flashed rom :confused:
[Android General] Has.007:
Oh okay okay.

Which device are you porting to? I would suggest you to go for J5 2015 6.0.1 as it is way better. Do you've SD410? If yes then I can tell you a simple method to boot it up then you can fix the bugs later on by logs.
[Android General] :
im having a j5 2015 (snap 410) and im trying to port n5 5.1.1 rom for it (converted apps for 32bit) any help would be greatly appreciated

in the meantime im gonna try a3 2017 port 6.0.1
[Android General] Tisenoiazei100:
As I understood you ate trying to port Note5 ROM to your Galaxy J5 right?. Maybe you should try this.

"DO NOT DELETE YOUR PREVIOUS PROJECT. THIS METHOD MAY NOT WORK!!!!"

1.make a clean stock rom "base" folder.

2.copy N5 app priv-app to your base

3.copy N5media/audio to your base

3.move N5 frameworks inside framework folder (DON'T DELETE STOCK FRAMEWORK FOLDER OR ANY FRAMEWORKS) and do not replace any files

4. enter etc/permissions on your base and move N5 permissions inside WITHOUT REPLACING

5. Put a copy of your debuggable kernel from your previous project so you are not needed to do this again.

6.Test :b

It may do something as N5 framework have not huge differences between S6/J5

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
i will pause it for now, i wanna try a3 2017 port since 6.0.1 is easier to work with, we have nice kernels for it, everything is better in 6.0.1

---------- Post added at 07:20 PM ---------- Previous post was at 06:57 PM ----------

HMMMM i made 4 logcats but i dont have any errors except that its saying that some .jar files dont exist. is that a fatal error?

i dont have androidruntime errors, or system errors, or javabinder errors, just these missing files.
[Android General] Tisenoiazei100:
Umm you followed my guide above, right?

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
nope XD im talking about a3 2017 project (i said that i will pause n5 one) fixed some errors, and now i dont have (but i suspect an error is gonna eventually pop up)
[Android General] Tisenoiazei100:
Resource errors in apps and services like mine :b

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
no, i dont have errors for some files in framework.jar, its just saying that a whole jar file is missing

example- E art : DexFile_getDexOptNeeded file '/system/framework/com.google.widevine.software.drm.jar' does not exist

also when booting the phone gets extremely hot(it feels like 70c when i touch it), i will wait to see if it boots

eventually i got an error, lets keep going xD
[Android General] justforreply:
My ROM's (base and port)are fully deodexed and I'm using this tool :( :(.
[Android General] Tisenoiazei100:
Tell me your base and port.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] justforreply:
Stock deodexed Marshmallow 6.0.1 ROM of both models Tab S and Tab S2 (both based on TW, no grace ux here :p)
[Android General] Tisenoiazei100:
As I've seen from your previous post you have .jar decompiling issues and mitko said is Deodexing. So a little help is

1: Make a clean base folder and extract your deodexed stock rom in.

2. Inside your clean base put the Tab S2 SBrowser(as it doesn't require anything) inside your stock folder. !! Remember to Remove your original stock sbrowser.

3. Rezip and flash to your device

4. If your new ROM boots and SBROWSER is here your Deodexing was fine and your apktool was the issue( Use TickleMyAndroid instead). If it doesn't boot then you have issues maybe from Deodexing :/.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Lenovo Yoga Book Questions & Answers] danjac:
I know it is still early, but any ideas how to get root?

I just tried the following method without success (check details in the original thread: http://xdaforums.com/android/development/intel-android-devices-root-temp-cwm-t2975096)

maybe someone else might try it, to double check.

furthermore, I'm hoping to get an answer from the author / developer if it might be possible in the future.
[Lenovo Yoga Book Questions & Answers] danjac:
ok, seems like the method above is outdated! :(
[Lenovo Yoga Book Questions & Answers] arohrmann:
Hey guys.

And what's about this?

http://arstechnica.com/security/201...ed-by-most-serious-linux-escalation-bug-ever/

Where do we get this tool. Great and easy!
[Lenovo Yoga Book Questions & Answers] danjac:
looks promising, but don't think it is so easy. take a look here:

http://xdaforums.com/general/security/dirty-cow-t3484879

people there are already working on it, but run into problems
[Lenovo Yoga Book Questions & Answers] reiter123:
Dirty c0w and INTEL

To whom it may concern :) (my English is not so good you should just try to get the meaning from the context ;) )

I don't think this is a valid way for the Yoga Book. I compiled the dirty cow Exploit for the Yoga Book but it does not work. I used this code to execute it on the Yoga Book : https://github.com/timwr/CVE-2016-5195/blob/master/dirtycow.c .However this does not work on the Yoga Book : It will either not trigger the expected result to be able to overwrite an RO file or the yoga book just reboots.

There are a couple of developers also confirming that the existing android dirty c0w exploit code does not work on their intel tablets. :(

So we need somebody with more skills to modify the exploit c code for the intel tablets or another exploit. .....

If somebody has a link to an intel exploit I will test that.
[Lenovo Yoga Book Questions & Answers] danjac:
does anyone know if it is possible to dump the bootloader and or recovery without root access?

it would greatly help to build a custom rom.

i was searching a lot but couldn't find an answer or a way how to do it.

or is there any other source out there, where we could get a full stock rom???
[Lenovo Yoga Book Questions & Answers] danjac:
Ok, now that I got hands on a flashable stock rom update with the images of recovery and boot partition I 'dare' to port cwm. Honestly, I've never done sth like that and my experiences are litte, so my hopes are actually low.

If anyone can and/or would like to help, this would be highly appreciated.

If it works, it will definitely take its time.

Hope for the the best and plan for the worst.

Cheers
[Lenovo Yoga Book Questions & Answers] Jonathanpeyton:
Good Luck and Thanks!
[Lenovo Yoga Book Questions & Answers] arohrmann:
... is there anyone rooted this Tablet?
[Lenovo Yoga Book Questions & Answers] Jonathanpeyton:
Not yet that I've seen....
[Lenovo Yoga Book Questions & Answers] danjac:
hey there,

looks like I got TWRP working. It's definitely an amateur's work and I'm still not sure if everything works as expected, but so far it looks quite promising.

By now I was able to to backup and restore.

At the moment I'm trying to flash su - but without luck so far, it either hangs with a black screen when booting or root isn't installed properly.

So, I will play around with it for a while and report back soon.

Keep your fingers crossed.
[Lenovo Yoga Book Questions & Answers] AndyVerne:
Waiting for the good news ~

---------- Post added at 07:06 PM ---------- Previous post was at 06:24 PM ----------

Can you share the stock rom to me ? Plz :D
[Lenovo Yoga Book Questions & Answers] danjac:
it's not cwm but twrp instead...see new thread
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] dannieboiz:
I'm forced to go back to the Note 4 with the exploding note 7. But one thing that I gotten used to is Samsung/Android pay. Hotspot works without root on the Note 7.

Going back to a note 4, I want to continue to use the Pay service but I also like Hotspot. Is it possible to have both with it on the N4?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ScottieRotten:
If you are still on lollipop you can edit the apn...
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] cherylbaker:
Can you explain plz. I am back on my note 4 and would love to root but need to be able to use android pay. Can you help?

Sent from my SM-N910P using Xparent Purple Tapatalk 2
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] Llew292:
You an flash twrp recovery without effecting android pay or samsung pay so long as you dont change the system partition any so in theory you could boot into recovery and mount system and use the file manager under advanced menu to copy the telephony.db file from /data/data/com.android.providers.telephony/databases to your sd card and then reboot your phone and use something like sqlite editor to edit apn1 and apn2 "i think" under under carriers "which is actually your apn" to show default,mms,dun then save and reboot back into recovery and use the file manager again to push the file back and chmod to 0660
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] cherylbaker:
deleted