Xosrov / Android-Timezone-Fix

Magisk module to fix timezone for Iran (GMT+3:30)
3 stars 1 forks source link

Oneplus Nord N100 #4

Open esisalim opened 1 year ago

esisalim commented 1 year ago

hi, i tried your Module in oneplus nord n100 android 11, but it doesnt work, can you help fix i?

Xosrov commented 1 year ago

Hey, I'll look into it as soon as I can. In the meantime, please follow these steps and attach the output so I can get an idea where timezone files are stored on your ROM.

  1. adb shell into running device and go root with su - (Magisk will ask for permission). Alternatively, you can also do this in Termux if you have it installed on your phone (may need to install root repo for su support).
  2. cd /
  3. find . -name tzdata 2>/dev/null
esisalim commented 1 year ago

thanks man, i tried everything and i am really out of hope, the last Module i tried is from this link https://github.com/kingofnull/Systemless_TZData_2022g/releases/tag/beta i think the problem is it couldn't change tzdata in ./apex/com.android.tzdata/etc/tz/tzdata even in twrp installation when i try to manually mount this folder i got following error: Re-mount error! mount: '/dev/block/loop9'->'/apex/com.android.tzdata': Invalid Argument

OnePlusN100:/ $ su su OnePlusN100:/ # find . -name tzdata 2>/dev/null find . -name tzdata 2>/dev/null ./apex/com.android.tzdata/etc/tz/tzdata ./apex/com.android.tzdata@301700900/etc/tz/tzdata ./system/usr/share/zoneinfo/tzdata ./data/misc/zoneinfo/tzdata

esisalim commented 1 year ago

hi again. apparently there is a file namd com.google.android.tzdata2.apex in /system/apex that contain tzdata file and in ever boot copy tzdata file to ./apex/com.android.tzdata/etc/tz/tzdata.... i there an way we could update this apex file?

Xosrov commented 1 year ago

hi again. apparently there is a file namd com.google.android.tzdata2.apex in /system/apex that contain tzdata file and in ever boot copy tzdata file to ./apex/com.android.tzdata/etc/tz/tzdata.... i there an way we could update this apex file?

Could you upload the file here please? I'll make some changes in the new branch and ask you to try a new magisk module. I'm sure we'll find a solution somehow

esisalim commented 1 year ago

hi, i couldn't find a way to upload it it here so i used mega https://mega.nz/file/5IwwkDBC#0VfLBdErhc-4dEAVme2a6xkV13YbY9xgRzlOgO_Z_Mk if you change .apex extension with .zip, you will be able to see the contents of it

esisalim commented 1 year ago

Could you please do me a favor ? If you rooted your phone could you go to this address and extract com.android.tzdata.apex file and upload it for me so i can try it in my phone. maybe it work /system/apex/*

Xosrov commented 1 year ago

Could you please do me a favor ? If you rooted your phone could you go to this address and extract com.android.tzdata.apex file and upload it for me so i can try it in my phone. maybe it work /system/apex/*

Here is the directory /system/apex/com.android.tzdata/ on my device: com.android.tzdata.zip

I'm not sure if this will help you... these files are mostly covered by the module anyway

Xosrov commented 1 year ago

thanks man, i tried everything and i am really out of hope, the last Module i tried is from this link https://github.com/kingofnull/Systemless_TZData_2022g/releases/tag/beta i think the problem is it couldn't change tzdata in ./apex/com.android.tzdata/etc/tz/tzdata even in twrp installation when i try to manually mount this folder i got following error: Re-mount error! mount: '/dev/block/loop9'->'/apex/com.android.tzdata': Invalid Argument

OnePlusN100:/ $ su su OnePlusN100:/ # find . -name tzdata 2>/dev/null find . -name tzdata 2>/dev/null ./apex/com.android.tzdata/etc/tz/tzdata ./apex/com.android.tzdata@301700900/etc/tz/tzdata ./system/usr/share/zoneinfo/tzdata ./data/misc/zoneinfo/tzdata

I'm more curious about the /data/misc/zoneinfo/tzdata and /apex/com.android.tzdata@301700900/etc/tz/tzdata files. I don't have those on my device

esisalim commented 1 year ago

Thanks for the File but our phone's files seems different. in my phone there isn't any folder in /system/apex path, there are some files with .apex extension

you don't have any file that end in .apex extension in that directory?

Xosrov commented 1 year ago

Thanks for the File but our phone's files seems different. in my phone there isn't any folder in /system/apex path, there are some files with .apex extension

you don't have any file that end in .apex extension in that directory?

Nope, is it a zip file?