bootloop after messing with build.prop - Xperia Z1 Q&A, Help & Troubleshooting

hello, please help me recover my phone, it's stuck on bootloop after i tried to change brand and model by editing build prop
my phone has lots of important notes , and many open tabs on chrome i don't want to lose track of.
i ve been trying with adb, but i am desperate now, will flashing system.sin delete my data ?

Did you try to fix the permissions with adb? Do u have a backup

masterofnocrack said:
Did you try to fix the permissions with adb? Do u have a backup
Click to expand...
Click to collapse
i have a copy of my build prop, after messing arround and experimenting how to use adb, i think i manage to remove the old file, and pushed the backup, but still my phone keep rebooting after sony logo, i don't get the blue waves

Gamer4Life said:
i have a copy of my build prop, after messing arround and experimenting how to use adb, i think i manage to remove the old file, and pushed the backup, but still my phone keep rebooting after sony logo, i don't get the blue waves
Click to expand...
Click to collapse
I don't know how to do it but it must work, you should create a zip file that would inject build.prop. Maybe somebody can help you to do it.

U need to set the proper permissions.
After pushing ur backup build.prop to /system
Do this in adb shell: chmod 644 /system/build.prop

if you have TWRP recovery go to mount option and mount system partition.
then go to file manager and find build.prop file in /system then chmod that file.
reboot system.!!!!!
on the other side of the coin you can flash your phone using FLASHTOOL

Gamer4Life said:
hello, please help me recover my phone, it's stuck on bootloop after i tried to change brand and model by editing build prop
my phone has lots of important notes , and many open tabs on chrome i don't want to lose track of.
i ve been trying with adb, but i am desperate now, will flashing system.sin delete my data ?
Click to expand...
Click to collapse
flash system.sin using flashtool and exclude userdata from wipe box
if you are on stock try to flash the same build cause as i think every version is do resize partitions so that will make your internal memory not accessible and you will must flash userdata if that happened
and best of all if you have TWRP is to build prerooted firmware and copy to your Internal memory or sdcard and flash it
this will don't do anything with userdata partition

Thanks everyone, i flashed sin system with flashtool, lost my mods and root, but not big deal my notes are saved.
All this hassle was because i wanted to spoof my phone into galaxy s2 to get old gameloft games to work on my phone. I changed manufacturer ftom sony to Samsung and model number.
Dont know what i did wrong.

Related

[Q] Replace Build.prop In TWRP

Hey all,
Today is not my day...just not paying attention. I accidentally replaced my build.prop file with a modified version but forgot to change the permissions so now I am boot looping. I can still access TWRP, so I was curious if there is any way to get a new build.prop file onto the phone so I do not have to do a full wipe. Any help would be appreciated.
Also, if its possible to flash onto the phone, does anyone have the build.prop file I can use? Thanks in advance.
I guess I can also access the bootloader for fastboot, if that makes a difference. Thanks.
JustROLLIN said:
I guess I can also access the bootloader for fastboot, if that makes a difference. Thanks.
Click to expand...
Click to collapse
You can either use mfastboot to flash the entire system. IMG for the rom you are using (easiest). Or use adb from within recovery to fix permissions on the build.prop....
Good luck :good:
Edit: re flashing just system will not affect you data. Only any modifications made to /system. For instance: if you are using xposed, it will need to be reinstalled. All other apps will be unaffected.
samwathegreat said:
You can either use mfastboot to flash the entire system. IMG for the rom you are using (easiest). Or use adb from within recovery to fix permissions on the build.prop....
Good luck :good:
Edit: re flashing just system will not affect you data. Only any modifications made to /system. For instance: if you are using xposed, it will need to be reinstalled. All other apps will be unaffected.
Click to expand...
Click to collapse
Your idea spurred me to use a method I used the other day, from this thread:
http://forum.xda-developers.com/moto-x/general/fxz-moto-x-4-4-4-212-55-26-t2827307
Worked great and saved all data, thank you!

Flashtool not recognising device anymore.

I messed with build.prop and default.prop but restored them back to normal. But now flashtool does not recognize my xperia t at all. But i can unlock and relock bootloader just fine by choosing xperia t or any other device from the list, any will work.
And i am unable to flash zips for that reason because any rom zips must first retrieve the device information before installation.
What if i copy the folders for example in root it shows the system folder, what if i copy those important required folders to my sdcard and copy them to root (i dont care about my data as i have backed it up already). Will that work? i mean its the same process right?
Won't work because you need to properly install a ROM to get the right permissions.
Maybe somebody here is willing to upload a backup of the system partition of his stock 4.3 ROM?
WhiteNeo said:
Won't work because you need to properly install a ROM to get the right permissions.
Maybe somebody here is willing to upload a backup of the system partition of his stock 4.3 ROM?
Click to expand...
Click to collapse
if you do not recognize flashtool try this if some steps:
1.disassembles the back cover
2.Disconnect the battery of the board
3.so disconect the battery of the board, tries connect to pc ,mode flashmode

Bootloop after copying a file to /system using TWRP with no root

Hello
I've got the Note 5 SM-N9208 and I am trying not to root (tripped Knox tho as I but Phillippines system.img on it) it as the annoying Barclays App doesn't work.
I am however, trying to add my custom CA certificate into the /system/etc/security/cacerts folder. This is what I used to do in my rooted devices before and worked fine.
I have flashed TWRP and taken a full backup (thank God!) and then mounted the system as RW, copied the file, rebooted and voila, boot loop on the Samsung Note 5 screen.
The only fix is to reflash the system partition from the original TAR file which makes me wonder - is there a mechanism that prevents system from being modified if the device is unrooted? Something like Samsung's system protection or something.
Could anyone try to reproduce the issue on an unrooted phone just to see if it's just me being unlucky? Or is is simply not possible to modify system without root? If so, how come TWRP allows me to do so?
Let me know what you think guys
Looking forward to hear someone else's opinion.
mateuszd said:
Hello
Let me know what you think guys
Looking forward to hear someone else's opinion.
Click to expand...
Click to collapse
You must be rooted to make system changes.
You need to make some changes in ramdisk : remove support_scfs,verify from the fstab files for system partition

HTC One M7 - App will not stick on /system

Hi everyone
I'm trying to get the infamous GPS Location Spoofer installed as a system app on my rooted HTC phone, but so far no luck, so I figured I would try to ask for help here, in case anyone went through a similar situation, or knows what I've been doing wrong. This is what I tried so far:
Installed the app from Google App store, and using File Explorer with root , tried to move the app folder to /system/app or /system/priv-app, , but pasting the folder there would result in an instant reboot and the app would not be there.
So I installed lucky patcher , and using apk downloader, downloaded the apk file from the App Store, copied it over to the phone, and used the "Rebuild and Install" option, choosing the option to install it as a system app , and it would process it and say that the installation was sucessfull, needs to reboot to complete, but after the reboot the app would not be there (not only not showing on the apps list, but navigating to the /system folder with File Explorer and checking app and priv-app I could verify that it was not installed).
SO I tried to use adb shell to do the work , and this is what I did:
mount -o remount /dev/block/mmcblk0p35 /system
to mount the /system filesystem as read write , and it did
cp /sdcard/Download/com.incorporateapps.fakegps.fre-55.apk /system/app
to copy the file under /system/app
chmod 644 com.incorporateapps.fakegps.fre-55.apk
to set the permissions as required
and reboot the phone, but after the reboot, the file would not be there. I tried also to create a folder under /system/app named com.incorporateapps.fakegps.fre-55, move the apk inside; installing normally , changing the mount point to read-write and moving it from /data/app to /system/app or /system/priv-app using the shell and chaning ownership / permissions , but the app will not stick , either rebooting or just re-mounting the filesystem as read-only again will cause everything that was done to be lost; and after trying any of the above one time, doing it for a second time would cause the phone to reboot.
I figure that there must be an image of the /system mount point somewhere , which gets installed every time there is a remount to read-only or reboot , or something of that nature, that will cause any changes made under /system to be lost. Maybe I'm wrong but it seems to be related to HTC phones, since there's load of people doing it on other models without issues, or maybe I'm doing something wrong, since I'm no android expert
Does anyone knows what could be the issue, or what can I do ? I searched the net quite a bit for a solution to no avail (here as well), any help is appreciated
Thanks
sasteck said:
Hi everyone
I'm trying to get the infamous GPS Location Spoofer installed as a system app on my rooted HTC phone, but so far no luck, so I figured I would try to ask for help here, in case anyone went through a similar situation, or knows what I've been doing wrong. This is what I tried so far:
Installed the app from Google App store, and using File Explorer with root , tried to move the app folder to /system/app or /system/priv-app, , but pasting the folder there would result in an instant reboot and the app would not be there.
So I installed lucky patcher , and using apk downloader, downloaded the apk file from the App Store, copied it over to the phone, and used the "Rebuild and Install" option, choosing the option to install it as a system app , and it would process it and say that the installation was sucessfull, needs to reboot to complete, but after the reboot the app would not be there (not only not showing on the apps list, but navigating to the /system folder with File Explorer and checking app and priv-app I could verify that it was not installed).
SO I tried to use adb shell to do the work , and this is what I did:
mount -o remount /dev/block/mmcblk0p35 /system
to mount the /system filesystem as read write , and it did
cp /sdcard/Download/com.incorporateapps.fakegps.fre-55.apk /system/app
to copy the file under /system/app
chmod 644 com.incorporateapps.fakegps.fre-55.apk
to set the permissions as required
and reboot the phone, but after the reboot, the file would not be there. I tried also to create a folder under /system/app named com.incorporateapps.fakegps.fre-55, move the apk inside; installing normally , changing the mount point to read-write and moving it from /data/app to /system/app or /system/priv-app using the shell and chaning ownership / permissions , but the app will not stick , either rebooting or just re-mounting the filesystem as read-only again will cause everything that was done to be lost; and after trying any of the above one time, doing it for a second time would cause the phone to reboot.
I figure that there must be an image of the /system mount point somewhere , which gets installed every time there is a remount to read-only or reboot , or something of that nature, that will cause any changes made under /system to be lost. Maybe I'm wrong but it seems to be related to HTC phones, since there's load of people doing it on other models without issues, or maybe I'm doing something wrong, since I'm no android expert
Does anyone knows what could be the issue, or what can I do ? I searched the net quite a bit for a solution to no avail (here as well), any help is appreciated
Thanks
Click to expand...
Click to collapse
Are you using stock kernel?
donkeykong1 said:
Are you using stock kernel?
Click to expand...
Click to collapse
Yes, kernel is the default that comes with the phone (3.4.10.g96cae32 , android 5.0.2)
sasteck said:
Yes, kernel is the default that comes with the phone (3.4.10.g96cae32 , android 5.0.2)
Click to expand...
Click to collapse
And there's your problem. Stock kernel has system write protection, so you can't mount system as writeable. You can, but after reboot, it comes back to read only, and nothing will stick into system partition. You have 2 choices now - disable system write protection on stock kernel, or flash a custom kernel
donkeykong1 said:
And there's your problem. Stock kernel has system write protection, so you can't mount system as writeable. You can, but after reboot, it comes back to read only, and nothing will stick into system partition. You have 2 choices now - disable system write protection on stock kernel, or flash a custom kernel
Click to expand...
Click to collapse
oh I see.. didn't know about that , thanks! I'll check about disabling system write protection , otherwise look for a custom kernel, never did it before but will give it a try
donkeykong1 said:
And there's your problem. Stock kernel has system write protection, so you can't mount system as writeable. You can, but after reboot, it comes back to read only, and nothing will stick into system partition. You have 2 choices now - disable system write protection on stock kernel, or flash a custom kernel
Click to expand...
Click to collapse
Shhhhhh, don't help him, he's going to steal everyone's pokemons
Sent from my HTC One using XDA Labs
alray said:
Shhhhhh, don't help him, he's going to steal everyone's pokemons
Sent from my HTC One using XDA Labs
Click to expand...
Click to collapse
Ooooohhh... That's why he's trying the spoofer.... If I knew, I wouldn't help at all [emoji6]
donkeykong1 said:
Ooooohhh... That's why he's trying the spoofer.... If I knew, I wouldn't help at all [emoji6]
Click to expand...
Click to collapse
Sorry you feel that way, but I appreciate the help anyway. This is something that I never tampered with before, so I still had some doubts about the process, but I am liking the whole thing and will install a custom rom on my own phone, been reading about the Ressurection rom and it looks very nice, will try it as soon as I'm better informed
sasteck said:
Sorry you feel that way, but I appreciate the help anyway. This is something that I never tampered with before, so I still had some doubts about the process, but I am liking the whole thing and will install a custom rom on my own phone, been reading about the Ressurection rom and it looks very nice, will try it as soon as I'm better informed
Click to expand...
Click to collapse
That was a joke mate. I don't care what you do with your phone, but I'm here to help if I can [emoji6]

[LOGCAT] Can't set any secure screen lock

I was using a ROM with Android 8.1 but after returning to the NovaOS (Nougat) ROM whenever I try to add any secure lock screen method (PIN / Pattern / Pass) the settings application force closure. After trying to set Pattern method the settings app just force close, but after trying to set PIN/Pass method it actually set the pin but also force close and I cannot try again to set others methods because it ask for the pin and keeps closing.
This happens in any TW or Stock based ROM. But in AOSP/LineageOS ROMs works normally.
Things I already have tried:
* Full wipe
* Reinstall at least 5 different ROMs
* Installing ROMs with and without root/gapps
* Format /system and /data
* Encrypt and decrypt phone/Microsd card.
* Changing Kernel
* "Fix contexts" in TWRP
* Smash the phone to a wall
I do not know what I can do to solve this problem, I don't want to use my phone without a secure lock/fingerprint or use Oreo ROMs, can someone help me?
Maybe try flash stock firmware using odin first and then try other roms.
Even after flashing Stock Rom through Odin the problem persists, omg...
Tried flashing Stock and doing full wipe after too but no sucess...
I think some protected/secure partition are messed up, because I noticed now my wifi password are not being saved after a reboot too, and after I flashed Stock Rom via Odin and phone reboots to Stock Recovery to finish the process, at this point I get a error in recovery like "cannot find /misc partition", I dont know if this is normal or not.
Here is more detailed logs from adb logcat, honestly I'm starting to get afraid of this not being possible to solve, please guys, I need help, there so much experts and experienced people here, you are my last hope
AeonGV_ said:
Even after flashing Stock Rom through Odin the problem persists, omg...
Tried flashing Stock and doing full wipe after too but no sucess...
I think some protected/secure partition are messed up, because I noticed now my wifi password are not being saved after a reboot too, and after I flashed Stock Rom via Odin and phone reboots to Stock Recovery to finish the process, at this point I get a error in recovery like "cannot find /misc partition", I dont know if this is normal or not.
Here is more detailed logs from adb logcat, honestly I'm starting to get afraid of this not being possible to solve, please guys, I need help, there so much experts and experienced people here, you are my last hope
Click to expand...
Click to collapse
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
AeonGV_ said:
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
Click to expand...
Click to collapse
Your welcome bro
Thanks alot
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
Man u just saved me..... thak you so so so much.... you are the best....
Thanks to mark Good job!
AeonGV_ said:
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
Click to expand...
Click to collapse
Hi guys,
I have the same problem and I have not been able to give the permissions to the efs folder, I'm using root eplorer and giving rw permissions.
The efs folder handles these 0771 permissions and I try to change it to 0775 but when restarting the phone the changes are not applied.
please help:crying:
Same issue here, is it possible to make the change persistent through reboots? I can't set screen locks :/
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
galaxy note 9(n960n) problem solved, thanks!

Categories

Resources