phhusson / super-bootimg

Tools to edit Android boot.img. NDK buildable, to be usable in an update.zip
GNU General Public License v3.0
226 stars 121 forks source link

Flashing superuser.zip makes OmniROM unbootable #24

Closed Iey4iej3 closed 8 years ago

Iey4iej3 commented 8 years ago

ROM: OmniROM 6.0.1 nightly (espressowifi) Device: Samsung Galaxy Tab 2, p3110

logcat: logcat.txt logs from TWRP: recovery.txt

hughdavenport commented 8 years ago

Hey @FrankEular, I think I have a similar issue with paranoid android on my oneplus3. How did you get the logcat.txt when it didn't boot? I can't see adb connection while boot is attempting.

Cheers,

Hugh

phhusson commented 8 years ago

@hughdavenport you would need to make an eng boot.img from paranoid sources, so that you get ADB straight from device booting, apply the superuser.zip and boot to get the logs

hughdavenport commented 8 years ago

So from the sources? Not just the downloaded flashable zip for pa? Are there any instructions for that or is that something i should ask pa ppl for?

Btw love the project. Needs to be open source :-)

phhusson commented 8 years ago

No clue, I don't know how to build Paranoid Android, I can try to build it myself if you need.

hughdavenport commented 8 years ago

Ok, got logs, this repeats over and over on the bad boot.

09-05 21:11:28.645  1054  1054 I InstallerConnection: connecting...
09-05 21:11:28.645  1054  1054 I InstallerConnection: disconnecting...
09-05 21:11:28.645  1054  1054 E InstallerConnection: connection failed
09-05 21:11:28.645  1054  1054 W InstallerConnection: installd not ready
09-05 21:11:28.720   579   703 E slim_daemon: [NDK] bindNDKSensors: Sensor server is unavailable.
0

good-boot-logcat.txt <- before rooting, successful boot

recovery.log.txt <- rooting

rooted-boot-logcat.txt <- after rooting the boot img

Tested earlier and works fine with CM.

Is there anything more I can do to test? Any idea where I can start debugging more?

Cheers,

Hugh

phhusson commented 8 years ago

Interesting, seems to be the same problem as OmniROM

hughdavenport commented 8 years ago

Weird. Omni worked for me on my nexus 5 but doesn't have a release for oneplus 3 so can't try that. I could try. PA on my nexus if you want?

Any ideas on what the problem is? Seems like a weird unrelated thing to hang on lol, the good boot did have that line a few times just not hanging on it

phhusson commented 8 years ago

Root with omni on hammerhead works for you?!? The exact same thing didn't work for me... Could you tell me which version you tested works?

I think it might be related to init.rc editing. Could be the flash_recovery thing, the on init chmod 0755 /sbin, or a missing \n before the declaration of the su service

hughdavenport commented 8 years ago

screenshot_20160907-073720 screenshot_20160907-073725 screenshot_20160907-073819 screenshot_20160907-073844

hughdavenport commented 8 years ago

Cant recall what version I initially flashed but this is my current setup. I cant flash the zip and have to do the image manually which i guess is based off another roms img as i didnt pull the boot img off device first.

In process of setting up my new phone but after I'm done I'm happy to test a bunch of different things on the n5

phhusson commented 8 years ago

Fixed in https://github.com/phhusson/super-bootimg/commit/eaaefa73fffa1c5dba5f4b0d87c519aa6b5c2228