luk1337 / ih8sn

331 stars 113 forks source link

Not updating props #35

Closed brianjmurrell closed 2 years ago

brianjmurrell commented 2 years ago

I believe I have run this as I am supposed to:

First attempt failed:

$ bash push.sh
restarting adbd as root
'/dev/root' is read-only
system/addon.d/60-ih8sn.sh: 1 file pushed, 0 skipped. 4.3 MB/s (734 bytes in 0.000s)
adb: error: failed to copy 'system/addon.d/60-ih8sn.sh' to '/system/addon.d/60-ih8sn.sh': remote couldn't create file: Read-only file system
adb: error: failed to copy 'system/bin/ih8sn' to '/system/bin/ih8sn': remote couldn't create file: Read-only file system
system/bin/ih8sn: 1 file pushed, 0 skipped. 98.1 MB/s (9355688 bytes in 0.091s)
system/etc/init/ih8sn.rc: 1 file pushed, 0 skipped. 1.1 MB/s (292 bytes in 0.000s)
adb: error: failed to copy 'system/etc/init/ih8sn.rc' to '/system/etc/init/ih8sn.rc': remote couldn't create file: Read-only file system
system/etc/ih8sn.conf: 1 file pushed, 0 skipped. 1.3 MB/s (303 bytes in 0.000s)
adb: error: failed to copy 'system/etc/ih8sn.conf' to '/system/etc/ih8sn.conf': remote couldn't create file: Read-only file system

So run using --use_remount:

$ bash push.sh --use_remount
adbd is already running as root
remount succeeded
system/addon.d/60-ih8sn.sh: 1 file pushed, 0 skipped. 3.8 MB/s (734 bytes in 0.000s)
system/bin/ih8sn: 1 file pushed, 0 skipped. 109.5 MB/s (9355688 bytes in 0.082s)
system/etc/init/ih8sn.rc: 1 file pushed, 0 skipped. 1.2 MB/s (292 bytes in 0.000s)
system/etc/ih8sn.conf: 1 file pushed, 0 skipped. 1.5 MB/s (303 bytes in 0.000s)
$ adb reboot

Wait for reboot and then see if the new fingerprint was applied:

$ adb shell getprop ro.build.fingerprint
OnePlus/OnePlus6/OnePlus6:8.1.0/OPM1.171019.011/06140300:user/release-keys
$ adb shell cat /system/etc/ih8sn.conf
BUILD_FINGERPRINT=OnePlus/OnePlus6/OnePlus6:11/RKQ1.201217.002/2111252325:user/release-keys
BUILD_DESCRIPTION=OnePlus6-user 11 release-keys
BUILD_SECURITY_PATCH_DATE=2021-11-01
BUILD_TAGS=release-keys
BUILD_TYPE=user
BUILD_VERSION_RELEASE=11
DEBUGGABLE=0
MANUFACTURER_NAME=OnePlus
PRODUCT_NAME=OnePlus6

As you can see, the fingerprint that is in the ih8sn.conf is not the fingerprint that the device is using.

What did I do wrong?

luk1337 commented 2 years ago

Run adb root; adb shell /system/bin/ih8sn init; adb shell /system/bin/ih8sn boot_completed and see if props are set.

brianjmurrell commented 2 years ago

NVM. I was being an idiot and not realizing the arch of the release package is for the ih8sn binary, not the arch you are running on. Seems to be working now. At least I pass safetynet now. Still don't see Netflix on the Play Store or able to add a card to Google Pay, but I will continue Googling on that.